sse.md (define_mode_suffix vecmemsuffix): New.
[gcc.git] / gcc / ChangeLog
1 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
2
3 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
4 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
5 memory operand for it.
6 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
7
8 2019-06-05 Martin Sebor <msebor@redhat.com>
9
10 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
11 Adjust quoting and hyphenation.
12 * convert.c (convert_to_real_1): Same.
13 * gcc.c (driver_wrong_lang_callback): Same.
14 (driver::handle_unrecognized_options): Same.
15 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16 * opts-common.c (cmdline_handle_error): Same.
17 (read_cmdline_option): Same.
18 * opts-global.c (complain_wrong_lang): Same.
19 (print_ignored_options): Same.
20 (handle_common_deferred_options): Same.
21 * pretty-print.h: Same.
22 * print-rtl.c (debug_bb_n_slim): Same.
23 * sched-rgn.c (make_pass_sched_fusion): Same.
24 * tree-cfg.c (verify_gimple_assign_unary): Same.
25 (verify_gimple_label): Same.
26 * tree-ssa-operands.c (verify_ssa_operands): Same.
27 * varasm.c (do_assemble_alias): Same.
28 (assemble_alias): Same.
29
30 2019-06-05 Richard Henderson <rth@twiddle.net>
31
32 * config/alpha/alpha.c (direct_return): Move down after
33 struct machine_function definition; use saved frame_size;
34 return bool.
35 (struct machine_function): Add sa_mask, sa_size, frame_size.
36 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
37 (alpha_compute_frame_layout): ... new function.
38 (TARGET_COMPUTE_FRAME_LAYOUT): New.
39 (alpha_initial_elimination_offset): Use saved sa_size.
40 (alpha_vms_initial_elimination_offset): Likewise.
41 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
42 (alpha_expand_prologue): Use saved frame data. Merge integer
43 and fp register save loops.
44 (alpha_expand_epilogue): Likewise.
45 (alpha_start_function): Use saved frame data.
46 * config/alpha/alpha-protos.h (direct_return): Update.
47 (alpha_sa_size): Remove.
48
49 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
50
51 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
52 multiplication by a power-of-two value.
53 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
54 and turn the modulo operation into a masking operation.
55
56 2019-06-05 Jakub Jelinek <jakub@redhat.com>
57
58 PR debug/90733
59 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
60 with VOIDmode inner operands.
61
62 2019-06-05 Richard Biener <rguenther@suse.de>
63
64 PR middle-end/90726
65 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
66 turn an expression graph into a tree.
67
68 2019-06-05 Jakub Jelinek <jakub@redhat.com>
69
70 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
71 member.
72 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
73 treat it like explicit monotonic schedule modifier.
74 (expand_omp_for): Initialize has_lastprivate_conditional.
75 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
76 schedule modifier.
77
78 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
79 references, lookup in in hash map MEM_REF operand instead of the
80 MEM_REF itself.
81 (lower_omp_1): When looking for lastprivate conditional assignments,
82 handle MEM_REFs with REFERENCE_TYPE operands.
83
84 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
85 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
86 and references a VLA. Handle references to non-VLAs if is_simd
87 all privatization clauses like reductions.
88 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
89 If omp_is_reference, use always omp simd arrays and set
90 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
91 fails, emit reference initialization.
92
93 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
94
95 PR target/89803
96 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
97 _mm_mask_fpclass_sd_mask): New intrinsics.
98 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
99 * config/i386/i386-builtin.def
100 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
101 New builtins.
102 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
103 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
104 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
105 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
106 case QI_FTYPE_V2SF_INT): Ditto.
107 * config/i386/sse.md
108 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
109 Extended to insnstructions with mask operands.
110
111 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
112
113 * config/rs6000/constraints.md (define_register_constraint "wp"):
114 Delete.
115 (define_register_constraint "wq"): Delete.
116 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
117 (rs6000_init_hard_regno_mode_ok): Adjust.
118 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
119 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
120 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
121 (define_mode_attr VSa): Delete.
122 (define_mode_attr VSisa): New.
123 (rest of file): Adjust.
124 * doc/md.texi (Machine Constraints): Adjust.
125
126 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
127
128 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
129 (define_attr "enabled"): Handle those new isa values.
130
131 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
132
133 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
134 (define_mode_attr VSr5): Delete.
135 (define_mode_attr VStype_sqrt): Delete.
136 (define_mode_iterator VSX_SPDP): Delete.
137 (define_mode_attr VS_spdp_res): Delete.
138 (define_mode_attr VS_spdp_insn): Delete.
139 (define_mode_attr VS_spdp_type): Delete.
140 (*vsx_sqrt<mode>2): Adjust.
141 (vsx_<VS_spdp_insn>): Delete, split to...
142 (vsx_xscvdpsp): ... this. New. And...
143 (vsx_xvcvspdp): ... this. New. And...
144 (vsx_xvcvdpsp): ... this. New.
145
146 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
147
148 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
149 and V2DF.
150 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
151 (rest of file): Adjust.
152
153 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
154
155 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
156 (vsx_extract_<mode>_var): Ditto.
157
158 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
159
160 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
161 with just "wa".
162
163 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
164
165 * config/rs6000/constraints.md (define_register_constraint "ww"):
166 Delete.
167 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
168 (rs6000_init_hard_regno_mode_ok): Adjust.
169 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
170 RS6000_CONSTRAINT_ww.
171 * config/rs6000/rs6000.md: Adjust.
172 * config/rs6000/vsx.md: Adjust.
173 * doc/md.texi (Machine Constraints): Adjust.
174
175 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
176
177 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
178 (define_mode_attr sd): New.
179 (define_mode_attr s): New.
180 (define_mode_attr Ftrad): Delete.
181 (define_mode_attr Fvsx): Delete.
182 (define_mode_attr Fs): Delete.
183 (rest of file): Use the new mode attributes.
184 * config.rs6000/vsx.md: Use the new mode attributes.
185
186 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
187
188 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
189 with just "wa".
190
191 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
192
193 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
194 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
195 used with VSX_B, VSX_D, or VSX_F, with just "wa".
196
197 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
198
199 PR target/78263
200 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
201 C++ with strict ANSI requirements.
202
203 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
204
205 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
206 computations when step is 1.
207
208 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
209
210 * config/rs6000/constraints.md (define_register_constraint "wf"):
211 Delete.
212 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
213 (rs6000_init_hard_regno_mode_ok): Adjust.
214 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
215 RS6000_CONSTRAINT_wf.
216 * config/rs6000/rs6000.md: Adjust.
217 * config/rs6000/vsx.md: Adjust.
218 * doc/md.texi (Machine Constraints): Adjust.
219
220 2019-06-04 Andrew Pinski <apinski@marvell.com>
221
222 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
223 Fix ILP32 value.
224
225 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
226
227 * config/rs6000/constraints.md (define_register_constraint "wd"):
228 Delete.
229 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
230 (rs6000_init_hard_regno_mode_ok): Adjust.
231 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
232 RS6000_CONSTRAINT_wd.
233 * config/rs6000/rs6000.md: Adjust.
234 * config/rs6000/vsx.md: Adjust.
235 * doc/md.texi (Machine Constraints): Adjust.
236
237 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
238
239 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
240 (rest of file): Adjust.
241
242 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
243
244 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
245 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
246 (vsx_splat_<mode>_reg): Adjust.
247
248 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
249
250 * config/rs6000/constraints.md (define_register_constraint "ws"):
251 Delete.
252 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
253 (rs6000_init_hard_regno_mode_ok): Adjust.
254 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
255 RS6000_CONSTRAINT_ws.
256 * config/rs6000/rs6000.md: Adjust.
257 * config/rs6000/vsx.md: Adjust.
258 * doc/md.texi (Machine Constraints): Adjust.
259
260 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
261
262 * config/rs6000/constraints.md (define_register_constraint "wv"):
263 Delete.
264 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
265 (rs6000_init_hard_regno_mode_ok): Adjust.
266 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
267 RS6000_CONSTRAINT_wv.
268 * config/rs6000/rs6000.md: Adjust.
269 * config/rs6000/vsx.md: Adjust.
270 * doc/md.texi (Machine Constraints): Adjust.
271
272 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
273
274 * config/rs6000/constraints.md (define_register_constraint "wi"):
275 Delete.
276 (define_register_constraint "wt"): Delete.
277 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
278 (rs6000_init_hard_regno_mode_ok): Adjust.
279 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
280 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
281 * config/rs6000/rs6000.md: Adjust.
282 * config/rs6000/vsx.md: Adjust.
283 * doc/md.texi (Machine Constraints): Adjust.
284
285 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
286
287 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
288 const.
289 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
290 default_elf_asm_output_external.
291
292 2019-06-04 Martin Liska <mliska@suse.cz>
293
294 * ipa-icf.c (INCLUDE_LIST): Remove.
295 (sem_item_optimizer::execute): Remove call to init_wpa.
296 * ipa-icf.h (init_wpa): Remove.
297
298 2019-06-04 Jakub Jelinek <jakub@redhat.com>
299
300 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
301 conditional on combined for simd.
302 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
303 member.
304 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
305 constructs, don't remove lastprivate_conditional_map, but instead set
306 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
307 to parent construct temporaries.
308 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
309 like !ctx->lastprivate_conditional_map.
310 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
311 use up->outer context instead of up.
312 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
313 gimple_omp_for_combined_p.
314 (expand_omp_for_static_nochunk): Likewise.
315 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
316 probably moved over into expand_omp_for_generic rather than being copied
317 there.
318
319 2019-06-04 Martin Liska <mliska@suse.cz>
320
321 * value-prof.c (dump_histogram_value): Fix typo.
322 (gimple_mod_subtract_transform): Likewise.
323
324 2019-06-04 Richard Biener <rguenther@suse.de>
325
326 PR middle-end/90726
327 * tree-chrec.c (chrec_contains_symbols): Add to visited.
328 (tree_contains_chrecs): Likewise.
329 (chrec_contains_symbols_defined_in_loop): Move here and avoid
330 exponential behaivor from ...
331 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
332 ... here.
333 (expression_expensive_p): Avoid exponential behavior and compute
334 expanded size, rejecting any expansion.
335 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
336 (idx_contains_abnormal_ssa_name_p): Likewise.
337 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
338 (contains_abnormal_ssa_name_p): Simplify and use
339 walk_tree_without_duplicates.
340
341 2019-06-04 Richard Biener <rguenther@suse.de>
342
343 PR tree-optimization/90738
344 Revert
345 2019-06-03 Richard Biener <rguenther@suse.de>
346
347 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
348 full reference tree and record in ref->ref.
349 (vn_reference_lookup_3): Pass in original ref to
350 ao_ref_init_from_vn_reference.
351 (vn_reference_lookup): Likewise.
352 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
353 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
354 Handle non-decl bases in the original reference.
355
356 2019-06-04 Martin Liska <mliska@suse.cz>
357
358 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
359 number of references.
360 (sem_item_optimizer::do_congruence_step):
361 (sem_item_optimizer::worklist_push): Dump how references
362 a class has.
363 (sem_item_optimizer::worklist_pop): Use heap.
364 (sem_item_optimizer::process_cong_reduction): Likewise.
365 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
366
367 2019-06-04 Martin Liska <mliska@suse.cz>
368
369 * ipa-icf.h (struct sem_usage_pair_hash): New.
370 (sem_usage_pair_hash::hash): Likewise.
371 (sem_usage_pair_hash::equal): Likewise.
372 (struct sem_usage_hash): Likewise.
373 * ipa-icf.c (sem_item::sem_item): Initialize
374 referenced_by_count.
375 (sem_item::add_reference): Register a reference
376 in ref_map and not in target->usages.
377 (sem_item::setup): Remove initialization of
378 dead vectors.
379 (sem_item::~sem_item): Remove usage of dead vectors.
380 (sem_item::dump): Remove dump of references.
381 (sem_item_optimizer::sem_item_optimizer): Initialize
382 m_references.
383 (sem_item_optimizer::read_section): Remove useless
384 dump.
385 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
386 (sem_item_optimizer::build_graph): Pass m_references
387 to ::add_reference.
388 (sem_item_optimizer::verify_classes): Remove usage of dead
389 vectors.
390 (sem_item_optimizer::traverse_congruence_split): Return true
391 when a class is split.
392 (sem_item_optimizer::do_congruence_step_for_index): Use
393 hash_map for look up of (sem_item *, index). That brings
394 significant speed up.
395 (sem_item_optimizer::do_congruence_step): Return true
396 when a split is done.
397 (congruence_class::is_class_used): Use referenced_by_count.
398
399 2019-06-04 Alan Modra <amodra@gmail.com>
400
401 PR target/90689
402 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
403 error.
404
405 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
406
407 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
408 * config/rs6000/rs6000.c (direct_move_p): Adjust.
409 (rs6000_secondary_reload_simple_move): Adjust.
410 (rs6000_opt_masks): Neuter the "mfpgpr" option.
411 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
412 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
413 comment.
414 (power6x): Adjust.
415 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
416 (floatunssi<mode>2_lfiwzx): Adjust.
417 (fix_trunc<mode>si2_stfiwx): Adjust.
418 (fixuns_trunc<mode>si2_stfiwx): Adjust.
419 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
420 (mfpgpr): Mark as deprecated.
421 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
422 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
423 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
424
425 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
426
427 * config/rs6000/constraints.md (define_register_constraint "wg"):
428 Delete.
429 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
430 RS6000_CONSTRAINT_wg.
431 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
432 (rs6000_init_hard_regno_mode_ok): Adjust.
433 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
434 Delete "wg" alternatives.
435 * doc/md.texi (Machine Constraints): Adjust.
436
437 2019-06-03 Alan Modra <amodra@gmail.com>
438
439 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
440 (get_uncond_jump_length): Assert length less than INT_MAX and
441 non-negative.
442
443 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
444
445 PR middle-end/64242
446 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
447 block.
448 (expand_builtin_nonlocal_goto): Likewise.
449
450 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
451
452 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
453 (aarch64_asm_output_external): Declare.
454 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
455 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
456 (aarch64_asm_output_alias): New.
457 (aarch64_asm_output_external): New.
458 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
459 (ASM_OUTPUT_EXTERNAL): Define.
460
461 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
462 * tree-vrp.h (value_range_base::nonzero_p): New.
463 (value_range_base::set_nonnull): Rename to...
464 (value_range_base::set_nonzero): ...this.
465 (value_range_base::set_null): Rename to...
466 (value_range_base::set_zero): ...this.
467 (value_range::set_nonnull): Remove.
468 (value_range::set_null): Remove.
469 * tree-vrp.c (range_is_null): Remove.
470 (range_is_nonnull): Remove.
471 (extract_range_from_binary_expr): Use value_range_base::*zero_p
472 instead of range_is_*null.
473 (extract_range_from_unary_expr): Same.
474 (value_range_base::set_nonnull): Rename to...
475 (value_range_base::set_nonzero): ...this.
476 (value_range::set_nonnull): Remove.
477 (value_range_base::set_null): Rename to...
478 (value_range_base::set_zero): ...this.
479 (value_range::set_null): Remove.
480 (extract_range_from_binary_expr): Rename set_*null uses to
481 set_*zero.
482 (extract_range_from_unary_expr): Same.
483 (union_helper): Same.
484 * vr-values.c (get_value_range): Use set_*zero instead of
485 set_*null.
486 (vr_values::extract_range_from_binary_expr): Same.
487 (vr_values::extract_range_basic): Same.
488
489 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
490
491 PR driver/90684
492 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
493
494 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
495
496 * config/aarch64/iterators.md (MAX_OPP): New code attr.
497 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Rename to...
498 (aarch64_<su>abd<mode>_3): ... This.
499 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
500
501 2019-06-03 Richard Biener <rguenther@suse.de>
502
503 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
504 full reference tree and record in ref->ref.
505 (vn_reference_lookup_3): Pass in original ref to
506 ao_ref_init_from_vn_reference.
507 (vn_reference_lookup): Likewise.
508 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
509 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
510 Handle non-decl bases in the original reference.
511
512 2019-06-03 Martin Liska <mliska@suse.cz>
513
514 * doc/generic.texi: Remove Java Trees.
515
516 2019-06-03 Martin Liska <mliska@suse.cz>
517
518 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
519 returns 0 when operands are equal.
520
521 2019-06-03 Richard Biener <rguenther@suse.de>
522
523 PR tree-optimization/90716
524 * tree-loop-distribution.c (destroy_loop): Process blocks in
525 correct order.
526
527 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
528
529 PR target/88837
530 * vector-builder.h (vector_builder::count_dups): New method.
531 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
532 Declare prototype.
533 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
534 (vec_init<mode><Vel>): New pattern.
535 * config/aarch64/aarch64.c (emit_insr): New function.
536 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
537 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
538 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
539 (aarch64_sve_expand_vector_init): Define two overloaded functions.
540
541 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
542
543 PR tree-optimization/90681
544 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
545 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
546 special case for SLP, but fail on non-groupped loads.
547
548 2019-06-03 Martin Liska <mliska@suse.cz>
549
550 * cfg.c (debug): Use TDF_DETAILS for debug and
551 print edge info only once.
552
553 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
554
555 PR fortran/90539
556 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
557
558 2019-06-01 Martin Sebor <msebor@redhat.com>
559
560 PR middle-end/90694
561 * tree-pretty-print.c (dump_generic_node): Add parentheses.
562
563 2019-05-31 Jan Hubicka <jh@suse.cz>
564
565 * alias.c: Include ipa-utils.h.
566 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
567 * ipa-devirt.c (prevailing_odr_type): New.
568 * ipa-utils.h (previaling_odr_type): Declare.
569
570 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
571 Hongtao Liu <hongtao.liu@intel.com>
572
573 PR target/89355
574 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
575 NOTE_INSN_DELETED_LABEL check.
576
577 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
578 Robert Suchanek <robert.suchanek@mips.com>
579
580 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
581 and 3rd operands of the fmadd/fmsub/maddv builtin.
582
583 2019-05-31 Jakub Jelinek <jakub@redhat.com>
584
585 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
586 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
587 on OMP_SIMD if not nested inside of worksharing loop that also has
588 lastprivate conditional clause for the same decl.
589 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
590 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
591 on simd.
592 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
593 on simd construct.
594 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
595 on simd construct.
596 (lower_lastprivate_clauses): Likewise.
597 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
598 calling lower_rec_input_clauses.
599 (lower_omp_for): Likewise.
600 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
601 clause on simd construct.
602 * omp-expand.c (expand_omp_simd): Initialize cond_var if
603 OMP_CLAUSE__CONDTEMP_ clause is present.
604
605 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
606 ivar and lvar.
607
608 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
609
610 PR c/43673
611 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
612 TEX_D32, TEX_D64 or TEX_D128.
613
614 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
615
616 * match.pd (~(vec?cst1:cst2)): New transformation.
617
618 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
619
620 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
621 ((size_t)(A /[ex] B) CMP C): New transformation.
622
623 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
624
625 * doc/md.texi: Document define_insn_and_rewrite.
626 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
627 * gensupport.c (queue_elem): Update comment.
628 (replace_operands_with_dups): New function.
629 (gen_rewrite_sequence): Likewise.
630 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
631 * read-rtl.c (apply_subst_iterator): Likewise.
632 (add_condition_to_rtx, named_rtx_p): Likewise.
633 (rtx_reader::read_rtx_operand): Likewise.
634 * config/aarch64/aarch64-sve.md
635 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
636 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
637 define_insn_and_rewrite.
638 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
639 Remove separate define_split.
640
641 2019-05-31 Jan Hubicka <jh@suse.cz>
642
643 * tree-ssa-alias.c (type_has_components_p): New function.
644 (aliasing_component_refs_p): Use it.
645
646 2019-05-31 Martin Liska <mliska@suse.cz>
647
648 * gdbhooks.py: Add const_tree to TreePrinter.
649
650 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
651
652 PR debug/86964
653 * common.opt (feliminate-unused-debug-symbols): Enable by default.
654 * doc/invoke.texi (Debugging Options): Document new default of
655 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
656
657 2019-05-31 Jakub Jelinek <jakub@redhat.com>
658
659 PR tree-optimization/90671
660 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
661 template_block used to be empty on the first call, don't use
662 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
663 seq with bb_seq and set it with set_bb_seq.
664
665 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
666
667 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
668
669 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
670 Michael Meissner <meissner@linux.ibm.com>
671
672 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
673 (prefixed_mem_operand): Likewise.
674 (non_prefixed_mem_operand): Likewise.
675 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
676 prototype.
677 * config/rs6000/rs6000.c (print_operand_address): Handle
678 PC-relative addresses.
679 (mode_supports_prefixed_address_p): New function.
680 (rs6000_prefixed_address): New function.
681 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
682 (SYMBOL_REF_PCREL_P): Likewise.
683
684 2019-05-30 Jakub Jelinek <jakub@redhat.com>
685
686 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
687 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
688 (gimplify_omp_for): If worksharing loop with lastprivate conditional
689 is nested inside of parallel region, add _condtemp_ clause to both.
690 * tree-nested.c (convert_nonlocal_omp_clauses,
691 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
692 assertion failure.
693 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
694 member.
695 * omp-general.c (omp_extract_for_data): Compute it.
696 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
697 (lower_rec_input_clauses): Likewise.
698 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
699 clause is already present, just add one further one after it.
700 (lower_lastprivate_clauses): Handle cond_ptr with array type.
701 (lower_send_shared_vars): Clear _condtemp_ vars.
702 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
703 or section or taskgroup.
704 * omp-expand.c (determine_parallel_type): Disallow combining only if
705 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
706 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
707 (expand_omp_for_generic, expand_omp_for_static_nochunk,
708 expand_omp_for_static_chunk, expand_omp_for): Use
709 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
710 determine if a special set of API routines are needed and if condtemp
711 needs to be initialized, while always initialize cond_var if
712 fd->lastprivate_conditional is non-zero.
713
714 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
715 Michael Meissner <meissner@linux.ibm.com>
716
717 * config/rs6000/constraints.md (eI): New constraint.
718 * config/rs6000/predicates.md (cint34_operand): New predicate.
719 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
720 (SIGNED_34BIT_OFFSET_P): Likewise.
721 * doc/md.texi (eI): Document constraint.
722
723 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
724
725 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
726
727 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
728 Michael Meissner <meissner@linux.ibm.com>
729
730 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
731 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
732 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
733 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
734 (OTHER_FUTURE_MASKS): Likewise.
735 (POWERPC_MASKS): Likewise.
736 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
737 specified without -mprefixed-addr or -mcpu=future. Error if
738 -mprefixed-addr is specified without -mcpu=future.
739 (rs6000_opt_masks): Add entry for prefixed-addr.
740 * rs6000.opt (mprefixed-addr): New option.
741
742 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
743
744 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
745 cfun->is_thunk check.
746
747 2019-05-30 Jakub Jelinek <jakub@redhat.com>
748
749 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
750 to length.
751
752 2019-05-30 Martin Liska <mliska@suse.cz>
753
754 * gdbinit.in: Fix 'ptc' command. Add trt
755 that prints TREE_TYPE($).
756
757 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
758 Alan Modra <amodra@gmail.com>
759
760 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
761 calls here...
762 (rs6000_indirect_call_template_1): ...and here.
763 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
764 plt16_ha, plt16_lo, mtctr indirect calls. Use
765 rs6000_pltseq_enum.
766 (rs6000_decl_ok_for_sibcall): New function.
767 (rs6000_function_ok_for_sibcall): Refactor.
768 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
769 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
770 when pcrel. Reorganize.
771 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
772 * rs6000.h (rs6000_pltseq_enum): New enum.
773 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
774 (*pltseq_tocsave): Use rs6000_pltseq_enum.
775 (*pltseq_plt16_ha): Likewise.
776 (*pltseq_plt16_lo): Likewise.
777 (*pltseq_mtctr): Likewise.
778 (*pltseq_plt_pcrel): New insn.
779 (*call_local_aix): Handle @notoc calls.
780 (*call_value_local_aix): Likewise.
781 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
782 (*call_value_nonlocal_aix): Likewise.
783 (*call_indirect_pcrel): New insn.
784 (*call_value_indirect_pcrel): Likewise.
785
786
787 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
788
789 * config/i386/sse.md (*save_multiple<mode>): Rename from
790 save_multiple<mode>.
791 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
792 (*restore_multiple_and_return<mode>): Rename from
793 restore_multiple_and_return<mode>.
794 (*restore_multiple_leave_return<mode>): Rename from
795 restore_multiple_leave_return<mode>.
796
797 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
798
799 * config.gcc (rx-*-linux*): New target.
800 * config/rx/elf.opt: New file.
801 * config/rx/linux.h: Likewise.
802 * config/rx/t-linux: Likewise.
803 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
804 make it zero.
805 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
806 (ASM_APP_OFF): Likewise.
807 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
808 moved elsewhere.
809
810 2019-05-29 Jan Hubicka <jh@suse.cz>
811
812 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
813 variants are pointer equivalent.
814
815 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
816
817 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
818 * config/aarch64/aarch64-sve2.md: New file.
819 (<u>avg<mode>3_floor): New pattern.
820 (<u>avg<mode>3_ceil): Likewise.
821 (*<sur>h<addsub><mode>): Likewise.
822 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
823 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
824
825 2019-05-29 Jakub Jelinek <jakub@redhat.com>
826
827 PR bootstrap/90543
828 * optc-save-gen.awk: In cl_optimization_print, use correct condition
829 for var_opt_string printing. In cl_optimization_print_diff, print
830 (null) instead of invoking undefined behavior if one of the
831 var_opt_string pointers is NULL and use && instead of first || in the
832 guarding condition. For var_target_other options, handle const char *
833 target variables similarly to const char * optimize node variables.
834
835 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
836
837 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
838 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
839 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
840 Add autib1716 and pacib1716 initialisation.
841 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
842 for autib1716 and pacib1716.
843 * config/aarch64/aarch64-protos.h (aarch64_key_type,
844 aarch64_post_cfi_startproc): Define.
845 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
846 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
847 aarch64_handle_pac_ret_protection): Set default sign key to A.
848 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
849 aarch64_expand_prologue): Add check for b-key.
850 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
851 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
852 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
853 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
854 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
855 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
856 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
857 * config/aarch64/aarch64.md (do_return): Add check for b-key.
858 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
859 pauth_hint_num_a with pauth_hint_num.
860 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
861 pauth_hint_num_a with pauth_hint_num.
862 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
863 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
864 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
865 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
866 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
867 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
868 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
869 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
870 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
871 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
872 UNSPEC_AUTIA1716 respectively.
873 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
874 and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
875 * doc/invoke.texi (-mbranch-protection): Add b-key type.
876 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
877 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
878
879 2019-05-29 Jakub Jelinek <jakub@redhat.com>
880
881 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
882 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
883 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
884 explicit clause on combined parallel into implicit shared clause.
885 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
886 and firstprivate if the decl has one too from combined parallel to
887 the worksharing construct.
888
889 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
890 Michael Meissner <meissner@linux.ibm.com>
891
892 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
893
894 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
895
896 * rtl.h (LABEL_REF_P): New #define.
897
898 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
899
900 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
901
902 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
903
904 * internal-fn.c: Marked mask_load_direct as vectorizable.
905 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
906 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
907 combined even if masks different with allow_slp_p param.
908 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
909 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
910 dissolve SLP-only vectorizable groups when SLP has been discarded.
911 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
912 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
913 masks.
914 (vect_build_slp_tree_1): Fixed comment typo.
915 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
916 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
917 loads for SLP only.
918 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
919 vectorizable.
920 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
921
922 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
923
924 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
925 Remove obsolete use_thunk reference.
926 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
927 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
928 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
929 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
930 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
931 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
932 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
933 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
934 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
935
936 2019-05-28 Nathan Sidwell <nathan@acm.org>
937
938 * tree.h (IDENTIFIER_ANON_P): New.
939 (anon_aggrname_format, anon_aggname_p): Don't declare.
940 (make_anon_name): Declare.
941 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
942 (hash_tree): Likewise.
943 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
944 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
945 (anon_cnt, make_anon_name): New.
946
947 2019-05-28 Martin Liska <mliska@suse.cz>
948
949 PR other/90315
950 * opts-global.c (decode_options): Print help for all
951 help_option_arguments.
952 * opts.c (print_help): Add new argument.
953 (common_handle_option): Remember all values into
954 help_option_arguments.
955 * opts.h (print_help): Add new argument.
956
957 2019-05-28 Martin Liska <mliska@suse.cz>
958
959 PR ipa/90555
960 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
961 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
962 (func_checker::compare_bb): Call compare_loops.
963
964 2019-05-27 Jakub Jelinek <jakub@redhat.com>
965
966 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
967 on sections construct.
968 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
969 construct.
970 (lower_omp_sections): Handle lastprivate conditional.
971 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
972 lastprivate_conditional_map.
973 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
974
975 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
976 critical, taskgroup and section regions when looking for a region
977 with non-NULL lastprivate_conditional_map.
978
979 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
980
981 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
982 (*ix86_gen_sub3): Ditto.
983 (*ix86_gen_sub3_carry): Ditto.
984 (*ix86_gen_one_cmpl2): Ditto.
985 (*ix86_gen_andsp): Ditto.
986 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
987 (gen_and2_insn): New static function.
988 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
989 Use gen_add3_insn instead of ix86_gen_add3.
990 (ix86_expand_split_stack_prologue): Use gen_add2_insn
991 instead of ix86_gen_add3.
992 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
993 Use gen_sub3_insn instead of ix86_gen_sub3.
994 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
995 instead of ix86_gen_add3.
996 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
997 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
998 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
999 * config/i386/i386-options.c (ix86_option_override_internal):
1000 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
1001 ix86_gen_one_cmpl2 and ix86_gen_andsp.
1002
1003 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
1004
1005 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
1006 and DW_OP_GNU_const_index opcodes.
1007
1008 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
1009
1010 * config/i386/i386.h (STACK_SIZE_MODE): Define.
1011
1012 2019-05-27 Richard Biener <rguenther@suse.de>
1013
1014 PR tree-optimization/90637
1015 * tree-ssa-sink.c (statement_sink_location): Honor the
1016 computed sink location for single-uses.
1017
1018 2019-05-27 Richard Biener <rguenther@suse.de>
1019
1020 PR middle-end/90610
1021 * match.pd (vec_perm): Avoid clobbering op0 when not generating
1022 a bit-insert.
1023
1024 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1025
1026 * config/i386/i386.md (@sub<mode>3_carry): Rename
1027 from sub<mode>3_carry.
1028 (@leave_<mode>): New expander.
1029 (*leave): Rename from leave.
1030 (*leave_rex64): Rename from leave_rex64.
1031 (@monitorx_<mode>): Rename from monitorx_<mode>.
1032 (@clzero_<mode>): Rename from clzero_<mode>.
1033 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
1034 from sse3_monitor_<mode>.
1035 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
1036 (*ix86_gen_leave): Ditto.
1037 (*ix86_gen_monitor): Ditto.
1038 (*ix86_gen_monitorx): Ditto.
1039 (*ix86_gen_clzero): Ditto.
1040 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
1041 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
1042 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
1043 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
1044 Use gen_sse3_monitor instead of ix86_gen_monitor.
1045 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
1046 instead of ix86_gen_monitorx.
1047 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
1048 instead of ix86_gen_clzero.
1049 * config/i386/i386-options.c (ix86_option_override_internal):
1050 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
1051 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
1052
1053 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1054
1055 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
1056 Rename from tls_global_dynamic_64_<mode>.
1057 (@tls_local_dynamic_base_64_<mode>): Rename from
1058 tls_local_dynamic_base_64_<mode>.
1059 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
1060 Remove indirect function.
1061 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
1062 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
1063 instead of ix86_gen_tls_global_dynamic_64.
1064 Use gen_tls_local_dynamic_base_64 instead of
1065 ix86_gen_tls_local_dynamic_base_64.
1066 * config/i386/i386-options.c (ix86_option_override_internal):
1067 Do not initialize ix86_gen_tls_global_dynamic_64 and
1068 ix86_gen_tls_local_dynamic_base_64.
1069
1070 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1071
1072 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
1073 Rename from pro_epilogue_adjust_stack_<mode>_add.
1074 (@pro_epilogue_adjust_stack_sub_<mode>)
1075 Rename from pro_epilogue_adjust_stack_<mode>_sub.
1076 (@allocate_stack_worker_probe_<mode>):
1077 Rename from allocate_stack_worker_probe_<mode>.
1078 (allocate_stack): Use gen_allocate_stack_worker_probe.
1079 (probe_stack): Use gen_probe_stack_1.
1080 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
1081 (@adjust_stack_and_probe_<mode>): Rename from
1082 adjust_stack_and_probe<mode>.
1083 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
1084 (stack_protect_set): Use gen_stack_protect_set_1.
1085 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
1086 (stack_protect_test): Use gen_stack_protect_test_1.
1087 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
1088 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
1089 Remove indirect function.
1090 (*ix86_gen_adjust_stack_and_probe): Ditto.
1091 (*ix86_gen_probe_stack_range): Ditto.
1092 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
1093 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
1094 (ix86_adjust_stack_and_probe_stack_clash): Use
1095 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
1096 (ix86_adjust_stack_and_probe): Ditto.
1097 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
1098 of ix86_gen_probe_stack_range.
1099 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
1100 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
1101 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
1102 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
1103 CODE_FOR_stack_protect_test_{si,di}.
1104 * config/i386/i386-options.c (ix86_option_override_internal):
1105 Do not initialize ix86_gen_allocate_stack_worker,
1106 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
1107
1108 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
1109
1110 * doc/invoke.texi (Link Options): Many editorial changes around
1111 -flinker-output.
1112
1113 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1114
1115 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
1116 pre-Solaris 11 referene and most Studio compiler details.
1117
1118 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
1119
1120 PR target/90530
1121 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
1122 DImode to SImode in floating-point registers on 64-bit target.
1123 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
1124 register_operand in xmpyu patterns.
1125
1126 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1127
1128 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
1129 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
1130 OMP_CLAUSE__REDUCTEMP_.
1131 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
1132 OMP_CLAUSE__CONDTEMP_.
1133 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
1134 * tree-pretty-print.c (dump_omp_clause): Likewise.
1135 * tree-nested.c (convert_nonlocal_omp_clauses,
1136 convert_local_omp_clauses): Likewise.
1137 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
1138 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
1139 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
1140 on OMP_FOR.
1141 (gimplify_omp_for): Warn and disable conditional modifier from
1142 lastprivate on loop iterators.
1143 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
1144 member.
1145 * omp-general.c (omp_extract_for_data): Initialize it.
1146 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
1147 member.
1148 (delete_omp_context): Delete it.
1149 (lower_lastprivate_conditional_clauses): New function.
1150 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
1151 handle lastprivate conditional clauses.
1152 (lower_reduction_clauses): Add CLIST argument, emit it into
1153 the critical section if any.
1154 (lower_omp_sections): Adjust lower_lastprivate_clauses and
1155 lower_reduction_clauses callers.
1156 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
1157 to lower_lastprivate_clauses.
1158 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
1159 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
1160 clist into a critical section if not emitted there already by
1161 lower_reduction_clauses.
1162 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
1163 callers.
1164 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
1165 conditional variables.
1166 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
1167 clause is present.
1168 (expand_omp_for_generic, expand_omp_for_static_nochunk,
1169 expand_omp_for_static_chunk): Handle lastprivate conditional.
1170 (expand_omp_for): Handle fd.lastprivate_conditional like
1171 fd.have_reductemp.
1172
1173 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
1174
1175 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
1176 kernel does not exit cleanly.
1177 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
1178
1179 2019-05-24 Jason Merrill <jason@redhat.com>
1180
1181 Revert:
1182 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1183
1184 2019-05-24 Richard Biener <rguenther@suse.de>
1185
1186 PR testsuite/90607
1187 * tree-loop-distribution.c (struct partition): Add location
1188 member.
1189 (partition_alloc): Initialize all fields.
1190 (generate_memset_builtin): Use the location recorded in the
1191 partition for the generated call.
1192 (generate_memcpy_builtin): Likewise.
1193 (classify_partition): Record the location of a single store
1194 as location for the partition.
1195
1196 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
1197
1198 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
1199 for lo-part.
1200
1201 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
1202
1203 PR target/90588
1204 * common/config/aarch64/aarch64-common.c
1205 (aarch64_rewrite_selected_cpu): Change local temporary variable
1206 type from unsigned long to uint64_t.
1207 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
1208 aarch64_get_extension_string_for_isa_flags): Change declaration to
1209 match new definition by replacing unsigned long with uint64_t.
1210
1211 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1212
1213 PR target/90568
1214 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
1215 gen_attr_type just once instead of 4-7 times. Formatting fixes.
1216 Handle stack_protect_test_<mode> codegen similarly to corresponding
1217 sub instruction.
1218
1219 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
1220
1221 * config/i386/darwin.h: Reject -mfentry*.
1222 * doc/sourcebuild.texi: Document mfentry target support.
1223
1224 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1225
1226 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
1227 Rename to rs6000_global_entry_point_prologue_needed_p. Return
1228 false for PC-relative functions.
1229 (rs6000_output_function_prologue): Change called function name to
1230 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
1231 name,1" for PC-relative functions.
1232 (rs6000_elf_declare_function_name): Change called function name to
1233 rs6000_global_entry_point_prologue_needed_p.
1234
1235 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
1236
1237 PR target/90552
1238 * config/i386/i386.c (gen_rtx_cost):
1239 Use ix86_tune_cost instead of ix86_cost.
1240
1241 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1242 Michael Meissner <meissner@linux.ibm.com>
1243 Segher Boessenkool <segher@kernel.crashing.org>
1244
1245 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
1246 OPTION_MASK_PCREL.
1247 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
1248 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
1249 (rs6000_fndecl_pcrel_p): Likewise.
1250 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
1251 error if -mpcrel is requested without -mcpu=future.
1252 (rs6000_opt_masks): Add entry for pcrel.
1253 (rs6000_fndecl_pcrel_p): New function.
1254 (rs6000_pcrel_p): Likewise.
1255 * config/rs6000/rs6000.opt (mpcrel): New option.
1256 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
1257
1258 2019-05-23 Jan Hubicka <jh@suse.cz>
1259 Martin Liska <mliska@suse.cz>
1260
1261 PR tree-optimization/90576
1262 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
1263 poly_int_tree_p.
1264 (aliasing_component_refs_p): Fix three way size compare conditional;
1265 give up earlier in case we can not decide on equivalence.
1266
1267 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1268 Michael Meissner <meissner@linux.ibm.com>
1269 Segher Boessenkool <segher@kernel.crashing.org>
1270
1271 * config.gcc: Add future cpu.
1272 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
1273 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
1274 #define.
1275 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
1276 (RS6000_CPU): New instantiation for future cpu.
1277 * config/rs6000/rs6000-opts.h (enum processor_type): Add
1278 PROCESSOR_FUTURE.
1279 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
1280 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
1281 * config/rs6000/rs6000-tables.opt: Regenerate.
1282 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
1283 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
1284 (rs6000_machine_from_flags): Handle future cpu.
1285 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
1286 PROCESSOR_POWER9 for now.
1287 (rs6000_adjust_cost): Likewise.
1288 (rs6000_issue_rate): Likewise.
1289 (rs6000_register_move_cost): Likewise.
1290 (rs6000_opt_masks): Add entry for future.
1291 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
1292 (MASK_FUTURE): New #define.
1293 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
1294 * config/rs6000/rs6000.opt (mfuture): New target option.
1295 * doc/invoke.texi (mcpu): Add future cpu.
1296
1297 2019-05-23 Martin Liska <mliska@suse.cz>
1298
1299 PR c++/90587
1300 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
1301 operation points to a temporary (pointed via tree_to_wide_ref)
1302 that is out of scope after the &.
1303
1304 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
1305
1306 PR c++/90592
1307 * doc/extend.texi (Function Names): Add missing word.
1308
1309 2019-05-23 Richard Biener <rguenther@suse.de>
1310
1311 PR tree-optimization/88440
1312 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
1313 at -O[2s]+.
1314 * tree-loop-distribution.c (generate_memset_builtin): Fold the
1315 generated call.
1316 (generate_memcpy_builtin): Likewise.
1317 (distribute_loop): Pass in whether to only distribute patterns.
1318 (prepare_perfect_loop_nest): Also allow size optimization.
1319 (pass_loop_distribution::execute): When optimizing a loop
1320 nest for size allow pattern replacement.
1321
1322 2019-05-23 Jakub Jelinek <jakub@redhat.com>
1323
1324 PR target/90568
1325 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
1326 of xor.
1327
1328 2019-05-23 Martin Liska <mliska@suse.cz>
1329
1330 PR sanitizer/90570
1331 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
1332 expression similarly to gimplify_decl_expr.
1333
1334 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1335
1336 * cse.c (cse_dump_path): s/dump_file/f.
1337
1338 2019-05-22 David Malcolm <dmalcolm@redhat.com>
1339
1340 PR c++/90462
1341 * diagnostic-format-json.cc: Include "selftest.h".
1342 (json_from_expanded_location): Only add "file" key for non-NULL
1343 file strings.
1344 (json_from_location_range): Don't add "start" and "finish"
1345 children if they are UNKNOWN_LOCATION.
1346 (selftest::test_unknown_location): New selftest.
1347 (selftest::test_bad_endpoints): New selftest.
1348 (selftest::diagnostic_format_json_cc_tests): New function.
1349 * json.cc (json::object::get): New function.
1350 (selftest::test_object_get): New selftest.
1351 (selftest::json_cc_tests): Call it.
1352 * json.h (json::object::get): New decl.
1353 * selftest-run-tests.c (selftest::run_tests): Call
1354 selftest::diagnostic_format_json_cc_tests.
1355 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
1356 decl.
1357
1358 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1359 Andrew Stubbs <amd@codesourcery.com>
1360
1361 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
1362 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
1363 (kernel): Rename to...
1364 (main_kernel): ... this.
1365 (load_image): Load _init_array and _fini_array kernels.
1366 (run): Add argument for kernel to run.
1367 (main): Run init_array_kernel before main_kernel, and
1368 fini_array_kernel after.
1369 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
1370 amdgpu_hsa_kernel attribute on functions.
1371 (gcn_disable_constructors): Delete.
1372 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
1373 * config/gcn/crt0.c (size_t): Define.
1374 (_init_array, _fini_array): New.
1375 (__preinit_array_start, __preinit_array_end,
1376 __init_array_start, __init_array_end,
1377 __fini_array_start, __fini_array_end): Declare weak references.
1378
1379 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
1380
1381 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
1382
1383 2019-05-22 Jason Merrill <jason@redhat.com>
1384
1385 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1386
1387 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
1388
1389 PR target/88483
1390 * config/i386/i386-options.c (ix86_init_machine_status): Set
1391 stack_frame_required to true.
1392 * config/i386/i386.c (ix86_get_frame_size): New function.
1393 (ix86_frame_pointer_required): Replace get_frame_size with
1394 ix86_get_frame_size.
1395 (ix86_compute_frame_layout): Likewise.
1396 (ix86_find_max_used_stack_alignment): Changed to void. Set
1397 stack_frame_required.
1398 (ix86_finalize_stack_frame_flags): Always call
1399 ix86_find_max_used_stack_alignment. Replace get_frame_size with
1400 ix86_get_frame_size.
1401 * config/i386/i386.h (machine_function): Add stack_frame_required.
1402
1403 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
1404
1405 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
1406
1407 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
1408
1409 * common/config/aarch64/aarch64-common.c
1410 (struct aarch64_option_extension, struct processor_name_to_arch,
1411 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
1412 aarch64_contains_opt,
1413 aarch64_get_extension_string_for_isa_flags): Change type of
1414 variables storing flags to uint64_t.
1415 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
1416 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
1417 * config/aarch64/aarch64.c (struct processor,
1418 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
1419 aarch64_validate_march, aarch64_override_options,
1420 aarch64_option_print, aarch64_handle_attr_isa_flags,
1421 aarch64_declare_function_name, aarch64_start_file): Make flag
1422 variables uint64_t.
1423 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
1424 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
1425 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
1426 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
1427 * config/aarch64/driver-aarch64.c
1428 (struct aarch64_arch_extension, struct aarch64_core_data,
1429 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
1430 flag variables uint64_t.
1431 * doc/invoke.texi: Add documentation for new arguments.
1432
1433 2019-05-22 Richard Biener <rguenther@suse.de>
1434
1435 * alias.c (ao_ref_from_mem): Move stack-slot sharing
1436 rewrite ...
1437 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
1438
1439 2019-05-22 Martin Liska <mliska@suse.cz>
1440
1441 PR lto/90500
1442 * doc/extend.texi: Document the change.
1443
1444 2019-05-22 Richard Biener <rguenther@suse.de>
1445
1446 PR tree-optimization/90450
1447 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
1448 (mem_ref_hasher::equal): Check it.
1449 (mem_ref_alloc): Initialize it.
1450 (gather_mem_refs_stmt): Set it.
1451
1452 2019-05-22 Richard Biener <rguenther@suse.de>
1453
1454 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
1455 Add ABS_EXPR.
1456 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
1457 as ABSU_EXPR.
1458
1459 2019-05-22 Alan Modra <amodra@gmail.com>
1460
1461 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
1462 (ASM_CPU_SPEC): Conditionally add -many.
1463 * config/rs6000/rs6000.c (rs6000_machine): New static var.
1464 (rs6000_machine_from_flags, emit_asm_machine): New functions..
1465 (rs6000_file_start): ..extracted from here, and modified to
1466 test all ISA bits.
1467 (rs6000_output_function_prologue): Emit .machine as necessary.
1468 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
1469 power mnemonics.
1470 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
1471 added by check_vect_support_and_set_flags.
1472 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
1473 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
1474
1475 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
1476
1477 PR middle-end/90553
1478 * ira-lives.c (process_bb_node_lives): Consider defs
1479 for a call insn to be die before the call, not after.
1480
1481 * function.c (assign_parm_setup_block): Raise alignment of
1482 stacked parameter only for STRICT_ALIGNMENT targets.
1483
1484 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1485
1486 * config/rs6000/constraints.md (define_register_constraint "wz"):
1487 Delete.
1488 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1489 RS6000_CONSTRAINT_wz.
1490 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1491 (rs6000_init_hard_regno_mode_ok): Adjust.
1492 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
1493 * doc/md.texi (Machine Constraints): Adjust.
1494
1495 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1496
1497 * config/rs6000/constraints.md (define_register_constraint "wl"):
1498 Delete.
1499 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1500 RS6000_CONSTRAINT_wl.
1501 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1502 (rs6000_init_hard_regno_mode_ok): Adjust.
1503 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
1504 * doc/md.texi (Machine Constraints): Adjust.
1505
1506 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1507
1508 * config/rs6000/constraints.md (define_register_constraint "wm"):
1509 Delete.
1510 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1511 RS6000_CONSTRAINT_wm.
1512 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1513 (rs6000_init_hard_regno_mode_ok): Adjust.
1514 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
1515 * doc/md.texi (Machine Constraints): Adjust.
1516
1517 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1518
1519 * config/rs6000/constraints.md (define_register_constraint "wk"):
1520 Delete.
1521 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1522 RS6000_CONSTRAINT_wk.
1523 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1524 (rs6000_init_hard_regno_mode_ok): Adjust.
1525 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
1526 * doc/md.texi (Machine Constraints): Adjust.
1527
1528 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1529
1530 * config/rs6000/constraints.md (define_register_constraint "wj"):
1531 Delete.
1532 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1533 RS6000_CONSTRAINT_wj.
1534 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1535 (rs6000_init_hard_regno_mode_ok): Adjust.
1536 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
1537 (VS_64dm): Delete.
1538 * config/rs6000/vsx.md: Ditto.
1539 * doc/md.texi (Machine Constraints): Adjust.
1540
1541 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1542
1543 * config/rs6000/constraints.md (define_register_constraint "wh"):
1544 Delete.
1545 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1546 RS6000_CONSTRAINT_wh.
1547 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1548 (rs6000_init_hard_regno_mode_ok): Adjust.
1549 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
1550 * doc/md.texi (Machine Constraints): Adjust.
1551
1552 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1553
1554 PR target/90547
1555 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
1556 Avoid calling gen_lowpart with CONST operand.
1557
1558 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
1559
1560 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
1561 field template_last_to_copy.
1562 (ssa_create_duplicates): Set it, and use it. Attempt to
1563 preserve more debug stmts.
1564
1565 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1566
1567 * config/i386/sse.md (VF1_AVX2): New mode iterator.
1568 (signbit<mode>2): New expander
1569
1570 2019-05-21 James Clarke <jrtc27@jrtc27.com>
1571
1572 PR bootstrap/87338
1573 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
1574 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
1575
1576 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1577
1578 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
1579 %ebx and %ecx bafore calling cpuid with leaf 1 or
1580 non-constant leaf argument.
1581
1582 2019-05-21 Alan Modra <amodra@gmail.com>
1583
1584 PR target/90545
1585 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
1586 power9 direct move cost.
1587 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
1588 Correct comments and rename functions to suit parameters.
1589
1590 2019-05-21 Richard Biener <rguenther@suse.de>
1591
1592 PR middle-end/90510
1593 * fold-const.c (fold_read_from_vector): New function.
1594 * fold-const.h (fold_read_from_vector): Declare.
1595 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
1596 single-element insert permutations. Canonicalize selector
1597 further and fix issue with last commit.
1598
1599 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1600
1601 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
1602 parameter with default value false to declaration.
1603 (split_edges_for_insertion): New inline function. Wrapper for
1604 split_critical_edges with for_edge_insertion_p = true.
1605 * tree-cfg.c (split_critical_edges): Don't split non-critical
1606 edges if for_edge_insertion_p is false. Fix whitespace.
1607 * tree-ssa-pre.c (pass_pre::execute): Call
1608 split_edges_for_insertion instead of split_critical_edges.
1609 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
1610 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
1611 (pass_data_sink_code): Update function name in the comment.
1612
1613 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1614
1615 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
1616 around is_value_included_in that knows how to handle BIT_AND_EXPR.
1617 (is_pred_expr_subset_of): Use the new function. Handle more cases where
1618 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
1619 positives.
1620
1621 2019-05-21 Martin Liska <mliska@suse.cz>
1622
1623 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
1624 an extra newline.
1625 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
1626 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
1627 vec_lvsr.
1628 * config/rs6000/rs6000.c (rs6000_option_override_internal):
1629 Quote a C type.
1630 (rs6000_function_arg): Likewise.
1631 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
1632 (rs6000_expand_ternop_builtin): Use interval syntax.
1633 (get_element_number): Likewise.
1634 (altivec_expand_builtin): Likewise.
1635 (rs6000_get_function_versions_dispatcher): Quote target_clones.
1636
1637 Fix test-suite.
1638
1639 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1640
1641 PR c++/59813
1642 PR target/90418
1643 * function.h (struct function): Add calls_eh_return member.
1644 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
1645 gimplifying __builtin_eh_return call.
1646 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
1647 to cfun.
1648 (expand_call_inline): Or in src_cfun->calls_eh_return into
1649 dst_cfun->calls_eh_return.
1650 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
1651 cfun->calls_eh_return.
1652 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
1653 * lto-streamer-out.c (output_struct_function_base): Write
1654 calls_eh_return.
1655
1656 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
1657
1658 PR rtl-optimization/43147
1659 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
1660 IX86_BUILTIN_SHUFPD.
1661
1662 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1663
1664 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
1665 (refs_may_alias_p_1): ... here; update stats.
1666 (refs_may_alias_p): Do not update stats here.
1667
1668 2019-05-20 Richard Biener <rguenther@suse.de>
1669
1670 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
1671 doesn't produce pointers.
1672 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
1673 the first operand points to.
1674
1675 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1676
1677 * tree-ssa-alias.c (compare_sizes): New function.
1678 (sompare_type_sizes): New function
1679 (aliasing_component_refs_p): Use it.
1680 (indirect_ref_may_alias_decl_p): Likewise.
1681
1682 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1683
1684 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
1685
1686 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1687
1688 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
1689 (LIBLSAN_EARLY_SPEC): Likewise.
1690 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
1691
1692 2019-05-20 Martin Liska <mliska@suse.cz>
1693
1694 * config/i386/i386.c (ix86_libc_has_fast_function):
1695 Add ATTRIBUTE_UNUSED for the argument.
1696
1697 2019-05-20 Richard Biener <rguenther@suse.de>
1698
1699 * gimple-match-head.c: Include vec-perm-indices.h.
1700 * generic-match-head.c: Likewise.
1701 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
1702 is included.
1703 * fold-const.c (fold_vec_perm): Export.
1704 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
1705 (match.pd): ...here.
1706
1707 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1708
1709 * cfgloop.h (struct loop): Add simdlen member.
1710 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
1711 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
1712 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
1713 as new argument to autovectorize_vector_sizes target hook. If
1714 loop->simdlen, pick up vector size where the vectorization factor
1715 is equal to loop->simd, and if there is none, fall back to the first
1716 successful one.
1717 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
1718 caller.
1719 * omp-low.c (omp_clause_aligned_alignment): Likewise.
1720 * omp-general.c (omp_max_vf): Likewise.
1721 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
1722 * tree-vect-slp.c (vect_slp_bb): Likewise.
1723 * target.def (autovectorize_vector_sizes): Add ALL argument and
1724 document it.
1725 * doc/tm.texi: Adjust documentation.
1726 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
1727 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
1728 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
1729 bool argument.
1730 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
1731 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
1732 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
1733 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
1734 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
1735 preferred vector size is not 512-bit or 256-bit, just put those
1736 unpreferred ones last.
1737
1738 2019-05-20 Martin Liska <mliska@suse.cz>
1739
1740 * targhooks.c (default_libc_has_fast_function): New function.
1741 * targhooks.h (default_libc_has_fast_function): Likewise.
1742
1743 2019-05-20 Martin Liska <mliska@suse.cz>
1744
1745 PR middle-end/90263
1746 * builtins.c (expand_builtin_memory_copy_args): When having a
1747 target with fast mempcpy implementation do now use memcpy.
1748 * config/i386/i386.c (ix86_libc_has_fast_function): New.
1749 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
1750 * doc/tm.texi: Likewise.
1751 * doc/tm.texi.in: Likewise.
1752 * target.def:
1753 * expr.c (emit_block_move_hints): Add 2 new arguments.
1754 * expr.h (emit_block_move_hints): Bail out when libcall
1755 to memcpy would be used.
1756
1757 2019-05-20 Martin Liska <mliska@suse.cz>
1758
1759 * profile-count.c: Add vertical spacing in order
1760 to separate functions.
1761 * profile-count.h: Likewise.
1762
1763 2019-05-20 Martin Liska <mliska@suse.cz>
1764
1765 * profile-count.h: Do not use full qualified
1766 names if possible.
1767 * profile-count.c (profile_count::to_frequency): Likewise.
1768
1769 2019-05-20 Martin Liska <mliska@suse.cz>
1770
1771 * profile-count.h (enum profile_quality): Use capital letters
1772 for enum value names. Use the adjusted names.
1773 * profile-count.c: Use the adjusted names.
1774
1775 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1776
1777 * config/rs6000/constraints.md (define_register_constraint "wH"):
1778 Delete.
1779 (define_register_constraint "wI"): Delete.
1780 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1781 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
1782 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1783 (rs6000_init_hard_regno_mode_ok): Adjust.
1784 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
1785 resp. "d", or with "wa" as appropriate, all with "p8v".
1786 * config/rs6000/vsx.md: Ditto.
1787 * doc/md.texi (Machine Constraints): Adjust.
1788
1789 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1790
1791 * config/rs6000/constraints.md (define_register_constraint "wy"):
1792 Delete.
1793 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1794 RS6000_CONSTRAINT_wy.
1795 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1796 (rs6000_init_hard_regno_mode_ok): Adjust.
1797 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
1798 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
1799 (define_mode_attr Fisa): New.
1800 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
1801 * doc/md.texi (Machine Constraints): Adjust.
1802
1803 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1804
1805 * config/rs6000/constraints.md (define_register_constraint "wu"):
1806 Delete.
1807 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1808 RS6000_CONSTRAINT_wu.
1809 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1810 (rs6000_init_hard_regno_mode_ok): Adjust.
1811 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
1812 both with "p8v".
1813 (define_mode_attr Fa): Delete.
1814 * config/rs6000/vsx.md: Ditto.
1815 * doc/md.texi (Machine Constraints): Adjust.
1816
1817 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1818
1819 * config/rs6000/constraints.md (define_register_constraint "wJ"):
1820 Delete.
1821 (define_register_constraint "wK"): Delete.
1822 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1823 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
1824 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1825 (rs6000_init_hard_regno_mode_ok): Adjust.
1826 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
1827 Replace "wK" constraint by "wH" with "p9v".
1828 * config/rs6000/vsx.md: Ditto.
1829 * doc/md.texi (Machine Constraints): Adjust.
1830
1831 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1832
1833 * config/rs6000/constraints.md (define_register_constraint "wb"):
1834 Delete.
1835 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1836 RS6000_CONSTRAINT_wb.
1837 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1838 (rs6000_init_hard_regno_mode_ok): Adjust.
1839 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
1840 * config/rs6000/vsx.md: Ditto.
1841 * doc/md.texi (Machine Constraints): Adjust.
1842
1843 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1844
1845 * config/rs6000/constraints.md (define_register_constraint "wo"):
1846 Delete.
1847 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1848 RS6000_CONSTRAINT_wo.
1849 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1850 (rs6000_init_hard_regno_mode_ok): Adjust.
1851 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
1852 * config/rs6000/altivec.md: Ditto.
1853 * doc/md.texi (Machine Constraints): Adjust.
1854
1855 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
1856
1857 * config/darwin-c.c (darwin_register_objc_includes): Do not
1858 prepend the sysroot when building gnu-runtime header search
1859 paths.
1860
1861 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
1862
1863 * config/darwin.c (darwin_file_end): Use switch_to_section ()
1864 instead of direct output of the asm.
1865
1866 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
1867
1868 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
1869 argument to be type bool (was int before).
1870 (rs6000_emit_epilogue): Simplify some code. Declare some variables
1871 at first use. Use type bool for some variables. Fix a theoretical
1872 eh_return bug for svr4.
1873
1874 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
1875
1876 * config/rs6000/rs6000.md (isa): New attribute.
1877 (enabled): New attribute.
1878
1879 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
1880
1881 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
1882 assemble_start_function and assemble_end_function.
1883
1884 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1885
1886 PR middle-end/89433
1887 * omp-general.c (oacc_verify_routine_clauses): Change formal
1888 parameters. Add checking if already marked with an OpenACC
1889 'routine' directive. Adjust all users.
1890
1891 PR middle-end/89433
1892 * omp-general.c (oacc_build_routine_dims): Move some of its
1893 processing into...
1894 (oacc_verify_routine_clauses): ... this new function.
1895 * omp-general.h (oacc_verify_routine_clauses): New prototype.
1896
1897 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
1898
1899 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
1900 formating of picbase labels to match other ports.
1901
1902 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
1903
1904 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
1905 in the generated code.
1906
1907 2019-05-16 Martin Sebor <msebor@redhat.com>
1908
1909 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
1910 identifiers, keywords, operators, and types in diagnostics. Correct
1911 quoting, spelling, and sentence capitalization issues.
1912 (expand_builtin_atomic_is_lock_free): Same.
1913 (fold_builtin_next_arg): Same.
1914 * cfgexpand.c (expand_one_var): Same.
1915 (tree_conflicts_with_clobbers_p): Same.
1916 (expand_asm_stmt): Same.
1917 (verify_loop_structure): Same.
1918 * cgraphunit.c (process_function_and_variable_attributes): Same.
1919 * collect-utils.c (collect_execute): Same.
1920 * collect2.c (maybe_run_lto_and_relink): Same.
1921 (is_lto_object_file): Same.
1922 (scan_prog_file): Same.
1923 * convert.c (convert_to_real_1): Same.
1924 * dwarf2out.c (dwarf2out_begin_prologue): Same.
1925 * except.c (verify_eh_tree): Same.
1926 * gcc.c (execute): Same.
1927 (eval_spec_function): Same.
1928 (run_attempt): Same.
1929 (driver::set_up_specs): Same.
1930 (compare_debug_auxbase_opt_spec_function): Same.
1931 * gcov-tool.c (unlink_gcda_file): Same.
1932 (do_merge): Same.
1933 (do_rewrite): Same.
1934 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
1935 * gimplify.c (gimplify_asm_expr): Same.
1936 (gimplify_adjust_omp_clauses): Same.
1937 * hsa-gen.c (gen_hsa_addr_insns): Same.
1938 (gen_hsa_insns_for_load): Same.
1939 (gen_hsa_cmp_insn_from_gimple): Same.
1940 (gen_hsa_insns_for_operation_assignment): Same.
1941 (gen_get_level): Same.
1942 (gen_hsa_alloca): Same.
1943 (omp_simple_builtin::generate): Same.
1944 (gen_hsa_atomic_for_builtin): Same.
1945 (gen_hsa_insns_for_call): Same.
1946 * input.c (dump_location_info): Same.
1947 * ipa-devirt.c (compare_virtual_tables): Same.
1948 * ira.c (ira_setup_eliminable_regset): Same.
1949 * lra-assigns.c (lra_assign): Same.
1950 * lra-constraints.c (lra_constraints): Same.
1951 * lto-streamer-in.c (lto_input_mode_table): Same.
1952 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
1953 (merge_and_complain): Same.
1954 (compile_offload_image): Same.
1955 (compile_images_for_offload_targets): Same.
1956 (debug_objcopy): Same.
1957 (run_gcc): Same.
1958 (main): Same.
1959 * opts.c (print_specific_help): Same.
1960 (parse_no_sanitize_attribute): Same.
1961 (print_help): Same.
1962 (handle_param): Same.
1963 * plugin.c (add_new_plugin): Same.
1964 (parse_plugin_arg_opt): Same.
1965 (try_init_one_plugin): Same.
1966 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
1967 operators, and types in diagnostics. Correct quoting and spelling
1968 issues.
1969 * read-rtl-function.c (parse_edge_flag_token): Same.
1970 (function_reader::parse_enum_value): Same.
1971 * reg-stack.c (check_asm_stack_operands): Same.
1972 * regcprop.c (validate_value_data): Same.
1973 * sched-rgn.c (make_pass_sched_fusion): Same.
1974 * stmt.c (check_unique_operand_names): Same.
1975 * targhooks.c (default_target_option_pragma_parse): Same.
1976 * tlink.c (recompile_files): Same.
1977 * toplev.c (process_options): Same.
1978 (do_compile): Same.
1979 * trans-mem.c (diagnose_tm_1): Same.
1980 (ipa_tm_scan_irr_block): Same.
1981 (ipa_tm_diagnose_transaction): Same.
1982 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
1983 format a tree code name in a diagnostic.
1984 (verify_types_in_gimple_min_lval): Same.
1985 (verify_types_in_gimple_reference): Same.
1986 (verify_gimple_call): Same.
1987 (verify_gimple_assign_unary): Same.
1988 (verify_gimple_assign_binary): Same.
1989 (verify_gimple_assign_ternary): Same.
1990 (verify_gimple_assign_single): Same.
1991 (verify_gimple_switch): Same.
1992 (verify_gimple_label): Same.
1993 (verify_gimple_phi): Same.
1994 (verify_gimple_in_seq): Same.
1995 (verify_eh_throw_stmt_node): Same.
1996 (collect_subblocks): Same.
1997 (gimple_verify_flow_info): Same.
1998 (do_warn_unused_result): Same.
1999 * tree-inline.c (expand_call_inline): Same.
2000 * tree-into-ssa.c (update_ssa): Same.
2001 * tree.c (tree_int_cst_elt_check_failed): Same.
2002 (tree_vec_elt_check_failed): Same.
2003 (omp_clause_operand_check_failed): Same.
2004 (verify_type_variant): Same.
2005 (verify_type): Same.
2006 * value-prof.c (verify_histograms): Same.
2007 * varasm.c (assemble_start_function): Same.
2008
2009 2019-05-16 Martin Sebor <msebor@redhat.com>
2010
2011 * config/i386/i386-expand.c (get_element_number): Quote keywords
2012 and other internal names in diagnostics. Adjust other diagnostic
2013 formatting issues noted by -Wformat-diag.
2014 * config/i386/i386-features.c
2015 (ix86_mangle_function_version_assembler_name): Same.
2016 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
2017 * config/i386/i386.c (ix86_function_type_abi): Same.
2018 (ix86_function_ms_hook_prologue): Same.
2019 (classify_argument): Same.
2020 (ix86_expand_prologue): Same.
2021 (ix86_md_asm_adjust): Same.
2022 (ix86_memmodel_check): Same.
2023
2024 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2025
2026 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
2027 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
2028 and fpxx modes.
2029
2030 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
2031
2032 PR target/90497
2033 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
2034 intrinsics without SSE/SSE2/SSSE3.
2035 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
2036 check.
2037 (*mmx_uavgv8qi3): Likewise.
2038
2039 2019-05-17 Richard Biener <rguenther@suse.de>
2040
2041 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
2042 VEC_PERM_EXPR as __VEC_PERM with -gimple.
2043
2044 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
2045
2046 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
2047 vec_sldw insn pattern.
2048
2049 2019-05-17 Richard Biener <rguenther@suse.de>
2050
2051 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
2052
2053 2019-05-17 Martin Liska <mliska@suse.cz>
2054
2055 PR driver/90496
2056 * toplev.c (output_stack_usage): With LTO and sanitizer it
2057 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
2058 has no file location.
2059
2060 2019-05-16 Jakub Jelinek <jakub@redhat.com>
2061
2062 PR c++/90484
2063 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
2064 sz0 is equal to sz1, instead return false in that case.
2065
2066 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
2067 has non-constant expression, force sctx.lane and use two
2068 argument IFN_GOMP_SIMD_LANE instead of single argument.
2069 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
2070 two argument IFN_GOMP_SIMD_LANE without lhs.
2071 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
2072 member.
2073 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
2074 Define.
2075 (LOOP_REQUIRES_VERSIONING): Or in
2076 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
2077 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
2078 simd_if_cond.
2079 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
2080 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
2081 from simd if clause if needed.
2082
2083 2019-05-16 Richard Biener <rguenther@suse.de>
2084
2085 * tree-affine.c (expr_to_aff_combination): New function split
2086 out from...
2087 (tree_to_aff_combination): ... here.
2088 (aff_combination_expand): Avoid building a GENERIC tree.
2089
2090 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
2091
2092 * cgraphunit.c (cgraph_node::expand_thunk): Remove
2093 assemble_start_function and assemble_end_function calls.
2094 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
2095 assemble_start_function and assemble_end_function.
2096 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
2097 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
2098 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
2099 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
2100 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
2101 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
2102 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
2103 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
2104 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
2105 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2106 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
2107 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
2108 Likewise.
2109 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
2110 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
2111 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
2112 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
2113 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
2114 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
2115 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
2116 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
2117 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2118 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
2119 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2120 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2121 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
2122 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
2123 Likewise.
2124 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
2125 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
2126 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
2127
2128 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
2129
2130 * tree-ssa-alias.c (alias_stats): Add
2131 aliasing_component_refs_p_may_alias and
2132 aliasing_component_refs_p_no_alias.
2133 (dump_alias_stats): Print aliasing_component_refs_p stats.
2134 (aliasing_component_refs_p): Update stats.
2135
2136 2019-05-16 Martin Liska <mliska@suse.cz>
2137
2138 PR lto/90500
2139 * multiple_target.c (expand_target_clones): Do not allow
2140 target_clones being used with a symbol that is an alias.
2141
2142 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
2143
2144 PR tree-optimization/90394
2145 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
2146 positives rather than ICE for cases where (code2 == NE_EXPR
2147 && code1 == BIT_AND_EXPR).
2148
2149 2019-05-16 Jakub Jelinek <jakub@redhat.com>
2150
2151 PR fortran/90329
2152 * tree-core.h (struct tree_decl_common): Document
2153 decl_nonshareable_flag for PARM_DECLs.
2154 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
2155 * calls.c (expand_call): Don't try tail call if caller
2156 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
2157 passed on the stack and callee needs to pass any arguments on the
2158 stack.
2159 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
2160 else if instead of series of mutually exclusive ifs. Handle
2161 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
2162 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2163
2164 * lto-streamer.h (LTO_major_version): Bump to 9.
2165
2166 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
2167
2168 PR tree-optimization/90106
2169 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
2170 new parameter as new internal function call, also move it to new
2171 basic block.
2172 (use_internal_fn): Pass internal function call to
2173 shrink_wrap_one_built_in_call_with_conds.
2174
2175 2019-05-15 Jakub Jelinek <jakub@redhat.com>
2176
2177 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
2178 max_vf to 1.
2179 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
2180 safelen_int and set loop->dont_vectorize.
2181
2182 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2183
2184 PR target/89021
2185 * config/i386/i386-builtin.def: Enable MMX intrinsics with
2186 SSE/SSE2/SSSE3.
2187 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
2188 Likewise.
2189 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
2190 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
2191 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
2192 is defined.
2193
2194 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2195
2196 PR target/89021
2197 * config/i386/mmx.md (*vec_dupv2sf): Changed to
2198 define_insn_and_split to support SSE emulation.
2199 (*vec_extractv2sf_0): Likewise.
2200 (*vec_extractv2sf_1): Likewise.
2201 (*vec_extractv2si_0): Likewise.
2202 (*vec_extractv2si_1): Likewise.
2203 (*vec_extractv2si_zext_mem): Likewise.
2204 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
2205 (vec_extractv2sf_1 splitter): Likewise.
2206 (vec_extractv2sfsf): Likewise.
2207 (vec_setv2si): Likewise.
2208 (vec_extractv2si_1 splitter): Likewise.
2209 (vec_extractv2sisi): Likewise.
2210 (vec_setv4hi): Likewise.
2211 (vec_extractv4hihi): Likewise.
2212 (vec_setv8qi): Likewise.
2213 (vec_extractv8qiqi): Likewise.
2214 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
2215 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
2216 (vec_extractv2sisi): Likewise.
2217 (vec_extractv4hihi): Likewise.
2218 (vec_extractv8qiqi): Likewise.
2219 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
2220 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
2221 (vec_initv2sisi): Likewise.
2222 (vec_initv4hihi): Likewise.
2223 (vec_initv8qiqi): Likewise.
2224 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
2225 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
2226 (vec_setv4hi): Likewise.
2227 (vec_setv8qi): Likewise.
2228
2229 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2230
2231 PR target/89021
2232 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
2233 TARGET_MMX_WITH_SSE.
2234 (MMXMODE:*mov<mode>_internal): Likewise.
2235 (MMXMODE:movmisalign<mode>): Likewise.
2236
2237 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
2238
2239 PR target/89021
2240 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
2241 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
2242 (sse2_cvtpd2pi): Ditto.
2243 (sse2_cvttpd2pi): Ditto.
2244 (*vec_concatv2sf_sse4_1): Ditto.
2245 (*vec_concatv2sf_sse): Ditto.
2246 (*vec_concatv2si_sse4_1): Ditto.
2247 (*vec_concatv2si): Ditto.
2248 (*vec_concatv4si_0): Ditto.
2249 (*vec_concatv2di_0): Ditto.
2250
2251 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2252
2253 PR target/89021
2254 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
2255
2256 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2257
2258 PR target/89021
2259 * config/i386/sse.md (ssse3_palignrdi): Changed to
2260 define_insn_and_split to support SSE emulation.
2261
2262 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2263
2264 PR target/89021
2265 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
2266
2267 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2268
2269 PR target/89021
2270 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
2271 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
2272 SSE emulation.
2273
2274 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2275
2276 PR target/89021
2277 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
2278 or TARGET_MMX_WITH_SSE.
2279 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
2280
2281 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2282
2283 PR target/89021
2284 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
2285
2286 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2287
2288 PR target/89021
2289 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
2290 Changed to define_insn_and_split to support SSE emulation.
2291
2292 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2293
2294 PR target/89021
2295 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
2296 Changed to define_insn_and_split to support SSE emulation.
2297
2298 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2299
2300 PR target/89021
2301 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
2302 (*mmx_<emms>): This.
2303 (mmx_<emms>): New expander.
2304
2305 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2306
2307 PR target/89021
2308 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
2309 support.
2310 (*sse2_umulv1siv1di3): Add SSE2 emulation.
2311
2312 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2313
2314 PR target/89021
2315 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
2316
2317 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2318
2319 PR target/89021
2320 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
2321
2322 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2323
2324 PR target/89021
2325 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
2326 TARGET_MMX_WITH_SSE.
2327 (*mmx_uavgv4hi3): Add SSE emulation.
2328
2329 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2330
2331 PR target/89021
2332 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
2333 and TARGET_MMX_WITH_SSE.
2334 (*mmx_uavgv8qi3): Add SSE emulation.
2335
2336 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2337
2338 PR target/89021
2339 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
2340 maskmovdqu for __MMX_WITH_SSE__.
2341
2342 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2343
2344 PR target/89021
2345 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
2346 TARGET_MMX and TARGET_MMX_WITH_SSE.
2347 (*mmx_umulv4hi3_highpart): Add SSE emulation.
2348
2349 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2350
2351 PR target/89021
2352 * config/i386/mmx.md (mmx_pmovmskb): Changed to
2353 define_insn_and_split to support SSE emulation.
2354
2355 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2356
2357 PR target/89021
2358 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
2359 and TARGET_MMX_WITH_SSE.
2360 (mmx_<code>v8qi3): Likewise.
2361 (smaxmin:<code>v4hi3): New.
2362 (umaxmin:<code>v8qi3): Likewise.
2363 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
2364 (umaxmin:*mmx_<code>v8qi3): Likewise.
2365
2366 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2367
2368 PR target/89021
2369 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
2370 TARGET_MMX_WITH_SSE.
2371 (*mmx_pinsrw): Add SSE emulation.
2372
2373 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2374
2375 PR target/89021
2376 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
2377
2378 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2379
2380 PR target/89021
2381 * config/i386/sse.md (sse_cvtpi2ps): Changed to
2382 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
2383 SSE emulation.
2384
2385 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2386
2387 PR target/89021
2388 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
2389 (sse_cvttps2pi): Likewise.
2390
2391 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2392
2393 PR target/89021
2394 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
2395 TARGET_MMX_WITH_SSE.
2396 (mmx_pshufw_1): Add SSE emulation.
2397 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
2398 TARGET_MMX_WITH_SSE to support SSE emulation.
2399
2400 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2401
2402 PR target/89021
2403 * config/i386/constraints.md (Yw): New constraint.
2404 * config/i386/mmx.md (*vec_dupv2si): Changed to
2405 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
2406 support SSE emulation.
2407
2408 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2409
2410 PR target/89021
2411 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
2412 TARGET_MMX_WITH_SSE.
2413 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
2414 support.
2415 (mmx_gt<mode>3): Likewise.
2416
2417 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2418
2419 PR target/89021
2420 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
2421 TARGET_MMX_WITH_SSE. Add SSE support.
2422
2423 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2424
2425 PR target/89021
2426 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
2427 TARGET_MMX_WITH_SSE.
2428 (any_logic:<code><mode>3): New.
2429 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
2430 Add SSE support.
2431
2432 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2433
2434 PR target/89021
2435 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
2436 TARGET_MMX_WITH_SSE. Add SSE emulation.
2437 (mmx_<shift_insn><mode>3): Likewise.
2438 (ashr<mode>3): New.
2439 (<shift_insn><mode>3): Likewise.
2440
2441 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2442
2443 PR target/89021
2444 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
2445 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
2446
2447 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2448
2449 PR target/89021
2450 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
2451 TARGET_MMX_WITH_SSE.
2452 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
2453 SSE support.
2454
2455 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2456
2457 PR target/89021
2458 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
2459 TARGET_MMX_WITH_SSE.
2460 (mulv4hi3): New.
2461 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
2462 support.
2463
2464 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2465
2466 PR target/89021
2467 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
2468 (plusminus:mmx_<plusminus_insn><mode>3): Check
2469 TARGET_MMX_WITH_SSE.
2470 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
2471 (<plusminus_insn><mode>3): New.
2472 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
2473 (*mmx_<plusminus_insn><mode>3): Likewise.
2474
2475 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2476
2477 PR target/89021
2478 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
2479 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
2480 prototype.
2481 * config/i386/mmx.m (mmx_punpckhbw): Changed to
2482 define_insn_and_split to support SSE emulation.
2483 (mmx_punpcklbw): Likewise.
2484 (mmx_punpckhwd): Likewise.
2485 (mmx_punpcklwd): Likewise.
2486 (mmx_punpckhdq): Likewise.
2487 (mmx_punpckldq): Likewise.
2488
2489 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2490 Uros Bizjak <ubizjak@gmail.com>
2491
2492 PR target/89021
2493 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
2494 New function.
2495 (ix86_split_mmx_pack): Likewise.
2496 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
2497 New prototype.
2498 (ix86_split_mmx_pack): Likewise.
2499 * config/i386/i386.md (mmx_isa): New.
2500 (enabled): Also check mmx_isa.
2501 * config/i386/mmx.md (any_s_truncate): New code iterator.
2502 (s_trunsuffix): New code attr.
2503 (mmx_packsswb): Removed.
2504 (mmx_packssdw): Likewise.
2505 (mmx_packuswb): Likewise.
2506 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
2507 MMX packsswb/packuswb with SSE2.
2508 (mmx_packssdw): Likewise.
2509 * config/i386/predicates.md (register_mmxmem_operand): New.
2510
2511 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2512
2513 PR target/89021
2514 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2515 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
2516 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
2517 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
2518 (ix86_vector_mode_supported_p): Likewise.
2519 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
2520
2521 2019-05-15 Martin Liska <mliska@suse.cz>
2522
2523 PR middle-end/90478
2524 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2525 Check for overflow.
2526
2527 2019-05-15 Richard Biener <rguenther@suse.de>
2528
2529 * tree-into-ssa.c (pass_build_ssa::execute): Run
2530 update_address_taken before going into SSA.
2531
2532 2019-05-15 Richard Biener <rguenther@suse.de>
2533
2534 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
2535 as __BIT_FIELD_REF with type with -gimple.
2536
2537 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
2538
2539 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
2540 semantically equivalent branches (left over after prior refactorings).
2541
2542 2019-05-15 Richard Biener <rguenther@suse.de>
2543
2544 PR tree-optimization/88828
2545 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
2546 bogus check.
2547
2548 2019-05-14 Richard Biener <rguenther@suse.de>
2549
2550 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
2551 as __VIEW_CONVERT with -gimple.
2552
2553 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2554
2555 PR target/82920
2556 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
2557 Darwin.
2558
2559 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2560
2561 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
2562 define_split to become a define_insn_and_split.
2563
2564 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2565
2566 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
2567 arguments.
2568 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
2569 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
2570 (sibcall_epilogue): Adjust.
2571 (epilogue): Adjust.
2572
2573 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2574
2575 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
2576 to unsupported ones.
2577 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
2578 * config.host: Likewise.
2579 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
2580 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
2581 __svr4__]: Remove "brand" fallback.
2582 [!KSTAT_DATA_STRING]: Remove.
2583 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
2584 to *-*-solaris2*.
2585 (comdat_group): Likewise.
2586 (set_have_as_tls): Likewise.
2587 (gcc_cv_target_dl_iterate_phdr): Likewise.
2588 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
2589 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
2590 * configure: Regenerate.
2591 * doc/install.texi: Simplify Solaris target triplets.
2592 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
2593 (Specific, *-*-solaris2*): Document Solaris 10 removal.
2594 Remove Solaris 10 references.
2595 Remove obsolete Solaris bug reference.
2596 (Specific, sparc-sun-solaris2.10): Remove.
2597
2598 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
2599
2600 * config/i386/i386.md (any_div): New code iterator.
2601 (paired_mod): New code attribute.
2602 (sgnprefix): Handle DIV and UDIV RTXes.
2603 (u): Ditto.
2604 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
2605 and udivmod<mode>4 patterns using any_div code iterator.
2606 (divmod splitters): Macroize splitters using any_div code iterator.
2607 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
2608 (*udivmodsi4_pow2_zext_2): Ditto.
2609 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
2610 and *udivmod<mode>4_noext patterns using any_div code iterator.
2611 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
2612 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
2613 patterns using any_div code iterator.
2614 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
2615 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
2616 patterns using any_div code iterator.
2617 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
2618 udivmodhiqi3 patterns using any_extend code iterator.
2619
2620 2019-05-14 Richard Biener <rguenther@suse.de>
2621 H.J. Lu <hongjiu.lu@intel.com>
2622
2623 PR tree-optimization/88828
2624 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2625 permuting in a single non-constant element not extracted
2626 from a vector.
2627
2628 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2629
2630 * internal-fn.def (SIGNBIT): New.
2631 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
2632 defined.
2633 (signbitv4sf2): Likewise.
2634
2635 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
2636
2637 PR target/90357
2638 * config/mips/mips.c (mips_split_move): Skip forward SRC into
2639 next insn when the SRC reg is dead.
2640
2641 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
2642
2643 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
2644 (alloc_cand_and_find_basis): Ditto.
2645 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
2646 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
2647 (create_add_imm_cand, slsr_process_cast): Ditto.
2648 (slsr_process_copy, replace_mult_candidate): Ditto.
2649 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
2650 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
2651 (pass_strength_reduction::execute): Init the first NULL element.
2652
2653 2019-05-13 Nathan Sidwell <nathan@acm.org>
2654
2655 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
2656 (run_attempt): Reformat line break.
2657
2658 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
2659
2660 PR target/90418
2661 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
2662 data registers in sibcall epilogues.
2663 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2664
2665 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
2666
2667 PR target/89221
2668 * configure.ac (--enable-frame-pointer):
2669 Disable by default for cygwin and mingw.
2670 * configure: Regenerate.
2671
2672 2019-05-13 Nathan Sidwell <nathan@acm.org>
2673
2674 * dwarf2out.c (breakout_comdat_types): Move comment to correct
2675 piece of code.
2676 (const_ok_for_output_1): Balance parens around #if/#else/#endif
2677 (gen_member_die): Move abstract origin check earlier. Only VARs
2678 can be static_inline_p. Simplify splicing control flow.
2679
2680 2019-05-13 Richard Biener <rguenther@suse.de>
2681
2682 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
2683 VIEW_CONVERT_EXPR.
2684 (vect_build_slp_tree_1): Likewise.
2685
2686 2019-05-13 Richard Biener <rguenther@suse.de>
2687
2688 PR tree-optimization/90402
2689 * tree-if-conv.c (tree_if_conversion): Value number only
2690 the loop body by making the latch an exit of the region
2691 as well.
2692 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
2693 processing PHIs.
2694 (do_rpo_vn): Deal with multiple edges into the entry block
2695 that are not backedges inside the region by skipping PHIs
2696 of the entry block.
2697
2698 2019-05-13 Richard Biener <rguenther@suse.de>
2699
2700 PR tree-optimization/90316
2701 * tree-ssa-pre.c (insert_aux): Fold into ...
2702 (insert): ... this function. Use a RPO walk to reduce the
2703 number of required iterations.
2704
2705 2019-05-13 Martin Liska <mliska@suse.cz>
2706
2707 PR tree-optimization/90416
2708 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
2709 string instead of passing the second part as va_arg argument.
2710
2711 2019-05-13 Martin Liska <mliska@suse.cz>
2712
2713 PR gcov-profile/90380
2714 * gcov.c (handle_cycle): Do not support zero cycle count,
2715 it should not be possible.
2716 (path_contains_zero_cycle_arc): New function.
2717 (circuit): Ignore zero cycle arc counts.
2718
2719 2019-05-13 Martin Liska <mliska@suse.cz>
2720
2721 PR gcov-profile/90380
2722 * gcov.c (enum loop_type): Remove the enum and
2723 the operator.
2724 (handle_cycle): Assert that we should not reach
2725 a negative count.
2726 (circuit): Use loop_found instead of a tri-state loop_type.
2727 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
2728 happen.
2729
2730 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2731
2732 PR target/82920
2733 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
2734 (ix86_output_indirect_branch_via_reg): Use output mechanism
2735 accounting for __USER_LABEL_PREFIX__.
2736 (ix86_output_indirect_branch_via_push): Likewise.
2737 (ix86_output_function_return): Likewise.
2738 (ix86_output_indirect_function_return): Likewise.
2739
2740 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
2741
2742 * doc/md.texi: Document use of code attributes in rtx patterns.
2743 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
2744 * read-rtl.c (find_code): Split out search loops into...
2745 (maybe_find_code): ...this new function.
2746 (check_code_iterator): Make the error message more informative.
2747 (check_code_attribute): New function.
2748 (rtx_reader::rtx_alloc_for_name): Likewise.
2749 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
2750 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
2751 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
2752 <max_opp> directly as an rtx code instead of via a match_operator.
2753 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
2754 (<su>abd<mode>_3): Update accordingly.
2755
2756 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2757
2758 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
2759 is given, print the state of the EH "save world" computation for
2760 Darwin.
2761
2762 2019-05-11 Jakub Jelinek <jakub@redhat.com>
2763
2764 PR c++/59813
2765 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
2766 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2767
2768 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
2769
2770 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
2771 Use pinsrd for TARGET_SSE4_1.
2772 * config/i386/sse.md (movdi_to_sse): Ditto.
2773
2774 2019-05-10 Richard Biener <rguenther@suse.de>
2775
2776 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
2777 (do_rpo_vn): Initialize next_value_id.
2778
2779 2019-05-10 Martin Liska <mliska@suse.cz>
2780
2781 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2782 Fix plural form.
2783
2784 2019-05-10 Jakub Jelinek <jakub@redhat.com>
2785
2786 PR tree-optimization/90385
2787 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
2788 arguments of the exit phis.
2789
2790 PR c++/90383
2791 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
2792 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
2793 id->do_not_fold.
2794 (copy_tree_body_r): Likewise.
2795 (copy_fn): Set id.do_not_fold to true.
2796
2797 2019-05-10 Martin Liska <mliska@suse.cz>
2798
2799 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
2800 Reapply changes from r269790.
2801
2802 2019-05-10 Martin Liska <mliska@suse.cz>
2803
2804 PR middle-end/90340
2805 * doc/invoke.texi: New params.
2806 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
2807 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
2808 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2809 Use it.
2810 * tree-switch-conversion.h (struct jump_table_cluster):
2811 Likewise.
2812
2813 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
2814
2815 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
2816
2817 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
2818
2819 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
2820
2821 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
2822
2823 PR rtl-optimization/88879
2824 * sel-sched.c (sel_target_adjust_priority): Remove assert.
2825
2826 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
2827
2828 PR target/90405
2829 * config/arm/arm.c (callee_saved_reg_p): Move before
2830 thumb_find_work_register.
2831 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
2832 thumb_find_work_register. Only call df_get_live_out once.
2833 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
2834 (thumb_find_work_register): Use
2835 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
2836 algorithms to locate a spare call clobbered reg.
2837
2838 2019-05-09 Martin Liska <mliska@suse.cz>
2839
2840 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
2841 and MAX_EXPR in GIMPLE FE format.
2842
2843 2019-05-09 Martin Liska <mliska@suse.cz>
2844
2845 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
2846 * gimple-pretty-print.c (dump_gimple_bb_header):
2847 Dump BB count.
2848 (pp_cfg_jump): Dump edge probability.
2849 * profile-count.c (profile_quality_as_string): Simplify
2850 with a static array.
2851 (parse_profile_quality): New function.
2852 (profile_count::dump): Simplify with a static array.
2853 (profile_count::from_gcov_type): Add new argument.
2854 * profile-count.h (parse_profile_quality): Likewise.
2855 * predict.h (set_hot_bb_threshold): New.
2856 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2857 New param.
2858 * predict.c (get_hot_bb_threshold): Set from the new param.
2859 (set_hot_bb_threshold): New.
2860
2861 2019-05-09 Richard Biener <rguenther@suse.de>
2862
2863 PR tree-optimization/90395
2864 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
2865 rewrite vector stores that throw internally.
2866
2867 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
2868
2869 * cif-code.def (CHKP): Remove.
2870
2871 PR target/89221
2872 * configure.ac (--enable-frame-pointer): Disable by default for
2873 GNU systems.
2874 * configure: Regenerate.
2875
2876 2019-05-09 Alan Modra <amodra@gmail.com>
2877
2878 PR target/89271
2879 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
2880 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
2881 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
2882 cost for general <-> vsx when direct moves are available.
2883 Cost union classes at minimal cost for any reg in the class.
2884 Correct calculation for moves between vsx, float, and altivec.
2885 Don't return a low cost for moves between special regs. Don't
2886 use hard coded register numbers.
2887 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
2888 (rs6000_ira_change_pseudo_allocno_class): New function.
2889 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
2890 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
2891 alternatives.
2892 (movsi_internal1): Don't disparage vector alternatives.
2893 (mov<mode>_internal): Likewise, excepting alternative that
2894 will be split.
2895 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
2896 we <- b alternative.
2897
2898 2019-05-08 Jakub Jelinek <jakub@redhat.com>
2899
2900 PR c++/59813
2901 PR tree-optimization/89060
2902 * tree-ssa-live.h (live_vars_map): New typedef.
2903 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
2904 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
2905 (struct compute_live_vars_data): New type.
2906 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
2907 live_vars_at_stmt, destroy_live_vars): New functions.
2908 * tree-tailcall.c: Include tree-ssa-live.h.
2909 (live_vars, live_vars_vec): New global variables.
2910 (find_tail_calls): Perform variable life analysis before punting.
2911 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
2912 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
2913 member.
2914 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
2915 Perform variable life analysis to select variables that really need
2916 clobbers added.
2917 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
2918 instead set id->eh_landing_pad_dest and assert it is the same.
2919 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
2920
2921 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
2922 Richard Earnshaw <rearnsha@arm.com>
2923
2924 PR target/88167
2925 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
2926 function.
2927 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
2928 (thumb1_compute_save_core_reg_mask): Don't force a spare work
2929 register if both the epilogue and prologue can use call-clobbered
2930 regs.
2931 (thumb1_unexpanded_epilogue): Use
2932 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
2933 picking temporaries for restoring high regs to match that of the
2934 prologue where possible.
2935 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
2936 the list of work registers. Detect if the return address is still live
2937 at the end of the prologue and avoid using it for a work register if so.
2938 If the return address is not live, add LR to the list of pushable regs
2939 after the first pass.
2940
2941 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
2942
2943 PR tree-optimization/90078
2944 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
2945 (INFTY): Increase the value for infinite cost.
2946 (struct comp_cost): Promote type of members to int64_t.
2947 (infinite_cost): Don't set complexity in initialization.
2948 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
2949 overflows to infinite_cost.
2950 (adjust_setup_cost): Promote type of parameter and cost computation
2951 to int64_t.
2952 (struct ainc_cost_data, struct iv_ca): Promote type of member to
2953 int64_t.
2954 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
2955 cost computation to int64_t.
2956 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
2957 int64_t's format specifier in dump.
2958
2959 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
2960
2961 PR tree-optimization/90240
2962 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
2963 with respect to scaling factor pre-computed for each basic block.
2964 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
2965 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
2966 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
2967 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
2968 live range for array of loop's basic blocks. Cleanup aux field of
2969 loop's basic blocks.
2970
2971 2019-05-08 Jakub Jelinek <jakub@redhat.com>
2972
2973 PR tree-optimization/90356
2974 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
2975
2976 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
2977
2978 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
2979 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
2980 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
2981 (ix86_handle_option): Handle -mavx512bf16.
2982 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
2983 to extra_headers.
2984 * config/i386/avx512bf16vlintrin.h: New.
2985 * config/i386/avx512bf16intrin.h: New.
2986 * config/i386/cpuid.h (bit_AVX512BF16): New.
2987 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
2988 * config/i386/i386-builtin-types.def: Add new types.
2989 * config/i386/i386-builtin.def: Add new builtins.
2990 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2991 __AVX512BF16__.
2992 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
2993 (ix86_option_override_internal): Handle BF16.
2994 (ix86_valid_target_attribute_inner_p): Ditto.
2995 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
2996 * config/i386/i386-builtin.c (enum processor_features): Add
2997 F_AVX512BF16.
2998 (static const _isa_names_table isa_names_table): Ditto.
2999 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
3000 (PTA_AVX512BF16): Ditto.
3001 * config/i386/i386.opt: Add -mavx512bf16.
3002 * config/i386/immintrin.h: Include avx512bf16intrin.h
3003 and avx512bf16vlintrin.h.
3004 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
3005 avx512f_cvtneps2bf16_<mode><mask_name>,
3006 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
3007 * config/i386/subst.md (mask_half): Add new subst.
3008 * doc/invoke.texi: Document -mavx512bf16.
3009
3010 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
3011
3012 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
3013 Delete declaration.
3014 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
3015 (rs6000_debug_legitimize_reload_address): Delete.
3016 (rs6000_legitimize_reload_address_ptr): Delete.
3017 (rs6000_option_override_internal): Adjust.
3018 (mem_operand_gpr): Adjust comment.
3019 (legitimate_lo_sum_address_p): Ditto.
3020 (rs6000_legitimize_reload_address): Delete.
3021 (rs6000_debug_legitimize_reload_address): Delete.
3022 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
3023
3024 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
3025
3026 PR target/89765
3027 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3028 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
3029 to compute vector element selector for both constant and variable
3030 operands.
3031
3032 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
3033
3034 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
3035 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
3036 ashrdi3_cvt using SWI48 mode iterator.
3037
3038 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3039
3040 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
3041 (aarch64_<su>abd<mode>_3): Likewise.
3042 (*aarch64_<su>abd<mode>_3): New define_insn.
3043 (<sur>sad<vsi2qi>): New define_expand.
3044 * config/aarch64/iterators.md: Added MAX_OPP attribute.
3045 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
3046 (build_vect_cond_expr): Likewise.
3047
3048 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
3049
3050 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
3051 clobbers outside of accessible_reg_set.
3052 * config/i386/i386.c (ix86_conditional_register_usage):
3053 Disable register sets by clearing corresponding bits in
3054 accessible_reg_set. Do not set corresponding bits in fixed_regs,
3055 call_used_regs and don't clear corresponding reg_names array members.
3056
3057 2019-05-07 Richard Biener <rguenther@suse.de>
3058
3059 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
3060 not specified still compute a comp_vectype for invariant
3061 compares.
3062
3063 2019-05-07 Richard Biener <rguenther@suse.de>
3064
3065 PR tree-optimization/90316
3066 * tree-ssa-pre.c (translate_vuse_through_block): When
3067 same_valid is NULL do not bother to search for a virtual
3068 PHI continuation.
3069 (phi_translate_1): When operands changed we cannot keep
3070 the same value-number so do not bother to ask whether
3071 that's possible from translate_vuse_through_block.
3072
3073 2019-05-07 Martin Liska <mliska@suse.cz>
3074
3075 * bitmap.c (bitmap_register): Come up with
3076 alloc_descriptor_max_uid and assign it for
3077 a new bitmap.
3078 (register_overhead): Use get_descriptor as
3079 a descriptor.
3080 (release_overhead): New.
3081 (bitmap_elem_to_freelist): Call it.
3082 (bitmap_elt_clear_from): Likewise.
3083 (bitmap_obstack_free): Likewise.
3084 (bitmap_move): Sensitively release memory.
3085 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
3086 (bitmap_initialize): Initialize alloc_descriptor to zero.
3087 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
3088
3089 2019-05-07 Richard Biener <rguenther@suse.de>
3090
3091 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
3092 we build a SLP node. Remove max_size and limiting.
3093 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
3094
3095 2019-05-07 Richard Biener <rguenther@suse.de>
3096
3097 PR tree-optimization/90316
3098 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
3099 limit by reference.
3100 (walk_non_aliased_vuses): Take walking limit argument.
3101 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
3102 walking if it is reached instead of just counting.
3103 (get_continuation_for_phi): Likewise.
3104 (walk_non_aliased_vuses): Likewise, instead of leaving counter
3105 limiting to the callback.
3106 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
3107 (vn_reference_lookup_3): Likewise.
3108 (vn_reference_lookup_pieces): Likewise.
3109 (vn_reference_lookup): Likewise.
3110 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
3111 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
3112 (avail_exprs_stack::lookup_avail_expr): Likewise.
3113
3114 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
3115
3116 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
3117 for comparaible types in the second direction even if first one
3118 hits incomparable type.
3119
3120 2019-05-07 Richard Biener <rguenther@suse.de>
3121
3122 PR lto/90369
3123 * lto-wrapper.c (debug_objcopy): Use the original filename
3124 including archive offset for the filename used for -save-temps.
3125
3126 2019-05-07 Li Jia He <helijia@linux.ibm.com>
3127
3128 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
3129 detection.
3130
3131 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
3132 Hongtao Liu <hongtao.liu@intel.com>
3133
3134 PR target/89750
3135 PR target/86444
3136 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
3137 Modified, original implementation isn't correct.
3138
3139 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3140
3141 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
3142 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
3143 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
3144 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
3145 (FRAME_POINTER_REGNUM): Change numbering.
3146 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
3147 (alt_reg_names): Adjust.
3148 (rs6000_conditional_register_usage): Don't mark hard register 64 as
3149 fixed.
3150 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
3151 (DWARF_FRAME_REGISTERS): Delete.
3152 (DWARF2_FRAME_REG_OUT): Fix whitespace.
3153 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3154 Adjust.
3155 (REG_ALLOC_ORDER): Adjust.
3156 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
3157 (REG_CLASS_CONTENTS): Adjust.
3158 (RETURN_ADDR_RTX): Change comment.
3159 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
3160 instead of 67.
3161 (REGISTER_NAMES): Adjust.
3162 (ADDITIONAL_REGISTER_NAMES): Adjust.
3163 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
3164
3165 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3166
3167 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
3168 Delete.
3169 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
3170 (DWARF_FRAME_REGISTERS): Adjust.
3171 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3172 Adjust.
3173 (REG_ALLOC_ORDER): Adjust.
3174 (enum reg_class): Delete SPR_REGS.
3175 (REG_CLASS_NAMES): Delete SPR_REGS.
3176 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
3177 (REGISTER_NAMES): Adjust.
3178 (ADDITIONAL_REGISTER_NAMES): Adjust.
3179 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
3180 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
3181 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
3182 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
3183 (htm_spr_regno): Delete.
3184 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
3185 argument.
3186 (rs6000_dbx_register_number): Adjust.
3187
3188 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3189
3190 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
3191
3192 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3193
3194 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
3195 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
3196
3197 2019-05-06 Jakub Jelinek <jakub@redhat.com>
3198
3199 PR tree-optimization/88709
3200 PR tree-optimization/90271
3201 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
3202 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
3203 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
3204 variable.
3205 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
3206 of the store merging group is larger than
3207 PARAM_STORE_MERGING_MAX_SIZE parameter.
3208 (split_group): Add bzero_first argument. If set, always emit first
3209 the first store which must be = {} of the whole area and then for the
3210 rest of the stores consider all zero bytes as paddings.
3211 (imm_store_chain_info::output_merged_store): Check if first store
3212 is = {} of the whole area and if yes, determine which setting of
3213 bzero_first for split_group gives smaller number of stores. Adjust
3214 split_group callers.
3215 (lhs_valid_for_store_merging_p): Allow decls.
3216 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
3217 no elts.
3218 (pass_store_merging::process_store): Likewise.
3219
3220 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
3221
3222 PR target/89424
3223 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3224 handling of V1TImode.
3225
3226 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
3227
3228 PR target/89221
3229 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
3230 and enable_frame_pointer ...
3231 * configure.ac: ... here. Update help strings for
3232 --enable-frame-pointer.
3233 * configure: Regenerate.
3234 * config/i386/i386-options.c (ix86_option_override_internal): Remove
3235 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
3236 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
3237 (USE_X86_64_FRAME_POINTER): Ditto.
3238
3239 2019-05-06 Martin Liska <mliska@suse.cz>
3240
3241 * config.gcc: Append to target_gtfiles and fix indentation.
3242
3243 2019-05-06 Richard Biener <rguenther@suse.de>
3244
3245 PR tree-optimization/90358
3246 * tree-vect-stmts.c (get_group_load_store_type): Properly
3247 detect unused upper half of load.
3248 (vectorizable_load): Likewise.
3249
3250 2019-05-06 Richard Biener <rguenther@suse.de>
3251
3252 PR tree-optimization/88828
3253 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
3254 (simplify_vector_constructor): ...here. Handle constants in
3255 the constructor.
3256
3257 2019-05-06 Richard Biener <rguenther@suse.de>
3258
3259 PR tree-optimization/90328
3260 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
3261 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
3262 is valid in the loop nest before using it.
3263 (initialize_data_dependence_relation): Adjust.
3264 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
3265 loop as loop-nest to dr_may_alias_p.
3266
3267 2019-05-06 Richard Biener <rguenther@suse.de>
3268
3269 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
3270
3271 2019-05-06 Richard Biener <rguenther@suse.de>
3272
3273 PR tree-optimization/90316
3274 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
3275 compute target on demand.
3276 (get_continuation_for_phi): Remove code walking stmts to
3277 get to a target virtual operand which could end up being
3278 quadratic.
3279
3280 2019-05-06 Martin Liska <mliska@suse.cz>
3281
3282 PR sanitizer/90312
3283 * config/i386/i386-options.c (ix86_option_override_internal): Error only
3284 when -mabi is selected to a non-default version.
3285
3286 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
3287 Martin Liska <mliska@suse.cz>
3288
3289 * Makefile.in: Add lto-dump.texi.
3290 * cgraph.h: Add new functions get_visibility_string and
3291 get_symtab_type_string.
3292 * doc/gcc.texi: Include lto-dump section.
3293 * doc/lto-dump.texi: New file.
3294 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
3295 (parse_dump_option): Factor out this function.
3296 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
3297 (parse_dump_option): Export the function.
3298 * symtab.c (symtab_node::get_visibility_string): New function.
3299 (symtab_node::get_symtab_type_string): Likewise.
3300
3301 2019-05-06 Martin Liska <mliska@suse.cz>
3302
3303 * config/i386/i386-builtins.c: New file.
3304 * config/i386/i386-builtins.h: New file.
3305 * config/i386/i386-expand.c: New file.
3306 * config/i386/i386-expand.h: New file.
3307 * config/i386/i386-features.c: New file.
3308 * config/i386/i386-features.h: New file.
3309 * config/i386/i386-options.c: New file.
3310 * config/i386/i386-options.h: New file.
3311 * config.gcc: Add new files into extra_objs and
3312 target_gtfiles.
3313 * config/i386/i386.c: Split content of the file
3314 into newly introduced files.
3315 * config/i386/i386.h: Declare common variables
3316 and macros.
3317 * config/i386/t-i386: Define dependencies for new files.
3318
3319 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
3320
3321 PR target/89400
3322 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
3323 Restrict 'all' variant to 32-bit configurations.
3324 (unaligned_loadhiu): Likewise.
3325 (unaligned_storehi): Likewise.
3326 (unaligned_storesi): Likewise.
3327 (unaligned_loadhis): Disable when compiling for thumb1.
3328
3329 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
3330
3331 PR tree-optimization/90269
3332 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
3333 Ignore clobbers.
3334
3335 2019-05-03 Martin Liska <mliska@suse.cz>
3336
3337 * hash-map.h: Add is_empty function.
3338 * hash-set.h: Likewise.
3339 * hash-table.h: Likewise.
3340 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
3341 elements () == 0 (and similar usages).
3342 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
3343 * gimplify.c (gimplify_bind_expr): Likewise.
3344 (gimplify_switch_expr): Likewise.
3345 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
3346 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
3347 * postreload-gcse.c (dump_hash_table): Likewise.
3348 (gcse_after_reload_main): Likewise.
3349 * predict.c (combine_predictions_for_bb): Likewise.
3350 * tree-parloops.c (reduction_phi): Likewise.
3351 (separate_decls_in_region): Likewise.
3352 (transform_to_exit_first_loop): Likewise.
3353 (gen_parallel_loop): Likewise.
3354 (gather_scalar_reductions): Likewise.
3355 (try_create_reduction_list): Likewise.
3356 * var-tracking.c (dump_vars): Likewise.
3357 (emit_notes_for_changes): Likewise.
3358 (vt_emit_notes): Likewise.
3359
3360 2019-05-03 Richard Biener <rguenther@suse.de>
3361
3362 PR tree-optimization/90316
3363 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
3364 before running VN.
3365
3366 2019-05-03 Richard Biener <rguenther@suse.de>
3367
3368 * tree-vect-stmts.c (get_group_load_store_type): Avoid
3369 peeling for gaps by loading only lower halves of vectors
3370 if possible.
3371 (vectorizable_load): Likewise.
3372
3373 2019-05-03 Richard Biener <rguenther@suse.de>
3374
3375 PR middle-end/89518
3376 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
3377
3378 2019-05-03 Richard Biener <rguenther@suse.de>
3379
3380 PR middle-end/87314
3381 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
3382 Handle STRING_CST vs DECL or STRING_CST.
3383
3384 2019-05-03 Richard Biener <rguenther@suse.de>
3385
3386 PR tree-optimization/88963
3387 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
3388 vector loads feeding only BIT_FIELD_REFs to component
3389 loads. Rewrite stores fed by CONSTRUCTORs to component
3390 stores.
3391
3392 2019-05-03 Jakub Jelinek <jakub@redhat.com>
3393
3394 * opts.h (finish_options): Remove lang_mask argument.
3395 (print_help, help_option_argument): Declare.
3396 * opts.c (print_help): Remove forward declaration, no longer static.
3397 (finish_options): Remove lang_mask argument, don't call print_help
3398 here.
3399 * opts-global.c (decode_options): Adjust finish_option caller, call
3400 print_help here.
3401
3402 PR tree-optimization/90303
3403 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
3404 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
3405
3406 2019-05-03 Richard Biener <rguenther@suse.de>
3407
3408 PR tree-optimization/89698
3409 * gimple-fold.c (canonicalize_constructor_val): Early out
3410 for constants, handle unfolded INTEGER_CSTs as they appear in
3411 C++ virtual table ctors.
3412
3413 2019-05-03 Richard Biener <rguenther@suse.de>
3414
3415 * passes.c (execute_function_todo): Remove dead code.
3416
3417 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
3418
3419 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
3420 the internal register number, for any "real" register.
3421
3422 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
3423
3424 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
3425 correct numbers for TFHAR, TFIAR, TEXASR.
3426
3427 2019-05-02 Richard Biener <rguenther@suse.de>
3428
3429 PR tree-optimization/89653
3430 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
3431 update-address-taken before the pass.
3432 * passes.def (pass_tree_loop_init): Put comment before it.
3433
3434 2019-05-02 Richard Biener <rguenther@suse.de>
3435
3436 PR tree-optimization/89509
3437 * tree-ssa-structalias.c (compute_dependence_clique): Look
3438 at the first subvar when determining whether it is restrict.
3439
3440 2019-05-02 Richard Biener <rguenther@suse.de>
3441
3442 PR tree-optimization/90273
3443 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
3444 useless debug stmts.
3445
3446 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3447
3448 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
3449 ACLE branch.
3450 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
3451 SVE ACLE branch.
3452 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
3453 VEC_COND_EXPR be inserted to emulate a conditional internal function.
3454 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
3455 (vectorizable_reduction): Use the functions above to vectorize in a
3456 fully masked loop codes that don't have a conditional internal
3457 function.
3458
3459 2019-05-02 Martin Liska <mliska@suse.cz>
3460
3461 * cgraphclones.c: Call valid_attribute_p with 1 for
3462 target_clone.
3463 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
3464 it's for target attribute.
3465 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
3466 Add new boolean argument.
3467 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3468 Likewise.
3469 (ix86_valid_target_attribute_tree): Pass target_clone_attr
3470 to ix86_valid_target_attribute_inner_p.
3471 (ix86_valid_target_attribute_p): Pass flags argument to
3472 ix86_valid_target_attribute_inner_p.
3473 (get_builtin_code_for_version): Use 0 as it's target attribute.
3474
3475 2019-05-02 Martin Liska <mliska@suse.cz>
3476
3477 * gcc.c (process_command): Add dummy file only
3478 if n_infiles == 0.
3479 * opts-global.c (decode_options): Pass lang_mask.
3480 * opts.c (print_help): New function.
3481 (finish_options): Print --help if help_option_argument
3482 is set.
3483 (common_handle_option): Factor out content of OPT__help_
3484 into print_help.
3485 * opts.h (finish_options): Add new argument.
3486
3487 2019-05-02 Martin Liska <mliska@suse.cz>
3488
3489 PR target/88809
3490 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
3491 With -minline-all-stringops use inline expansion using 4B loop.
3492 * doc/invoke.texi: Document the change of
3493 -minline-all-stringops.
3494
3495 2019-05-01 Jeff Law <law@redhat.com>
3496
3497 PR tree-optimization/88797
3498 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
3499 PHI feeds a conditional on the RHS of an assignment.
3500
3501 2019-04-30 Andrew Waterman <andrew@sifive.com>
3502 Jim Wilson <jimw@sifive.com>
3503
3504 * config/riscv/constraints.md (L): New.
3505 * config/riscv/predicates.md (lui_operand): New.
3506 (sfb_alu_operand): New.
3507 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
3508 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
3509 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
3510 * config/riscv/risc.md (type): Add sfb_alu.
3511 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
3512 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
3513 (branch_zero<mode>): Delete.
3514 (mov<mode>cc): New.
3515 (mov<GPR:mode><X:mode>cc): Likewise.
3516 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
3517
3518 2019-04-30 Nathan Sidwell <nathan@acm.org>
3519
3520 * tree.h (MARK_TS_EXP): New.
3521
3522 2019-04-30 Martin Liska <mliska@suse.cz>
3523
3524 * opts.c (enable_warning_as_error): Provide hints
3525 for unknown options.
3526
3527 2019-04-30 Martin Liska <mliska@suse.cz>
3528
3529 PR debug/90288
3530 * doc/invoke.texi: Add missing dash for gas-locview-support
3531 and gno-as-locview-support.
3532
3533 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3534
3535 PR target/89093
3536 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
3537 whitespace at the start of target attribute string.
3538
3539 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3540
3541 PR target/86538
3542 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
3543 Define __ARM_FEATURE_ATOMICS.
3544
3545 2019-04-30 Martin Liska <mliska@suse.cz>
3546
3547 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
3548 into built_in_function enum. Remove code for endp == 2 and
3549 use BUILT_IN_* constants.
3550 (gimple_fold_builtin): Call the function with fcode.
3551
3552 2019-04-30 Martin Liska <mliska@suse.cz>
3553
3554 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
3555 DECL_FUNCTION_CODE into ix86_builtins enum before
3556 the switch statement.
3557
3558 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3559
3560 PR tree-optimization/89475
3561 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
3562 calls.
3563
3564 2019-04-30 Martin Liska <mliska@suse.cz>
3565
3566 PR translation/90274
3567 * opts.c (print_filtered_help): Wrap string in _(...).
3568
3569 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
3570
3571 PR tree-optimization/90240
3572 Revert:
3573 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3574
3575 PR tree-optimization/90078
3576 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3577 checks for infinite_cost overflow.
3578
3579 2019-04-29 Jeff Law <law@redhat.com>
3580
3581 * passes.def: Move -Wrestrict pass after copy propagation.
3582
3583 2019-04-29 Maya Rashish <coypu@sdf.org>
3584
3585 * config.gcc (default_gnu_indirect_function): Default to yes
3586 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
3587 sparc*-*-netbsd*, x86_64-*-netbsd*.
3588
3589 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
3590
3591 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
3592 where cond2 is NE_EXPR.
3593 (is_value_included_in): Update comment.
3594
3595 2019-04-29 Richard Biener <rguenther@suse.de>
3596
3597 PR tree-optimization/90278
3598 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
3599 EH on comparison simplification.
3600
3601 2019-04-29 Jason Merrill <jason@redhat.com>
3602
3603 PR c++/82081 - tail call optimization breaks noexcept
3604 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
3605 nothrow function to a might-throw function into a tail call.
3606
3607 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
3608
3609 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
3610 (DDR_INNER_LOOP): Likewise.
3611 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
3612 (initialize_data_dependence_relation): Likewise.
3613 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
3614
3615 2019-04-29 Jakub Jelinek <jakub@redhat.com>
3616
3617 PR rtl-optimization/90257
3618 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
3619 return value.
3620
3621 Revert the revert:
3622 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
3623
3624 PR target/90178
3625 Revert:
3626 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
3627
3628 Revert the revert:
3629 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
3630
3631 Revert:
3632 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
3633
3634 * lra-spills.c (lra_final_code_change): Remove useless move insns.
3635
3636 2019-04-29 Richard Biener <rguenther@suse.de>
3637
3638 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
3639 rhs issue a reset.
3640
3641 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
3642
3643 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
3644 varasm.h, and netbsd-protos.h.
3645
3646 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
3647
3648 PR target/89261
3649 * config/i386/i386-protos.h (ix86_data_alignment): Change
3650 the second argument type to unsigned int.
3651 * config/i386/i386.c (ix86_data_alignment): Change "align"
3652 argument type to unsigned int.
3653
3654 2019-04-27 Martin Liska <mliska@suse.cz>
3655
3656 PR middle-end/90258
3657 * opt-suggestions.c (option_proposer::build_option_suggestions):
3658 When get_valid_option_values returns empty values, add the
3659 misspelling candidate.
3660
3661 2019-04-26 Jim Wilson <jimw@sifive.com>
3662
3663 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
3664 parameter.
3665 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
3666 Pass orig_mode to riscv_build_integer.
3667 (riscv_split_integer): Pass mode to riscv_move_integer.
3668 (riscv_legitimize_const_move): Likewise.
3669 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
3670 promoted_mode. Replace force_reg call with code to load constant into
3671 promoted reg and then subreg it for the store.
3672 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
3673 riscv_move_integer.
3674
3675 2018-04-26 Eugene Sharygin <eush@ispras.ru>
3676
3677 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
3678 corrupt codes.
3679
3680 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
3681
3682 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
3683 commentary about the encoding of precision.
3684
3685 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
3686
3687 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
3688 * config/i386/t-freebsd64: New file.
3689 * config.gcc: Add the t-freebsd64 for multilib support.
3690
3691 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
3692
3693 * doc/extend.texi (vector_size): Add missing comma after @xref.
3694
3695 2019-04-25 Jakub Jelinek <jakub@redhat.com>
3696
3697 * BASE-VER: Set to 10.0.0.
3698
3699 2019-04-25 Richard Biener <rguenther@suse.de>
3700
3701 PR middle-end/89765
3702 * gimplify.c (gimplify_expr): Avoid turning a lvalue
3703 VIEW_CONVERT_EXPR into one operating on an rvalue.
3704
3705 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
3706
3707 PR target/89929
3708 * config/i386/i386.c (feature_priority): Moved to file scope.
3709 (processor_features): Likewise.
3710 (processor_model): Likewise.
3711 (_arch_names_table): Likewise.
3712 (arch_names_table): Likewise.
3713 (_feature_list): Removed.
3714 (feature_list): Likewise.
3715 (_isa_names_table): Moved to file scope. Add priority.
3716 (isa_names_table): Likewise.
3717 (get_builtin_code_for_version): Replace feature_list with
3718 isa_names_table. Update error message for P_ZERO priority.
3719
3720 2019-04-25 Richard Biener <rguenther@suse.de>
3721
3722 * tree-pass.h (make_pass_phi_only_cprop): Remove.
3723 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
3724
3725 2019-04-24 Jeff Law <law@redhat.com>
3726
3727 PR tree-optimization/90037
3728 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
3729 * passes.def: Replace all instance of phi-only cprop with the
3730 lattice propagator. Move propagation pass from after erroneous
3731 path isolation to before erroneous path isolation.
3732 * tree-ssa-phionlycprop.c: Remove.
3733
3734 2019-04-24 Richard Biener <rguenther@suse.de>
3735
3736 PR middle-end/90213
3737 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
3738 by size and BITS_PER_UNIT on poly-wide-ints.
3739
3740 2019-04-25 Richard Biener <rguenther@suse.de>
3741
3742 PR middle-end/90194
3743 * match.pd: Add pattern to simplify view-conversion of an
3744 empty constructor.
3745
3746 2019-04-24 Clement Chigot <clement.chigot@atos.net>
3747
3748 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
3749 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
3750 for Go on 32 bit AIX.
3751 * config/rs6000/aix72.h: Likewise.
3752
3753 2019-04-24 Jakub Jelinek <jakub@redhat.com>
3754
3755 PR target/90193
3756 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
3757 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
3758
3759 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
3760
3761 PR target/89952
3762 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
3763 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
3764 for restored hard frame pointer.
3765 (s390_sched_dependencies_evaluation): Implement new target hook.
3766 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
3767
3768 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
3769
3770 * config/arc/arc-options.def: Fix typos and spelling mistakes.
3771 * config/arc/arc.c (arc_init): Cleanup warning message.
3772 (arc_override_options): Likewise.
3773
3774 2019-04-24 Jakub Jelinek <jakub@redhat.com>
3775
3776 PR target/90187
3777 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
3778 a register if both if_true and if_false are MEMs.
3779
3780 PR tree-optimization/90208
3781 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
3782 after labels of new_bb, not before them.
3783
3784 PR tree-optimization/90211
3785 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
3786 which are not SSA_NAMEs.
3787
3788 2018-04-23 Sudakshina Das <sudi.das@arm.com>
3789
3790 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
3791 AArch64.
3792 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
3793
3794 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
3795
3796 PR rtl-optimization/87979
3797 * modulo-sched.c (sms_schedule): Start ii value "mii" should
3798 not equal zero.
3799
3800 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
3801
3802 PR rtl-optimization/84032
3803 * modulo-sched.c (ps_insn_find_column): Change condition so that
3804 branch will always be the last insn in a row inside partial
3805 schedule.
3806
3807 2019-04-23 Richard Biener <rguenther@suse.de>
3808
3809 PR debug/90131
3810 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
3811 dest_single_pred_p argument.
3812 (remove_forwarder_block): Adjust.
3813 (remove_forwarder_block_with_phi): Likewise.
3814
3815 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3816 Bernd Edlinger <bernd.edlinger@hotmail.de>
3817 Jakub Jelinek <jakub@redhat.com>
3818
3819 PR target/89093
3820 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
3821 if used with general-regs-only.
3822 (arm_conditional_register_usage): Don't add non-general regs if
3823 general-regs-only.
3824 (arm_valid_target_attribute_rec): Handle general-regs-only.
3825 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
3826 general-regs-only.
3827 (TARGET_HARD_FLOAT_SUB): Define.
3828 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
3829 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
3830 (TARGET_REALLY_IWMMXT2): Likewise.
3831 * config/arm/arm.opt: Add -mgeneral-regs-only.
3832 * doc/extend.texi: Document ARM general-regs-only target.
3833 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
3834
3835 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3836
3837 PR tree-optimization/90078
3838 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3839 checks for infinite_cost overflow.
3840
3841 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3842
3843 PR tree-optimization/90021
3844 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
3845 and check univariate against it.
3846 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
3847 * tree-data-ref.c (add_other_self_distances): Pass new argument.
3848
3849 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
3850
3851 PR target/90178
3852 Revert:
3853 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
3854
3855 Revert the revert:
3856 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
3857
3858 Revert:
3859 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
3860
3861 * lra-spills.c (lra_final_code_change): Remove useless move insns.
3862
3863 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
3864
3865 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
3866 names using operand format, rather than hard-wired.
3867 (speculation_barrier): Likewise.
3868
3869 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
3870
3871 PR tree-optimization/88055
3872 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
3873 (gen_one_condition): Use it if !HONOR_NANS.
3874
3875 2019-04-19 Jakub Jelinek <jakub@redhat.com>
3876
3877 PR middle-end/90139
3878 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
3879 assign_temp instead of gen_reg_rtx.
3880
3881 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
3882
3883 PR translation/90118
3884 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3885 Add missing space before %<.
3886
3887 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
3888
3889 PR rtl-optimization/87871
3890 * ira-lives.c (make_object_dead): Don't add conflicts to
3891 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
3892
3893 2019-04-18 Martin Sebor <msebor@redhat.com>
3894
3895 PR middle-end/89797
3896 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
3897 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
3898 assuming type size fits in SHWI.
3899
3900 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
3901
3902 PR ipa/85051
3903 * ipa-inline.c (flatten_function): New parameter UPDATE.
3904 (ipa_inline, early_inliner): Use it.
3905
3906 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
3907
3908 * fold-const.c (int_const_binop): Return early on failure.
3909
3910 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
3911
3912 PR middle-end/85164
3913 * combine.c (force_int_to_mode): Cast the argument rather than
3914 the result of known_alignment.
3915 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
3916
3917 2019-04-18 Richard Biener <rguenther@suse.de>
3918
3919 PR debug/90131
3920 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
3921 out from ...
3922 (remove_forwarder_block): ... here.
3923 (remove_forwarder_block_with_phi): Also move debug stmts here.
3924
3925 2019-04-18 Jakub Jelinek <jakub@redhat.com>
3926
3927 PR translation/79183
3928 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
3929 inform where appropriate.
3930
3931 2019-04-18 Richard Biener <rguenther@suse.de>
3932
3933 * tree.c (get_qualified_type): Put found type variants at the
3934 head of the variant list.
3935
3936 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3937
3938 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
3939
3940 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
3941
3942 PR target/90125
3943 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
3944 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
3945 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
3946 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
3947 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
3948
3949 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
3950
3951 * ira-conflicts.c (print_allocno_conflicts): Always print something,
3952 even for allocno's with no conflicts.
3953 (print_conflicts): Print an extra newline.
3954
3955 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3956
3957 * auto-inc-dec.c (attempt_change): Set the alignment of the
3958 temporary memory to that of the original.
3959
3960 2019-04-17 Joao Moreira <jmoreira@suse.de>
3961
3962 * targhooks.c (default_print_patchable_function_entry): Emit
3963 __patchable_function_entries section with writable flags to allow
3964 relocation resolution.
3965
3966 2019-04-17 Jonny Grant <jg@jguk.org>
3967
3968 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
3969
3970 2019-04-17 Jakub Jelinek <jakub@redhat.com>
3971
3972 PR middle-end/90095
3973 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
3974 on lowpart SUBREGs.
3975
3976 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
3977
3978 * config/arc/arc.c (arc_init): Format diagnostic string.
3979 (arc_override_options): Likewise.
3980 (check_if_valid_regno_const): Likewise.
3981 (arc_reorg): Likewise.
3982
3983 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3984
3985 PR target/17108
3986 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
3987 name.
3988 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
3989 name.
3990 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
3991 (*movdi_update1): Use Pmode.
3992 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
3993 (movdi_<mode>_update_stack): Rename to ...
3994 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
3995 use Pmode.
3996 (*movsi_update1): Use Pmode.
3997 (*movsi_update2): Use Pmode.
3998 (movsi_update): Rename to ...
3999 (movsi_<mode>_update): ... this. Use Pmode.
4000 (movsi_update_stack): Fix condition.
4001 (*movhi_update1): Use Pmode. Fix argument to
4002 avoiding_indexed_address_p.
4003 (*movhi_update2): Ditto.
4004 (*movhi_update3): Ditto.
4005 (*movhi_update4): Ditto.
4006 (*movqi_update1): Ditto.
4007 (*movqi_update2): Ditto.
4008 (*movqi_update3): Ditto.
4009 (*movsf_update1, *movdf_update1): Merge, rename to...
4010 (*mov<mode>_update1): This. Use Pmode. Fix argument to
4011 avoiding_indexed_address_p. Add "size" attribute.
4012 (*movsf_update2, *movdf_update2): Merge, rename to...
4013 (*mov<mode>_update2): This. Ditto.
4014 (*movsf_update3): Use Pmode. Fix argument to
4015 avoiding_indexed_address_p.
4016 (*movsf_update4): Ditto.
4017 (allocate_stack): Simplify condition. Adjust pattern names.
4018
4019 2019-04-17 Jakub Jelinek <jakub@redhat.com>
4020
4021 PR target/89093
4022 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
4023 whitespace at the start of target attribute string.
4024
4025 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
4026
4027 PR target/84369
4028 * config/rs6000/power9.md: Add store forwarding bypass.
4029
4030 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
4031
4032 PR debug/89528
4033 * valtrack.c (dead_debug_insert_temp): Reset debug references
4034 to the return value of a call being removed.
4035
4036 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4037
4038 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
4039 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
4040 implement target hook.
4041 (arc_memory_move_cost): New function.
4042 (TARGET_REGISTER_MOVE_COST): Define.
4043 (TARGET_MEMORY_MOVE_COST): Likewise.
4044 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
4045 (MEMORY_MOVE_COST): Likewise.
4046
4047 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4048
4049 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
4050 (sibcall_value_insn): Likewise.
4051 * config/arc/constraints.md (Rs5): Remove.
4052
4053 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4054
4055 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
4056 for last two fake registers.
4057 (arc_conditional_register_usage): Make sure fake frame and arg
4058 pointer regs are in general regs class.
4059 (FRAME_POINTER_MASK): Remove.
4060 (RETURN_ADDR_MASK): Remove.
4061 (arc_must_save_register): Use hard frame regnum.
4062 (frame_restore_reg): Use hard_frame_pointer_rtx.
4063 (arc_save_callee_saves): Likewise.
4064 (arc_restore_callee_saves): Likewise.
4065 (arc_save_callee_enter): Likewise.
4066 (arc_restore_callee_leave): Likewise.
4067 (arc_save_callee_milli): Likewise.
4068 (arc_eh_return_address_location): Likewise.
4069 (arc_check_multi): Use hard frame regnum.
4070 (arc_can_eliminate): Likewise.
4071 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
4072 for register allocator.
4073 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
4074 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
4075 (FRAME_POINTER_REGNUM): Change it to a fake register.
4076 (HARD_FRAME_POINTER_REGNUM): Defined.
4077 (ARG_POINTER_REGNUM): Change it to a new fake register.
4078 (ELIMINABLE_REGS): Update.
4079 (REGISTER_NAMES): Update names.
4080 * config/arc/arc.md (LP_START): Remove.
4081 (LP_END): Likewise.
4082 (shift_si3_loop): Update pattern.
4083
4084 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4085
4086 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
4087 to avoid delay slot scheduling.
4088 (arc_must_save_register): Don't save SP.
4089 * config/arc/arc.md (stack_tie): Remove.
4090 (UNSPEC_ARC_STKTIE): Likewise.
4091
4092 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
4093 Shiva Chen <shiva0217@gmail.com>
4094
4095 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
4096 code gen with large shift amount.
4097
4098 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
4099
4100 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
4101 subreg.
4102
4103 2019-04-16 Jakub Jelinek <jakub@redhat.com>
4104
4105 PR target/90096
4106 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
4107 print -m64/-mx32/-m32 if it is true.
4108 (ix86_debug_options, ix86_function_specific_print): Pass true as
4109 ADD_ABI_P to ix86_target_string.
4110 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
4111 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
4112 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
4113
4114 PR rtl-optimization/90082
4115 * dce.c (can_delete_call): New function.
4116 (deletable_insn_p, mark_insn): Use it.
4117
4118 PR tree-optimization/90090
4119 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
4120 throw internally.
4121 (is_division_by_square): Likewise. Formatting fix.
4122
4123 2019-04-16 Richard Biener <rguenther@suse.de>
4124
4125 PR tree-optimization/56049
4126 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
4127 equality check if alias-set zero will prevail.
4128
4129 2019-04-15 Jeff Law <law@redhat.com>
4130
4131 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
4132 size and alignment as unsigned.
4133
4134 2019-04-15 Richard Biener <rguenther@suse.de>
4135
4136 PR debug/90074
4137 * tree-loop-distribution.c (destroy_loop): Preserve correct
4138 debug info.
4139
4140 2019-04-15 Richard Biener <rguenther@suse.de>
4141
4142 PR tree-optimization/90071
4143 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
4144 abnormal operands from def stmts.
4145
4146 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
4147
4148 PR rtl-optimization/89794
4149 * combine.c (count_auto_inc): New function.
4150 (try_combine): Count how many auto_inc expressions there were in the
4151 original instructions. Ensure we have the same number in the new
4152 instructions. Remove the code that tried to ensure auto_inc side
4153 effects on i1 and i0 are not lost.
4154
4155 2019-04-15 Richard Biener <rguenther@suse.de>
4156
4157 PR ipa/88936
4158 * tree.h (auto_var_p): Declare.
4159 * tree.c (auto_var_p): New function, split out from ...
4160 (auto_var_in_fn_p): ... here.
4161 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
4162 member.
4163 (new_var_info): Initialize it.
4164 (set_uids_in_ptset): Also set the shadow variable uid if required.
4165 (ipa_pta_execute): Postprocess points-to solutions assigning
4166 shadow variable uids for locals that may reach their containing
4167 function recursively.
4168 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
4169 assert but instead check whether the points-to solution is
4170 a singleton.
4171
4172 2019-04-15 Martin Jambor <mjambor@suse.cz>
4173
4174 PR ipa/pr89693
4175 * cgraph.c (clone_of_p): Loop over clone chain for each step in
4176 the thunk chain.
4177
4178 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
4179
4180 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
4181
4182 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
4183 Kito Cheng <kito.cheng@gmail.com>
4184 Shiva Chen <shiva0217@gmail.com>
4185
4186 * config/nds32/nds32-md-auxiliary.c
4187 (nds32_legitimize_pic_address): Use new PIC pattern.
4188 (nds32_legitimize_tls_address): Use new TLS pattern.
4189 (nds32_output_symrel): New.
4190 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
4191 (nds32_alloc_relax_group_id): Ditto.
4192 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
4193 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
4194 relax_group_id.
4195 (nds32_group_tls_insn): Ditto.
4196 (nds32_group_float_insns): Ditto.
4197 * config/nds32/nds32.md (tls_le): New.
4198 (sym_got): Ditto.
4199
4200 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
4201
4202 * configure: Add nds32 target for dwarf2 debug_line checking.
4203 * configure.ac: Regenerated.
4204
4205 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
4206
4207 PR lto/89358
4208 * ipa-devirt.c (skip_in_fields_list_p): New.
4209 (odr_types_equivalent_p): Use it.
4210
4211 2019-04-13 Jakub Jelinek <jakub@redhat.com>
4212
4213 PR target/89093
4214 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
4215 instead of strncmp when checking for thumb and arm. Formatting fixes.
4216
4217 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
4218
4219 * doc/install.texi: Document --with-target-system-zlib.
4220
4221 2019-04-12 Martin Sebor <msebor@redhat.com>
4222
4223 PR c/88383
4224 PR c/89288
4225 PR c/89798
4226 PR c/89797
4227 * targhooks.c (default_vector_alignment): Avoid assuming
4228 argument fits in SHWI.
4229 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
4230 a shift expression.
4231 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
4232
4233 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4234
4235 PR rtl-optimization/89965
4236 * dce.c: Include rtl-iter.h.
4237 (struct check_argument_load_data): New type.
4238 (check_argument_load): New function.
4239 (find_call_stack_args): Check for loads from stack slots still tracked
4240 in sp_bytes and punt if any is found.
4241
4242 * config/mips/loongson-mmiintrin.h: Fix up #error message.
4243
4244 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
4245
4246 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
4247 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
4248
4249 2019-04-12 Martin Liska <mliska@suse.cz>
4250
4251 PR middle-end/89970
4252 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
4253 in error message.
4254 (separate_attrs): Handle multiple 'default's.
4255 (expand_target_clones): Rework error handling code.
4256
4257 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
4258
4259 PR target/87532
4260 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
4261 mode of vector rather than mode of destination for move instruction.
4262 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
4263 Use QI inner mode with V16QI vector mode.
4264
4265 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4266
4267 PR target/52726
4268 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
4269 "invalid %%t operand" in output_operand_lossage message.
4270
4271 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
4272
4273 * config/s390/predicates.md (permute_pattern_operand): New
4274 predicate.
4275 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
4276 operand for the permute pattern.
4277 ("*vec_perm<mode>"): New insn definition.
4278 ("bswap<mode>"): Generate the permute pattern operand in the
4279 expander and perform the operand reloads for pre arch13 level
4280 already.
4281 ("*bswap<mode>_emu"): Rename to ...
4282 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
4283 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
4284 Add the USE operand for the permute pattern.
4285 ("*vec_set_bswap_vec<mode>"): Likewise.
4286
4287 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4288
4289 PR c/89946
4290 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
4291 and gcc_unreachable if it fails, just call tree_to_uhwi which
4292 verifies that too. Test TREE_CHAIN instead of list_length > 1.
4293 Start warning message with a lower-case letter. Formatting fixes.
4294
4295 PR rtl-optimization/90026
4296 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
4297 successors, look for BARRIERs inside of the whole BB_FOOTER chain
4298 rather than just at the start of it. If e->src BB_FOOTER is not NULL
4299 in cfglayout mode, use emit_barrier_after_bb.
4300
4301 2018-04-11 Steve Ellcey <sellcey@marvell.com>
4302
4303 PR rtl-optimization/87763
4304 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
4305 New Instruction.
4306
4307 2019-04-11 Tom de Vries <tdevries@suse.de>
4308
4309 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
4310 max macro using statement expression.
4311
4312 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
4313
4314 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
4315 * xcoffout.c (xcoff_private_rodata_section_name): Define.
4316 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
4317 read_only_private_data_section using xcoff_private_rodata_section_name.
4318 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
4319
4320 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
4321
4322 PR target/90016
4323 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
4324
4325 2019-04-11 Jakub Jelinek <jakub@redhat.com>
4326
4327 PR rtl-optimization/89965
4328 * dce.c (sp_based_mem_offset): New function.
4329 (find_call_stack_args): Use sp_based_mem_offset.
4330
4331 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
4332
4333 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
4334
4335 2019-04-11 Richard Biener <rguenther@suse.de>
4336
4337 PR tree-optimization/90020
4338 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
4339 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
4340 * tree-ssa-pre.c (compute_avail): Use it to not put
4341 possibly trapping references after a call that might not
4342 return into EXP_GEN.
4343 * gcse.c (compute_hash_table_work): Do not elide
4344 marking a block containing a call if the call might not
4345 return.
4346
4347 2019-04-11 Richard Biener <rguenther@suse.de>
4348
4349 PR tree-optimization/90018
4350 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
4351 Test both SLP and interleaving variants.
4352
4353 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
4354
4355 * config/s390/8561.md: New file.
4356 * config/s390/driver-native.c (s390_host_detect_local_cpu):
4357 Add arch13 cpu model.
4358 * config/s390/s390-opts.h (enum processor_type): Likewise.
4359 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
4360 (s390_get_unit_mask): Likewise.
4361 (s390_is_fpd): Likewise.
4362 (s390_is_fxd): Likewise.
4363 * config/s390/s390.h (s390_tune_attr): Likewise.
4364 * config/s390/s390.md: Include arch13 pipeline description.
4365 * config/s390/s390.opt: Add arch13.
4366
4367 2018-04-10 Steve Ellcey <sellcey@marvell.com>
4368
4369 PR rtl-optimization/87763
4370 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
4371 New prototype.
4372 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
4373 New function.
4374 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
4375 New instruction.
4376 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
4377 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
4378 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
4379 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
4380
4381 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
4382
4383 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
4384 "Although" in -fipa-icf documentation.
4385
4386 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
4387 of using multiple -g options.
4388
4389 2019-04-10 Martin Liska <mliska@suse.cz>
4390
4391 PR gcov-profile/89959
4392 * doc/gcov.texi: Make documentation of -x option
4393 more precise.
4394
4395 2019-04-10 Richard Biener <rguenther@suse.de>
4396
4397 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
4398 member.
4399 (DR_GROUP_SAME_DR_STMT): Remove.
4400 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
4401 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
4402 replace with assert.
4403 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
4404 (vect_record_grouped_load_vectors): Remove unreachable code.
4405
4406 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
4407
4408 PR target/90016
4409 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
4410 obsolete reference to N.
4411
4412 2019-04-10 Jakub Jelinek <jakub@redhat.com>
4413
4414 PR middle-end/90025
4415 * expr.c (store_expr): Set properly size on the MEM passed to
4416 clear_storage.
4417
4418 PR c++/90010
4419 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
4420 with strlen in between hostsz-3 and hostsz-1 inclusive when no
4421 translation is needed, and when translation is needed, only append
4422 ... if the string length is hostsz or more bytes long. Avoid using
4423 strncpy or strcat.
4424
4425 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
4426
4427 PR target/90024
4428 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
4429 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
4430 into three.
4431 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
4432 differences directly.
4433 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
4434
4435 2019-04-09 Jakub Jelinek <jakub@redhat.com>
4436
4437 PR translation/90011
4438 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
4439 from diagnostics.
4440 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
4441 diagnostics.
4442 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
4443 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
4444 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
4445 trailing space from -gsplit-dwarf diagnostics.
4446
4447 PR tree-optimization/89998
4448 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
4449 instead of integer_type_node if possible, don't add ranges if return
4450 type is not compatible with int.
4451 * gimple-fold.c (gimple_fold_builtin_sprintf,
4452 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
4453 integer_type_node.
4454
4455 2019-04-09 Martin Liska <mliska@suse.cz>
4456
4457 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
4458 * doc/install.texi: Document the new config.
4459
4460 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
4461
4462 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
4463 use gimple_expr_type for load and store calls. Skip over the
4464 condition argument in a conditional internal function.
4465 Protect use of TREE_INT_CST_LOW.
4466
4467 2019-04-09 Jakub Jelinek <jakub@redhat.com>
4468
4469 PR target/90015
4470 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
4471 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
4472 trailing period from it too.
4473
4474 2019-04-08 wu yuan <wuyuan5@huawei.com>
4475
4476 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
4477 * config/aarch64/aarch64.md : Add "tsv110.md"
4478 * config/aarch64/tsv110.md: New file.
4479
4480 2019-04-08 Richard Biener <rguenther@suse.de>
4481
4482 PR tree-optimization/90006
4483 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
4484 calls like lrint.
4485
4486 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
4487
4488 PR target/83033
4489 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
4490 construction.
4491 (fma_root_node): Likewise.
4492 (func_fma_steering): Likewise.
4493
4494 2019-04-08 Jakub Jelinek <jakub@redhat.com>
4495
4496 PR rtl-optimization/89865
4497 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
4498
4499 PR rtl-optimization/89865
4500 * config/i386/i386.md
4501 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
4502 numbers not to clash with the additional operands[4].
4503 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
4504 with extra register copy in the middle.
4505
4506 2019-04-08 Martin Liska <mliska@suse.cz>
4507
4508 PR gcov-profile/89961
4509 * doc/gcov.texi: Document data_file.
4510 * gcov.c (generate_results): Add data_info into JSON output.
4511
4512 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
4513
4514 PR tree-optimization/89725
4515 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
4516 loop's chrec as invariant symbol.
4517 * tree-chrec.h (chrec_contains_symbols): New parameter.
4518 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
4519 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
4520 function of loops not in DDR's loop_nest.
4521 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
4522
4523 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
4524
4525 PR target/89623
4526 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
4527 Mask.
4528
4529 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
4530
4531 PR target/89945
4532 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
4533 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
4534
4535 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
4536
4537 * sched-deps.c (sched_macro_fuse_insns): Check return value of
4538 targetm.fixed_condition_code_regs.
4539
4540 2019-04-05 Richard Biener <rguenther@suse.de>
4541
4542 PR debug/89892
4543 PR debug/89905
4544 * tree-cfgcleanup.c (remove_forwarder_block): Always move
4545 debug bind stmts but reset them if they are not valid at the
4546 destination.
4547
4548 2019-04-05 Martin Liska <mliska@suse.cz>
4549
4550 PR translation/89936
4551 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
4552 order to wrap keywords or arguments.
4553 * collect2.c (main): Likewise.
4554 (scan_prog_file): Likewise.
4555 (scan_libraries): Likewise.
4556 * common/config/riscv/riscv-common.c
4557 (riscv_subset_list::parsing_subset_version): Likewise.
4558 (riscv_subset_list::parse_std_ext): Likewise.
4559 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4560 Likewise.
4561 * config/arm/arm.c (arm_option_override): Likewise.
4562 * config/cris/cris.c (cris_print_operand): Likewise.
4563 * config/darwin-c.c (darwin_pragma_options): Likewise.
4564 (darwin_pragma_unused): Likewise.
4565 (darwin_pragma_ms_struct): Likewise.
4566 * config/ft32/ft32.c (ft32_print_operand): Likewise.
4567 * config/i386/i386.c (print_reg): Likewise.
4568 (ix86_print_operand): Likewise.
4569 * config/i386/xm-djgpp.h: Likewise.
4570 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
4571 * config/m32c/m32c.c (m32c_option_override): Likewise.
4572 * config/msp430/msp430.c (msp430_option_override): Likewise.
4573 * config/nds32/nds32.c (nds32_option_override): Likewise.
4574 * config/nvptx/mkoffload.c (main): Likewise.
4575 * config/rx/rx.c (rx_print_operand): Likewise.
4576 (valid_psw_flag): Likewise.
4577 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
4578 (vms_pragma_nomember_alignment): Likewise.
4579 (vms_pragma_extern_model): Likewise.
4580 * lto-wrapper.c (compile_offload_image): Likewise.
4581 * omp-offload.c (oacc_parse_default_dims): Likewise.
4582 * symtab.c (symtab_node::verify_base): Likewise.
4583 * tlink.c (recompile_files): Likewise.
4584 (start_tweaking): Likewise.
4585 * tree-profile.c (parse_profile_filter): Likewise.
4586
4587 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
4588
4589 PR tree-optimization/89956
4590 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
4591 multiple negates of the same value.
4592
4593 2019-04-04 Martin Sebor <msebor@redhat.com>
4594
4595 PR middle-end/89957
4596 PR middle-end/89911
4597 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
4598 have the same precision since the function crashes otherwise.
4599 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
4600 has non-zero arguments.
4601
4602 2019-04-04 Martin Sebor <msebor@redhat.com>
4603
4604 PR middle-end/89934
4605 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
4606 out if the number of arguments is less than expected.
4607
4608 2019-04-04 Jeff Law <law@redhat.com>
4609
4610 PR rtl-optimization/89399
4611 * ree.c (combine_set_extension): Use single_set rather than
4612 digging into PATTERN for items on the candidate list.
4613 (combine_reaching_defs): Likewise.
4614
4615 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
4616
4617 PR rtl-optimization/46590
4618 * loop-invariant.c (find_defs): Move df_remove_problem and
4619 df_process_deferred_rescans to move_invariants.
4620 Move df_live_add_problem and df_live_set_all_dirty calls
4621 to move_invariants.
4622 (move_invariants): Likewise.
4623 (move_loop_invariants): Likewise, making the df_live calls
4624 conditional on -O. Remove the problem again if we added it
4625 locally.
4626
4627 2019-04-03 qing zhao <qing.zhao@oracle.com>
4628
4629 PR tree-optimization/89730
4630 * ipa-inline.c (can_inline_edge_p): Delete the checking for
4631 -flive-patching=inline-only-static.
4632 (can_inline_edge_by_limits_p): Add the checking for
4633 -flive-patching=inline-only-static and grant always_inline
4634 even when -flive-patching=inline-only-static is specified.
4635
4636 2019-04-03 Jeff Law <law@redhat.com>
4637
4638 PR rtl-optimization/81025
4639 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
4640
4641 2019-04-03 Richard Biener <rguenther@suse.de>
4642
4643 PR tree-optimization/84101
4644 * tree-vect-stmts.c: Include explow.h for hard_function_value,
4645 regs.h for hard_regno_nregs.
4646 (cfun_returns): New helper.
4647 (vect_model_store_cost): When vectorizing a store to a decl
4648 we return and the function ABI returns in a multi-reg location
4649 account for the possible spilling that will happen.
4650
4651 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
4652
4653 * config/s390/s390.c (s390_legitimate_address_p): Reject long
4654 displacement addresses for vector mode operands.
4655
4656 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
4657
4658 * config/arc/arc.c (GMASK_LEN): Define.
4659 (arc_restore_callee_saves): Restore first blink when
4660 !optimize_size.
4661
4662 2019-04-03 Sudakshina Das <sudi.das@arm.com>
4663
4664 * doc/extend.texi: Add deprecated comment on sign-return-address
4665 function attribute and add mbranch-protection.
4666 * doc/invoke.texi: Add bti to the options for mbranch-protection.
4667
4668 2019-04-03 Richard Biener <rguenther@suse.de>
4669
4670 PR lto/89896
4671 * lto-wrapper.c (run_gcc): Avoid implicit rules making
4672 the all target phony.
4673
4674 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
4675
4676 PR target/89902
4677 PR target/89903
4678 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
4679 Return false for variable DImode shifts.
4680 (dimode_scalar_chain::compute_convert_gain): Do not handle
4681 register count operand in variable DImode shifts.
4682 (dimode_scalar_chain::make_vector_copies): Remove support to copy
4683 count argument of a variable shift instruction to a vector register.
4684 (dimode_scalar_chain::convert_reg): Remove support to convert
4685 count argument of a variable shift instruction.
4686
4687 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
4688
4689 PR rtl-optimization/84206
4690 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
4691 iterating over loop headers.
4692
4693 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
4694
4695 PR rtl-optimization/85876
4696 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
4697 beyond the original fence.
4698
4699 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
4700
4701 * config.gcc: Mark spu* targets as deprecated/obsolete.
4702
4703 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4704
4705 * config/s390/s390-builtin-types.def: New builtin function type
4706 definitions. Remove unused types.
4707 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
4708 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
4709 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
4710 overloaded builtins.
4711 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
4712 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
4713 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
4714 (vec_double, vec_signed, vec_unsigned): Define to use the new
4715 overloaded builtins.
4716 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
4717 Remove expanders.
4718
4719 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4720
4721 * config/s390/s390-builtin-types.def: New builtin function type
4722 definitions.
4723 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
4724 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
4725 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
4726 (s390_vstrszh, s390_vstrszf): New low-level builtins.
4727 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
4728 constant definitions.
4729 * config/s390/vecintrin.h (vec_search_string_cc)
4730 (vec_search_string_until_zero_cc): New builtin name definitions.
4731 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
4732 expanders.
4733 ("vec_vstrs<mode>"): New insn definition.
4734
4735 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4736
4737 * config/s390/s390-builtin-types.def: Add new builtin function
4738 types.
4739 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
4740 New overloaded builtins.
4741 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
4742 s390_vsrd.
4743 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
4744 (UNSPEC_VEC_SLDBYTE): ... this.
4745 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
4746 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
4747 definitions.
4748 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
4749 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
4750 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
4751
4752 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4753
4754 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
4755 New insn definition.
4756 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
4757 * config/s390/vector.md (V_HW_HSD): ... here.
4758
4759 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4760
4761 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
4762 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
4763 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
4764 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
4765 New insn definitions.
4766
4767 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4768
4769 * config/s390/s390-builtin-types.def: Add new builtin function type.
4770 * config/s390/s390-builtins.def: Add overloaded builtin
4771 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
4772 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
4773 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
4774 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
4775 ("eltswap<mode>"): New expander.
4776 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
4777 insn definitions.
4778
4779 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4780
4781 * config/s390/s390-builtin-types.def: Add new builtin function types.
4782 * config/s390/s390-builtins.def: Add overloaded builtin
4783 s390_vec_revb. Add low-level builtins for vlbr and vstbr
4784 instructions.
4785 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
4786 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
4787 ("bswap<mode>"): New expander.
4788 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
4789
4790 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4791
4792 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
4793 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
4794 vector builtin version number in __VEC__.
4795
4796 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4797
4798 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
4799 iterators.
4800 (SFSI): New mode attribute.
4801 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
4802 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
4803 rename to ...
4804 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
4805 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
4806 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
4807 ("floatsi<mode>2"): Add wcefb instruction.
4808
4809 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4810
4811 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
4812 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
4813 mode iterators.
4814 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
4815 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
4816 support 32 bit fp-int conversions. Rename to ...
4817 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4818 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4819 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
4820 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
4821 ... to these.
4822
4823 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4824
4825 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
4826 if-then-else constructs if we can use the select instruction.
4827 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
4828
4829 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4830
4831 * config/s390/s390.md ("*popcountdi_arch13_cc")
4832 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
4833 definition.
4834 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
4835 Append _z196 to make it ...
4836 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
4837 ("popcounthi2_z196"): ... this.
4838 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
4839 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
4840
4841 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4842
4843 * config/s390/s390.c (s390_canonicalize_comparison): Convert
4844 certain compares for arch13 in order to make use of the condition
4845 code result produced by the new instructions.
4846 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
4847 nxrk, and nxgrk instruction patterns.
4848 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
4849 (inv_no): Add new code iterator together with some attributes.
4850 ("*andc_split_<mode>"): Disable splitter for arch13.
4851 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
4852 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
4853 ("*<ANDOR:bitops_name>c<GPR:mode>")
4854 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
4855 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
4856 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
4857 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
4858
4859 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4860
4861 * common/config/s390/s390-common.c (processor_flags_table): New
4862 entry for arch13.
4863 * config.gcc: Support arch13 with the --with-arch= configure flag.
4864 * config/s390/driver-native.c (s390_host_detect_local_cpu):
4865 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
4866 * config/s390/s390.c (s390_get_sched_attrmask)
4867 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
4868 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
4869 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
4870 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
4871 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
4872 definitions.
4873 * config/s390/s390.opt: Support arch13 as processor type in
4874 command line options.
4875
4876 2019-04-02 Martin Liska <mliska@suse.cz>
4877
4878 PR translation/89912
4879 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
4880 Fix param description of graphite-max-arrays-per-scop.
4881
4882 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
4883
4884 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
4885 (ASAN_CC1_SPEC): Use it in 64-bit mode.
4886 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
4887
4888 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4889
4890 PR rtl-optimization/85412
4891 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
4892 sel_sched_region_1, not after.
4893
4894 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4895
4896 PR rtl-optimization/86928
4897 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
4898 compute_live if necessary.
4899 (sel_redirect_edge_and_branch): Likewise.
4900
4901 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
4902
4903 PR rtl-optimization/89865
4904 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
4905 register if it is a part of small class.
4906
4907 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4908
4909 PR rtl-optimization/87273
4910 * sel-sched-ir.c (merge_fences): Remove assert.
4911
4912 2019-04-01 Richard Biener <rguenther@suse.de>
4913
4914 PR tree-optimization/46590
4915 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
4916 (dom_walker::m_reachability): Add in place of...
4917 (dom_walker::m_skip_unreachable_blocks): ...this.
4918 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
4919 Move complex initialization ...
4920 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
4921 lazily and initialize edge flags on each invocation.
4922 (dom_walker::bb_reachable): Use m_reachability.
4923
4924 2019-04-01 Martin Liska <mliska@suse.cz>
4925
4926 PR driver/89861
4927 * opt-suggestions.c (option_proposer::build_option_suggestions):
4928 Add variant without any argument in order to provide better
4929 hints.
4930
4931 2019-04-01 Richard Biener <rguenther@suse.de>
4932
4933 PR c/71598
4934 * gimple.c: Include langhooks.h.
4935 (gimple_get_alias_set): Treat enumeral types as the underlying
4936 integer type.
4937
4938 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
4939 Eric Botcazou <ebotcazou@adacore.com>
4940
4941 PR rtl-optimization/89862
4942 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
4943 that operates on the full registers for WORD_REGISTER_OPERATIONS
4944 architectures.
4945
4946 2019-03-29 Jim Wilson <jimw@sifive.com>
4947
4948 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
4949 Clear MASK_RVC and then set if C subset supported.
4950
4951 2019-03-29 Jakub Jelinek <jakub@redhat.com>
4952
4953 PR c/89872
4954 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
4955 non-addressable complit into its initializer if it is volatile.
4956
4957 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
4958
4959 * opts-common.c (integral_argument): Set errno properly in one case.
4960
4961 2019-03-29 Martin Liska <mliska@suse.cz>
4962
4963 * doc/invoke.texi: Remove -Wchkp from documentation.
4964
4965 2019-03-29 Martin Liska <mliska@suse.cz>
4966
4967 * dbgcnt.c (print_limit_reach): New function.
4968 (dbg_cnt): Use it.
4969
4970 2019-03-29 Martin Liska <mliska@suse.cz>
4971
4972 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
4973 (dbg_cnt_process_opt): Parse first tokens aas
4974 dbg_cnt_process_single_pair is also using strtok.
4975
4976 2019-03-29 Jakub Jelinek <jakub@redhat.com>
4977
4978 PR rtl-optimization/87485
4979 * function.c (expand_function_end): Move stack_protect_epilogue
4980 before loading of return value into hard register(s).
4981
4982 2019-03-28 Jakub Jelinek <jakub@redhat.com>
4983
4984 PR middle-end/89621
4985 * tree-inline.h (struct copy_body_data): Add
4986 dont_remap_vla_if_no_change flag.
4987 * tree-inline.c (remap_type_3, remap_type_2): New functions.
4988 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
4989 and remap_type_2 returns false.
4990 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
4991 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
4992 only from where it is copied to nested contexts.
4993
4994 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
4995
4996 PR target/89865
4997 * config/i386/i386.md (RMW operation with LEA peephole):
4998 Use LEAMODE mode attribute instead of SWI mode iterator for
4999 LEA pattern.
5000
5001 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
5002
5003 PR target/89848
5004 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
5005 Also process XEXP (src, 0) of a shift insn.
5006
5007 2019-03-28 David Malcolm <dmalcolm@redhat.com>
5008
5009 PR middle-end/89725
5010 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
5011 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
5012
5013 2019-03-28 Jakub Jelinek <jakub@redhat.com>
5014
5015 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
5016 test.
5017 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
5018 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
5019 immediately after first one with df_analyze in between, but rather
5020 process all bbs, queueing ones that need second pass in a worklist,
5021 df_analyze, process queued debug insn changes and if second pass is
5022 needed, process bbs from worklist, df_analyze, process queued debug
5023 insns again.
5024
5025 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
5026 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
5027 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
5028
5029 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
5030
5031 PR c/79022
5032 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
5033 definition.
5034
5035 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
5036
5037 PR target/85667
5038 * config/i386/i386.c (ix86_function_value_1): Call the newly added
5039 function for 32-bit MS_ABI.
5040 (function_value_ms_32): New function.
5041
5042 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
5043
5044 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
5045 (movdi): Call gen_movdi_symbol_save_scc.
5046 (gen_movdi_symbol_save_scc): New insn and split.
5047
5048 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
5049
5050 PR rtl-optimization/89313
5051 * function.c (matching_constraint_num): New static function.
5052 (match_asm_constraints_1): Use it. Fixup white space and comment.
5053 Don't replace inputs with non-matching constraints which conflict
5054 with early clobber outputs.
5055
5056 2019-03-27 Jeff Law <law@redhat.com>
5057
5058
5059 PR rtl-optimization/87761
5060 PR rtl-optimization/89826
5061 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
5062 slightly later.
5063 (pass_cprop_hardreg::execute): Call df_analyze after adding the
5064 note problem to get REG_DEAD/REG_UNUSED notes updated.
5065
5066 2019-03-27 Richard Biener <rguenther@suse.de>
5067
5068 PR tree-optimization/89463
5069 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
5070 queue edges to remove.
5071 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
5072 dead stmts. Delay edge removal until PHIs are removed to
5073 make debug-stmt creation not confused by seemingly degenerate
5074 PHIs.
5075
5076 2019-03-27 Alan Modra <amodra@gmail.com>
5077
5078 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
5079 throughout file.
5080 * config/rs6000/darwin.h: Likewise.
5081 * config/rs6000/rs6000.c: Likewise.
5082
5083 2019-03-27 Alan Modra <amodra@gmail.com>
5084
5085 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
5086 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
5087
5088 2019-03-26 Andrew Waterman <andrew@sifive.com>
5089 Jim Wilson <jimw@sifive.com>
5090
5091 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
5092 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
5093 (generic_idivdi, generic_fmul_single, generic_fmul_double)
5094 (generic_fdiv, generic_fsqrt): Add check for generic tune.
5095 (generic_alu): Add auipc to type list.
5096 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
5097 (riscv_microarchitecture): Declare.
5098 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
5099 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
5100 field.
5101 (riscv_microarchitecture): New.
5102 (sifive_7_tune_info): New.
5103 (riscv_cpu_info_table): Add microarchitecture value for rocket and
5104 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
5105 entries.
5106 (riscv_store_data_bypass_p): New.
5107 (riscv_option_override): Set riscv_microarchitecture from
5108 cpu->microarchitecture.
5109 * config/riscv/riscv.md: Include sifive-7.md.
5110 (type): Add auipc.
5111 (tune): New.
5112 (auipc<mode>): Change type to auipc.
5113 (restore_stack_nonlocal): New.
5114 * config/riscv/sifive-7.md: New.
5115 * doc/invoke.texi (RISC-V Options): Update mtune docs.
5116
5117 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
5118
5119 PR target/89827
5120 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
5121 Also process XEXP (src, 0) of a shift insn.
5122
5123 2019-03-26 Richard Biener <rguenther@suse.de>
5124
5125 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
5126 (copy_debug_stmt): Likewise.
5127 (expand_call_inline): Likewise.
5128 (copy_bb): Avoid redundant lookup & set of gimple_block.
5129 * gimple-low.c (lower_gimple_return): Likewise.
5130 (lower_builtin_setjmp): Likewise.
5131
5132 2019-03-26 Jakub Jelinek <jakub@redhat.com>
5133
5134 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
5135 is constant 0, turn into static const data member initialized to false.
5136 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
5137 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
5138
5139 2019-03-26 Jason Merrill <jason@redhat.com>
5140 Jakub Jelinek <jakub@redhat.com>
5141
5142 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
5143 method.
5144 (mem_alloc_description::release_object_overhead): Fix comment typos.
5145 * hash-table.h (hash_table::~hash_table): Call
5146 release_instance_overhead only if m_entries is non-NULL, otherwise
5147 call unregister_descriptor.
5148
5149 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
5150
5151 PR tree-optimization/81740
5152 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5153 In case of outer loop vectorization, check for backward dependence
5154 at the inner loop if outer loop dependence is reversed.
5155
5156 2019-03-26 Alan Modra <amodra@gmail.com>
5157
5158 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
5159 rs6000_vector_mem init. Correct wI and wJ comment.
5160
5161 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
5162
5163 PR rtl-optimization/88347
5164 PR rtl-optimization/88423
5165 * sched-deps.c (sched_analyze_insn): Take into account that for
5166 tablejumps the barrier appears after a label and a jump_table_data.
5167
5168 2019-03-25 Martin Sebor <msebor@redhat.com>
5169
5170 PR c/89812
5171 * c-common.c (check_user_alignment): Rename local. Correct maximum
5172 alignment in diagnostic. Avoid assuming argument fits in SHWI,
5173 convert it to UHWI when it fits.
5174
5175 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
5176
5177 PR debug/86964
5178 * dwarf2out.c (premark_used_variables): New function.
5179 (prune_unused_types_walk): Do not mark not premarked external
5180 variables.
5181 (prune_unused_types): Call premark_used_variables.
5182
5183 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
5184
5185 PR rtl-optimization/89676
5186 * lra-constraints.c (curr_insn_transform): Do match reload for
5187 early clobbers when the match was successful only for different
5188 registers.
5189
5190 2019-03-25 Martin Sebor <msebor@redhat.com>
5191
5192 * doc/extend.texi (Common Type Attributes): Document vector_size.
5193 (Common Variable Attributes): Mention size constraint. Correct
5194 quoting and typos.
5195 (Vector Extensions): Use @dfn when defining bas type. Clarify
5196 base type and size constraints.
5197
5198 2019-03-25 Richard Biener <rguenther@suse.de>
5199
5200 PR tree-optimization/89789
5201 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
5202 changes from non-undefined back to undefined.
5203
5204 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
5205
5206 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
5207 heap string and a gc string, but since this variable is unknown to
5208 ggc the gc string might get reused and corrupted. Fixed by always
5209 using a heap string.
5210
5211 2019-03-25 Richard Biener <rguenther@suse.de>
5212
5213 PR tree-optimization/89779
5214 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
5215 to remove IV defs, delay actual removal.
5216 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
5217 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
5218 very end, properly also reset loop control IV information.
5219
5220 2019-03-25 Richard Biener <rguenther@suse.de>
5221
5222 PR tree-optimization/89802
5223 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
5224 move EH data to folded stmt.
5225
5226 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
5227
5228 * config/s390/s390-builtin-types.def: Remove few unused types and
5229 fix sort order for others.
5230
5231 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
5232
5233 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
5234 expected and found types with -mdebug during builtin matching.
5235
5236 2019-03-25 Richard Biener <rguenther@suse.de>
5237
5238 PR middle-end/89790
5239 * fold-const.c (operand_equal_p): Revert last change with
5240 updated comment.
5241
5242 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
5243
5244 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
5245 notes for the result of the __tls_get_addr calls.
5246 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
5247
5248 2019-03-24 Jeff Law <law@redhat.com>
5249
5250 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
5251
5252 PR rtl-optimization/87761
5253 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
5254 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
5255 as needed.
5256 (pass_cprop_hardreg::execute): Add df note problem and defer insn
5257 rescans. Reprocess blocks as needed, calling df_analyze before
5258 reprocessing. Always call df_analyze before fixing up debug bind
5259 insns.
5260
5261 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
5262
5263 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
5264 big endian.
5265
5266 2019-03-22 Andrew Pinski <apinski@marvell.com>
5267
5268 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
5269 attrribute for uxtw.
5270
5271 2019-03-26 Jeff Law <law@redhat.com>
5272
5273 PR rtl-optimization/87761
5274 * config/mips/mips-protos.h (mips_split_move): Add new argument.
5275 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
5276 (mips_split_move): Accept new INSN argument. Try to forward SRC
5277 into the next instruction.
5278 (mips_split_move_insn): Pass INSN through to mips_split_move.
5279
5280 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
5281
5282 PR rtl-optimization/89676
5283 * lra-constraints.c (curr_insn_transform): Do match reload for
5284 early clobbers even if the match was successful.
5285
5286 2019-03-22 Jakub Jelinek <jakub@redhat.com>
5287
5288 PR c++/87481
5289 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
5290
5291 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
5292
5293 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
5294
5295 2019-03-22 Jakub Jelinek <jakub@redhat.com>
5296
5297 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
5298 <avx512>_fmsub_<mode>_mask3<round_name>,
5299 <avx512>_fnmadd_<mode>_mask3<round_name>,
5300 <avx512>_fnmsub_<mode>_mask3<round_name>,
5301 avx512f_vmfmadd_<mode>_mask3<round_name>,
5302 avx512f_vmfmsub_<mode>_mask3<round_name>,
5303 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
5304 instead of register_operand and %v instead of v for match_operand 1.
5305 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
5306 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
5307 <round_nimm_predicate> instead of register_operand and %v instead of v
5308 for match_operand 1.
5309
5310 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
5311 <avx512>_fmadd_<mode>_mask3<round_name>,
5312 <avx512>_fmsub_<mode>_mask<round_name>,
5313 <avx512>_fmsub_<mode>_mask3<round_name>,
5314 <avx512>_fnmadd_<mode>_mask<round_name>,
5315 <avx512>_fnmadd_<mode>_mask3<round_name>,
5316 <avx512>_fnmsub_<mode>_mask<round_name>,
5317 <avx512>_fnmsub_<mode>_mask3<round_name>,
5318 <avx512>_fmaddsub_<mode>_mask<round_name>,
5319 <avx512>_fmaddsub_<mode>_mask3<round_name>,
5320 <avx512>_fmsubadd_<mode>_mask<round_name>,
5321 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
5322 <round_nimm_predicate> instead of nonimmediate_operand.
5323 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
5324 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
5325 Use register_operand instead of <round_nimm_predicate> for the
5326 operand that needs to match output.
5327 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
5328 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
5329 Likewise. Formatting fixes.
5330
5331 PR target/89784
5332 * config/i386/i386.c (enum ix86_builtins): Remove
5333 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
5334 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
5335 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
5336 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
5337 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
5338 __builtin_ia32_vfmsubss3_mask3): New builtins.
5339 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
5340 avx512f_vmfmadd_<mode>_mask3<round_name>,
5341 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
5342 *avx512f_vmfmsub_<mode>_mask<round_name>,
5343 avx512f_vmfmsub_<mode>_mask3<round_name>,
5344 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
5345 *avx512f_vmfnmadd_<mode>_mask<round_name>,
5346 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
5347 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
5348 *avx512f_vmfnmsub_<mode>_mask<round_name>,
5349 avx512f_vmfnmsub_<mode>_mask3<round_name>,
5350 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
5351 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
5352 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
5353 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
5354 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
5355 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
5356 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
5357 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
5358 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
5359 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
5360 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
5361 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
5362 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
5363 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
5364 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
5365 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
5366 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
5367 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
5368 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
5369 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
5370 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
5371 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
5372
5373 2019-03-21 Martin Sebor <msebor@redhat.com>
5374
5375 PR tree-optimization/89350
5376 * builtins.c (compute_objsize): Also ignore offsets whose upper
5377 bound is negative.
5378 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
5379 (builtin_memref::builtin_memref): Initialize new member.
5380 Allow EXPR to be null.
5381 (builtin_memref::extend_offset_range): Replace local with a member.
5382 Avoid assuming pointer offsets are unsigned.
5383 (builtin_memref::set_base_and_offset): Determine base object
5384 before computing offset range.
5385 (builtin_access::builtin_access): Handle memset.
5386 (builtin_access::generic_overlap): Replace local with a member.
5387 (builtin_access::strcat_overlap): Same.
5388 (builtin_access::overlap): Same.
5389 (maybe_diag_overlap): Same.
5390 (maybe_diag_access_bounds): Same.
5391 (wrestrict_dom_walker::check_call): Handle memset.
5392 (check_bounds_or_overlap): Same.
5393
5394 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
5395 Jakub Jelinek <jakub@redhat.com>
5396
5397 PR lto/89692
5398 * tree.c (fld_type_variant, fld_incomplete_type_of,
5399 fld_process_array_type): Call fld->pset.add and don't call
5400 add_tree_to_fld_list if it returns true.
5401 (free_lang_data_in_type): Similarly with self-recursive call. Purge
5402 non-marked types from TYPE_NEXT_VARIANT list.
5403 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
5404
5405 2019-03-21 Jakub Jelinek <jakub@redhat.com>
5406
5407 * hash-table.h (hash_table): Add Lazy template parameter defaulted
5408 to false, if true, don't alloc_entries during construction, but defer
5409 it to the first method that needs m_entries allocated.
5410 (hash_table::hash_table, hash_table::~hash_table,
5411 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
5412 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
5413 hash_table::clear_slot, hash_table::traverse_noresize,
5414 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
5415 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
5416 false.
5417 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
5418 NO_INSERT instead of find_with_hash.
5419 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
5420 hash_set::m_table): Add Lazy to template params of hash_table.
5421 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
5422 * attribs.c (test_attribute_exclusions): Likewise.
5423 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
5424 hash_set. Add tests for hash_set with Lazy = true.
5425
5426 2019-03-21 Richard Biener <rguenther@suse.de>
5427
5428 PR tree-optimization/89779
5429 * tree.c (tree_nop_conversion): Consolidate and fix defensive
5430 checks with respect to released SSA names now having error_mark_node
5431 type.
5432 * fold-const.c (operand_equal_p): Likewise.
5433
5434 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
5435
5436 PR target/89775
5437 * config/s390/s390.c (global_not_special_regno_p): Move to make it
5438 available to ...
5439 (s390_optimize_register_info): Use global_not_special_regno_p to
5440 check for global regs.
5441
5442 2019-03-20 Jakub Jelinek <jakub@redhat.com>
5443
5444 PR target/89752
5445 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
5446 update this_alternative nor this_alternative_set.
5447
5448 2019-03-19 Jim Wilson <jimw@sifive.com>
5449
5450 PR target/89411
5451 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
5452 align, size, offset. Use them to handle a BLKmode reference. Update
5453 comment.
5454 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
5455
5456 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5457
5458 PR rtl-optimization/89768
5459 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
5460 instead of GEN_INT.
5461 (unroll_loop_runtime_iterations): Likewise.
5462
5463 2019-03-19 Martin Sebor <msebor@redhat.com>
5464
5465 PR tree-optimization/89644
5466 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
5467 rather than endptr as an indicator of nul-termination.
5468
5469 PR tree-optimization/89644
5470 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
5471 arrays in determining sequence sizes in strncpy and stpncpy.
5472
5473 2019-03-19 Martin Liska <mliska@suse.cz>
5474
5475 PR middle-end/89737
5476 * predict.c (combine_predictions_for_bb): Empty likely_edges and
5477 unlikely_edges if there's an edge that belongs to both these sets.
5478
5479 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
5480
5481 PR target/89746
5482 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
5483 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
5484 go via a stack temporary.
5485
5486 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5487
5488 PR target/89378
5489 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
5490 instead of gen_rtx_SUBREG.
5491 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
5492
5493 2019-03-19 Richard Biener <rguenther@suse.de>
5494
5495 PR debug/88389
5496 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
5497
5498 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
5499
5500 PR lto/87809
5501 PR lto/89335
5502 * tree.c (free_lang_data_in_decl): Do not free context of C++
5503 destrutors.
5504
5505 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5506
5507 PR target/89506
5508 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
5509 subs for the first alternative except when operands[3] is 1.
5510
5511 PR target/89752
5512 * gimplify.c (gimplify_asm_expr): For output argument with
5513 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
5514 diagnose error.
5515
5516 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
5517
5518 PR rtl-optimization/89753
5519 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
5520 explicit unrolling factor even more robust.
5521
5522 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5523
5524 PR target/89726
5525 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
5526 compensation use x2 += 1 instead of x2 -= -1 and when honoring
5527 signed zeros, do another copysign after the compensation.
5528
5529 2019-03-18 Martin Sebor <msebor@redhat.com>
5530
5531 PR tree-optimization/89720
5532 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
5533 more conservatively, the same as anti-range.
5534
5535 2019-03-18 Richard Biener <rguenther@suse.de>
5536
5537 PR middle-end/88945
5538 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
5539 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
5540 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
5541 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
5542
5543 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
5544
5545 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
5546 Extend queue to 1024 entries.
5547 Add "consumed" field.
5548 (gomp_print_output): Remove print_index parameter.
5549 Add final parameter.
5550 Change limit to unsigned.
5551 Use consumed field to implement circular buffer.
5552 Detect interrupted print in final pass.
5553 Flush output at the end.
5554 (run): Update gomp_print_output usage.
5555 (main): Initialize kernargs->output_data.consumed.
5556
5557 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
5558
5559 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
5560 calculation of the minimum number of scalar iterations for
5561 fully-predicated loops.
5562
5563 2019-03-18 Martin Jambor <mjambor@suse.cz>
5564
5565 PR tree-optimization/89546
5566 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
5567 any propagation to its children took place.
5568
5569 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
5570
5571 PR target/89627
5572 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
5573 parameter, and make use of it.
5574 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
5575
5576 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5577
5578 * config/arc/arc.opt (mcode-density-frame): Get the inital value
5579 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
5580 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5581 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5582 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
5583 match what the ops is doing.
5584 (push_multi_fp_blink): Likewise.
5585 * config/arc/arc.c (arc_override_options): Enable enter/leave when
5586 compiling for size and elf target.
5587 (arc_save_callee_enter): Adjust note to match what enter/leave
5588 operation does.
5589
5590 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5591
5592 * config/arc/arc.md (tst_movb): Fix constraint.
5593
5594 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5595
5596 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
5597
5598 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5599
5600 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
5601 * config/arc/arc.c (arc_conditional_register_usage): Remove all
5602 reg_alloc_order references.
5603 (size_alloc_order): Define.
5604 (arc_adjust_reg_alloc_order): New function.
5605 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
5606 order.
5607 (ADJUST_REG_ALLOC_ORDER): Define.
5608 (HONOR_REG_ALLOC_ORDER): Likewise.
5609
5610 2019-03-18 Richard Biener <rguenther@suse.de>
5611
5612 PR target/87561
5613 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
5614 loads and stores a bit more.
5615
5616 2019-03-18 Richard Biener <rguenther@suse.de>
5617
5618 PR target/87561
5619 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
5620 load pessimization to stores as well.
5621
5622 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
5623
5624 PR middle-end/86979
5625 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
5626 successor, use NULL as its av set.
5627
5628 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
5629
5630 PR rtl-optimization/89721
5631 * lra-constraints (invariant_p): Return false if side_effects_p holds.
5632
5633 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
5634
5635 PR target/87532
5636 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5637 When handling vec_extract, use modular arithmetic to allow
5638 constant selectors greater than vector length.
5639 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
5640 V1TImode vectors to have constant selector values greater than 0.
5641 Use modular arithmetic to compute vector index.
5642 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
5643 index for in-memory vectors. Correct code generation for
5644 in-register vectors.
5645 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
5646 compute index.
5647
5648 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
5649
5650 PR c++/88534
5651 PR c++/88537
5652 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
5653 VAR_DECL args.
5654
5655 2019-03-15 Jakub Jelinek <jakub@redhat.com>
5656
5657 PR c++/89709
5658 * tree.c (inchash::add_expr): Strip any location wrappers.
5659 * fold-const.c (operand_equal_p): Move stripping of location wrapper
5660 after hash verification.
5661
5662 PR debug/89704
5663 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
5664 SIGN_EXTEND and ZERO_EXTEND.
5665
5666 2019-03-14 Jason Merrill <jason@redhat.com>
5667 Jakub Jelinek <jakub@redhat.com>
5668
5669 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
5670 than if is_empty (*slot).
5671 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
5672 existing elt and for elt removal.
5673 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
5674 of already removed elt.
5675
5676 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
5677
5678 PR target/89650
5679 * config/i386/i386.c (remove_partial_avx_dependency): Handle
5680 REG_EH_REGION note.
5681
5682 2019-03-14 Martin Liska <mliska@suse.cz>
5683
5684 PR other/89712
5685 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
5686
5687 2019-03-14 Richard Biener <rguenther@suse.de>
5688
5689 PR target/89711
5690 * config/i386/i386.c (make_resolver_func): Properly set
5691 DECL_CONTEXT on the RESULT_DECL.
5692 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
5693
5694 2019-03-14 Richard Biener <rguenther@suse.de>
5695
5696 * gimple-pretty-print.c: Include cfgloop.h.
5697 (dump_gimple_phi): Adjust.
5698 (dump_gimple_bb_header): Dump loop header for GIMPLE.
5699 (pp_cfg_jump): Adjust.
5700 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
5701 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
5702 (lower_phi_internal_fn): Remove.
5703 (verify_gimple_call): Remove IFN_PHI special-casing.
5704 (dump_function_to_file): Dump IL state.
5705 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
5706 done to deal with PHI nodes being present in non-SSA state.
5707
5708 2019-03-14 Jakub Jelinek <jakub@redhat.com>
5709
5710 PR ipa/89684
5711 * multiple_target.c (create_dispatcher_calls): Change
5712 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
5713 In the node->iterate_referring loop, push *ref rather than ref, call
5714 ref->remove_reference () and always pass 0 to iterate_referring.
5715
5716 PR rtl-optimization/89679
5717 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
5718 would contain a paradoxical SUBREG.
5719
5720 2019-03-14 Richard Biener <rguenther@suse.de>
5721
5722 PR tree-optimization/89710
5723 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
5724 safe_dyn_cast.
5725
5726 2019-03-14 Martin Liska <mliska@suse.cz>
5727
5728 * coverage.c (coverage_begin_function): Stream also
5729 end_column.
5730 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
5731 documentation about function declaration location.
5732 * gcov-dump.c (tag_function): Print whole range
5733 of function declaration.
5734 * gcov.c (struct function_info): Add end_column field.
5735 (function_info::function_info): Initialize it.
5736 (output_json_intermediate_file): Output {start,end}_column
5737 fields.
5738 (read_graph_file): Read end_column.
5739
5740 2019-03-14 Richard Biener <rguenther@suse.de>
5741
5742 PR middle-end/89698
5743 * fold-const.c (operand_equal_p): For INDIRECT_REF check
5744 that the access types are similar.
5745
5746 2019-03-14 Jakub Jelinek <jakub@redhat.com>
5747
5748 PR tree-optimization/89703
5749 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
5750 aren't compatible also with builtin_decl_explicit. Check pure
5751 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
5752 and BUILT_IN_STPNCPY{,_CHK}.
5753
5754 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
5755
5756 PR target/89523
5757 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
5758 addr32 prefix to VSIB address for X32.
5759 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
5760 "%M2" to opcode.
5761 (*avx512pf_gatherpf<mode>df_mask): Likewise.
5762 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
5763 (*avx512pf_scatterpf<mode>df_mask): Likewise.
5764 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
5765 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
5766 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
5767 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
5768 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
5769 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
5770 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
5771 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
5772 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
5773 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
5774 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
5775 (*avx512f_scatterdi<mode>): Likewise.
5776
5777 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
5778
5779 PR target/85860
5780 * lra-constraints.c (inherit_in_ebb): Update
5781 potential_reload_hard_regs along with live_hard_regs.
5782
5783 2019-03-13 Jakub Jelinek <jakub@redhat.com>
5784
5785 PR debug/89498
5786 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
5787 DWARF_OFFSET_SIZE.
5788 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
5789
5790 2019-03-13 Martin Sebor <msebor@redhat.com>
5791
5792 PR tree-optimization/89662
5793 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
5794 has a size.
5795
5796 2019-03-13 Richard Biener <rguenther@suse.de>
5797
5798 PR middle-end/89677
5799 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
5800 throw FP expressions at tree-affine.
5801
5802 2019-03-14 Richard Biener <rguenther@suse.de>
5803
5804 * tree-pretty-print.c (dump_generic_node): For -gimple properly
5805 dump negative integer constants using _Literal (type) -num.
5806
5807 2019-03-13 Jakub Jelinek <jakub@redhat.com>
5808
5809 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
5810 nonlocal_value member.
5811
5812 PR middle-end/88588
5813 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
5814 (ipa_simd_modify_function_body): Handle PHIs.
5815
5816 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5817
5818 * config/s390/s390.c (s390_option_override_internal): Use more
5819 aggressive inlining parameters.
5820
5821 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5822
5823 * config/s390/3906.md: New file.
5824 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5825 (LONGRUNNING_THRESHOLD): Remove.
5826 (MAX_SCHED_MIX_SCORE): Decrease.
5827 (MAX_SCHED_MIX_DISTANCE): Decrease.
5828 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
5829 (struct s390_sched_state): New struct to hold scheduling state.
5830 (S390_SCHED_STATE_NORMAL): Remove.
5831 (S390_SCHED_STATE_CRACKED): Remove.
5832 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
5833 (s390_get_sched_attrmask): Use new attribute.
5834 (s390_get_unit_mask): Use new units.
5835 (s390_is_fpd): New function.
5836 (s390_is_fxd): New function.
5837 (s390_is_longrunning): New function.
5838 (s390_sched_score): Use new functions.
5839 (s390_sched_reorder): Likewise.
5840 (s390_sched_variable_issue): Rework and use new functions.
5841 (s390_sched_init): Use new functions.
5842 * config/s390/s390.h (s390_tune_attr): Add z14.
5843 * config/s390/s390.md: Add z14.
5844
5845 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5846
5847 * config/s390/2964.md: Update pipeline description.
5848 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5849 (LONGRUNNING_THRESHOLD): Remove.
5850 (LATENCY_FACTOR): Remove.
5851 (s390_get_unit_mask): Add unit.
5852 (s390_sched_score): Use fxd/fpd.
5853 (s390_sched_variable_issue): Use fxd/fpd.
5854
5855 2019-03-12 Martin Liska <mliska@suse.cz>
5856
5857 * config/i386/i386.c: Reword an error message.
5858
5859 2019-03-12 Martin Jambor <mjambor@suse.cz>
5860
5861 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
5862 terminate with newline.
5863
5864 2019-03-12 Jakub Jelinek <jakub@redhat.com>
5865
5866 PR target/52726
5867 * config/s390/s390.md (tabort): Use %wd instead of
5868 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
5869 letters and periods.
5870 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
5871 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
5872 's with %< and %>.
5873
5874 PR middle-end/89663
5875 * builtins.c (expand_builtin_int_roundingfn,
5876 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
5877 gcc_unreachable if validate_arglist fails.
5878
5879 2019-03-12 Richard Biener <rguenther@suse.de>
5880
5881 PR tree-optimization/89664
5882 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
5883 free the occurance tree after the early out.
5884
5885 2019-03-11 Jakub Jelinek <jakub@redhat.com>
5886
5887 PR middle-end/89655
5888 PR bootstrap/89656
5889 * vr-values.c (vr_values::update_value_range): If
5890 old_vr->varying_p (), don't update it, make new_vr also VARYING
5891 and return false.
5892
5893 2019-03-11 Martin Liska <mliska@suse.cz>
5894
5895 * config/aarch64/aarch64.c (aarch64_override_options_internal):
5896 Fix double string quoting.
5897
5898 2019-03-11 Martin Liska <mliska@suse.cz>
5899
5900 * collect-utils.c (collect_wait): Wrap apostrophes
5901 in gcc internal format with %'.
5902 * collect2.c (main): Likewise.
5903 (scan_prog_file): Likewise.
5904 (scan_libraries): Likewise.
5905 * config/i386/i386.c (ix86_expand_call): Likewise.
5906 (ix86_handle_interrupt_attribute): Likewise.
5907 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
5908 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
5909 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
5910 * lto-wrapper.c (find_crtoffloadtable): Likewise.
5911 * symtab.c (symtab_node::verify_base): Likewise.
5912 * tree-cfg.c (verify_gimple_label): Likewise.
5913 * tree.c (verify_type_variant): Likewise.
5914
5915 2019-03-11 Martin Liska <mliska@suse.cz>
5916
5917 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
5918 in a string format message and fix GNU coding style.
5919 (expand_builtin_set_thread_pointer): Likewise.
5920 * common/config/aarch64/aarch64-common.c
5921 (aarch64_rewrite_selected_cpu): Likewise.
5922 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
5923 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
5924 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
5925 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
5926 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
5927 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
5928 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
5929 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
5930 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
5931 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
5932 Likewise.
5933 * common/config/riscv/riscv-common.c
5934 (riscv_subset_list::parsing_subset_version): Likewise.
5935 (riscv_subset_list::parse_std_ext): Likewise.
5936 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
5937 (riscv_subset_list::parse): Likewise.
5938 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
5939 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
5940 (aarch64_override_options_internal): Likewise.
5941 (aarch64_validate_mcpu): Likewise.
5942 (aarch64_validate_march): Likewise.
5943 (aarch64_validate_mtune): Likewise.
5944 (aarch64_override_options): Likewise.
5945 * config/alpha/alpha.c (alpha_option_override): Likewise.
5946 * config/arc/arc.c (arc_init): Likewise.
5947 (parse_mrgf_banked_regs_option): Likewise.
5948 (arc_override_options): Likewise.
5949 (arc_expand_builtin_aligned): Likewise.
5950 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
5951 (arm_expand_builtin): Likewise.
5952 * config/arm/arm.c (arm_option_check_internal): Likewise.
5953 (arm_configure_build_target): Likewise.
5954 (arm_option_override): Likewise.
5955 (arm_options_perform_arch_sanity_checks): Likewise.
5956 (arm_handle_cmse_nonsecure_entry): Likewise.
5957 (arm_handle_cmse_nonsecure_call): Likewise.
5958 (arm_tls_referenced_p): Likewise.
5959 (thumb1_expand_prologue): Likewise.
5960 * config/avr/avr.c (avr_option_override): Likewise.
5961 * config/bfin/bfin.c (bfin_option_override): Likewise.
5962 * config/c6x/c6x.c (c6x_option_override): Likewise.
5963 * config/cr16/cr16.c (cr16_override_options): Likewise.
5964 * config/cris/cris.c (cris_option_override): Likewise.
5965 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
5966 * config/darwin-c.c (macosx_version_as_macro): Likewise.
5967 * config/darwin.c (darwin_override_options): Likewise.
5968 * config/frv/frv.c (frv_expand_builtin): Likewise.
5969 * config/h8300/h8300.c (h8300_option_override): Likewise.
5970 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
5971 (ix86_option_override_internal): Likewise.
5972 (warn_once_call_ms2sysv_xlogues): Likewise.
5973 (ix86_expand_prologue): Likewise.
5974 (split_stack_prologue_scratch_regno): Likewise.
5975 (ix86_warn_parameter_passing_abi): Likewise.
5976 * config/ia64/ia64.c (fix_range): Likewise.
5977 * config/m68k/m68k.c (m68k_option_override): Likewise.
5978 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
5979 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
5980 (mips_set_compression_mode): Likewise.
5981 * config/mmix/mmix.c (mmix_option_override): Likewise.
5982 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
5983 * config/msp430/msp430.c (msp430_option_override): Likewise.
5984 * config/nds32/nds32.c (nds32_option_override): Likewise.
5985 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
5986 (nios2_option_override): Likewise.
5987 (nios2_expand_custom_builtin): Likewise.
5988 * config/nvptx/mkoffload.c (main): Likewise.
5989 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
5990 * config/pa/pa.c (fix_range): Likewise.
5991 (pa_option_override): Likewise.
5992 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
5993 (riscv_option_override): Likewise.
5994 * config/rl78/rl78.c (rl78_option_override): Likewise.
5995 * config/rs6000/aix61.h: Likewise.
5996 * config/rs6000/aix71.h: Likewise.
5997 * config/rs6000/aix72.h: Likewise.
5998 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
5999 * config/rs6000/freebsd64.h: Likewise.
6000 * config/rs6000/linux64.h: Likewise.
6001 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
6002 (rs6000_expand_zeroop_builtin): Likewise.
6003 (rs6000_expand_mtfsb_builtin): Likewise.
6004 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
6005 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
6006 (rs6000_invalid_builtin): Likewise.
6007 (rs6000_expand_split_stack_prologue): Likewise.
6008 * config/rs6000/rtems.h: Likewise.
6009 * config/rx/rx.c (valid_psw_flag): Likewise.
6010 (rx_expand_builtin): Likewise.
6011 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
6012 * config/s390/s390.c (s390_expand_builtin): Likewise.
6013 (s390_function_profiler): Likewise.
6014 (s390_option_override_internal): Likewise.
6015 (s390_option_override): Likewise.
6016 * config/sh/sh.c (sh_option_override): Likewise.
6017 (sh_builtin_saveregs): Likewise.
6018 (sh_fix_range): Likewise.
6019 * config/sh/vxworks.h: Likewise.
6020 * config/sparc/sparc.c (sparc_option_override): Likewise.
6021 * config/spu/spu.c (spu_option_override): Likewise.
6022 (fix_range): Likewise.
6023 * config/visium/visium.c (visium_option_override): Likewise.
6024 (visium_handle_interrupt_attr): Likewise.
6025 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
6026 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
6027 (dbg_cnt_process_opt): Likewise.
6028 * dwarf2out.c (output_dwarf_version): Likewise.
6029 * except.c (expand_eh_return): Likewise.
6030 * gcc.c (defined): Likewise.
6031 (driver_handle_option): Likewise.
6032 (process_command): Likewise.
6033 (compare_files): Likewise.
6034 (driver::prepare_infiles): Likewise.
6035 (driver::do_spec_on_infiles): Likewise.
6036 (driver::maybe_run_linker): Likewise.
6037 * omp-offload.c (oacc_parse_default_dims): Likewise.
6038 * opts-global.c (handle_common_deferred_options): Likewise.
6039 * opts.c (parse_sanitizer_options): Likewise.
6040 (common_handle_option): Likewise.
6041 (enable_warning_as_error): Likewise.
6042 * passes.c (enable_disable_pass): Likewise.
6043 * plugin.c (parse_plugin_arg_opt): Likewise.
6044 (default_plugin_dir_name): Likewise.
6045 * targhooks.c (default_expand_builtin_saveregs): Likewise.
6046 (default_pch_valid_p): Likewise.
6047 * toplev.c (init_asm_output): Likewise.
6048 (process_options): Likewise.
6049 (toplev::run_self_tests): Likewise.
6050 * tree-cfg.c (verify_gimple_call): Likewise.
6051 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
6052 (tree_inlinable_function_p): Likewise.
6053 * var-tracking.c (vt_find_locations): Likewise.
6054
6055 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
6056
6057 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
6058 only on the else branch.
6059
6060 2019-03-11 Martin Liska <mliska@suse.cz>
6061
6062 * gcov.c (output_intermediate_json_line): Print function
6063 name of each line.
6064 (output_json_intermediate_file): Add new argument.
6065 * doc/gcov.texi: Document the change.
6066
6067 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
6068
6069 PR rtl-optimization/89588
6070 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
6071 explicit unrolling factor more robust.
6072
6073 2019-03-11 Richard Biener <rguenther@suse.de>
6074
6075 PR tree-optimization/89649
6076 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
6077 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
6078 on the prolog and epilog loops.
6079 (vect_loop_versioning): Return copy of loop.
6080 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
6081 on the non-vectorized version of the loop.
6082
6083 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
6084
6085 PR target/68924
6086 * config/i386/sse.md (*vec_extractv2di_0_sse):
6087 Add (=r,x) alternative and corresponding splitter.
6088
6089 2019-03-10 Martin Jambor <mjambor@suse.cz>
6090
6091 PR tree-optimization/85762
6092 PR tree-optimization/87008
6093 PR tree-optimization/85459
6094 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
6095 it points to if there is a type changing MEM_REF. Adjust all callers.
6096 (build_accesses_from_assign): Disable total scalarization if
6097 contains_vce_or_bfcref_p returns true through the new parameter, for
6098 both rhs and lhs.
6099
6100 2019-03-09 Jakub Jelinek <jakub@redhat.com>
6101
6102 PR c/88568
6103 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
6104 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
6105
6106 PR target/79645
6107 * common.opt (fdiagnostics-show-labels,
6108 fdiagnostics-show-line-numbers, fdiagnostics-format=,
6109 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
6110 gas-locview-support, ginline-points, ginternal-reset-location-views):
6111 Terminate description text with a dot.
6112 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
6113 * config/mcore/mcore.opt (m210, m340): Likewise.
6114 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
6115 mnops=): Start description text with a capital letter.
6116 * config/arc/arc.opt (msize-level=): Likewise.
6117 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
6118 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
6119 mnewlib): Likewise.
6120 * config/ft32/ft32.opt (msim): Likewise.
6121 (mft32b, mcompress): Likewise. Terminate description text with a dot.
6122 (mnodiv, mnopm): Terminate description text with a dot.
6123 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
6124 a colon.
6125 * config/i386/i386.opt (prefer_vector_width, instrument_return):
6126 Likewise.
6127 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
6128 text.
6129
6130 PR rtl-optimization/89634
6131 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
6132 are modified in BB_END (e->src) instruction.
6133
6134 2019-03-08 David Malcolm <dmalcolm@redhat.com>
6135
6136 PR target/79926
6137 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
6138 messages more amenable to translation, and improve wording.
6139
6140 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
6141
6142 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
6143 ud- and du-chains between phases.
6144
6145 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
6146
6147 PR debug/89631
6148 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
6149 instead of POLY_INT_CST.
6150
6151 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
6152
6153 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
6154 requirement.
6155
6156 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
6157
6158 PR target/68924
6159 PR target/78782
6160 PR target/87558
6161 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
6162 (_mm_storeu_si64): Ditto.
6163
6164 2019-03-08 Martin Liska <mliska@suse.cz>
6165
6166 PR target/86952
6167 * config/i386/i386.c (ix86_option_override_internal): Disable
6168 jump tables when retpolines are used.
6169
6170 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
6171
6172 PR go/63560
6173 * ipa-split.c (execute_split_functions): Do not split
6174 'noinline' or 'section' function.
6175
6176 2019-03-08 Jakub Jelinek <jakub@redhat.com>
6177
6178 PR target/79846
6179 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
6180 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
6181 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
6182
6183 PR ipa/80000
6184 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
6185 from diagnostics. Formatting fixes.
6186
6187 PR target/85665
6188 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
6189 warn_odr diagnostics.
6190
6191 PR other/80058
6192 * lra-constraints.c (process_alt_operands): Avoid one space before
6193 " at the end of line and another after " on another line in a string
6194 literal.
6195 * attribs.c (handle_dll_attribute): Likewise.
6196 * config/avr/avr-devices.c (avr_texinfo): Likewise.
6197
6198 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
6199 warning_at or inform messages in G_() if there is no ?:.
6200
6201 PR tree-optimization/89550
6202 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
6203 returned true. Formatting fixes.
6204 (expand_builtin_strnlen): Formatting fixes.
6205 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
6206 if warning_at returned true.
6207 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
6208
6209 2019-03-08 Richard Biener <rguenther@suse.de>
6210
6211 PR middle-end/89578
6212 * cfgloop.h (struct loop): Add owned_clique field.
6213 * cfgloopmanip.c (copy_loop_info): Copy it.
6214 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
6215 cliques.
6216 * tree-inline.c (copy_loops): Remap owned_clique.
6217 * lto-streamer-in.c (input_cfg): Stream owned_clique.
6218 * lto-streamer-out.c (output_cfg): Likewise.
6219
6220 2019-03-08 Jakub Jelinek <jakub@redhat.com>
6221
6222 PR target/80190
6223 * config/darwin.c: Include intl.h.
6224 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
6225 composing the message out of two separate parts.
6226
6227 2019-03-07 Jakub Jelinek <jakub@redhat.com>
6228
6229 PR target/80003
6230 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
6231 doesn't start with a capital letter and doesn't end with a dot.
6232 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
6233 with a capital letter.
6234 (ix86_mangle_function_version_assembler_name): Likewise.
6235 (ix86_generate_version_dispatcher_body): Likewise.
6236 (fold_builtin_cpu): Likewise.
6237 (get_builtin_code_for_version): Likewise. Remove extraneous space.
6238 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
6239 translators, wrap full type name in %qs.
6240
6241 PR translation/79999
6242 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
6243 depend clause with source (or sink) modifier.
6244 * omp-expand.c (expand_omp_ordered_sink): Likewise.
6245
6246 PR target/89602
6247 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
6248 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
6249 (avx512f_load<mode>_mask): New define_expand.
6250 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
6251 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
6252 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
6253 __builtin_ia32_movess_mask): New builtins.
6254 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
6255 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
6256 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
6257 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
6258
6259 2019-03-07 Martin Jambor <mjambor@suse.cz>
6260
6261 PR lto/87525
6262 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
6263 for extern inline functions.
6264
6265 2019-03-07 Martin Jambor <mjambor@suse.cz>
6266
6267 PR ipa/88235
6268 * cgraph.h (cgraph_node): New inline method former_thunk_p.
6269 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
6270 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
6271 have multiple callees. At the end check if declarations match as
6272 opposed to cgraph_nodes.
6273
6274 2019-03-07 Martin Liska <mliska@suse.cz>
6275
6276 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
6277 which is equivalent to searching for this in clones chain.
6278 * symtab.c (symtab_node::verify_base): Similarly compare ASM
6279 names with a neighbour and special case first node in a chain.
6280
6281 2019-01-25 Jason Merrill <jason@redhat.com>
6282
6283 PR c++/80916 - spurious "static but not defined" warning.
6284 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
6285 for an internal symbol with DECL_EXTERNAL.
6286
6287 2019-04-07 Richard Biener <rguenther@suse.de>
6288
6289 PR middle-end/89618
6290 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
6291 * tree-inline.c (copy_loops): Simplify.
6292
6293 2019-03-07 Martin Liska <mliska@suse.cz>
6294
6295 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
6296
6297 2019-03-07 Richard Biener <rguenther@suse.de>
6298
6299 PR tree-optimization/89595
6300 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
6301 stmt iterator as reference, take boolean output parameter to
6302 indicate whether the stmt was removed and thus the iterator
6303 already advanced.
6304 (dom_opt_dom_walker::before_dom_children): Re-iterate over
6305 stmts created by folding.
6306
6307 2019-03-07 Jakub Jelinek <jakub@redhat.com>
6308
6309 PR c++/89585
6310 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
6311 at toplevel.
6312
6313 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
6314
6315 PR rtl-optimization/88845
6316 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
6317 LRA.
6318 * lra.c (remove_scratches_1): New function.
6319 (remove_scratches): Use it.
6320 (lra_emit_move): Likewise.
6321
6322 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
6323
6324 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
6325 unaligned_access variable.
6326 * config/arc/arc.c (arc_override_options): Set unaligned access
6327 default on for HS CPUs.
6328 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
6329
6330 2019-03-06 Martin Liska <mliska@suse.cz>
6331
6332 PR gcov-profile/89577
6333 * doc/gcov.texi: Prefer to use --coverage.
6334 * doc/sourcebuild.texi: Likewise.
6335
6336 2019-03-02 Jason Merrill <jason@redhat.com>
6337
6338 PR c++/86485 - -Wmaybe-unused with empty class ?:
6339 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
6340
6341 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6342
6343 PR target/89587
6344 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
6345 if_multiarch.
6346
6347 PR middle-end/89590
6348 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
6349 exactly one argument.
6350
6351 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6352 Richard Sandiford <richard.sandiford@arm.com>
6353
6354 PR tree-optimization/89570
6355 * match.pd (vec_cond into cond_op simplification): Don't use
6356 get_conditional_internal_fn, use as_internal_fn (cond_op).
6357
6358 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
6359
6360 PR target/89222
6361 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
6362 to decide when to split off a non-zero offset from a symbol.
6363 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
6364 in function symbols.
6365
6366 2019-03-05 Richard Biener <rguenther@suse.de>
6367
6368 PR tree-optimization/89594
6369 * tree-if-conv.c (pass_if_conversion::execute): Handle
6370 case where .LOOP_VECTORIZED_FUNCTION was removed.
6371
6372 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6373
6374 PR bootstrap/89560
6375 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
6376 instead alloca it only when needed with the needed size.
6377
6378 PR tree-optimization/89570
6379 * match.pd (vec_cond into cond_op simplification): Guard with
6380 vectorized_internal_fn_supported_p test and #if GIMPLE.
6381
6382 PR tree-optimization/89566
6383 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
6384 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
6385 Punt if get_user_idx_format succeeds, but idx_format argument is
6386 not provided or doesn't have pointer type, or if idx_args is above
6387 number of provided arguments.
6388
6389 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
6390
6391 PR tree-optimization/89437
6392 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
6393
6394 2019-03-04 Richard Biener <rguenther@suse.de>
6395
6396 PR middle-end/89572
6397 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
6398 safe_dyn_cast.
6399
6400 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
6401
6402 PR tree-optimization/89487
6403 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
6404 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
6405 (distribute_loop): Don't do runtime alias check if there is non-
6406 addressable data reference.
6407 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
6408 is a register variable.
6409
6410 2019-03-02 Jakub Jelinek <jakub@redhat.com>
6411
6412 PR target/89506
6413 * config/arm/arm.md (cmpsi2_addneg): Use
6414 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
6415 If operands[2] is 0 or INT_MIN, force use of subs.
6416 (*compare_scc splitter): Use gen_int_mode.
6417 (*negscc): Likewise.
6418 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
6419
6420 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
6421 Monk Chiang <sh.chiang04@gmail.com>
6422
6423 * common/config/riscv/riscv-common.c: Include sstream.
6424 (riscv_subset_list::to_string): New.
6425 (riscv_arch_str): Likewise.
6426 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
6427 * config.in: Regen.
6428 * config/riscv/riscv-protos.h (riscv_arch_str): New.
6429 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
6430 (riscv_emit_attribute): New.
6431 (riscv_file_start): Emit attribute if needed.
6432 (riscv_option_override): Init riscv_emit_attribute_p.
6433 * config/riscv/riscv.opt (mriscv-attribute): New option.
6434 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
6435 * configure: Regen.
6436 * doc/install.texi: Document --with-riscv-attribute.
6437 * doc/invoke.texi: Document -mriscv-attribute.
6438
6439 * common/config/riscv/riscv-common.c:
6440 Include config/riscv/riscv-protos.h.
6441 (INCLUDE_STRING): Defined.
6442 (RISCV_DONT_CARE_VERSION): Defined.
6443 (riscv_subset_t): Declare.
6444 (riscv_subset_t::riscv_subset_t): New.
6445 (riscv_subset_list): Declare.
6446 (riscv_subset_list::riscv_subset_list): New.
6447 (riscv_subset_list::~riscv_subset_list): Likewise.
6448 (riscv_subset_list::parsing_subset_version): Likewise.
6449 (riscv_subset_list::parse_std_ext): Likewise.
6450 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
6451 (riscv_subset_list::add): Likewise.
6452 (riscv_subset_list::lookup): Likewise.
6453 (riscv_subset_list::xlen): Likewise.
6454 (riscv_subset_list::parse): Likewise.
6455 (riscv_supported_std_ext): Likewise.
6456 (current_subset_list): Likewise.
6457 (riscv_parse_arch_string): Using riscv_subset_list::parse to
6458 parse.
6459
6460 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
6461
6462 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
6463 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
6464 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
6465
6466 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
6467
6468 PR rtl-optimization/85899
6469 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
6470 fallthru edges leading to the exit block.
6471
6472 2019-03-01 Tamar Christina <tamar.christina@arm.com>
6473
6474 PR target/89517
6475 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
6476 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
6477
6478 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
6479
6480 PR tree-optimization/89535
6481 * tree-vect-stmts.c (vectorizable_call): Record the vector types
6482 for each operand. Calculate the fallback choice for mask operands
6483 and pass it to vect_get_vec_def_for_operand.
6484
6485 2019-03-01 Richard Biener <rguenther@suse.de>
6486
6487 PR middle-end/89541
6488 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
6489 get virtual operands.
6490 (get_expr_operands): Handle CONST_DECL like other decls.
6491
6492 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6493
6494 PR middle-end/89503
6495 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
6496 on DECL_P and EXPR_P.
6497
6498 2019-03-01 Richard Biener <rguenther@suse.de>
6499
6500 PR middle-end/89497
6501 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
6502 argument, defaulted to zero.
6503 * passes.c (execute_function_todo): Pass down SSA update flags
6504 to cleanup_tree_cfg.
6505 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
6506 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
6507 form if requested.
6508 (cleanup_tree_cfg): Get and pass down SSA update flags.
6509
6510 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6511
6512 PR bootstrap/89539
6513 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
6514 early_lto_debug argument.
6515
6516 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
6517
6518 PR tree-optimization/89536
6519 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
6520 only whether bit #0 of the value is 0 instead of the entire value.
6521
6522 2019-02-28 Marek Polacek <polacek@redhat.com>
6523
6524 PR c++/87068 - missing diagnostic with fallthrough statement.
6525 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
6526 at the end of a seq, save its location to walk_stmt_info.
6527 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
6528 a switch.
6529
6530 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
6531
6532 PR lto/88585
6533 * tree.c (find_atomic_core_type): Move ahead in file.
6534 (check_base_type): Correctly compare alignments of atomic types.
6535
6536 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
6537
6538 PR target/89455
6539 * config/i386/i386.c (get_builtin_code_for_version): Identify
6540 Westmere from PCLMUL, instead of AES.
6541
6542 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6543
6544 PR target/89434
6545 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
6546 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
6547 -UINTVAL (...).
6548
6549 2019-02-28 Tamar Christina <tamar.christina@arm.com>
6550
6551 PR target/88530
6552 * config/aarch64/aarch64-option-extensions.def: Document it.
6553 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
6554 if empty hwcaps.
6555
6556 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6557
6558 PR c/89520
6559 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
6560 builtins if they don't have a single scalar floating point argument.
6561 Formatting fixes.
6562
6563 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
6564
6565 PR rtl-optimization/89490
6566 * varasm.c (get_block_for_section): Bail out for mergeable sections.
6567 (default_use_anchors_for_symbol_p, output_object_block): Assert the
6568 block section is not mergeable.
6569
6570 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6571
6572 PR target/70341
6573 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
6574 old define_insn to ...
6575 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
6576 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
6577 Rename old define_insn to ...
6578 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
6579 (thumb2_casesi_internal_pic): New define_expand. Rename old
6580 define_insn to ...
6581 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
6582 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
6583 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
6584
6585 2019-02-27 Richard Biener <rguenther@suse.de>
6586
6587 PR debug/88878
6588 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
6589
6590 2019-02-27 Richard Biener <rguenther@suse.de>
6591
6592 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
6593 building.
6594
6595 2019-02-27 Richard Biener <rguenther@suse.de>
6596
6597 PR debug/88878
6598 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
6599 parameter, prefix section name with .gnu.debuglto_ if true.
6600 (dwarf2out_finish): Pass false to output_comdat_type_unit.
6601 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
6602
6603 2019-02-27 Richard Biener <rguenther@suse.de>
6604
6605 PR debug/89514
6606 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
6607 rather than on use_debug_types, doing what output_die does.
6608 (value_format): Likewise.
6609
6610 2019-02-27 Martin Jambor <mjambor@suse.cz>
6611 Martin Sebor <msebor@redhat.com>
6612
6613 * doc/invoke.texi (Warning Options): Reword description of
6614 -Wno-absolute-value.
6615
6616 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6617
6618 PR tree-optimization/89280
6619 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
6620 builtin_setjmp_setup_bb): New functions.
6621 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
6622 When visiting __builtin_setjmp_setup block, queue in special
6623 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
6624 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
6625 from visited after the loop if they don't have any visited successor
6626 blocks.
6627
6628 2018-02-26 Steve Ellcey <sellcey@marvell.com>
6629
6630 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
6631 New function.
6632 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
6633
6634 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6635
6636 PR c++/89507
6637 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
6638 with types other than sizetype/ssizetype.
6639
6640 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
6641
6642 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
6643 (enum sparc_processor_type): ...this.
6644 (enum sparc_code_model_type): New enumeration type.
6645 (enum sparc_memory_model_type): Tweak comments.
6646 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
6647 (mtune): Likewise.
6648 (mcmodel): Use sparc_code_model enumeration and variable.
6649 (sparc_code_model): New enumeration.
6650 (mdebug): Add Undocumented marker.
6651 * config/sparc/sparc.h (enum cmodel): Delete.
6652 (sparc_cmodel): Likewise.
6653 (TARGET_CM_MEDLOW): Adjust to above renaming.
6654 (TARGET_CM_MEDMID): Likewise.
6655 (TARGET_CM_MEDANY): Likewise.
6656 (TARGET_CM_EMBMEDANY): Likewise.
6657 * config/sparc/sparc.c (sparc_cmodel): Delete.
6658 (sparc_option_override): Remove string/value mapping support for the
6659 code model. Move code and memory model support to after the handling
6660 of target flags. Do private machine setup last.
6661 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
6662 (sparc_legitimize_reload_address): Likewise.
6663 (sparc_output_mi_thunk): Likewise.
6664 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
6665
6666 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6667
6668 PR tree-optimization/89500
6669 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
6670 (handle_builtin_strlen): Remove noncst_bound variable. Always
6671 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
6672 cst if the first cst bytes starting at x are known to be non-zero,
6673 even if the string is not zero terminated. Don't try to modify
6674 *si for strnlen. Update strlen_to_stridx only for strlen or if
6675 we can prove strnlen returns the same value as strlen would.
6676
6677 2019-02-26 Martin Liska <mliska@suse.cz>
6678
6679 * alloc-pool.h (struct pool_usage): Remove extra
6680 print_dash_line.
6681 * bitmap.h (struct bitmap_usage): Likewise.
6682 * ggc-common.c (struct ggc_usage): Likewise.
6683 * mem-stats.h (struct mem_usage): Likewise.
6684 (mem_alloc_description::dump): Print dash lines
6685 here and repeat header at the end of a table report.
6686 It's then more readable.
6687 * tree-phinodes.c (phinodes_print_statistics): Make
6688 horizontal alignment.
6689 * tree-ssanames.c (ssanames_print_statistics): Likewise.
6690 * vec.c (struct vec_usage): Remove extra print_dash_line.
6691 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
6692
6693 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
6694
6695 * doc/extend.texi (__builtin_object_size):
6696 Use @pxref instead of @xref inside parenthesis.
6697 (__builtin_has_attribute): Add missing comma after @xref.
6698 (__builtin_object_size): Ditto.
6699 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
6700 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
6701 in the list.
6702
6703 2019-02-26 Jeff Law <law@redhat.com>
6704
6705 PR rtl-optimization/87761
6706 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
6707 detect obviously dead insns and delete them.
6708
6709 2019-02-26 Richard Biener <rguenther@suse.de>
6710
6711 PR tree-optimization/89505
6712 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
6713 to handle restrict pointed-to vars with multiple subvars
6714 correctly.
6715
6716 2019-02-26 Richard Biener <rguenther@suse.de>
6717
6718 PR tree-optimization/89489
6719 * tree-parloops.c (create_loop_fn): Copy over last_clique.
6720
6721 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
6722
6723 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
6724 and move around comment.
6725 <BIT_AND_EXPR>: Likewise.
6726 <BIT_NOT_EXPR>: Add specific handling for boolean types.
6727
6728 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6729
6730 PR target/89474
6731 * config/i386/i386.c (remove_partial_avx_dependency): Call
6732 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
6733 after changing possibly many instructions to use that pseudo. Fix up
6734 insertion of v4sf_const0 setter at the start of bb.
6735
6736 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
6737
6738 PR c/80409
6739 * doc/extend.texi (Variadic Pointer Args): New section.
6740
6741 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
6742 Martin Sebor <msebor@gmail.com>
6743
6744 * common.opt (Wattribute-alias): Likewise.
6745 * doc/invoke.texi (Option Summary): List general form of
6746 -Wattribute-alias=. List positive form of -Wmissing-attributes.
6747 (-Wmissing-attributes): Invert entry, rewrite and correct default.
6748 Add cross-references.
6749 (-Wattribute-alias): Rewrite and correct default. Mention
6750 considered attributes (same as for -Wmissing-attributes).
6751
6752 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
6753
6754 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
6755 (_mm_cvtpd_ps): Likewise.
6756 (_mm_cvttpd_epi32): Likewise.
6757
6758 PR target/89338
6759 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
6760 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
6761
6762 PR target/89339
6763 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
6764
6765 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6766
6767 PR target/88530
6768 * common/config/aarch64/aarch64-common.c
6769 (struct aarch64_option_extension): Add is_synthetic.
6770 (all_extensions): Use it.
6771 (TARGET_OPTION_INIT_STRUCT): Define hook.
6772 (struct gcc_targetm_common): Moved to end.
6773 (all_extensions_by_on): New.
6774 (opt_ext_cmp, typedef opt_ext): New.
6775 (aarch64_option_init_struct): New.
6776 (aarch64_contains_opt): New.
6777 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
6778 * config/aarch64/aarch64-option-extensions.def
6779 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
6780 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
6781 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
6782 Set is_synthetic to false.
6783 (crypto): Set is_synthetic to true.
6784 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
6785 SYNTHETIC.
6786
6787 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6788
6789 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6790 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
6791 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6792 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
6793 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
6794 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
6795 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
6796 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
6797 Rename ...
6798 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
6799 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6800 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
6801 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
6802 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
6803 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
6804 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
6805 vfmlsl_laneq_high_f16): ... To this.
6806 * config/arm/neon.md: Update comments.
6807
6808 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6809
6810 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6811 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
6812 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6813 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
6814 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
6815 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
6816 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
6817 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
6818 Rename ...
6819 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
6820 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6821 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
6822 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
6823 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
6824 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
6825 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
6826 vfmlslq_laneq_high_f16): ... To this.
6827
6828 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
6829
6830 PR rtl-optimization/86096
6831 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
6832 comparing mw_order values.
6833
6834 2019-02-25 Jakub Jelinek <jakub@redhat.com>
6835
6836 PR target/89434
6837 * config/arm/arm.md (*subsi3_carryin_const): Use
6838 arm_neg_immediate_operand predicate instead of
6839 arm_not_immediate_operand, "L" constraint instead of "K" and
6840 print it using %n2 instead of %B2.
6841 (*subsi3_carryin_const0): New define_insn.
6842 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
6843 instead of arm_not_operand and "I" constraint instead of "K" and
6844 print it using %n3 instead of %B2. Instead of using match_dup 2 add
6845 another match_operand and in the condition check that it is negation
6846 of operands[2].
6847 (*subsi3_carryin_compare_const0): New define_ins.
6848 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
6849 *subsi3_carryin_const.
6850 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
6851 split into *subsi3_carryin_compare_const0 if the highpart is zero.
6852
6853 PR target/89438
6854 * config/arm.vfp.md (*negdf2_vfp): Use
6855 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
6856 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
6857
6858 2019-02-24 Jakub Jelinek <jakub@redhat.com>
6859
6860 PR rtl-optimization/89445
6861 * simplify-rtx.c (simplify_ternary_operation): Don't use
6862 simplify_merge_mask on operands that may trap.
6863 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
6864 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
6865 second operand is CONST_VECTOR, check if any element could be zero.
6866 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
6867 their operands can trap.
6868
6869 2019-02-23 Martin Sebor <msebor@redhat.com>
6870
6871 * gimple-ssa-sprintf.c (target_strtol): Rename...
6872 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
6873 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
6874 check for range error.
6875
6876 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
6877
6878 PR driver/69471
6879 * opts-common.c (prune_options): Also prune joined switches
6880 with Negative and RejectNegative.
6881 * config/i386/i386.opt (march=): Add Negative(march=).
6882 (mtune=): Add Negative(mtune=).
6883 * doc/options.texi: Document Negative used together with Joined
6884 and RejectNegative.
6885
6886 2019-02-22 Martin Sebor <msebor@redhat.com>
6887
6888 * doc/extend.texi (Other Builtins): Add
6889 __builtin_is_constant_evaluated.
6890
6891 2019-02-22 Richard Biener <rguenther@suse.de>
6892
6893 PR tree-optimization/87609
6894 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
6895
6896 2019-02-22 Jeff Law <law@redhat.com>
6897
6898 PR rtl-optimization/87761
6899 * config/mips/mips.md: Add new combiner pattern to recognize
6900 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
6901
6902 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
6903
6904 PR target/89324
6905 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
6906 destination register in peepholes generating patterns for ADDS/SUBS.
6907 (add<mode>3_compare0,
6908 *addsi3_compare0_uxtw, add<mode>3_compareC,
6909 add<mode>3_compareV_imm, add<mode>3_compareV,
6910 *adds_<optab><ALLX:mode>_<GPI:mode>,
6911 *subs_<optab><ALLX:mode>_<GPI:mode>,
6912 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
6913 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
6914 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
6915 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
6916 sub<mode>3_compare1): Allow stack pointer for source register.
6917 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
6918
6919 2019-02-22 Martin Sebor <msebor@redhat.com>
6920
6921 PR tree-optimization/88993
6922 PR tree-optimization/88853
6923 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
6924 New helper.
6925 (sprintf_dom_walker::call_info::is_string_func): New helper.
6926 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
6927 for formatted string functions.
6928 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
6929
6930 2019-02-22 Martin Sebor <msebor@redhat.com>
6931
6932 PR c/89425
6933 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
6934 unreachable subexpressions.
6935
6936 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
6937 Hongtao Liu <hongtao.liu@intel.com>
6938 Sunil K Pandey <sunil.k.pandey@intel.com>
6939
6940 PR target/87007
6941 * config/i386/i386-passes.def: Add
6942 pass_remove_partial_avx_dependency.
6943 * config/i386/i386-protos.h
6944 (make_pass_remove_partial_avx_dependency): New.
6945 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
6946 New function.
6947 (pass_data_remove_partial_avx_dependency): New.
6948 (pass_remove_partial_avx_dependency): Likewise.
6949 (make_pass_remove_partial_avx_dependency): Likewise.
6950 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
6951 (*extendsfdf2): Add avx_partial_xmm_update.
6952 (truncdfsf2): Likewise.
6953 (*float<SWI48:mode><MODEF:mode>2): Likewise.
6954 (SF/DF conversion splitters): Disabled for TARGET_AVX.
6955
6956 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
6957
6958 PR middle-end/85598
6959 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
6960 analysis for pass.
6961
6962 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
6963
6964 PR target/89444
6965 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
6966 (PTA_SKYLAKE): Add PTA_AES.
6967 (PTA_GOLDMONT): Likewise.
6968
6969 2019-02-22 Sudakshina Das <sudi.das@arm.com>
6970
6971 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
6972 instruction if enabled.
6973 (aarch64_override_options): Remove reference to return address key.
6974
6975 2019-02-22 Richard Biener <rguenther@suse.de>
6976
6977 PR tree-optimization/89440
6978 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
6979 not necessary assert.
6980
6981 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
6982
6983 PR fortran/72741
6984 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
6985 (oacc_replace_fn_attrib_attr): ... this new function.
6986 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
6987 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
6988
6989 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6990
6991 * config/arm/arm-cpus.in (ares): Rename to...
6992 (neoverse-n1): ... This. Add ares as alias.
6993 * config/arm/arm-tables.opt: Regenerate.
6994 * config/arm/arm-tune.md: Likewise.
6995 * doc/invoke.txt (ARM Options): Document neoverse-n1.
6996
6997 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6998
6999 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
7000 * config/aarch64/aarch64-tune.md: Regenerate.
7001 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
7002
7003 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7004
7005 * config/aarch64/aarch64.c (ares_tunings): Rename to...
7006 (neoversen1_tunings): ... This.
7007 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
7008 (neoverse-n1): New CPU.
7009 * config/aarch64/aarch64-tune.md: Regenerate.
7010 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
7011
7012 2019-02-22 Richard Biener <rguenther@suse.de>
7013
7014 PR middle-end/87609
7015 * cfghooks.h (dependence_hash): New typedef.
7016 (struct copy_bb_data): New type.
7017 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
7018 (duplicate_block): Likewise.
7019 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
7020 (copy_bbs): Create and pass down copy_bb_data.
7021 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
7022 (rtl_duplicate_bb): Likewise.
7023 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
7024 remap dependence info.
7025
7026 2019-02-22 Richard Biener <rguenther@suse.de>
7027
7028 PR tree-optimization/87609
7029 * tree-core.h (tree_base): Document special clique values.
7030 * tree-inline.c (remap_dependence_clique): Do not use the
7031 special clique value of one.
7032 (maybe_set_dependence_info): Use clique one.
7033 (clear_dependence_clique): New callback.
7034 (compute_dependence_clique): Clear clique one from all refs
7035 before assigning it (again).
7036
7037 2019-02-21 Martin Sebor <msebor@redhat.com>
7038
7039 * doc/extend.texi (__clear_cache): Correct signature.
7040
7041 2019-02-21 Ian Lance Taylor <iant@golang.org>
7042
7043 PR go/89170
7044 * varasm.c (decode_addr_const): Call lookup_constant_def rather
7045 than output_constant_def.
7046 (add_constant_to_table): New static function.
7047 (output_constant_def): Call add_constant_to_table.
7048 (tree_output_constant_def): Likewise.
7049
7050 2019-02-21 Jakub Jelinek <jakub@redhat.com>
7051
7052 PR c++/89285
7053 * builtins.c (fold_builtin_arith_overflow): If first two args are
7054 INTEGER_CSTs, set intres and ovfres to constants rather than calls
7055 to ifn.
7056
7057 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
7058
7059 PR target/87412
7060 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
7061 error for -mindirect-branch/-mfunction-return with incompatible
7062 -fcf-protection.
7063
7064 2019-02-21 Jakub Jelinek <jakub@redhat.com>
7065
7066 PR bootstrap/88714
7067 * constraints.md (q): Remove.
7068 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
7069 instead of q.
7070
7071 2019-02-21 Martin Jambor <mjambor@suse.cz>
7072
7073 PR hsa/89302
7074 * omp-general.c (omp_extract_for_data): Removed a duplicate call
7075 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
7076 (omp_adjust_for_condition): ...here. Added necessary parameters.
7077 * omp-general.h (omp_adjust_for_condition): Updated declaration.
7078 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
7079 proper values to new parameters of omp_adjust_for_condition.
7080
7081 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7082
7083 PR middle-end/89412
7084 * expr.c (expand_assignment): If result is a MEM, use change_address
7085 instead of simplify_gen_subreg.
7086
7087 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7088 David Malcolm <dmalcolm@redhat.com>
7089
7090 PR middle-end/89091
7091 * fold-const.c (decode_field_reference): Return NULL_TREE if
7092 lang_hooks.types.type_for_size returns NULL. Check it before
7093 overwriting *exp_. Use return NULL_TREE instead of return 0.
7094
7095 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7096
7097 PR middle-end/88074
7098 PR middle-end/89415
7099 * toplev.c (do_compile): Double the emin/emax exponents to workaround
7100 buggy mpc_norm.
7101
7102 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
7103
7104 PR target/89397
7105 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
7106 TARGET_SSE in addition to TARGET_SSE_MATH.
7107
7108 (ix86_excess_precision): Ditto.
7109 (ix86_float_exceptions_rounding_supported_p): Ditto.
7110 (use_rsqrt_p): Ditto.
7111 * config/i386/sse.md (rsqrt<mode>2): Ditto.
7112
7113 2019-02-20 David Malcolm <dmalcolm@redhat.com>
7114
7115 PR c/89410
7116 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
7117 linenum_arith_t when determining if two adjacent line spans are
7118 close enough to merge.
7119 (diagnostic_show_locus): Use linenum_arith_t when iterating over
7120 lines within each line_span.
7121
7122 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
7123
7124 PR target/86487
7125 * lra-constraints.c(uses_hard_regs_p): Fix handling of
7126 paradoxical SUBREGS.
7127
7128 2019-02-20 Li Jia He <helijia@linux.ibm.com>
7129
7130 PR target/88100
7131 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
7132 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
7133 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
7134 range checking it.
7135
7136 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
7137
7138 * config/gcn/gcn.c (print_operand): Fix typo.
7139
7140 2019-02-19 Richard Biener <rguenther@suse.de>
7141
7142 PR middle-end/88074
7143 * toplev.c (do_compile): Initialize mpfr's exponent range
7144 based on available float modes.
7145
7146 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
7147
7148 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
7149 as long as the epilogue isn't completed.
7150
7151 2019-02-18 Martin Sebor <msebor@redhat.com>
7152
7153 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
7154 __has_cpp_attribute, and __has_include.
7155
7156 2019-02-18 Martin Sebor <msebor@redhat.com>
7157
7158 * doc/invoke.texi (-Wreturn-type): Correct and expand.
7159
7160 2019-02-18 Martin Sebor <msebor@redhat.com>
7161
7162 PR middle-end/89294
7163 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
7164 expression.
7165 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
7166
7167 2019-02-18 Richard Biener <rguenther@suse.de>
7168
7169 PR tree-optimization/89296
7170 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
7171 of no-warning flag to cases that might emit the bogus warning.
7172
7173 2019-02-18 Jakub Jelinek <jakub@redhat.com>
7174
7175 PR bootstrap/88714
7176 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
7177 "q" constraint.
7178 * config/arm/vfp.md (*movdi_vfp): Likewise.
7179 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
7180 "q" constraint for operands[0].
7181
7182 PR target/89369
7183 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
7184 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
7185 pattern in a temporary buffer.
7186 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
7187 than 64-operands[2].
7188
7189 PR target/89361
7190 * config/s390/s390.c (s390_indirect_branch_attrvalue,
7191 s390_indirect_branch_settings): Define unconditionally.
7192 (s390_set_current_function): Likewise, but guard the whole body except
7193 the s390_indirect_branch_settings call with
7194 #if S390_USE_TARGET_ATTRIBUTE.
7195 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
7196
7197 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
7198 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
7199 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
7200 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
7201 HOST_WIDE_INT_1U instead of 1ULL.
7202 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
7203 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
7204 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
7205 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
7206 instead of 1UL.
7207 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
7208 instead of 1ul.
7209
7210 2019-02-18 Martin Jambor <mjambor@suse.cz>
7211
7212 PR tree-optimization/89209
7213 * tree-sra.c (create_access_replacement): New optional parameter
7214 reg_tree. Use it as a type if non-NULL and access type is not of
7215 a register type.
7216 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
7217 to create_access_replacement.
7218 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
7219 Check lacc is non-NULL before attempting to re-create it on the RHS.
7220
7221 2019-02-18 Martin Liska <mliska@suse.cz>
7222
7223 PR ipa/89306
7224 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
7225 by default.
7226 (symbol_table::free_edge): Recycle m_summary_id.
7227 * cgraph.h (get_summary_id): New.
7228 (symbol_table::release_symbol): Set m_summary_id to -1
7229 by default.
7230 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
7231 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
7232 function_summary to fast_function_summary.
7233 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
7234 * ipa-pure-const.c (class funct_state_summary_t):
7235 Switch from function_summary to fast_function_summary.
7236 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
7237 (class ipa_ref_opt_summary_t): Switch from function_summary
7238 to fast_function_summary.
7239 * symbol-summary.h (class function_summary_base): New class
7240 that is created from base of former function_summary.
7241 (function_summary_base::unregister_hooks): New.
7242 (class function_summary): Inherit from function_summary_base.
7243 (class call_summary_base): New class
7244 that is created from base of former call_summary.
7245 (class call_summary): Inherit from call_summary_base.
7246 (struct is_same): New.
7247 (class fast_function_summary): New summary class.
7248 (class fast_call_summary): New summary class.
7249 * vec.h (vec_safe_grow_cleared): New function.
7250
7251 2019-02-18 Martin Liska <mliska@suse.cz>
7252
7253 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
7254 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
7255 * doc/tm.texi: Document new target hook.
7256 * doc/tm.texi.in: Likewise.
7257 * target.def: Add new target macro.
7258 * gcc.c (find_fortran_preinclude_file): Do not search multilib
7259 suffixes.
7260
7261 2019-02-17 Alan Modra <amodra@gmail.com>
7262
7263 PR target/89271
7264 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
7265 output reg on add insn.
7266 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
7267
7268 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
7269
7270 PR target/89372
7271 * config/i386/sse.md (ssedoublemode): Remove V4HI.
7272 (PMULHRSW): Likewise.
7273 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
7274 TARGET_AVX2.
7275 (ssse3_pmulhrswv4hi3): New expander.
7276
7277 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
7278
7279 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
7280 MMX. Add isa attribute.
7281
7282 2019-02-16 Jakub Jelinek <jakub@redhat.com>
7283
7284 PR rtl-optimization/66152
7285 * builtins.h (c_readstr): Declare.
7286 * builtins.c (c_readstr): Remove forward declaration. Add
7287 null_terminated_p argument, if false, read all bytes from the
7288 string instead of stopping after '\0'.
7289 * expr.c (string_cst_read_str): New function.
7290 (store_expr): Use string_cst_read_str instead of
7291 builtin_strncpy_read_str. Try to store by pieces the whole
7292 exp_len first, and only if that fails, split it up into
7293 store by pieces followed by clear_storage. Formatting fix.
7294
7295 * config/i386/i386.md (*movqi_internal): Remove static from
7296 buf variable. Use output_asm_insn (buf, operands); return "";
7297 instead of return buf;.
7298 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
7299 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
7300 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
7301
7302 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7303
7304 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
7305 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
7306 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
7307 (CC1_SPEC): Likewise.
7308 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
7309
7310 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7311
7312 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
7313 the base address on 64-bit strict-alignment platforms.
7314
7315 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
7316
7317 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
7318
7319 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
7320
7321 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
7322
7323 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
7324
7325 PR rtl-optimization/88308
7326 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
7327 on copied instruction.
7328
7329 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7330
7331 * final.c (insn_current_reference_address): Replace test on JUMP_P
7332 with test on jump_to_label_p.
7333 * config/visium/visium-passes.def: New file.
7334 * config/visium/t-visium (PASSES_EXTRA): Define.
7335 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
7336 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
7337 (TRAMPOLINE_ALIGNMENT): Define.
7338 * config/visium/visium.c (visium_option_override): Do not register
7339 the machine-specific reorg pass here.
7340 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
7341 for the GR6.
7342 (output_branch): Adjust threshold for long branch instruction.
7343 * config/visium/visium.md (cpu): Move around.
7344 (length): Adjust for the GR6.
7345
7346 2019-02-15 Richard Biener <rguenther@suse.de>
7347 Jakub Jelinek <jakub@redhat.com>
7348
7349 PR tree-optimization/89278
7350 * tree-loop-distribution.c: Include tree-eh.h.
7351 (generate_memset_builtin, generate_memcpy_builtin): Call
7352 rewrite_to_non_trapping_overflow on builtin->size before passing it
7353 to force_gimple_operand_gsi.
7354
7355 2019-02-15 Jakub Jelinek <jakub@redhat.com>
7356
7357 PR other/89342
7358 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
7359 optimize_debug.
7360 * opth-gen.awk: Likewise.
7361
7362 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
7363
7364 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
7365 Enable MMX, SSE and SSE2 by default.
7366 * config/i386/i386.c (ix86_option_override_internal): Do not
7367 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
7368
7369 2019-02-14 Jakub Jelinek <jakub@redhat.com>
7370
7371 PR rtl-optimization/89354
7372 * combine.c (make_extraction): Punt if extraction_mode is narrower
7373 than len bits.
7374
7375 2019-02-14 Maya Rashish <coypu@sdf.org>
7376
7377 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
7378 * config/netbsd-d.c: New file.
7379 * config/t-netbsd: Add netbsd-d.o
7380
7381 2018-02-14 Steve Ellcey <sellcey@marvell.com>
7382
7383 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
7384 affects_type_identity to true for aarch64_vector_pcs.
7385 (aarch64_comp_type_attributes): New function.
7386 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
7387
7388 2019-02-14 Tamar Christina <tamar.christina@arm.com>
7389
7390 PR target/88850
7391 * config/arm/iterators.md (ANY64): Add V4HF.
7392
7393 2019-02-14 Martin Liska <mliska@suse.cz>
7394
7395 PR rtl-optimization/89242
7396 * dce.c (delete_unmarked_insns): Call free_dominance_info we
7397 process a transformation.
7398
7399 2019-02-14 Jakub Jelinek <jakub@redhat.com>
7400
7401 PR tree-optimization/89314
7402 * fold-const.c (fold_binary_loc): Cast strlen argument to
7403 const char * before dereferencing it. Formatting fixes.
7404
7405 PR middle-end/89284
7406 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
7407
7408 2019-02-13 Ian Lance Taylor <iant@golang.org>
7409
7410 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
7411 and set current index for other optimizations.
7412
7413 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
7414
7415 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
7416 nonimmediate_operand as operand 2 predicate.
7417 (vec_set<VF2_512_256:mode>_0): Ditto.
7418 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
7419 (*vec_concatv2si): Remove alternative 2.
7420 (*vec_concatv4si_0): Use vm constraint for alternative 0.
7421 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
7422 (vec_concatv2di): Split alternatives 4,5,6 to ...
7423 (*vec_concatv2di_0) ... new pattern.
7424
7425 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
7426
7427 PR target/89190
7428 * config/arm/arm.c (ldm_stm_operation_p) Set
7429 addr_reg_in_reglist correctly for first register.
7430 (load_multiple_sequence): Remove dead base check.
7431 (gen_ldm_seq): Correctly set write_back for Thumb-1.
7432
7433 2019-02-13 Tamar Christina <tamar.christina@arm.com>
7434
7435 PR target/88847
7436 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
7437 Expose as @aarch64_pred_mov.
7438 * config/aarch64/aarch64.c (aarch64_classify_address):
7439 Use expand_insn which legitimizes operands.
7440
7441 2019-02-13 Martin Liska <mliska@suse.cz>
7442
7443 * builtins.h (expand_builtin_with_bounds): Remove declaration.
7444 * calls.c (struct arg_data): Remove special_slot, pointer_arg
7445 and pointer_offset fields.
7446 (initialize_argument_information): Remove usage of dead
7447 fields.
7448 * cgraph.h (struct cgraph_thunk_info): Remove
7449 add_pointer_bounds_args.
7450 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
7451 fields.
7452 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
7453 fields.
7454 * config/i386/i386.c (ix86_function_arg_advance): Remove
7455 unrelated comment.
7456 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
7457 (def_builtin): Remove usage of dead
7458 fields.
7459 (ix86_add_new_builtins): Likewise.
7460 * ipa-fnsummary.c (compute_fn_summary): Likewise.
7461 * ipa-icf.c (sem_function::equals_wpa): Likewise.
7462 (sem_function::init): Likewise.
7463 (sem_variable::merge): Likewise.
7464 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7465 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7466 * lto-cgraph.c (lto_output_node): Likewise.
7467 (lto_output_varpool_node): Likewise.
7468 (input_node): Likewise.
7469 (input_varpool_node): Likewise.
7470 * lto-streamer-out.c (lto_output): Likewise.
7471 * tree-inline.c (expand_call_inline): Remove usage of
7472 assign_stmts.
7473 * tree-inline.h (struct copy_body_data): Likewise.
7474 * varpool.c (varpool_node::dump): Likewise.
7475
7476 2019-02-13 Jakub Jelinek <jakub@redhat.com>
7477
7478 PR middle-end/89303
7479 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
7480 into pt->vars_contains_escaped_heap instead of setting
7481 pt->vars_contains_escaped_heap to it.
7482
7483 PR middle-end/89281
7484 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
7485 INTVAL (size), compare it to GET_MODE_MASK instead of
7486 1 << GET_MODE_BITSIZE.
7487
7488 PR target/89290
7489 * config/i386/predicates.md (x86_64_immediate_operand): Allow
7490 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
7491 -mcmodel=large.
7492
7493 2019-02-13 Martin Liska <mliska@suse.cz>
7494
7495 PR lto/88858
7496 * cfgrtl.c (remove_barriers_from_footer): New function.
7497 (try_redirect_by_replacing_jump): Use it.
7498 (cfg_layout_redirect_edge_and_branch): Likewise.
7499
7500 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
7501
7502 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
7503 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
7504 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
7505 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
7506 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
7507 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
7508 New BU_CRYPTO_2.
7509 * config/rs6000/rs6000.c (builtin_function_type)
7510 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
7511 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
7512 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
7513 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
7514 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
7515
7516 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
7517
7518 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
7519 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
7520
7521 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
7522
7523 PR target/89229
7524 * config/i386/i386.md (*movoi_internal_avx): Revert revision
7525 268678 and revision 268657.
7526 (*movti_internal): Likewise.
7527
7528 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
7529
7530 PR target/89233
7531 * config/s390/s390.c (s390_decompose_address): Update comment.
7532 (s390_check_qrst_address): Reject invalid address forms after
7533 LRA.
7534
7535 2019-02-12 Martin Liska <mliska@suse.cz>
7536
7537 PR lto/88876
7538 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
7539 we need default values of funct_state for a function that
7540 is not optimized.
7541
7542 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
7543
7544 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
7545 the object to pick the size of stores on strict-alignment platforms.
7546
7547 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
7548 (*movdi_insn_sp32): Likewise.
7549 (*movdi_insn_sp64): Likewise.
7550
7551 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
7552
7553 PR lto/88677
7554 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
7555 types that needs constructiong.
7556 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
7557
7558 2019-02-12 Richard Biener <rguenther@suse.de>
7559
7560 PR tree-optimization/89253
7561 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
7562 duplicate the loop.
7563
7564 2019-02-11 David Malcolm <dmalcolm@redhat.com>
7565
7566 PR lto/88147
7567 * input.c (selftest::test_line_offset_overflow): New selftest.
7568 (selftest::input_c_tests): Call it.
7569
7570 2019-02-11 Martin Sebor <msebor@redhat.com>
7571
7572 PR tree-optimization/88771
7573 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
7574 when -Wstringop-overflow is set.
7575 (builtin_memref::builtin_memref): Adjust excessive upper bound
7576 only when lower bound is not excessive.
7577 (maybe_diag_overlap): Detect and diagnose excessive bounds via
7578 -Wstringop-ovefflow.
7579 (maybe_diag_offset_bounds): Rename...
7580 (maybe_diag_access_bounds): ...to this.
7581 (check_bounds_or_overlap): Adjust for name change above.
7582
7583 2019-02-11 Martin Sebor <msebor@redhat.com>
7584
7585 PR c++/87996
7586 * builtins.c (max_object_size): Move from here...
7587 * builtins.h (max_object_size): ...and here...
7588 * tree.c (max_object_size): ...to here...
7589 * tree.h (max_object_size): ...and here.
7590
7591 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
7592
7593 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
7594 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
7595 for correct semantics.
7596
7597 2019-02-11 Alan Modra <amodra@gmail.com>
7598
7599 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
7600 -mlongcall and -mpltseq.
7601 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
7602 (RS/6000 and PowerPC Options <-mpltseq>): Document.
7603 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
7604 * config/rs6000/sysv4.opt (mpltseq): New option.
7605 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
7606 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
7607 support is lacking. Don't allow -mpltseq with -mbss-plt.
7608 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
7609 -mpltseq given for ELFv1.
7610 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
7611 Only use UNSPEC_PLTSEQ for inline PLT calls.
7612 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
7613 use UNSPEC_PLTSEQ for inline PLT calls.
7614 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
7615 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
7616 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
7617 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7618 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7619 (pltseq_mtctr_<mode>): Likewise.
7620
7621 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7622
7623 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
7624 Solaris ld.
7625 * configure: Regenerate.
7626
7627 2019-02-11 Jakub Jelinek <jakub@redhat.com>
7628
7629 PR bootstrap/88714
7630 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
7631 instead of r.
7632
7633 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7634
7635 * function.c (assign_parm_setup_block): Use the stored
7636 size, not the passed size, when allocating stack-space,
7637 also for a parameter with alignment larger than
7638 MAX_SUPPORTED_STACK_ALIGNMENT.
7639
7640 2019-02-11 Martin Liska <mliska@suse.cz>
7641
7642 PR ipa/89009
7643 * ipa-cp.c (build_toporder_info): Remove usage of a param.
7644 * ipa-inline.c (inline_small_functions): Likewise.
7645 * ipa-pure-const.c (propagate_pure_const): Likewise.
7646 (propagate_nothrow): Likewise.
7647 * ipa-reference.c (propagate): Likewise.
7648 * ipa-utils.c (struct searchc_env): Remove unused field.
7649 (searchc): Always search across AVAIL_INTERPOSABLE.
7650 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
7651 the only called IPA pure const can properly not propagate
7652 across interposable boundary.
7653 * ipa-utils.h (ipa_reduced_postorder): Remove param.
7654
7655 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
7656
7657 * config/nds32/nds32.md (call_internal, call_value_internal,
7658 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
7659
7660 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7661
7662 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
7663 typo.
7664
7665 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
7666
7667 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
7668 in comments
7669
7670 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
7671
7672 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
7673
7674 2019-02-10 Jakub Jelinek <jakub@redhat.com>
7675
7676 PR tree-optimization/89268
7677 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
7678 if preds is non-NULL.
7679
7680 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7681
7682 PR lto/89272
7683 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
7684 polymorphic types.
7685
7686 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
7687
7688 * config/nds32/nds32.md (trap): New pattern.
7689
7690 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
7691
7692 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
7693 dwarf span.
7694
7695 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
7696
7697 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
7698 to split POST_INC.
7699
7700 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7701
7702 * ipa-visibility.c (localize_node): Also do not localize
7703 LDPR_PREVAILING_DEF_IRONLY_EXP.
7704
7705 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7706
7707 PR lto/87957
7708 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
7709 instead of type_with_linkage.
7710
7711 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7712
7713 PR ipa/88755
7714 * params.def (uninlined-function-insns, uninlined-function-time,
7715 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
7716 bound so we don't get overflows.
7717
7718 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
7719
7720 * config/rs6000/rs6000-string.c (expand_compare_loop,
7721 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
7722 memcmp/strncmp.
7723
7724 2019-02-09 Jakub Jelinek <jakub@redhat.com>
7725
7726 PR middle-end/89246
7727 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7728 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
7729 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
7730
7731 2019-02-09 Alan Modra <amodra@gmail.com>
7732
7733 PR target/88343
7734 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
7735 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
7736 setup.
7737
7738 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
7739
7740 PR middle-end/88560
7741 * lra-constraints.c (process_alt_operands): Don't increase reject
7742 for memory when offset memory is required.
7743
7744 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
7745
7746 * config/s390/vector.md: Implement vector copysign.
7747
7748 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
7749
7750 * expr.c (expand_constructor): Correct indentations.
7751
7752 2019-02-08 Richard Biener <rguenther@suse.de>
7753
7754 PR tree-optimization/89247
7755 * tree-if-conv.c: Include tree-cfgcleanup.h.
7756 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
7757 (tree_if_conversion): Pass through predicate vector.
7758 (pass_if_conversion::execute): Do CFG cleanup and SSA update
7759 inline, see if any if-converted loops we refrece in
7760 LOOP_VECTORIZED calls vanished and fixup.
7761 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
7762
7763 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
7764
7765 * config/s390/constraints.md (jdd): New constraint.
7766
7767 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
7768
7769 PR target/89229
7770 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
7771 upper 16 vector registers without TARGET_AVX512VL.
7772 (*movti_internal): Likewise.
7773
7774 2019-02-08 Jakub Jelinek <jakub@redhat.com>
7775
7776 PR rtl-optimization/89234
7777 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
7778 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
7779 (copy_reg_eh_region_note_backward): Likewise.
7780
7781 2019-02-08 Richard Biener <rguenther@suse.de>
7782
7783 PR middle-end/89223
7784 * tree-data-ref.c (initialize_matrix_A): Fail if constant
7785 doesn't fit in HWI.
7786 (analyze_subscript_affine_affine): Handle failure from
7787 initialize_matrix_A.
7788
7789 2019-02-08 Jakub Jelinek <jakub@redhat.com>
7790
7791 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
7792 cfun everywhere.
7793
7794 2019-02-07 David Malcolm <dmalcolm@redhat.com>
7795
7796 PR tree-optimization/86637
7797 PR tree-optimization/89235
7798 * tree-vect-loop.c (optimize_mask_stores): Add an
7799 auto_purge_vect_location sentinel to ensure that vect_location is
7800 purged on exit.
7801 * tree-vectorizer.c
7802 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
7803 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
7804 to ensure that vect_location is purged on exit.
7805 (pass_slp_vectorize::execute): Likewise, replacing the manual
7806 reset.
7807 * tree-vectorizer.h (class auto_purge_vect_location): New class.
7808
7809 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7810
7811 * config/aarch64/iterators.md (max_opp): New code_attr.
7812 (USMAX): New code iterator.
7813 * config/aarch64/predicates.md (aarch64_smin): New predicate.
7814 (aarch64_smax): Likewise.
7815 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
7816 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
7817 MINUS (MAX MIN).
7818
7819 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
7820
7821 PR target/89229
7822 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
7823 for TARGET_AVX512VL.
7824 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
7825
7826 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
7827
7828 * config/s390/s390-builtin-types.def: Add new types.
7829 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
7830 (s390_vec_xlw4): Make the memory operand into a const pointer.
7831 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
7832 float.
7833 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
7834 a new vector type with the alignment of the scalar memory operand.
7835
7836 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
7837 Jakub Jelinek <jakub@redhat.com>
7838
7839 PR bootstrap/88714
7840 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
7841 arm_count_ldrdstrd_insns): New declarations.
7842 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
7843 MINUS.
7844 (valid_operands_ldrd_strd): New function.
7845 (arm_count_ldrdstrd_insns): New function.
7846 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
7847 sets instead of single DImode set and define new insns to match this.
7848
7849 2019-02-07 Tamar Christina <tamar.christina@arm.com>
7850
7851 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
7852 Make it a C initializer.
7853
7854 2019-02-07 Tamar Christina <tamar.christina@arm.com>
7855
7856 PR/target 88850
7857 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
7858
7859 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7860
7861 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
7862 Use neon_dot<q> for type.
7863 (neon_<sup>dot_lane<vsi2qi>): Likewise.
7864
7865 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7866
7867 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
7868 Use neon_dot<q> for type.
7869 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
7870 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
7871
7872 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
7873
7874 PR rtl-optimization/89225
7875 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
7876 sizes check.
7877
7878 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
7879
7880 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
7881 after restoring registers saved to allocate the frame on Windows.
7882
7883 2019-02-06 Richard Biener <rguenther@suse.de>
7884
7885 PR tree-optimization/89182
7886 * graphite.h (cached_scalar_evolution_in_region): Declare.
7887 * graphite.c (struct seir_cache_key): New.
7888 (struct sese_scev_hash): Likewise.
7889 (seir_cache): New global.
7890 (cached_scalar_evolution_in_region): New function.
7891 (graphite_transform_loops): Allocate and release seir_cache.
7892 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
7893 cached_scalar_evolution_in_region.
7894 * graphite-scop-detection.c (scop_detection::can_represent_loop):
7895 Simplify.
7896 (scop_detection::graphite_can_represent_expr: Use
7897 cached_scalar_evolution_in_region.
7898 (scop_detection::stmt_simple_for_scop_p): Likewise.
7899 (find_params_in_bb): Likewise.
7900 (gather_bbs::before_dom_children): Likewise.
7901 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
7902 (add_loop_constraints): Likewise.
7903
7904 2019-02-06 Jakub Jelinek <jakub@redhat.com>
7905
7906 PR middle-end/89210
7907 * fold-const-call.c (fold_const_vec_convert): Pass true as last
7908 operand to new_unary_operation only if both element types are integral
7909 and it isn't a widening conversion. Return NULL_TREE if
7910 new_unary_operation failed.
7911
7912 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
7913
7914 PR target/88856
7915 * config/s390/s390.md: Remove load and test FP splitter.
7916
7917 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
7918
7919 PR target/89112
7920 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
7921 expand_compare_loop, expand_block_compare_gpr,
7922 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
7923 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
7924 #include "profile-count.h" and "predict.h" for types and functions
7925 needed to work with REG_BR_PROB notes.
7926
7927 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
7928
7929 PR target/89112
7930 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
7931 for the long branch case.
7932
7933 2019-02-05 Jakub Jelinek <jakub@redhat.com>
7934
7935 PR target/89188
7936 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
7937 can throw, non-call exceptions are enabled and we can't delete
7938 dead exceptions or alter cfg. Set must_clean if
7939 delete_insn_and_edges returns true, don't set it blindly for calls.
7940 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
7941
7942 PR rtl-optimization/89195
7943 * combine.c (make_extraction): For MEMs, don't extract bytes outside
7944 of the original MEM.
7945
7946 2019-02-05 Martin Liska <mliska@suse.cz>
7947
7948 PR gcov-profile/89000
7949 * gcov.c (function_summary): Remove argument.
7950 (file_summary): New function.
7951 (print_usage): Replace tabs with spaces.
7952 (generate_results): Use new function file_summary.
7953
7954 2019-02-05 Jakub Jelinek <jakub@redhat.com>
7955
7956 PR target/89186
7957 * optabs.c (prepare_cmp_insn): Pass x and y to
7958 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
7959
7960 2019-02-05 Richard Biener <rguenther@suse.de>
7961
7962 PR middle-end/89150
7963 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
7964 (struct bitmap_element): Drop chain_prev so we properly recurse on
7965 the prev member, supporting tree views.
7966 (struct bitmap_head): GTY skip the obstack member.
7967
7968 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
7969
7970 PR c/88698
7971 * doc/extend.texi (Vector Extensions): Add an example of using vector
7972 types together with x86 intrinsics.
7973
7974 2019-02-04 Alan Modra <amodra@gmail.com>
7975
7976 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
7977 str[] size to 160, and comment.
7978
7979 2019-02-04 Alan Modra <amodra@gmail.com>
7980
7981 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
7982 (rs6000_pltseq_template): Guard output of TLS markers with
7983 TARGET_TLS_MARKERS.
7984 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
7985 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
7986 to use inline PLT sequences.
7987 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7988 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7989 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
7990
7991 2019-02-04 Martin Liska <mliska@suse.cz>
7992
7993 PR ipa/88985
7994 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
7995 out when ipa_fn_summaries does not contain entry for callee.
7996
7997 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
7998
7999 * config/sparc/sparc.h: Remove superfluous blank lines.
8000 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
8001 (got_register_rtx): ...this.
8002 (sparc_got): Adjust to above renaming.
8003 (sparc_tls_got): Likewise.
8004 (sparc_delegitimize_address): Likewise.
8005 (sparc_output_mi_thunk): Likewise.
8006 (sparc_init_pic_reg): Likewise.
8007 (save_local_or_in_reg_p): Fix test on the GOT register.
8008 (USE_HIDDEN_LINKONCE): Move around.
8009 (get_pc_thunk_name): Likewise.
8010 (gen_load_pcrel_sym): Likewise.
8011 (load_got_register): Likewise.
8012
8013 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
8014
8015 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
8016 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
8017
8018 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
8019
8020 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
8021 into consideration.
8022
8023 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
8024
8025 * config.gcc (with_nds32_lib, glibc):
8026 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
8027 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
8028 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
8029
8030 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
8031
8032 PR target/89071
8033 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
8034 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
8035 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
8036 (*rcpsf2_sse): Ditto.
8037 (*rsqrtsf2_sse): Ditto.
8038 (sse4_1_round<mode<2): Ditto.
8039
8040 2019-02-03 Richard Biener <rguenther@suse.de>
8041
8042 PR debug/87295
8043 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
8044 orig.
8045
8046 2019-02-02 Jakub Jelinek <jakub@redhat.com>
8047
8048 PR middle-end/87887
8049 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8050 Punt with warning on aggregate return or argument types. Ignore
8051 type/mode checking for uniform arguments.
8052
8053 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
8054
8055 * combine.c (try_combine): Do not print "Can't combine" messages unless
8056 printing failed combination attempts.
8057
8058 2019-02-01 Martin Jambor <mjambor@suse.cz>
8059
8060 PR hsa/87863
8061 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
8062 segment and global segment variables before making them static.
8063
8064 2019-02-01 Martin Jambor <mjambor@suse.cz>
8065
8066 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
8067 missed optimization dump with dump_enabled_p.
8068
8069 2019-02-01 Richard Biener <rguenther@suse.de>
8070
8071 PR middle-end/88597
8072 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
8073 the instantiate cache.
8074 (instantiate_scev_binary): Elide second operand procesing
8075 if equal to the first.
8076 * tree-chrec.c (chrec_contains_symbols): Add visited set.
8077 (chrec_contains_undetermined): Likewise.
8078 (tree_contains_chrecs): Likewise.
8079
8080 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
8081
8082 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
8083
8084 2019-02-01 Jakub Jelinek <jakub@redhat.com>
8085
8086 PR tree-optimization/89143
8087 * wide-int-range.h (wide_int_range_absu): Declare.
8088 * wide-int-range.cc (wide_int_range_absu): New function.
8089 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
8090
8091 PR tree-optimization/88107
8092 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
8093 instead of assertion that eh_region_outermost is non-NULL, if it
8094 is NULL, set *ALL to true and return NULL.
8095 (move_sese_region_to_fn): Adjust caller, if all is set, call
8096 duplicate_eh_regions with NULL region.
8097
8098 2019-02-01 Richard Biener <rguenth@suse.de>
8099
8100 PR rtl-optimization/88593
8101 * mode-switching.c (optimize_mode_switching): Free dominators before
8102 calling cleanup_cfg.
8103
8104 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
8105
8106 PR tree-optimization/88932
8107 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
8108
8109 2019-01-31 Jakub Jelinek <jakub@redhat.com>
8110
8111 PR middle-end/89137
8112 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
8113 bogus clang warning.
8114
8115 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
8116
8117 PR target/89071
8118 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
8119 alternative to avoid partial SSE register stall for TARGET_AVX.
8120 (truncdfsf2): Ditto.
8121 (sse4_1_round<mode>2): Ditto.
8122
8123 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
8124
8125 PR tree-optimization/89008
8126 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
8127 process anything of the form X * 0.
8128
8129 2019-01-31 Richard Biener <rguenther@suse.de>
8130
8131 PR tree-optimization/89135
8132 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
8133 with abnormal preds.
8134
8135 2019-01-31 Jakub Jelinek <jakub@redhat.com>
8136
8137 PR sanitizer/89124
8138 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
8139 always_inline callees into no_sanitize_address callers.
8140
8141 2019-01-31 Richard Biener <rguenther@suse.de>
8142
8143 PR rtl-optimization/89115
8144 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
8145
8146 2019-01-30 Martin Sebor <msebor@redhat.com>
8147
8148 PR other/89106
8149 * doc/extend.texi (cast to a union): Correct and expand.
8150
8151 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
8152
8153 PR rtl-optimization/87246
8154 * lra-constraints.c (simplify_operand_subreg): Reload memory
8155 in subreg if the address became invalid.
8156
8157 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
8158
8159 PR target/87064
8160 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
8161 Disable for little-endian.
8162
8163 2019-01-30 Richard Biener <rguenther@suse.de>
8164
8165 PR rtl-optimization/89115
8166 * opts.c (default_options_optimization): Reduce
8167 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
8168 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
8169 to the default.
8170
8171 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
8172
8173 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
8174 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
8175 type of vector element when vec_extract is implemented by direct
8176 move.
8177
8178 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
8179
8180 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
8181
8182 2019-01-30 Richard Biener <rguenther@suse.de>
8183
8184 PR tree-optimization/89111
8185 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
8186 canonicalization to appropriately sized access types.
8187
8188 2019-01-30 Jakub Jelinek <jakub@redhat.com>
8189
8190 PR c++/89105
8191 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
8192 for arguments to functions that are TU-local and shouldn't be
8193 referenced by assembly.
8194
8195 2019-01-30 Ulrich Drepper <drepper@redhat.com>
8196
8197 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
8198 after '='.
8199
8200 2019-01-29 Martin Sebor <msebor@redhat.com>
8201
8202 PR c/88956
8203 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
8204
8205 2019-01-29 Jakub Jelinek <jakub@redhat.com>
8206
8207 PR c++/66676
8208 PR ipa/89104
8209 * omp-simd-clone.c (simd_clone_clauses_extract)
8210 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
8211 OMP_CLAUSE_ALIGNED_ALIGNMENT.
8212
8213 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
8214
8215 * config.gcc: Force .init_array for ARC.
8216
8217 2019-01-29 Richard Biener <rguenther@suse.de>
8218
8219 PR debug/87295
8220 * dwarf2out.c (collect_skeleton_dies): New helper.
8221 (copy_decls_for_unworthy_types): Call it.
8222 (build_abbrev_table): Assert we do not try to replace
8223 DW_AT_signature refs with local refs.
8224
8225 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8226
8227 PR middle-end/89002
8228 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
8229 for lastprivate/linear IV, push gimplify context around gimplify_assign
8230 and, if it needed any temporaries, pop it into a gimple bind around the
8231 sequence.
8232
8233 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
8234
8235 * common.opt (-Wattribute-alias): Remove "no-" from name.
8236 Make -Wattribute-alias command line option and
8237 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
8238
8239 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8240
8241 PR target/89073
8242 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
8243 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
8244 x86 ISA options.
8245 (bmi2): Add missing @opindex.
8246 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
8247 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
8248 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
8249 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
8250 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
8251 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
8252 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
8253 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
8254 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
8255 xsavec, xsaveopt and xsaves options.
8256
8257 2019-01-28 Richard Biener <rguenther@suse.de>
8258
8259 PR debug/89076
8260 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
8261 support removal.
8262
8263 2019-01-28 Richard Biener <rguenther@suse.de>
8264
8265 PR tree-optimization/88739
8266 * tree-cfg.c (verify_types_in_gimple_reference): Verify
8267 BIT_FIELD_REFs only are applied to mode-precision operands
8268 when they are integral.
8269 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
8270 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
8271 BIT_FIELD_REFs of non-mode-precision integral operands.
8272
8273 2019-01-27 Jakub Jelinek <jakub@redhat.com>
8274
8275 PR target/87214
8276 * config/i386/sse.md
8277 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
8278 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
8279 first constants in pairs are multiples of 2. Formatting fixes.
8280 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
8281 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
8282 first constants in each quadruple are multiples of 4. Formatting fixes.
8283
8284 2019-01-26 Martin Jambor <mjambor@suse.cz>
8285
8286 PR ipa/88933
8287 * tree-inline.c: Include tree-cfgcleanup.h.
8288 (delete_unreachable_blocks_update_callgraph): Move...
8289 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
8290 ...here, make externally visible, make second argument bool, adjust
8291 all callers.
8292 * tree-cfgcleanup.c: Include cgraph.h.
8293 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
8294 Declare.
8295 * ipa-prop.c: Include tree-cfgcleanup.h.
8296 (ipcp_transform_function): Call
8297 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
8298
8299 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
8300
8301 PR rtl-optimization/88846
8302 * ira.c (process_set_for_memref_referenced_p): New.
8303 (memref_referenced_p): Add new param. Use
8304 process_set_for_memref_referenced_p. Add new switch cases.
8305 (memref_used_between_p): Pass new arg to memref_referenced_p.
8306
8307 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
8308
8309 PR target/88469
8310 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
8311 argument ABI_BREAK. Set to true if the calculated alignment has
8312 changed in gcc-9. Check bit-fields for their base type alignment.
8313 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
8314 (aarch64_function_arg_boundary): Likewise.
8315 (aarch64_gimplify_va_arg_expr): Likewise.
8316
8317 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
8318
8319 PR middle-end/89037
8320 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
8321 instead of accessing TREE_INT_CST_ELT directly.
8322
8323 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
8324
8325 * doc/sourcebuild.texi (Environment attributes): Add fenv and
8326 fenv_exceptions description.
8327
8328 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
8329
8330 PR rtl-optimization/87763
8331 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
8332 Allow SUBREG when matching CC_NZmode compare.
8333
8334 2019-01-25 Richard Biener <rguenther@suse.de>
8335
8336 PR tree-optimization/89049
8337 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
8338 Look at the pattern stmt to determine if the stmt is vectorized.
8339
8340 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
8341
8342 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
8343 (pred_mov<mode>): Handle all-register forms using both a new
8344 alternative and a split.
8345
8346 2019-01-25 Richard Biener <rguenther@suse.de>
8347
8348 PR tree-optimization/86865
8349 * graphite-scop-detection.c (scop_detection::can_represent_loop):
8350 Reject non-do-while loops.
8351
8352 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
8353
8354 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
8355 * config/rs6000/constraints.md (Q constraint): Use REG_P.
8356 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
8357 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8358 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
8359 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8360 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
8361 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
8362 vlogical_operand, gpc_reg_operand, int_reg_operand,
8363 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
8364 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
8365 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
8366 (save_world_operation, restore_world_operation, lmw_operation,
8367 stmw_operation): Use MEM_P and REG_P.
8368 (tie_operand): Use MEM_P.
8369 (vrsave_operation, crsave_operation): Use REG_P.
8370 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
8371 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
8372 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
8373 (call_operand): Use HARD_REGISTER_P.
8374 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
8375 Use CONST_INT_P.
8376 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
8377 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
8378 quad_aligned_load_p, replace_swapped_aligned_store,
8379 recombine_lvx_pattern, replace_swapped_aligned_load,
8380 recombine_stvx_pattern): Use MEM_P.
8381 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
8382 Use MEM_P and SYMBOL_REF_P.
8383 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
8384 (insn_is_swappable_p): Use REG_P and MEM_P.
8385 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
8386 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
8387 Use CONST_INT_P.
8388 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
8389 Use CONST_DOUBLE_P.
8390 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
8391 CONST_WIDE_INT_P.
8392 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
8393 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
8394 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
8395 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
8396 reg_or_subregno:
8397 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8398 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
8399 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
8400 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
8401 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
8402 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
8403 rs6000_split_logical_di): Use CONST_INT_P.
8404 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
8405 REG_P and SYMBOL_REF_P.
8406 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
8407 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
8408 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
8409 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
8410 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
8411 (small_data_operand, print_operand_address): Use CONST_INT_P and
8412 SYMBOL_REF_P.
8413 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
8414 (rs6000_init_hard_regno_mode_ok, direct_move_p):
8415 Use HARD_REGISTER_NUM_P.
8416 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
8417 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
8418 SUBREG_P and SYMBOL_REF_P.
8419 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
8420 and HARD_REGISTER_NUM_P.
8421 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
8422 reg_or_subregno.
8423 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
8424 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
8425 MEM_P and REG_P.
8426 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
8427 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
8428 find_addr_reg): Use REG_P.
8429 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
8430 (rs6000_emit_le_vsx_move): Use SUBREG_P.
8431 (offsettable_ok_by_alignment, constant_pool_expr_p,
8432 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
8433 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
8434 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
8435 rs6000_assemble_integer, create_TOC_reference,
8436 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
8437 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
8438 (rs6000_split_vec_extract_var): Use reg_or_subregno.
8439 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8440 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8441 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8442 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8443 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
8444 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
8445 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
8446 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
8447 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
8448 and cbranch<mode>4): Use CONST_INT_P.
8449 (multiple define_splits): Use REG_P and SUBREG_P.
8450 (define_expands call, call_value): Use MEM_P.
8451 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
8452 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
8453 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
8454 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
8455 and HARD_REGISTER_NUM_P.
8456 (multiple define_splits): Use HARD_REGISTER_NUM_P.
8457
8458 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
8459
8460 PR rtl-optimization/88948
8461 * rtl.h (prepare_copy_insn): New prototype.
8462 * gcse.c (prepare_copy_insn): New function, split out from
8463 process_insert_insn.
8464 (process_insert_insn): Use prepare_copy_insn.
8465 * store-motion.c (replace_store_insn): Use prepare_copy_insn
8466 instead of gen_move_insn.
8467
8468 2019-01-24 Jakub Jelinek <jakub@redhat.com>
8469
8470 PR debug/89006
8471 * config/i386/i386.c (ix86_pic_register_p): Return true for
8472 UNSPEC_SET_GOT too.
8473
8474 PR tree-optimization/88964
8475 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
8476 punt if HONOR_SNANS (chrec).
8477
8478 PR middle-end/89015
8479 * tree-nested.c (convert_nonlocal_reference_stmt,
8480 convert_local_reference_stmt, convert_tramp_reference_stmt,
8481 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
8482 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
8483 or GIMPLE_OMP_TASK.
8484
8485 PR tree-optimization/89027
8486 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
8487 for "omp simd array" variables.
8488
8489 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
8490
8491 PR target/88469
8492 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
8493 force the alignment of m_val.
8494
8495 2019-01-24 Richard Biener <rguenther@suse.de>
8496
8497 PR lto/87187
8498 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
8499 When in "legacy" debug mode make sure to reset self-origins.
8500
8501 2019-01-24 Martin Liska <mliska@suse.cz>
8502
8503 PR gcov-profile/88994
8504 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
8505 result will be always smaller or equal to the original.
8506 * gcov.c (mangle_name): Fix else branch where we should
8507 also copy to PTR and shift the pointer.
8508
8509 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
8510
8511 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
8512 * vr-values.c (find_case_label_ranges): Fix a comment typo.
8513
8514 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
8515
8516 * common/config/i386/i386-common.c
8517 (OPTION_MASK_ISA_ENQCMD_SET,
8518 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
8519 (ix86_handle_option): Handle -menqcmd.
8520 * config.gcc (enqcmdintrin.h): New header file.
8521 * config/i386/cpuid.h (bit_ENQCMD): New bit.
8522 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
8523 -menqcmd.
8524 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
8525 function type.
8526 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
8527 __builtin_ia32_enqcmds): New builtins.
8528 * config/i386/i386-c.c (__ENQCMD__): New macro.
8529 * config/i386/i386-option.c (ix86_target_string): Add
8530 -menqcmd.
8531 (ix86_valid_target_attribute_inner_p): Likewise.
8532 * config/i386/i386-expand.c
8533 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
8534 IX86_BUILTIN_ENQCMDS.
8535 * config/i386/i386.h (TARGET_ENQCMD): New.
8536 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
8537 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
8538 (movdir64b_<mode>): Parameterize to enable share expansion code
8539 with ENQCMD in function ix86_expand_builtin.
8540 * config/i386/i386.opt: Add -menqcmd.
8541 * config/i386/immintrin.h: Include enqcmdintrin.h.
8542 * config/i386/enqcmdintrin.h: New intrinsic file.
8543 * doc/invoke.texi: Add -menqcmd.
8544
8545 2019-01-23 Bin Cheng <bin.cheng@arm.com>
8546 Steve Ellcey <sellcey@marvell.com>
8547
8548 PR target/85711
8549 * recog.c (address_operand): Return false on wrong mode for address.
8550 (constrain_operands): Check for mode with 'p' constraint.
8551
8552 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
8553
8554 PR target/88998
8555 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
8556 Disparage MMX alternative.
8557 (sse2_cvtpd2pi): Ditto.
8558 (sse2_cvttpd2pi): Ditto.
8559
8560 2019-01-23 David Malcolm <dmalcolm@redhat.com>
8561
8562 PR driver/89014
8563 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
8564 use-after-free of the result of
8565 aarch64_get_extension_string_for_isa_flags.
8566
8567 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8568
8569 PR c/44715
8570 * doc/extend.texi: Document break and continue behavior in
8571 statement expressions.
8572
8573 2019-01-23 Richard Biener <rguenther@suse.de>
8574
8575 PR tree-optimization/89008
8576 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
8577 not leave another stray operand.
8578
8579 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8580
8581 * BASE-VER: Bump to 9.0.1.
8582
8583 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
8584
8585 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
8586 thunk that returns by reference, use the type of the return object
8587 of the thunk instead of that of the alias to build the dereference.
8588
8589 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
8590
8591 * config/arc/atomic.md: Add operand to DMB instruction.
8592
8593 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8594
8595 PR tree-optimization/88964
8596 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
8597 build_zero_cst instead of build_int_cst. Return false for loop
8598 invariants which honor signed zeros.
8599
8600 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
8601
8602 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
8603
8604 2019-01-22 Jakub Jelinek <jakub@redhat.com>
8605
8606 PR target/88965
8607 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
8608 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
8609 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
8610
8611 PR middle-end/88968
8612 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
8613 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
8614
8615 PR target/87064
8616 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
8617 Disable for little endian.
8618
8619 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8620
8621 PR target/88469
8622 * config/arm/arm.c (arm_needs_double_word_align): Check
8623 DECL_BIT_FIELD_TYPE.
8624
8625 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
8626 H.J. Lu <hongjiu.lu@intel.com>
8627
8628 PR target/88909
8629 * config/i386/i386-builtin.def: Add mask2 to all builtin
8630 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
8631 SPECIAL_ARGS.
8632 * config/i386/i386.c (BDESC): Add mask2 to the definition.
8633 (BDESC_FIRST): Likewise.
8634 (define_builtin): Add an argument for mask2. Updated to handle
8635 both ix86_isa_flags and ix86_isa_flags2.
8636 (define_builtin_const): Likewise.
8637 (define_builtin_pure): Likewise.
8638 (define_builtin2): Deleted.
8639 (define_builtin_const2): Likewise.
8640 (builtin_description): Add a member, mask2.
8641 (bdesc_*): Add mask2 to builtin initializations.
8642 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
8643 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
8644 support.
8645 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
8646
8647 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
8648
8649 PR target/88954
8650 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
8651 noplt attribute.
8652
8653 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8654
8655 PR target/88469
8656 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
8657 alignment is dominated by a bitfield with 64-bit aligned base type.
8658 (arm_function_arg): Emit a warning if the alignment has changed since
8659 earlier GCC releases.
8660 (arm_function_arg_boundary): Likewise.
8661 (arm_setup_incoming_varargs): Likewise.
8662
8663 2019-01-22 Richard Biener <rguenther@suse.de>
8664
8665 PR tree-optimization/88862
8666 * graphite-scop-detection.c
8667 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
8668
8669 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
8670
8671 * doc/extend.tex (AMD GCN Function Attributes): New section.
8672 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
8673 * doc/invoke.texi (AMD GCN Options): New section.
8674 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
8675
8676 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
8677
8678 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
8679 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
8680
8681 2019-01-22 Jakub Jelinek <jakub@redhat.com>
8682
8683 PR tree-optimization/88044
8684 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
8685 is false in the first iteration, but !every_iteration, return false
8686 instead of true with niter->niter zero.
8687
8688 PR rtl-optimization/88904
8689 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
8690 any nonequal registers before processing BB_END (b).
8691
8692 PR target/88905
8693 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
8694 GET_MODE (op0).
8695 (expand_binop_directly, expand_doubleword_clz,
8696 expand_doubleword_popcount, expand_ctz, expand_ffs,
8697 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
8698
8699 PR rtl-optimization/49429
8700 PR target/49454
8701 PR rtl-optimization/86334
8702 PR target/88906
8703 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
8704 addressable from here...
8705 (emit_block_op_via_libcall): ... to here.
8706
8707 2019-01-22 Richard Biener <rguenther@suse.de>
8708
8709 * tree-vect-loop.c (vect_analyze_loop_operations): Use
8710 auto_vec for cost vector to fix memleak.
8711 (vectorize_fold_left_reduction): Properly gather SLP defs.
8712 (vectorizable_comparison): Do not swap operands to properly
8713 gather SLP defs.
8714
8715 2019-01-22 Alan Modra <amodra@gmail.com>
8716
8717 PR target/88614
8718 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
8719 stays a reg. Allow a const_int.
8720 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
8721 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
8722 (IS_NOMARK_TLSGETADDR): Define.
8723 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
8724 (rs6000_output_tlsargs): New function.
8725 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
8726 __tls_get_addr call takes an arg.
8727 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
8728 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
8729 delete split..
8730 (call_value_nonlocal_sysv): ..or here, delete split.
8731 (tls_gdld_nomark): Delete.
8732 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
8733 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
8734 (call_value_nonlocal_sysv): Likewise.
8735 (call_value_nonlocal_sysv_secure): Likewise.
8736 (call_value_nonlocal_aix): Likewise.
8737 (call_value_indirect_aix): Likewise.
8738 (call_value_indirect_elfv2): Likewise.
8739 (call_value_local32, call_value_local64): Disable for no-mark tls.
8740 (call_value_local_aix): Likewise.
8741
8742 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
8743
8744 PR target/88938
8745 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
8746 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
8747
8748 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
8749
8750 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
8751 string contents as hash_map keys.
8752
8753 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8754
8755 PR c/88928
8756 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
8757 for rvalue context. Handle rvalues correctly. Use min_align_of_type
8758 instead of TYPE_ALIGN.
8759 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
8760 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
8761 pointer from TYPE_STUB_DECL.
8762
8763 2019-01-21 Richard Biener <rguenther@suse.de>
8764
8765 PR tree-optimization/88934
8766 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
8767 at the possibly non-constant operand.
8768 (vect_get_constant_vectors): Adjust.
8769
8770 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
8771
8772 PR target/71659
8773 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
8774 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
8775 instead of _X86INTRIN_H_INCLUDED.
8776 * onfig/i386/clwbintrin.h: Likewise.
8777 * config/i386/pkuintrin.h: Likewise.
8778 * config/i386/prfchwintrin.h: Likewise.
8779 * config/i386/rdseedintrin.h: Likewise.
8780 * config/i386/wbnoinvdintrin.h: Likewise.
8781 * config/i386/xsavecintrin.h: Likewise.
8782 * config/i386/xsavesintrin.h: Likewise.
8783 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
8784 * config/i386/xsaveintrin.h: Likewise.
8785 * config/i386/xsaveoptintrin.h: Likewise.
8786 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
8787 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
8788 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
8789 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
8790 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
8791 * config/i386/immintrin.h: Here.
8792
8793 2019-01-20 Martin Jambor <mjambor@suse.cz>
8794
8795 PR ipa/87615
8796 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
8797 with aa_walk_budget.
8798 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
8799 aa_walk_budget_p parameter.
8800 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
8801 walk. Updated all callers.
8802 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
8803 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
8804 unmodified_parm.
8805 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
8806 parameter info. Extract info from fbi. Pass fbi to recursive calls
8807 and to unmodified_parm.
8808 (phi_result_unknown_predicate): New parameter fbi, removed parameter
8809 info, updated call to will_be_nonconstant_expr_predicate.
8810 (param_change_prob): New parameter fbi, limit AA walking.
8811 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
8812 calls to various above functions.
8813 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
8814 parameter. Use it to limit AA walking.
8815 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
8816 fbi, limit AA walk.
8817 (detect_type_change): New parameter fbi, pass it on to
8818 detect_type_change_from_memory_writes.
8819 (detect_type_change_ssa): Likewise.
8820 (aa_overwalked): Removed.
8821 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
8822 accordingly, adjust to the neew AA limiting scheme.
8823 (parm_ref_data_preserved_p): Likewise.
8824 (ipa_compute_jump_functions_for_edge): Adjust call to
8825 get_dynamic_type.
8826 (ipa_analyze_call_uses): Likewise.
8827 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
8828 (ipa_analyze_node): Initialize aa_walk_budget.
8829 (ipcp_transform_function): Likewise.
8830 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
8831 to get_dynamic_type.
8832
8833 2019-01-19 Jakub Jelinek <jakub@redhat.com>
8834
8835 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
8836 outside of #if CHECKING_P code.
8837
8838 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
8839
8840 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
8841 New function, split out from...
8842 (loop_versioning::analyze_stride): ...here.
8843 (loop_versioning::find_per_loop_multiplication): Use gassign.
8844 (loop_versioning::analyze_term_using_scevs): Return a success code.
8845 (loop_versioning::analyze_arbitrary_term): New function.
8846 (loop_versioning::analyze_address_fragment): Use
8847 analyze_arbitrary_term if all else fails.
8848
8849 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
8850
8851 PR target/88892
8852 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
8853 operands.
8854
8855 2019-01-18 Richard Biener <rguenther@suse.de>
8856
8857 PR tree-optimization/88903
8858 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
8859 scalar stmts a SLP shift amount is composed of when detecting
8860 shifts by scalars.
8861
8862 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
8863
8864 PR target/88799
8865 * config/arm/arm-cpus.in (mp): New feature.
8866 (sec): New feature.
8867 (fgroup ARMv7ve): Add mp and sec features.
8868 (arch armv7-a): Add options to allow mp and sec extensions.
8869 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
8870 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
8871 extenstions to the base architecture.
8872 (cpu cortex-a8): Add sec extension to the base architecture.
8873 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
8874 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
8875 variants down to the base v7-a varaint.
8876 * config/arm/t-multilib (v7_a_arch_variants): New variable.
8877 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
8878 of permitted extensions for -march=armv7-a and for
8879 -mcpu=generic-armv7-a.
8880
8881 2019-01-18 Martin Liska <mliska@suse.cz>
8882
8883 * params.def: Fix comment.
8884 * tree-profile.c (gimple_init_gcov_profiler): Bump function
8885 name.
8886 (gimple_gen_ic_func_profiler): Likewise.
8887
8888 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8889
8890 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
8891 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
8892 and put in error checks for stack protector guard options.
8893 (aarch64_stack_protect_guard): New.
8894 (TARGET_STACK_PROTECT_GUARD): Define.
8895 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
8896 (reg_stack_protect_address<mode>): New.
8897 (stack_protect_set): Adjust for SSP_GLOBAL.
8898 (stack_protect_test): Likewise.
8899 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
8900 (-mstack-protector-guard): Likewise.
8901 (-mstack-protector-guard-offset): Likewise.
8902
8903 2019-01-18 Jakub Jelinek <jakub@redhat.com>
8904
8905 PR tree-optimization/86214
8906 * tree-inline.h (struct copy_body_data): Add
8907 add_clobbers_to_eh_landing_pads member.
8908 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
8909 (copy_edges_for_bb): Call it if EH edge destination is <
8910 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
8911 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
8912 if flag_stack_reuse != SR_NONE and clear it afterwards.
8913
8914 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
8915
8916 PR target/85596
8917 * doc/install.texi (with-multilib-list): Document for aarch64.
8918
8919 2019-01-18 Jakub Jelinek <jakub@redhat.com>
8920
8921 PR target/88734
8922 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
8923 (("..."))) with ("...").
8924
8925 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
8926
8927 * doc/extend.texi (Built-in Functions for Memory Model Aware
8928 Atomic Operations): Document atomic fetch and nand.
8929
8930 2019-01-18 Martin Liska <mliska@suse.cz>
8931 Richard Biener <rguenther@suse.de>
8932
8933 PR middle-end/88587
8934 * cgraph.h (create_version_clone_with_body): Add new argument
8935 with attributes.
8936 * cgraphclones.c (cgraph_node::create_version_clone): Add
8937 DECL_ATTRIBUTES to a newly created decl. And call
8938 valid_attribute_p so that proper cl_target_optimization_node
8939 is set for the newly created declaration.
8940 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
8941 for declaration.
8942 (expand_target_clones): Do not call valid_attribute_p, it must
8943 be already done.
8944 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
8945 vector types.
8946
8947 2019-01-17 Jakub Jelinek <jakub@redhat.com>
8948
8949 PR target/88734
8950 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
8951 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
8952 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
8953
8954 2019-01-17 Martin Sebor <msebor@redhat.com>
8955
8956 PR middle-end/88273
8957 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
8958 Handle anti-ranges the same as no range at all.
8959
8960 2018-01-17 Steve Ellcey <sellcey@cavium.com>
8961
8962 * config/aarch64/aarch64.c (cgraph.h): New include.
8963 (intl.h): New include.
8964 (supported_simd_type): New function.
8965 (currently_supported_simd_type): Ditto.
8966 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
8967 (aarch64_simd_clone_adjust): Ditto.
8968 (aarch64_simd_clone_usable): Ditto.
8969 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
8970 (TARGET_SIMD_CLONE_ADJUST): Ditto.
8971 (TARGET_SIMD_CLONE_USABLE): Ditto.
8972 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
8973 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
8974 call.
8975
8976 2019-01-17 Martin Sebor <msebor@redhat.com>
8977
8978 PR tree-optimization/88800
8979 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
8980 NO_WARNING bit here. Avoid folding out-of-bounds calls.
8981 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
8982 redundant argument. Add new argument and issue diagnostics under
8983 its control. Detect out-of-bounds access even with warnings
8984 disabled.
8985 (check_bounds_or_overlap): Change return type. Add argument.
8986 (wrestrict_dom_walker::check_call): Adjust.
8987 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
8988 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
8989 check_bounds_or_overlap's return value.
8990 (handle_builtin_stxncpy): Same.
8991 (handle_builtin_strcat): Same.
8992
8993 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8994 Kwok Cheung Yeung <kcy@codesourcery.com>
8995 Julian Brown <julian@codesourcery.com>
8996 Tom de Vries <tom@codesourcery.com>
8997
8998 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
8999
9000 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9001
9002 * doc/sourcebuild.texi: Document dg-require-effective-target
9003 llvm_binutils and offload_gcn.
9004
9005 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9006 Kwok Cheung Yeung <kcy@codesourcery.com>
9007 Julian Brown <julian@codesourcery.com>
9008 Tom de Vries <tom@codesourcery.com>
9009
9010 * doc/sourcebuild.texi: Document dg-required-effective-target
9011 exceptions.
9012
9013 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9014 Kwok Cheung Yeung <kcy@codesourcery.com>
9015 Julian Brown <julian@codesourcery.com>
9016 Tom de Vries <tom@codesourcery.com>
9017 Jan Hubicka <hubicka@ucw.cz>
9018 Martin Jambor <mjambor@suse.cz>
9019
9020 * config.gcc: Add amdgcn*-*-amdhsa configuration.
9021 * configure.ac: Check for dlopen.
9022 * configure: Regenerate.
9023
9024 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9025 Kwok Cheung Yeung <kcy@codesourcery.com>
9026 Julian Brown <julian@codesourcery.com>
9027 Tom de Vries <tom@codesourcery.com>
9028 Jan Hubicka <hubicka@ucw.cz>
9029 Martin Jambor <mjambor@suse.cz>
9030
9031 * common/config/gcn/gcn-common.c: New file.
9032 * config/gcn/driver-gcn.c: New file.
9033 * config/gcn/gcn-builtins.def: New file.
9034 * config/gcn/gcn-hsa.h: New file.
9035 * config/gcn/gcn-modes.def: New file.
9036 * config/gcn/gcn-opts.h: New file.
9037 * config/gcn/gcn-passes.def: New file.
9038 * config/gcn/gcn-protos.h: New file.
9039 * config/gcn/gcn-run.c: New file.
9040 * config/gcn/gcn-tree.c: New file.
9041 * config/gcn/gcn.c: New file.
9042 * config/gcn/gcn.h: New file.
9043 * config/gcn/gcn.opt: New file.
9044 * config/gcn/t-gcn-hsa: New file.
9045
9046 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9047 Kwok Cheung Yeung <kcy@codesourcery.com>
9048 Julian Brown <julian@codesourcery.com>
9049 Tom de Vries <tom@codesourcery.com>
9050 Jan Hubicka <hubicka@ucw.cz>
9051 Martin Jambor <mjambor@suse.cz>
9052
9053 * config/gcn/constraints.md: New file.
9054 * config/gcn/gcn-valu.md: New file.
9055 * config/gcn/gcn.md: New file.
9056 * config/gcn/predicates.md: New file.
9057
9058 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
9059
9060 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
9061 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
9062 (stmt_uses_0_or_null_in_undefined_way): Likewise.
9063 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
9064
9065 2019-01-17 Tamar Christina <tamar.christina@arm.com>
9066
9067 PR target/88851
9068 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
9069 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
9070 it and document registers.
9071
9072 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9073
9074 * config/aarch64/aarch64.c (ares_tunings): Define.
9075 * config/aarch64/aarch64-cores.def (ares): Use the above.
9076
9077 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9078
9079 PR target/88794
9080 Revert:
9081 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
9082
9083 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
9084 (_mm512_fixupimm_round_pd): Update parameters and builtin.
9085 (_mm512_maskz_fixupimm_round_pd): Ditto.
9086 (_mm512_fixupimm_round_ps): Ditto.
9087 (_mm512_maskz_fixupimm_round_ps): Ditto.
9088 (_mm_fixupimm_round_sd): Ditto.
9089 (_mm_maskz_fixupimm_round_sd): Ditto.
9090 (_mm_fixupimm_round_ss): Ditto.
9091 (_mm_maskz_fixupimm_round_ss): Ditto.
9092 (_mm512_fixupimm_pd): Ditto.
9093 (_mm512_maskz_fixupimm_pd): Ditto.
9094 (_mm512_fixupimm_ps): Ditto.
9095 (_mm512_maskz_fixupimm_ps): Ditto.
9096 (_mm_fixupimm_sd): Ditto.
9097 (_mm_maskz_fixupimm_sd): Ditto.
9098 (_mm_fixupimm_ss): Ditto.
9099 (_mm_maskz_fixupimm_ss): Ditto.
9100 (_mm512_mask_fixupimm_round_pd): Update builtin.
9101 (_mm512_mask_fixupimm_round_ps): Ditto.
9102 (_mm_mask_fixupimm_round_sd): Ditto.
9103 (_mm_mask_fixupimm_round_ss): Ditto.
9104 (_mm512_mask_fixupimm_pd): Ditto.
9105 (_mm512_mask_fixupimm_ps): Ditto.
9106 (_mm_mask_fixupimm_sd): Ditto.
9107 (_mm_mask_fixupimm_ss): Ditto.
9108 * config/i386/avx512vlintrin.h:
9109 (_mm256_fixupimm_pd): Update parameters and builtin.
9110 (_mm256_maskz_fixupimm_pd): Ditto.
9111 (_mm256_fixupimm_ps): Ditto.
9112 (_mm256_maskz_fixupimm_ps): Ditto.
9113 (_mm_fixupimm_pd): Ditto.
9114 (_mm_maskz_fixupimm_pd): Ditto.
9115 (_mm_fixupimm_ps): Ditto.
9116 (_mm_maskz_fixupimm_ps): Ditto.
9117 (_mm256_mask_fixupimm_pd): Update builtin.
9118 (_mm256_mask_fixupimm_ps): Ditto.
9119 (_mm_mask_fixupimm_pd): Ditto.
9120 (_mm_mask_fixupimm_ps): Ditto.
9121 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
9122 * config/i386/i386-builtin.def: Update builtin definitions.
9123 * config/i386/i386.c: Handle new builtin types and remove useless ones.
9124 * config/i386/sse.md: Update VFIXUPIMM* patterns.
9125 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9126 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9127 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
9128 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9129 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9130 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
9131 * config/i386/subst.md:
9132 (round_saeonly_sd_mask_operand4): Add new subst_attr.
9133 (round_saeonly_sd_mask_op4): Ditto.
9134 (round_saeonly_expand_operand5): Ditto.
9135 (round_saeonly_expand): Update.
9136
9137 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9138
9139 PR target/88794
9140 Revert:
9141 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
9142
9143 * config/i386/sse.md: Combine VFIXUPIMM* patterns
9144 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9145 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9146 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
9147 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9148 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9149 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
9150
9151 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9152
9153 PR target/88794
9154 Revert:
9155 2018-12-15 Jakub Jelinek <jakub@redhat.com>
9156
9157 PR target/88489
9158 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
9159 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
9160 instead of UNSPEC_FIXUPIMM.
9161
9162 2019-01-17 Richard Biener <rguenther@suse.de>
9163
9164 PR lto/86736
9165 * dwarf2out.c (want_pubnames): Never generate pubnames sections
9166 and friends for the LTO part of debug info.
9167
9168 2019-01-17 Jakub Jelinek <jakub@redhat.com>
9169
9170 PR tree-optimization/86214
9171 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
9172 if x == y.
9173
9174 PR rtl-optimization/88870
9175 * dce.c (deletable_insn_p): Never delete const/pure calls that can
9176 throw if we can't alter the cfg or delete dead exceptions.
9177 (mark_insn): Don't call find_call_stack_args for such calls.
9178
9179 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
9180
9181 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
9182 prototypes for vec_st.
9183 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
9184 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
9185 mainly on signed/unsigned long long and double.
9186
9187 2019-01-16 David Malcolm <dmalcolm@redhat.com>
9188
9189 PR target/88861
9190 * combine.c (delete_noop_moves): Convert to "bool" return,
9191 returning true if any edges are eliminated.
9192 (combine_instructions): Also return true if delete_noop_moves
9193 returns true.
9194
9195 2019-01-16 Tamar Christina <tamar.christina@arm.com>
9196
9197 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
9198 correct max nunits for endian swap.
9199 (aarch64_expand_fcmla_builtin): Correct subreg code.
9200 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9201 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
9202 lane endianness.
9203
9204 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
9205
9206 * config/alpha/alpha.c (alpha_gimplify_va_arg):
9207 Handle split indirect COMPLEX_TYPE arguments.
9208
9209 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
9210
9211 PR target/86891
9212 * config/aarch64/aarch64-modes.def: Add comment about how the carry
9213 bit is set by add and compare.
9214 (CC_ADC): New CC_MODE.
9215 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
9216 to cache the code and mode of X. Adjust the shape of a CC_Cmode
9217 comparison. Add detection for CC_ADCmode.
9218 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
9219 CC_ADCmode.
9220 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
9221 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
9222 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
9223 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
9224 to eliminate the need for zero-extending the operands.
9225 (add<mode>3_compareC_imm): Delete. Merge into ...
9226 (add<mode>3_compareC): ... this. Restructure the comparison to
9227 eliminate the need for zero-extending the operands.
9228 (add<mode>3_carryin): Use LTU for the overflow detection.
9229 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
9230 Reexpress comparison for overflow.
9231 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
9232 (add<mode>3_carryinC): Likewise.
9233 (add<mode>3_carryinV): Use LTU for carry between partials.
9234 * config/aarch64/predicates.md (aarch64_carry_operation): Update
9235 handling of CC_Cmode and add CC_ADCmode.
9236 (aarch64_borrow_operation): Likewise.
9237
9238 2019-01-16 Tamar Christina <tamar.christina@arm.com>
9239
9240 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
9241 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
9242 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
9243 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
9244
9245 2019-01-16 Martin Liska <mliska@suse.cz>
9246
9247 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
9248 for GCC driver.
9249 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
9250 a new argument.
9251 * gcc.c (add_sysrooted_hdrs_prefix): New function.
9252 (path_prefix_reset): Move up in the source file.
9253 (find_fortran_preinclude_file): Make complex search for the
9254 fortran header files.
9255
9256 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
9257
9258 * godump.c (go_output_typedef): When outputting a typedef, refer
9259 to the underlying type by its name and not its structure.
9260
9261 2019-01-15 David Malcolm <dmalcolm@redhat.com>
9262
9263 PR c++/88795
9264 * tree.c (build_function_type): Assert that arg_types is not
9265 error_mark_node.
9266
9267 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
9268
9269 PR inline-asm/52813
9270 * doc/extend.texi: Document that listing the stack pointer in the
9271 clobber list of an asm is a deprecated feature.
9272 * common.opt (Wdeprecated): Moved from c-family/c.opt.
9273 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
9274 warning instead of an error for clobbers of the stack pointer.
9275 Add a note explaining why.
9276
9277 2019-01-15 Richard Biener <rguenther@suse.de>
9278
9279 PR debug/88046
9280 * dwarf2out.c (gen_member_die): Do not generate inheritance
9281 DIEs late.
9282
9283 2019-01-15 Richard Biener <rguenther@suse.de>
9284
9285 PR tree-optimization/88855
9286 * tree-if-conv.c (combine_blocks): Collect
9287 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
9288
9289 2019-01-15 Tom de Vries <tdevries@suse.de>
9290
9291 PR target/80547
9292 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
9293 lhs == NULL_TREE for gang-level reduction.
9294
9295 2019-01-15 Richard Biener <rguenther@suse.de>
9296 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9297
9298 PR ipa/88788
9299 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
9300 return true if SSA_NAME is already marked in visited bitmap.
9301 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
9302
9303 2019-01-15 Jakub Jelinek <jakub@redhat.com>
9304
9305 PR tree-optimization/88775
9306 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
9307 equal == 0 equality pointer comparisons some more if compared in
9308 integral types and either one points to an automatic var and the
9309 other to a global, or we can prove at least one points to the middle
9310 or both point to start or both point to end.
9311
9312 2019-01-14 Andi Kleen <ak@linux.intel.com>
9313
9314 * Makefile.in: Lower autofdo sampling rate by 10x.
9315 * Makefile.tpl: Dito.
9316
9317 2019-01-14 Tom Honermann <tom@honermann.net>
9318
9319 * defaults.h: Define CHAR8_TYPE.
9320
9321 2019-01-14 Martin Sebor <msebor@redhat.com>
9322
9323 PR target/88638
9324 * doc/extend.texi (Darwin Format Checks): Clarify.
9325
9326 2019-01-14 Richard Biener <rguenther@suse.de>
9327
9328 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
9329 whether we are in (simplify ...) or (match ...) context.
9330
9331 2019-01-14 Jakub Jelinek <jakub@redhat.com>
9332
9333 PR rtl-optimization/88796
9334 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
9335 * cfgexpand.c (stack_protect_prologue): Initialize
9336 crtl->stack_protect_guard_decl.
9337 * function.c (stack_protect_epilogue): Use it instead of calling
9338 targetm.stack_protect_guard again.
9339 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
9340 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
9341 crtl->stack_protect_guard_decl.
9342 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
9343 on the returned MEM_EXPR.
9344
9345 2019-01-12 Tom de Vries <tdevries@suse.de>
9346
9347 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
9348 vector length using -fopenacc-dim.
9349
9350 2019-01-12 Tom de Vries <tdevries@suse.de>
9351
9352 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
9353 lengths into account.
9354
9355 2019-01-12 Svante Signell <svante.signell@gmail.com>
9356
9357 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
9358 (TARGET_CAN_SPLIT_STACK): Define.
9359 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
9360
9361 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9362
9363 * params.def (inline-unit-growth): Set to 40.
9364
9365 2019-01-12 Jakub Jelinek <jakub@redhat.com>
9366
9367 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
9368
9369 2019-01-12 Tom de Vries <tdevries@suse.de>
9370
9371 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
9372 region calling vector-partitionable routine, set default_vector_length
9373 to WARP_SIZE.
9374
9375 2019-01-12 Tom de Vries <tdevries@suse.de>
9376
9377 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
9378 variable default_vector_length.
9379
9380 2019-01-12 Tom de Vries <tdevries@suse.de>
9381
9382 PR middle-end/88703
9383 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
9384 from oacc_default_dims, as oacc_validate_dims would do it, and apply
9385 dimensions limits.
9386
9387 2019-01-12 Tom de Vries <tdevries@suse.de>
9388
9389 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
9390 (nvptx_goacc_validate_dims): Add used parameter.
9391 * doc/tm.texi: Regenerate.
9392 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
9393 argument to call to targetm.goacc.validate_dims.
9394 (default_goacc_validate_dims): Add used
9395 parameter.
9396 * target.def (validate_dims): Add used parameter in DEFHOOK.
9397 * targhooks.h (default_goacc_validate_dims): Add used parameter.
9398
9399 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9400
9401 PR middle-end/85956
9402 PR lto/88733
9403 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
9404 field.
9405 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
9406 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
9407 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
9408 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
9409
9410 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
9411
9412 PR rtl-optimization/87305
9413 * lra-assigns.c
9414 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
9415 for little endian pseudos used as paradoxical subreg.
9416
9417 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9418
9419 PR tree-optimization/88693
9420 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
9421 for STRING_CSTs that don't contain any NUL characters in the first
9422 TREE_STRING_LENGTH bytes.
9423
9424 2019-01-11 Alan Modra <amodra@gmail.com>
9425
9426 PR 88777
9427 PR 88614
9428 * genattrtab.c (min_fn): Don't translate values.
9429 (min_attr_value): Return INT_MAX when the value can't be calculated.
9430 Return minimum among any values that can be calculated.
9431 (max_attr_value): Adjust.
9432
9433 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9434
9435 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
9436
9437 2019-01-11 Steve Ellcey <sellcey@marvell.com>
9438
9439 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9440 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
9441 (aarch64_return_call_with_max_clobbers): New function.
9442 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
9443 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
9444 argument.
9445 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
9446 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
9447 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
9448 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
9449 * cselib.c (cselib_process_insn): Add argument to
9450 targetm.hard_regno_call_part_clobbered call.
9451 * ira-conflicts.c (ira_build_conflicts): Ditto.
9452 * ira-costs.c (ira_tune_allocno_costs): Ditto.
9453 * lra-constraints.c (inherit_reload_reg): Ditto.
9454 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
9455 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
9456 argument. Call targetm.return_call_with_max_clobbers.
9457 Add argument to targetm.hard_regno_call_part_clobbered call.
9458 (calls_have_same_clobbers_p): New function.
9459 (process_bb_lives): Add call_insn and last_call_insn variables.
9460 Pass call_insn to check_pseudos_live_through_calls.
9461 Modify if stmt to check targetm.return_call_with_max_clobbers.
9462 Update setting of flush variable.
9463 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
9464 to false.
9465 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
9466 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
9467 targetm.hard_regno_call_part_clobbered call.
9468 * reginfo.c (choose_hard_reg_mode): Ditto.
9469 * regrename.c (check_new_reg_p): Ditto.
9470 * reload.c (find_equiv_reg): Ditto.
9471 * reload1.c (emit_reload_insns): Ditto.
9472 * sched-deps.c (deps_analyze_insn): Ditto.
9473 * sel-sched.c (init_regs_for_mode): Ditto.
9474 (mark_unavailable_hard_regs): Ditto.
9475 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
9476 * target.def (hard_regno_call_part_clobbered): Add insn argument.
9477 (return_call_with_max_clobbers): New target function.
9478 * doc/tm.texi: Regenerate.
9479 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
9480 * hooks.c (hook_bool_uint_mode_false): Change to
9481 hook_bool_insn_uint_mode_false.
9482 * hooks.h (hook_bool_uint_mode_false): Ditto.
9483
9484 2019-01-11 Steve Ellcey <sellcey@marvell.com>
9485
9486 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9487 (aarch64_remove_extra_call_preserved_regs): New function.
9488 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
9489 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
9490 * doc/tm.texi: Regenerate.
9491 * final.c (get_call_reg_set_usage): Call new hook.
9492 * target.def (remove_extra_call_preserved_regs): New hook.
9493 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
9494 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
9495
9496 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9497
9498 PR bootstrap/88714
9499 * passes.c (finish_optimization_passes): Call print_combine_total_stats
9500 inside of pass_combine_1 dump rather than pass_profile_1.
9501
9502 2019-01-11 Tom de Vries <tdevries@suse.de>
9503
9504 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
9505 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
9506 (PTX_NUM_PER_WORKER_BARRIERS): Define.
9507 (nvptx_apply_dim_limits): Prevent vector_length 64 and
9508 num_workers 16.
9509
9510 2019-01-11 Tom de Vries <tdevries@suse.de>
9511
9512 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
9513
9514 2019-01-11 Jan Beulich <jbeulich@suse.com>
9515
9516 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
9517 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
9518 sse2_cvtsi2sd): Add {l}.
9519 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
9520 syntax.
9521
9522 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9523
9524 PR target/88785
9525 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
9526 define_expand.
9527 (*float<floatunssuffix>v2div2sf2): New define_insn.
9528 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
9529 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
9530 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
9531 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
9532 match_operands with "const0_operand" "C".
9533
9534 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9535
9536 * config/aarch64/aarch64-builtins.c
9537 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
9538 (aarch64_init_simd_builtins): ...Here
9539
9540 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
9541
9542 PR rtl-optimization/87305
9543 * lra-assigns.c
9544 (setup_live_pseudos_and_spill_after_risky_transforms): Check
9545 allocation for big endian pseudos used as paradoxical subregs and
9546 spill them if it is wrong.
9547 * lra-constraints.c (lra_constraints): Add a comment.
9548
9549 2019-01-10 Richard Biener <rguenther@suse.de>
9550
9551 PR tree-optimization/88792
9552 * tree-ssa-pre.c (get_representative_for): Do not return a
9553 value-number here.
9554
9555 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9556
9557 PR middle-end/84877
9558 PR bootstrap/88450
9559 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
9560 (assign_parm_setup_block): Do the argument slot realignment here
9561 instead.
9562
9563 2019-01-10 Stefan Agner <stefan@agner.ch>
9564
9565 PR target/88648
9566 * config/arm/arm.c (arm_option_override_internal): Force
9567 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
9568
9569 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9570
9571 PR c/88568
9572 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
9573 DECL_EXTERNAL.
9574
9575 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9576
9577 * config/arm/arm-builtins.c
9578 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
9579 (MAC_LANE_PAIR_QUALIFIERS): New.
9580 (arm_expand_builtin_args): Use it.
9581 (arm_expand_builtin_1): Likewise.
9582 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
9583 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
9584 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
9585 * config/arm/arm_neon.h:
9586 (vcadd_rot90_f16): New.
9587 (vcaddq_rot90_f16): New.
9588 (vcadd_rot270_f16): New.
9589 (vcaddq_rot270_f16): New.
9590 (vcmla_f16): New.
9591 (vcmlaq_f16): New.
9592 (vcmla_lane_f16): New.
9593 (vcmla_laneq_f16): New.
9594 (vcmlaq_lane_f16): New.
9595 (vcmlaq_laneq_f16): New.
9596 (vcmla_rot90_f16): New.
9597 (vcmlaq_rot90_f16): New.
9598 (vcmla_rot90_lane_f16): New.
9599 (vcmla_rot90_laneq_f16): New.
9600 (vcmlaq_rot90_lane_f16): New.
9601 (vcmlaq_rot90_laneq_f16): New.
9602 (vcmla_rot180_f16): New.
9603 (vcmlaq_rot180_f16): New.
9604 (vcmla_rot180_lane_f16): New.
9605 (vcmla_rot180_laneq_f16): New.
9606 (vcmlaq_rot180_lane_f16): New.
9607 (vcmlaq_rot180_laneq_f16): New.
9608 (vcmla_rot270_f16): New.
9609 (vcmlaq_rot270_f16): New.
9610 (vcmla_rot270_lane_f16): New.
9611 (vcmla_rot270_laneq_f16): New.
9612 (vcmlaq_rot270_lane_f16): New.
9613 (vcmlaq_rot270_laneq_f16): New.
9614 (vcadd_rot90_f32): New.
9615 (vcaddq_rot90_f32): New.
9616 (vcadd_rot270_f32): New.
9617 (vcaddq_rot270_f32): New.
9618 (vcmla_f32): New.
9619 (vcmlaq_f32): New.
9620 (vcmla_lane_f32): New.
9621 (vcmla_laneq_f32): New.
9622 (vcmlaq_lane_f32): New.
9623 (vcmlaq_laneq_f32): New.
9624 (vcmla_rot90_f32): New.
9625 (vcmlaq_rot90_f32): New.
9626 (vcmla_rot90_lane_f32): New.
9627 (vcmla_rot90_laneq_f32): New.
9628 (vcmlaq_rot90_lane_f32): New.
9629 (vcmlaq_rot90_laneq_f32): New.
9630 (vcmla_rot180_f32): New.
9631 (vcmlaq_rot180_f32): New.
9632 (vcmla_rot180_lane_f32): New.
9633 (vcmla_rot180_laneq_f32): New.
9634 (vcmlaq_rot180_lane_f32): New.
9635 (vcmlaq_rot180_laneq_f32): New.
9636 (vcmla_rot270_f32): New.
9637 (vcmlaq_rot270_f32): New.
9638 (vcmla_rot270_lane_f32): New.
9639 (vcmla_rot270_laneq_f32): New.
9640 (vcmlaq_rot270_lane_f32): New.
9641 (vcmlaq_rot270_laneq_f32): New.
9642 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
9643 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
9644 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
9645 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
9646 vcmlaq_lane270): New.
9647 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
9648 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
9649 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
9650 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
9651 (arm_option_reconfigure_globals): Use them.
9652 * config/arm/iterators.md (VDF, VQ_HSF): New.
9653 (VCADD, VCMLA): New.
9654 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
9655 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
9656 New.
9657 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
9658 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
9659
9660 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9661
9662 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
9663 Add qualifier_lane_pair_index.
9664 (emit-rtl.h): Include.
9665 (TYPES_QUADOP_LANE_PAIR): New.
9666 (aarch64_simd_expand_args): Use it.
9667 (aarch64_simd_expand_builtin): Likewise.
9668 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
9669 New.
9670 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
9671 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
9672 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
9673 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
9674 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
9675 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
9676 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
9677 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
9678 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
9679 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
9680 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
9681 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
9682 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
9683 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
9684 Add __ARM_FEATURE_COMPLEX.
9685 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
9686 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
9687 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
9688 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
9689 fcmlaq_lane270): New.
9690 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9691 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
9692 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
9693 * config/aarch64/arm_neon.h:
9694 (vcadd_rot90_f16): New.
9695 (vcaddq_rot90_f16): New.
9696 (vcadd_rot270_f16): New.
9697 (vcaddq_rot270_f16): New.
9698 (vcmla_f16): New.
9699 (vcmlaq_f16): New.
9700 (vcmla_lane_f16): New.
9701 (vcmla_laneq_f16): New.
9702 (vcmlaq_lane_f16): New.
9703 (vcmlaq_rot90_lane_f16): New.
9704 (vcmla_rot90_laneq_f16): New.
9705 (vcmla_rot90_lane_f16): New.
9706 (vcmlaq_rot90_f16): New.
9707 (vcmla_rot90_f16): New.
9708 (vcmlaq_laneq_f16): New.
9709 (vcmla_rot180_laneq_f16): New.
9710 (vcmla_rot180_lane_f16): New.
9711 (vcmlaq_rot180_f16): New.
9712 (vcmla_rot180_f16): New.
9713 (vcmlaq_rot90_laneq_f16): New.
9714 (vcmlaq_rot270_laneq_f16): New.
9715 (vcmlaq_rot270_lane_f16): New.
9716 (vcmla_rot270_laneq_f16): New.
9717 (vcmlaq_rot270_f16): New.
9718 (vcmla_rot270_f16): New.
9719 (vcmlaq_rot180_laneq_f16): New.
9720 (vcmlaq_rot180_lane_f16): New.
9721 (vcmla_rot270_lane_f16): New.
9722 (vcadd_rot90_f32): New.
9723 (vcaddq_rot90_f32): New.
9724 (vcaddq_rot90_f64): New.
9725 (vcadd_rot270_f32): New.
9726 (vcaddq_rot270_f32): New.
9727 (vcaddq_rot270_f64): New.
9728 (vcmla_f32): New.
9729 (vcmlaq_f32): New.
9730 (vcmlaq_f64): New.
9731 (vcmla_lane_f32): New.
9732 (vcmla_laneq_f32): New.
9733 (vcmlaq_lane_f32): New.
9734 (vcmlaq_laneq_f32): New.
9735 (vcmla_rot90_f32): New.
9736 (vcmlaq_rot90_f32): New.
9737 (vcmlaq_rot90_f64): New.
9738 (vcmla_rot90_lane_f32): New.
9739 (vcmla_rot90_laneq_f32): New.
9740 (vcmlaq_rot90_lane_f32): New.
9741 (vcmlaq_rot90_laneq_f32): New.
9742 (vcmla_rot180_f32): New.
9743 (vcmlaq_rot180_f32): New.
9744 (vcmlaq_rot180_f64): New.
9745 (vcmla_rot180_lane_f32): New.
9746 (vcmla_rot180_laneq_f32): New.
9747 (vcmlaq_rot180_lane_f32): New.
9748 (vcmlaq_rot180_laneq_f32): New.
9749 (vcmla_rot270_f32): New.
9750 (vcmlaq_rot270_f32): New.
9751 (vcmlaq_rot270_f64): New.
9752 (vcmla_rot270_lane_f32): New.
9753 (vcmla_rot270_laneq_f32): New.
9754 (vcmlaq_rot270_lane_f32): New.
9755 (vcmlaq_rot270_laneq_f32): New.
9756 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
9757 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
9758 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
9759 (FCADD, FCMLA): New.
9760 (rot): New.
9761 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
9762
9763 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
9764
9765 PR other/16615
9766
9767 * config/pa/pa.c: Change "can not" to "cannot".
9768 * gimple-ssa-evrp-analyze.c: Likewise.
9769 * ipa-icf.c: Likewise.
9770 * ipa-polymorphic-call.c: Likewise.
9771 * ipa-pure-const.c: Likewise.
9772 * lra-constraints.c: Likewise.
9773 * lra-remat.c: Likewise.
9774 * reload1.c: Likewise.
9775 * reorg.c: Likewise.
9776 * tree-ssa-uninit.c: Likewise.
9777
9778 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
9779
9780 PR other/16615
9781
9782 * Makefile.in: Mechanically replace "can not" with "cannot".
9783 * alias.c: Likewise.
9784 * builtins.c: Likewise.
9785 * calls.c: Likewise.
9786 * cgraph.c: Likewise.
9787 * cgraph.h: Likewise.
9788 * cgraphclones.c: Likewise.
9789 * cgraphunit.c: Likewise.
9790 * combine-stack-adj.c: Likewise.
9791 * combine.c: Likewise.
9792 * common/config/i386/i386-common.c: Likewise.
9793 * config/aarch64/aarch64.c: Likewise.
9794 * config/alpha/sync.md: Likewise.
9795 * config/arc/arc.c: Likewise.
9796 * config/arc/predicates.md: Likewise.
9797 * config/arm/arm-c.c: Likewise.
9798 * config/arm/arm.c: Likewise.
9799 * config/arm/arm.h: Likewise.
9800 * config/arm/arm.md: Likewise.
9801 * config/arm/cortex-r4f.md: Likewise.
9802 * config/csky/csky.c: Likewise.
9803 * config/csky/csky.h: Likewise.
9804 * config/darwin-f.c: Likewise.
9805 * config/epiphany/epiphany.md: Likewise.
9806 * config/i386/i386.c: Likewise.
9807 * config/i386/sol2.h: Likewise.
9808 * config/m68k/m68k.c: Likewise.
9809 * config/mcore/mcore.h: Likewise.
9810 * config/microblaze/microblaze.md: Likewise.
9811 * config/mips/20kc.md: Likewise.
9812 * config/mips/sb1.md: Likewise.
9813 * config/nds32/nds32.c: Likewise.
9814 * config/nds32/predicates.md: Likewise.
9815 * config/pa/pa.c: Likewise.
9816 * config/rs6000/e300c2c3.md: Likewise.
9817 * config/rs6000/rs6000.c: Likewise.
9818 * config/s390/s390.h: Likewise.
9819 * config/sh/sh.c: Likewise.
9820 * config/sh/sh.md: Likewise.
9821 * config/spu/vmx2spu.h: Likewise.
9822 * cprop.c: Likewise.
9823 * dbxout.c: Likewise.
9824 * df-scan.c: Likewise.
9825 * doc/cfg.texi: Likewise.
9826 * doc/extend.texi: Likewise.
9827 * doc/fragments.texi: Likewise.
9828 * doc/gty.texi: Likewise.
9829 * doc/invoke.texi: Likewise.
9830 * doc/lto.texi: Likewise.
9831 * doc/md.texi: Likewise.
9832 * doc/objc.texi: Likewise.
9833 * doc/rtl.texi: Likewise.
9834 * doc/tm.texi: Likewise.
9835 * dse.c: Likewise.
9836 * emit-rtl.c: Likewise.
9837 * emit-rtl.h: Likewise.
9838 * except.c: Likewise.
9839 * expmed.c: Likewise.
9840 * expr.c: Likewise.
9841 * fold-const.c: Likewise.
9842 * genautomata.c: Likewise.
9843 * gimple-fold.c: Likewise.
9844 * hard-reg-set.h: Likewise.
9845 * ifcvt.c: Likewise.
9846 * ipa-comdats.c: Likewise.
9847 * ipa-cp.c: Likewise.
9848 * ipa-devirt.c: Likewise.
9849 * ipa-fnsummary.c: Likewise.
9850 * ipa-icf.c: Likewise.
9851 * ipa-inline-transform.c: Likewise.
9852 * ipa-inline.c: Likewise.
9853 * ipa-polymorphic-call.c: Likewise.
9854 * ipa-profile.c: Likewise.
9855 * ipa-prop.c: Likewise.
9856 * ipa-pure-const.c: Likewise.
9857 * ipa-reference.c: Likewise.
9858 * ipa-split.c: Likewise.
9859 * ipa-visibility.c: Likewise.
9860 * ipa.c: Likewise.
9861 * ira-build.c: Likewise.
9862 * ira-color.c: Likewise.
9863 * ira-conflicts.c: Likewise.
9864 * ira-costs.c: Likewise.
9865 * ira-int.h: Likewise.
9866 * ira-lives.c: Likewise.
9867 * ira.c: Likewise.
9868 * ira.h: Likewise.
9869 * loop-invariant.c: Likewise.
9870 * loop-unroll.c: Likewise.
9871 * lower-subreg.c: Likewise.
9872 * lra-assigns.c: Likewise.
9873 * lra-constraints.c: Likewise.
9874 * lra-eliminations.c: Likewise.
9875 * lra-lives.c: Likewise.
9876 * lra-remat.c: Likewise.
9877 * lra-spills.c: Likewise.
9878 * lra.c: Likewise.
9879 * lto-cgraph.c: Likewise.
9880 * lto-streamer-out.c: Likewise.
9881 * postreload-gcse.c: Likewise.
9882 * predict.c: Likewise.
9883 * profile-count.h: Likewise.
9884 * profile.c: Likewise.
9885 * recog.c: Likewise.
9886 * ree.c: Likewise.
9887 * reload.c: Likewise.
9888 * reload1.c: Likewise.
9889 * reorg.c: Likewise.
9890 * resource.c: Likewise.
9891 * rtl.def: Likewise.
9892 * rtl.h: Likewise.
9893 * rtlanal.c: Likewise.
9894 * sched-deps.c: Likewise.
9895 * sched-ebb.c: Likewise.
9896 * sched-rgn.c: Likewise.
9897 * sel-sched-ir.c: Likewise.
9898 * sel-sched.c: Likewise.
9899 * shrink-wrap.c: Likewise.
9900 * simplify-rtx.c: Likewise.
9901 * symtab.c: Likewise.
9902 * target.def: Likewise.
9903 * toplev.c: Likewise.
9904 * tree-call-cdce.c: Likewise.
9905 * tree-cfg.c: Likewise.
9906 * tree-complex.c: Likewise.
9907 * tree-core.h: Likewise.
9908 * tree-eh.c: Likewise.
9909 * tree-inline.c: Likewise.
9910 * tree-loop-distribution.c: Likewise.
9911 * tree-nrv.c: Likewise.
9912 * tree-profile.c: Likewise.
9913 * tree-sra.c: Likewise.
9914 * tree-ssa-alias.c: Likewise.
9915 * tree-ssa-dce.c: Likewise.
9916 * tree-ssa-dom.c: Likewise.
9917 * tree-ssa-forwprop.c: Likewise.
9918 * tree-ssa-loop-im.c: Likewise.
9919 * tree-ssa-loop-ivcanon.c: Likewise.
9920 * tree-ssa-loop-ivopts.c: Likewise.
9921 * tree-ssa-loop-niter.c: Likewise.
9922 * tree-ssa-phionlycprop.c: Likewise.
9923 * tree-ssa-phiopt.c: Likewise.
9924 * tree-ssa-propagate.c: Likewise.
9925 * tree-ssa-threadedge.c: Likewise.
9926 * tree-ssa-threadupdate.c: Likewise.
9927 * tree-ssa-uninit.c: Likewise.
9928 * tree-ssanames.c: Likewise.
9929 * tree-streamer-out.c: Likewise.
9930 * tree.c: Likewise.
9931 * tree.h: Likewise.
9932 * vr-values.c: Likewise.
9933
9934 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
9935
9936 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
9937 (ix86_split_xorsign): Ditto.
9938 * config/i386/i386.c (ix86_expand_xorsign): New function.
9939 (ix86_split_xorsign): Ditto.
9940 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
9941 (xorsign<mode>3): New expander.
9942 (xorsign<mode>3_1): New insn_and_split pattern.
9943 * config/i386/sse.md (xorsign<mode>3): New expander.
9944
9945 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9946
9947 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
9948 (*tablejump_sp64): Likewise.
9949 (*tablejump<P:mode>): ...this.
9950 (*call_address_sp32): Merge into...
9951 (*call_address_sp64): Likewise.
9952 (*call_address<P:mode>): ...this.
9953 (*call_symbolic_sp32): Merge into...
9954 (*call_symbolic_sp64): Likewise.
9955 (*call_symbolic<P:mode>): ...this.
9956 (call_value): Remove constraint and add predicate.
9957 (*call_value_address_sp32): Merge into...
9958 (*call_value_address_sp64): Likewise.
9959 (*call_value_address<P:mode>): ...this.
9960 (*call_value_symbolic_sp32): Merge into...
9961 (*call_value_symbolic_sp64): Likewise.
9962 (*call_value_symbolic<P:mode>): ...this.
9963 (*sibcall_symbolic_sp32): Merge into...
9964 (*sibcall_symbolic_sp64): Likewise.
9965 (*sibcall_symbolic<P:mode>): ...this.
9966 (sibcall_value): Remove constraint and add predicate.
9967 (*sibcall_value_symbolic_sp32): Merge into...
9968 (*sibcall_value_symbolic_sp64): Likewise.
9969 (*sibcall_value_symbolic<P:mode>): ...this.
9970 (window_save): Minor tweak.
9971 (*branch_sp32): Merge into...
9972 (*branch_sp64): Likewise.
9973 (*branch<P:mode>): ...this.
9974
9975 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9976 James Clarke <jrtc27@jrtc27.com>
9977
9978 PR target/84010
9979 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
9980 consistently in TLS address generation and adjust code to the renaming
9981 of patterns. Mark calls to __tls_get_addr as const.
9982 * config/sparc/sparc.md (tgd_hi22): Turn into...
9983 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
9984 (tgd_lo10): Turn into...
9985 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
9986 (tgd_add32): Merge into...
9987 (tgd_add64): Likewise.
9988 (tgd_add<P:mode>): ...this and use Pmode throughout.
9989 (tldm_hi22): Turn into...
9990 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
9991 (tldm_lo10): Turn into...
9992 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
9993 (tldm_add32): Merge into...
9994 (tldm_add64): Likewise.
9995 (tldm_add<P:mode>): ...this and use Pmode throughout.
9996 (tldm_call32): Merge into...
9997 (tldm_call64): Likewise.
9998 (tldm_call<P:mode>): ...this and use Pmode throughout.
9999 (tldo_hix22): Turn into...
10000 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
10001 (tldo_lox10): Turn into...
10002 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
10003 (tldo_add32): Merge into...
10004 (tldo_add64): Likewise.
10005 (tldo_add<P:mode>): ...this and use Pmode throughout.
10006 (tie_hi22): Turn into...
10007 (tie_hi22<P:mode>): ...this and use Pmode throughout.
10008 (tie_lo10): Turn into...
10009 (tie_lo10<P:mode>): ...this and use Pmode throughout.
10010 (tie_ld64): Use DImode throughout.
10011 (tie_add32): Merge into...
10012 (tie_add64): Likewise.
10013 (tie_add<P:mode>): ...this and use Pmode throughout.
10014 (tle_hix22_sp32): Merge into...
10015 (tle_hix22_sp64): Likewise.
10016 (tle_hix22<P:mode>): ...this and use Pmode throughout.
10017 (tle_lox22_sp32): Merge into...
10018 (tle_lox22_sp64): Likewise.
10019 (tle_lox22<P:mode>): ...this and use Pmode throughout.
10020 (*tldo_ldub_sp32): Merge into...
10021 (*tldo_ldub_sp64): Likewise.
10022 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
10023 (*tldo_ldub1_sp32): Merge into...
10024 (*tldo_ldub1_sp64): Likewise.
10025 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
10026 (*tldo_ldub2_sp32): Merge into...
10027 (*tldo_ldub2_sp64): Likewise.
10028 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
10029 (*tldo_ldsb1_sp32): Merge into...
10030 (*tldo_ldsb1_sp64): Likewise.
10031 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
10032 (*tldo_ldsb2_sp32): Merge into...
10033 (*tldo_ldsb2_sp64): Likewise.
10034 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
10035 (*tldo_ldub3_sp64): Use DImode throughout.
10036 (*tldo_ldsb3_sp64): Likewise.
10037 (*tldo_lduh_sp32): Merge into...
10038 (*tldo_lduh_sp64): Likewise.
10039 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
10040 (*tldo_lduh1_sp32): Merge into...
10041 (*tldo_lduh1_sp64): Likewise.
10042 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
10043 (*tldo_ldsh1_sp32): Merge into...
10044 (*tldo_ldsh1_sp64): Likewise.
10045 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
10046 (*tldo_lduh2_sp64): Use DImode throughout.
10047 (*tldo_ldsh2_sp64): Likewise.
10048 (*tldo_lduw_sp32): Merge into...
10049 (*tldo_lduw_sp64): Likewise.
10050 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
10051 (*tldo_lduw1_sp64): Use DImode throughout.
10052 (*tldo_ldsw1_sp64): Likewise.
10053 (*tldo_ldx_sp64): Likewise.
10054 (*tldo_stb_sp32): Merge into...
10055 (*tldo_stb_sp64): Likewise.
10056 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
10057 (*tldo_sth_sp32): Merge into...
10058 (*tldo_sth_sp64): Likewise.
10059 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
10060 (*tldo_stw_sp32): Merge into...
10061 (*tldo_stw_sp64): Likewise.
10062 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
10063 (*tldo_stx_sp64): Use DImode throughout.
10064
10065 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10066
10067 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
10068 check configure option to set BTI and Return Address Signing.
10069 * configure.ac: Add --enable-standard-branch-protection and
10070 --disable-standard-branch-protection.
10071 * configure: Regenerated.
10072 * doc/install.texi: Document the same.
10073
10074 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10075 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10076
10077 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
10078 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
10079 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
10080 if bti is enabled.
10081 * config/aarch64/aarch64-bti-insert.c: New file.
10082 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
10083 pass.
10084 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
10085 new bti pass.
10086 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
10087 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
10088 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
10089 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
10090
10091 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10092
10093 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
10094 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
10095 Disable bti for -mbranch-protection=none.
10096 (aarch64_handle_standard_branch_protection): Enable bti for
10097 -mbranch-protection=standard.
10098 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
10099 -mbranch-protection.
10100 (aarch64_bti_enabled): Check if bti is enabled.
10101 * config/aarch64/aarch64.opt: Declare target variable.
10102 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
10103
10104 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10105
10106 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
10107 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
10108 (aarch64_expand_epilogue): Likewise.
10109 (aarch64_output_mi_thunk): Likewise
10110 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
10111 TAILCALL_ADDR_REGS to x16 and x17.
10112 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
10113
10114 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10115
10116 * config/aarch64/aarch64-option-extensions.def: Define
10117 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
10118 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
10119 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
10120 (AARCH64_FL_PREDRES): New.
10121 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
10122 AARCH64_FL_PREDRES by default.
10123 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
10124
10125 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10126
10127 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
10128 ARMv8.5-A.
10129 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
10130 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
10131 * doc/invoke.texi: Document ARMv8.5-A.
10132
10133 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10134
10135 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
10136 (xorsign<mode>3): Likewise.
10137
10138 2019-01-09 Jelinek <jakub@redhat.com>
10139
10140 PR middle-end/88758
10141 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
10142 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
10143
10144 PR rtl-optimization/88331
10145 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
10146 not currently_expanding_to_rtl.
10147
10148 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
10149
10150 * doc/invoke.texi (-Os): Remove trailing spaces.
10151 (-finline-functions): Remove reference to -O2.
10152
10153 2019-01-08 Jakub Jelinek <jakub@redhat.com>
10154
10155 PR rtl-optimization/79593
10156 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
10157
10158 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
10159 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
10160
10161 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
10162
10163 PR bootstrap/88721
10164 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
10165 to -1 on entry.
10166
10167 PR debug/88723
10168 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
10169 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
10170
10171 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
10172
10173 PR target/88717
10174 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
10175 ix86_avx_u128_mode_entry.
10176
10177 2019-01-08 Martin Liska <mliska@suse.cz>
10178
10179 PR tree-optimization/88753
10180 * tree-switch-conversion.c (switch_conversion::build_one_array):
10181 Come up with local variable constructor. Convert first to
10182 type of constructor values.
10183
10184 2019-01-08 Richard Biener <rguenther@suse.de>
10185
10186 PR tree-optimization/86554
10187 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
10188 rpo_avail): Move earlier.
10189 (visit_nary_op): When value-numbering to expressions
10190 with different overflow behavior make sure there's an
10191 available expression on the path.
10192
10193 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
10194
10195 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
10196 aarch64_parse_branch_protection,
10197 struct aarch64_branch_protect_type,
10198 aarch64_handle_no_branch_protection,
10199 aarch64_handle_standard_branch_protection,
10200 aarch64_validate_mbranch_protection,
10201 aarch64_handle_pac_ret_protection,
10202 aarch64_handle_attr_branch_protection,
10203 accepted_branch_protection_string,
10204 aarch64_pac_ret_subtypes,
10205 aarch64_branch_protect_types,
10206 aarch64_handle_pac_ret_leaf): Define.
10207 (aarch64_override_options_after_change_1, aarch64_override_options):
10208 Add check for accepted_branch_protection_string.
10209 (aarch64_option_save): Save accepted_branch_protection_string.
10210 (aarch64_option_restore): Save accepted_branch_protection_string.
10211 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
10212 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
10213 msign-return-address.
10214 * doc/invoke.texi: Add mbranch-protection.
10215
10216 2019-01-08 Alan Modra <amodra@gmail.com>
10217
10218 PR target/88614
10219 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
10220 Delete "unknownp" parameter. Adjust callers. Handle
10221 CONST_INT, PLUS, MINUS, and MULT.
10222 (attr_value_aligned): Renamed from or_attr_value.
10223 (min_attr_value): Return INT_MIN for unhandled rtl case..
10224 (min_fn): ..and translate to INT_MAX here.
10225 (write_length_unit_log): Modify to cope without "unknown".
10226 (write_attr_value): Handle IF_THEN_ELSE.
10227
10228 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10229
10230 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
10231 optimization for masked stores.
10232
10233 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10234
10235 PR middle-end/88567
10236 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
10237 output vector directly to duplicate_and_interleave instead of
10238 going through a temporary. Postpone insertion of ctor_seq to
10239 the end of the loop.
10240
10241 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
10242
10243 PR target/86891
10244 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
10245 unsigned_p. Handle signed and unsigned overflow correction as
10246 required.
10247 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
10248 prototype.
10249 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
10250 for operand 2.
10251 (add<mode>3_compareV_imm): Make this callable for expanding.
10252 (subv<GPI:mode>4): Use register_operand for operand 1. Use
10253 aarch64_plus_operand for operand 2.
10254 (subv<GPI:mode>_insn): New insn pattern.
10255 (subv<GPI:mode>_imm): Likewise.
10256 (negv<GPI:mode>3): New expand pattern.
10257 (negv<GPI:mode>_insn): New insn pattern.
10258 (negv<GPI:mode>_cmp_only): Likewise.
10259 (cmpv<GPI:mode>_insn): Likewise.
10260 (subvti4): Use register_operand for operand 1. Update call to
10261 aarch64_expand_subvti.
10262 (usubvti4): Likewise.
10263 (negvti3): New expand pattern.
10264 (negdi_carryout): New insn pattern.
10265 (negvdi_carryinV): New insn pattern.
10266 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
10267 version the named version.
10268 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
10269 operands.
10270 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
10271 patterns.
10272 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
10273 patterns.
10274 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
10275 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
10276 (sub<mode>3_carryinCV): Delete.
10277 (sub<GPI:mode>3_carryinV): New expand pattern.
10278 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
10279
10280 2019-01-07 Richard Biener <rguenther@suse.de>
10281
10282 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
10283 of tree_operand_hash.
10284
10285 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10286
10287 PR tree-optimization/88598
10288 * tree.h (single_nonzero_element): Declare.
10289 * tree.c (single_nonzero_element): New function.
10290 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
10291 if I is the only nonzero element of CST.
10292
10293 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10294
10295 PR tree-optimization/88598
10296 * tree.h (initializer_each_zero_or_onep): Declare.
10297 * tree.c (initializer_each_zero_or_onep): New function.
10298 (signed_or_unsigned_type_for): Handle float types too.
10299 (unsigned_type_for, signed_type_for): Update comments accordingly.
10300 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
10301 x & { 0 or -1, 0 or -1, ... }.
10302
10303 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
10304
10305 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
10306 with x86_64-pc-linux-gnu.
10307
10308 2019-01-07 Tom de Vries <tdevries@suse.de>
10309
10310 PR target/85486
10311 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
10312 function.
10313 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
10314 routines.
10315
10316 2019-01-07 Jakub Jelinek <jakub@redhat.com>
10317
10318 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
10319 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
10320 TARGET_AVX512F as condition.
10321
10322 PR debug/88723
10323 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
10324 const_not_ok_for_debug_p target hook.
10325 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
10326 on UNSPEC and subexpressions thereof if all subexpressions of the
10327 UNSPEC are CONSTANT_P.
10328
10329 PR tree-optimization/88676
10330 * tree-ssa-phiopt.c (two_value_replacement): New function.
10331 (tree_ssa_phiopt_worker): Call it.
10332
10333 PR sanitizer/88619
10334 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
10335 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
10336
10337 PR c++/85052
10338 * tree-vect-generic.c: Include insn-config.h and recog.h.
10339 (expand_vector_piecewise): Add defaulted ret_type argument,
10340 if non-NULL, use that in preference to type for the result type.
10341 (expand_vector_parallel): Formatting fix.
10342 (do_vec_conversion, do_vec_narrowing_conversion,
10343 expand_vector_conversion): New functions.
10344 (expand_vector_operations_1): Call expand_vector_conversion
10345 for VEC_CONVERT ifn calls.
10346 * internal-fn.def (VEC_CONVERT): New internal function.
10347 * internal-fn.c (expand_VEC_CONVERT): New function.
10348 * fold-const-call.c (fold_const_vec_convert): New function.
10349 (fold_const_call): Use it for CFN_VEC_CONVERT.
10350 * doc/extend.texi (__builtin_convertvector): Document.
10351
10352 2019-01-07 Tom de Vries <tdevries@suse.de>
10353
10354 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
10355 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
10356 vector_red_partition, vector_red_sym): New global variables.
10357 (nvptx_option_override): Initialize vector_red_sym.
10358 (nvptx_declare_function_name): Restore red_partition register.
10359 (nvptx_file_end): Emit code to declare the vector reduction variables.
10360 (nvptx_output_red_partition): New function.
10361 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
10362 large vector reductions.
10363 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
10364 (nvptx_init_builtins): Add VECTOR_ADDR.
10365 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
10366 Handle nvptx_expand_shared_addr.
10367 (nvptx_get_shared_red_addr): Add vector argument and handle large
10368 vectors.
10369 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
10370 large vectors.
10371 (nvptx_goacc_reduction_init): Likewise.
10372 (nvptx_goacc_reduction_fini): Likewise.
10373 (nvptx_goacc_reduction_teardown): Likewise.
10374 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
10375 init,fini,teardown}.
10376 (nvptx_init_axis_predicate): Initialize vector_red_partition.
10377 (nvptx_set_current_function): Init vector_red_partition.
10378 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
10379 (nvptx_red_partition): New insn.
10380 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
10381
10382 2019-01-07 Tom de Vries <tdevries@suse.de>
10383
10384 PR target/85381
10385 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
10386 empty loops.
10387
10388 2019-01-07 Tom de Vries <tdevries@suse.de>
10389
10390 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
10391 (nvptx_option_override): Init oacc_bcast_partition.
10392 (nvptx_init_oacc_workers): New function.
10393 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
10394 (nvptx_needs_shared_bcast): New function.
10395 (nvptx_find_par): Generalize to enable vectors to use shared-memory
10396 to propagate state.
10397 (nvptx_shared_propagate): Initialize vector bcast partition and
10398 synchronization state.
10399 (nvptx_single): Generalize to enable vectors to use shared-memory
10400 to propagate state.
10401 (nvptx_process_pars): Likewise.
10402 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
10403 * config/nvptx/nvptx.h (struct machine_function): Add
10404 bcast_partition and sync_bar members.
10405
10406 2019-01-07 Tom de Vries <tdevries@suse.de>
10407
10408 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
10409 (nvptx_apply_dim_limits): New function.
10410 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
10411 PTX_WARP_SIZE.
10412
10413 2019-01-07 Tom de Vries <tdevries@suse.de>
10414
10415 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
10416 as late as possible.
10417
10418 2019-01-07 Tom de Vries <tdevries@suse.de>
10419
10420 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
10421 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
10422 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
10423 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
10424 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
10425
10426 2019-01-07 Tom de Vries <tdevries@suse.de>
10427
10428 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
10429
10430 2019-01-07 Tom de Vries <tdevries@suse.de>
10431
10432 * omp-offload.c (oacc_get_min_dim): New function.
10433 * omp-offload.h (oacc_get_min_dim): Declare.
10434
10435 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
10436
10437 PR target/88521
10438 * config/i386/i386.c (function_value_ms_64): Return small sturct in
10439 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
10440
10441 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10442
10443 PR tree-opt/86020
10444 Revert:
10445 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
10446
10447 * ipa-inline.c (edge_badness): Use inlined_time instead of
10448 inline_summaries->get.
10449
10450 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10451
10452 * opts.c (enable_fdo_optimizations): Enable
10453 version-loops-for-strides, loop-interchange, unrol-and-jam
10454 and tree-loop-distribution.
10455 * invoke.texi: Document newly enabled options.
10456
10457 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10458
10459 * doc/invoke.texi (max-inline-insns-small): New parameters.
10460 * ipa-inline.c (want_early_inline_function_p): simplify.
10461 (want_inline_small_function_p): Fix pasto from previous patch;
10462 use max-inline-insns-small bound.
10463 * params.def (max-inline-insns-small): New param.
10464 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
10465 variables correctly.
10466
10467 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10468
10469 * doc/invoke.texi: Document max-inline-insns-size,
10470 uninlined-function-insns, uninlined-function-time,
10471 uninlined-thunk-insns and uninlined-thunk-time.
10472 * params.def: Add max-inline-insns-size,
10473 uninlined-function-insns, uninlined-function-time,
10474 uninlined-thunk-insns and uninlined-thunk-time.
10475 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
10476 new parameters.
10477 * ipa-inline.c (can_inline_edge_by_limits_p,
10478 want_inline_small_function_p): Use new parameters.
10479
10480 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10481
10482 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
10483
10484 2019-01-05 Jakub Jelinek <jakub@redhat.com>
10485
10486 PR middle-end/82564
10487 PR target/88620
10488 * expr.c (expand_assignment): For calls returning VLA structures
10489 if to_rtx is not a MEM, force it into a stack temporary.
10490
10491 PR debug/88635
10492 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
10493 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
10494 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
10495 subexpressions of both operands.
10496 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
10497 subrtxes are CONSTANT_P.
10498 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
10499 2018-11-09 changes.
10500
10501 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
10502
10503 * params.def (hot-bb-count-ws-permille): Set to 990.
10504
10505 2019-01-04 Martin Sebor <msebor@redhat.com>
10506
10507 PR c/88546
10508 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
10509 leaf.
10510
10511 2019-01-04 Martin Sebor <msebor@redhat.com>
10512
10513 PR c/88363
10514 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
10515
10516 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10517
10518 * gdbinit.in: Turn off pagination for the skip commands, restore
10519 it to previous state afterwards.
10520
10521 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10522
10523 PR target/88594
10524 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
10525 of GET_MODE (opN) as modes of the libcall arguments.
10526
10527 2019-01-04 Jan Beulich <jbeulich@suse.com>
10528
10529 * config/i386/sse.md
10530 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
10531 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
10532 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10533 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10534 avx512f_vmcmp<mode>3<round_saeonly_name>,
10535 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
10536 avx512f_maskcmp<mode>3,
10537 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10538 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10539 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10540 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10541 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10542 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10543 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10544 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10545 <avx512>_testm<mode>3<mask_scalar_merge_name>,
10546 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
10547 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
10548 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
10549 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
10550 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
10551 avx512cd_maskb_vec_dup<mode>,
10552 avx512cd_maskw_vec_dup<mode>,
10553 avx512dq_fpclass<mode><mask_scalar_merge_name>,
10554 avx512dq_vmfpclass<mode>,
10555 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
10556 instead of =Yk.
10557
10558 2019-01-03 Martin Sebor <msebor@redhat.com>
10559
10560 PR tree-optimization/88659
10561 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
10562
10563 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10564
10565 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
10566 unaligned vsx and avoid lxvd2x/stxvd2x.
10567 (gen_lvx_v4si_move): New function.
10568
10569 2019-01-03 Tom de Vries <tdevries@suse.de>
10570
10571 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
10572 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
10573 function.
10574 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
10575
10576 2019-01-03 Tom de Vries <tdevries@suse.de>
10577
10578 * config/nvptx/nvptx.c (struct offload_attrs): New.
10579 (populate_offload_attrs): New function. Factor mask extraction out of
10580 nvptx_reorg. Add extraction of dimensions.
10581 (nvptx_reorg): Use populate_offload_attrs.
10582
10583 2019-01-03 Tom de Vries <tdevries@suse.de>
10584
10585 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
10586 cases for oacc_min_dims_p and routine_p. Add asserts for
10587 oacc_default_dims_p and offload_region_p.
10588
10589 2019-01-03 Tom de Vries <tdevries@suse.de>
10590
10591 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
10592 factored out of ...
10593 (nvptx_goacc_validate_dims): ... here.
10594
10595 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10596
10597 PR tree-optimization/85574
10598 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
10599 structure.
10600 (struct ssa_equip_hash_traits): Declare.
10601 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
10602
10603 2019-01-03 Jakub Jelinek <jakub@redhat.com>
10604
10605 PR debug/88644
10606 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
10607 change it to qualified_type.
10608
10609 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10610
10611 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
10612 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
10613
10614 2019-01-02 Martin Sebor <msebor@redhat.com>
10615 Jeff Law <law@redhat.com>
10616
10617 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
10618 (get_range_strlen_tree): Update appropriately.
10619 (get_range_strlen)
10620 * gimple-fold.h (get_range_strlen): Drop unused last argument.
10621
10622 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
10623 rather than set_range_info.
10624 * tree-ssa-strlen.c (set_strlen_range): Extracted from
10625 maybe_set_strlen_range. Handle potentially boundary crossing
10626 cases more conservatively.
10627 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
10628 Call set_strlen_range.
10629 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
10630
10631 PR middle-end/88663
10632 * gimple-fold.c (get_range_strlen): Update prototype to no longer
10633 need the flexp argument.
10634 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
10635 from calls to get_range_strlen. Update comments. Just update
10636 VAL for an unterminated const char array and let the reset of the
10637 code handle it normally. No longer try to set *flexp. Adjust
10638 return value.
10639 (get_range_strlen): Update for the new get_range_strlen API.
10640 (get_maxval_strlen): Similarly.
10641 (gimple_fold_builtin_strlen): Handle update meaning of return value
10642 from get_range_strlen.
10643 * gimple-ssa-sprintf.c (get_string_length): Update for the new
10644 get_range_strlen API.
10645
10646 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
10647
10648 PR lto/88130
10649 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
10650 false at WPA time when body was removed.
10651
10652 2019-01-02 Martin Liska <mliska@suse.cz>
10653
10654 PR tree-optimization/88650
10655 * predict.c (set_even_probabilities): Calculate probability
10656 remainer only when really used.
10657
10658 2019-01-02 Richard Biener <rguenther@suse.de>
10659
10660 PR middle-end/88651
10661 * tree-data-ref.c (analyze_subscript_affine_affine): Use
10662 widest_ints when mangling max_stmt_execution results.
10663
10664 2019-01-02 Richard Biener <rguenther@suse.de>
10665
10666 PR tree-optimization/88621
10667 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
10668 bitfields when canoncalizing.
10669
10670 2019-01-02 Richard Biener <rguenther@suse.de>
10671
10672 PR target/87545
10673 * config/i386/x86-tune-costs.h (intel_cost): Adjust
10674 cost of cheap SSE instruction.
10675
10676 2019-01-02 Richard Biener <rguenther@suse.de>
10677
10678 PR ipa/85574
10679 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
10680 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
10681 function.
10682 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
10683 set after UIDs before splitting them.
10684
10685 2019-01-01 Martin Sebor <msebor@redhat.com>
10686 Jeff Law <law@redhat.com>
10687
10688 * gimple-fold.c (get_range_strlen_tree): Record if the computed
10689 length is optimistic. If it is, then arrange to compute the
10690 conservative length as well.
10691
10692 * gimple-fold.h (get_range_strlen): Update prototype.
10693 * builtins.c (check_access): Update call to get_range_strlen to use
10694 c_strlen_data pointer. Change various variable accesses to instead
10695 pull data from the c_strlen_data structure.
10696 (check_strncat_sizes, expand_builtin_strncat): Likewise.
10697 * calls.c (maybe_warn_nonstring_arg): Likewise.
10698 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
10699 minimum length if maximum lengh is unknown.
10700 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
10701 that used c_strlen, it's no longer needed. Restructure slightly.
10702 (format_string): Set unlikely range appropriately.
10703 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
10704 formatting issues.
10705 (get_range_strlen): Accept c_strlen_data pointer for external
10706 call sites as well. Pass through to call to internal get_range_strlen.
10707 Adjust minlen, maxlen and maxbound as needed.
10708 (get_maxval_strlen): Update comments.
10709 (gimple_fold_builtin_strlen): Update call to get_range_strlen
10710 to use c_strlen_data pointer. Change variable accesses to instead
10711 use c_strlen_data data members.
10712
10713 * gimple-fold.c (get_range_strlen): Update prototype.
10714 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
10715 local variables. Use pdata to return information to caller.
10716 Update calls to get_range_strlen. Update pdata->maxbound.
10717 (get_range_strlen -- static version): Similarly.
10718 (get_range_strlen -- extern version): Update for internal
10719 get_range_strlen API change. Convert to external data format.
10720 (get_maxval_strlen): Similarly.
10721
10722 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
10723
10724 * coverage.c (get_coverage_counts): Use current_function_decl.
10725 * profile.c (read_thunk_profile): New function.
10726 (branch_prob): Add THUNK parameter.
10727 * tree-profile.c (tree_profiling): Handle thunks.
10728 * value-prof.c (init_node_map): Handle thunks.
10729 * value-prof.h (branch_prob): Upate prototype.
10730 (read_thunk_profile): Declare.
10731
10732 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10733
10734 Update copyright years.
10735
10736 * gcc.c (process_command): Update copyright notice dates.
10737 * gcov-dump.c (print_version): Ditto.
10738 * gcov.c (print_version): Ditto.
10739 * gcov-tool.c (print_version): Ditto.
10740 * gengtype.c (create_file): Ditto.
10741 * doc/cpp.texi: Bump @copying's copyright year.
10742 * doc/cppinternals.texi: Ditto.
10743 * doc/gcc.texi: Ditto.
10744 * doc/gccint.texi: Ditto.
10745 * doc/gcov.texi: Ditto.
10746 * doc/install.texi: Ditto.
10747 * doc/invoke.texi: Ditto.
10748 \f
10749 Copyright (C) 2019 Free Software Foundation, Inc.
10750
10751 Copying and distribution of this file, with or without modification,
10752 are permitted in any medium without royalty provided the copyright
10753 notice and this notice are preserved.