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