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