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