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