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