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