1 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
2 Shiva Chen <shiva0217@gmail.com>
4 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
5 code gen with large shift amount.
7 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
9 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
12 2019-04-16 Jakub Jelinek <jakub@redhat.com>
15 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
16 print -m64/-mx32/-m32 if it is true.
17 (ix86_debug_options, ix86_function_specific_print): Pass true as
18 ADD_ABI_P to ix86_target_string.
19 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
21 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
23 PR rtl-optimization/90082
24 * dce.c (can_delete_call): New function.
25 (deletable_insn_p, mark_insn): Use it.
27 PR tree-optimization/90090
28 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
30 (is_division_by_square): Likewise. Formatting fix.
32 2019-04-16 Richard Biener <rguenther@suse.de>
34 PR tree-optimization/56049
35 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
36 equality check if alias-set zero will prevail.
38 2019-04-15 Jeff Law <law@redhat.com>
40 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
41 size and alignment as unsigned.
43 2019-04-15 Richard Biener <rguenther@suse.de>
46 * tree-loop-distribution.c (destroy_loop): Preserve correct
49 2019-04-15 Richard Biener <rguenther@suse.de>
51 PR tree-optimization/90071
52 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
53 abnormal operands from def stmts.
55 2019-04-15 Richard Biener <rguenther@suse.de>
58 * tree.h (auto_var_p): Declare.
59 * tree.c (auto_var_p): New function, split out from ...
60 (auto_var_in_fn_p): ... here.
61 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
63 (new_var_info): Initialize it.
64 (set_uids_in_ptset): Also set the shadow variable uid if required.
65 (ipa_pta_execute): Postprocess points-to solutions assigning
66 shadow variable uids for locals that may reach their containing
68 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
69 assert but instead check whether the points-to solution is
72 2019-04-15 Martin Jambor <mjambor@suse.cz>
75 * cgraph.c (clone_of_p): Loop over clone chain for each step in
78 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
80 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
82 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
83 Kito Cheng <kito.cheng@gmail.com>
84 Shiva Chen <shiva0217@gmail.com>
86 * config/nds32/nds32-md-auxiliary.c
87 (nds32_legitimize_pic_address): Use new PIC pattern.
88 (nds32_legitimize_tls_address): Use new TLS pattern.
89 (nds32_output_symrel): New.
90 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
91 (nds32_alloc_relax_group_id): Ditto.
92 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
93 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
95 (nds32_group_tls_insn): Ditto.
96 (nds32_group_float_insns): Ditto.
97 * config/nds32/nds32.md (tls_le): New.
100 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
102 * configure: Add nds32 target for dwarf2 debug_line checking.
103 * configure.ac: Regenerated.
105 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
108 * ipa-devirt.c (skip_in_fields_list_p): New.
109 (odr_types_equivalent_p): Use it.
111 2019-04-13 Jakub Jelinek <jakub@redhat.com>
114 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
115 instead of strncmp when checking for thumb and arm. Formatting fixes.
117 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
119 * doc/install.texi: Document --with-target-system-zlib.
121 2019-04-12 Martin Sebor <msebor@redhat.com>
127 * targhooks.c (default_vector_alignment): Avoid assuming
128 argument fits in SHWI.
129 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
131 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
133 2019-04-12 Jakub Jelinek <jakub@redhat.com>
135 PR rtl-optimization/89965
136 * dce.c: Include rtl-iter.h.
137 (struct check_argument_load_data): New type.
138 (check_argument_load): New function.
139 (find_call_stack_args): Check for loads from stack slots still tracked
140 in sp_bytes and punt if any is found.
142 * config/mips/loongson-mmiintrin.h: Fix up #error message.
144 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
146 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
147 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
149 2019-04-12 Martin Liska <mliska@suse.cz>
152 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
154 (separate_attrs): Handle multiple 'default's.
155 (expand_target_clones): Rework error handling code.
157 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
160 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
161 mode of vector rather than mode of destination for move instruction.
162 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
163 Use QI inner mode with V16QI vector mode.
165 2019-04-12 Jakub Jelinek <jakub@redhat.com>
168 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
169 "invalid %%t operand" in output_operand_lossage message.
171 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
173 * config/s390/predicates.md (permute_pattern_operand): New
175 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
176 operand for the permute pattern.
177 ("*vec_perm<mode>"): New insn definition.
178 ("bswap<mode>"): Generate the permute pattern operand in the
179 expander and perform the operand reloads for pre arch13 level
181 ("*bswap<mode>_emu"): Rename to ...
182 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
183 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
184 Add the USE operand for the permute pattern.
185 ("*vec_set_bswap_vec<mode>"): Likewise.
187 2019-04-12 Jakub Jelinek <jakub@redhat.com>
190 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
191 and gcc_unreachable if it fails, just call tree_to_uhwi which
192 verifies that too. Test TREE_CHAIN instead of list_length > 1.
193 Start warning message with a lower-case letter. Formatting fixes.
195 PR rtl-optimization/90026
196 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
197 successors, look for BARRIERs inside of the whole BB_FOOTER chain
198 rather than just at the start of it. If e->src BB_FOOTER is not NULL
199 in cfglayout mode, use emit_barrier_after_bb.
201 2018-04-11 Steve Ellcey <sellcey@marvell.com>
203 PR rtl-optimization/87763
204 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
207 2019-04-11 Tom de Vries <tdevries@suse.de>
209 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
210 max macro using statement expression.
212 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
214 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
215 * xcoffout.c (xcoff_private_rodata_section_name): Define.
216 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
217 read_only_private_data_section using xcoff_private_rodata_section_name.
218 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
220 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
223 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
225 2019-04-11 Jakub Jelinek <jakub@redhat.com>
227 PR rtl-optimization/89965
228 * dce.c (sp_based_mem_offset): New function.
229 (find_call_stack_args): Use sp_based_mem_offset.
231 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
233 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
235 2019-04-11 Richard Biener <rguenther@suse.de>
237 PR tree-optimization/90020
238 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
239 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
240 * tree-ssa-pre.c (compute_avail): Use it to not put
241 possibly trapping references after a call that might not
243 * gcse.c (compute_hash_table_work): Do not elide
244 marking a block containing a call if the call might not
247 2019-04-11 Richard Biener <rguenther@suse.de>
249 PR tree-optimization/90018
250 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
251 Test both SLP and interleaving variants.
253 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
255 * config/s390/8561.md: New file.
256 * config/s390/driver-native.c (s390_host_detect_local_cpu):
257 Add arch13 cpu model.
258 * config/s390/s390-opts.h (enum processor_type): Likewise.
259 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
260 (s390_get_unit_mask): Likewise.
261 (s390_is_fpd): Likewise.
262 (s390_is_fxd): Likewise.
263 * config/s390/s390.h (s390_tune_attr): Likewise.
264 * config/s390/s390.md: Include arch13 pipeline description.
265 * config/s390/s390.opt: Add arch13.
267 2018-04-10 Steve Ellcey <sellcey@marvell.com>
269 PR rtl-optimization/87763
270 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
272 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
274 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
276 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
277 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
278 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
279 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
281 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
283 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
284 "Although" in -fipa-icf documentation.
286 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
287 of using multiple -g options.
289 2019-04-10 Martin Liska <mliska@suse.cz>
291 PR gcov-profile/89959
292 * doc/gcov.texi: Make documentation of -x option
295 2019-04-10 Richard Biener <rguenther@suse.de>
297 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
299 (DR_GROUP_SAME_DR_STMT): Remove.
300 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
301 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
303 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
304 (vect_record_grouped_load_vectors): Remove unreachable code.
306 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
309 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
310 obsolete reference to N.
312 2019-04-10 Jakub Jelinek <jakub@redhat.com>
315 * expr.c (store_expr): Set properly size on the MEM passed to
319 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
320 with strlen in between hostsz-3 and hostsz-1 inclusive when no
321 translation is needed, and when translation is needed, only append
322 ... if the string length is hostsz or more bytes long. Avoid using
325 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
328 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
329 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
331 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
332 differences directly.
333 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
335 2019-04-09 Jakub Jelinek <jakub@redhat.com>
338 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
340 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
342 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
343 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
344 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
345 trailing space from -gsplit-dwarf diagnostics.
347 PR tree-optimization/89998
348 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
349 instead of integer_type_node if possible, don't add ranges if return
350 type is not compatible with int.
351 * gimple-fold.c (gimple_fold_builtin_sprintf,
352 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
355 2019-04-09 Martin Liska <mliska@suse.cz>
357 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
358 * doc/install.texi: Document the new config.
360 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
362 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
363 use gimple_expr_type for load and store calls. Skip over the
364 condition argument in a conditional internal function.
365 Protect use of TREE_INT_CST_LOW.
367 2019-04-09 Jakub Jelinek <jakub@redhat.com>
370 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
371 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
372 trailing period from it too.
374 2019-04-08 wu yuan <wuyuan5@huawei.com>
376 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
377 * config/aarch64/aarch64.md : Add "tsv110.md"
378 * config/aarch64/tsv110.md: New file.
380 2019-04-08 Richard Biener <rguenther@suse.de>
382 PR tree-optimization/90006
383 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
386 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
389 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
391 (fma_root_node): Likewise.
392 (func_fma_steering): Likewise.
394 2019-04-08 Jakub Jelinek <jakub@redhat.com>
396 PR rtl-optimization/89865
397 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
399 PR rtl-optimization/89865
400 * config/i386/i386.md
401 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
402 numbers not to clash with the additional operands[4].
403 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
404 with extra register copy in the middle.
406 2019-04-08 Martin Liska <mliska@suse.cz>
408 PR gcov-profile/89961
409 * doc/gcov.texi: Document data_file.
410 * gcov.c (generate_results): Add data_info into JSON output.
412 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
414 PR tree-optimization/89725
415 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
416 loop's chrec as invariant symbol.
417 * tree-chrec.h (chrec_contains_symbols): New parameter.
418 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
419 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
420 function of loops not in DDR's loop_nest.
421 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
423 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
426 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
429 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
432 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
433 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
435 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
437 * sched-deps.c (sched_macro_fuse_insns): Check return value of
438 targetm.fixed_condition_code_regs.
440 2019-04-05 Richard Biener <rguenther@suse.de>
444 * tree-cfgcleanup.c (remove_forwarder_block): Always move
445 debug bind stmts but reset them if they are not valid at the
448 2019-04-05 Martin Liska <mliska@suse.cz>
451 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
452 order to wrap keywords or arguments.
453 * collect2.c (main): Likewise.
454 (scan_prog_file): Likewise.
455 (scan_libraries): Likewise.
456 * common/config/riscv/riscv-common.c
457 (riscv_subset_list::parsing_subset_version): Likewise.
458 (riscv_subset_list::parse_std_ext): Likewise.
459 * config/aarch64/aarch64.c (aarch64_override_options_internal):
461 * config/arm/arm.c (arm_option_override): Likewise.
462 * config/cris/cris.c (cris_print_operand): Likewise.
463 * config/darwin-c.c (darwin_pragma_options): Likewise.
464 (darwin_pragma_unused): Likewise.
465 (darwin_pragma_ms_struct): Likewise.
466 * config/ft32/ft32.c (ft32_print_operand): Likewise.
467 * config/i386/i386.c (print_reg): Likewise.
468 (ix86_print_operand): Likewise.
469 * config/i386/xm-djgpp.h: Likewise.
470 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
471 * config/m32c/m32c.c (m32c_option_override): Likewise.
472 * config/msp430/msp430.c (msp430_option_override): Likewise.
473 * config/nds32/nds32.c (nds32_option_override): Likewise.
474 * config/nvptx/mkoffload.c (main): Likewise.
475 * config/rx/rx.c (rx_print_operand): Likewise.
476 (valid_psw_flag): Likewise.
477 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
478 (vms_pragma_nomember_alignment): Likewise.
479 (vms_pragma_extern_model): Likewise.
480 * lto-wrapper.c (compile_offload_image): Likewise.
481 * omp-offload.c (oacc_parse_default_dims): Likewise.
482 * symtab.c (symtab_node::verify_base): Likewise.
483 * tlink.c (recompile_files): Likewise.
484 (start_tweaking): Likewise.
485 * tree-profile.c (parse_profile_filter): Likewise.
487 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
489 PR tree-optimization/89956
490 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
491 multiple negates of the same value.
493 2019-04-04 Martin Sebor <msebor@redhat.com>
497 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
498 have the same precision since the function crashes otherwise.
499 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
500 has non-zero arguments.
502 2019-04-04 Martin Sebor <msebor@redhat.com>
505 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
506 out if the number of arguments is less than expected.
508 2019-04-04 Jeff Law <law@redhat.com>
510 PR rtl-optimization/89399
511 * ree.c (combine_set_extension): Use single_set rather than
512 digging into PATTERN for items on the candidate list.
513 (combine_reaching_defs): Likewise.
515 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
517 PR rtl-optimization/46590
518 * loop-invariant.c (find_defs): Move df_remove_problem and
519 df_process_deferred_rescans to move_invariants.
520 Move df_live_add_problem and df_live_set_all_dirty calls
522 (move_invariants): Likewise.
523 (move_loop_invariants): Likewise, making the df_live calls
524 conditional on -O. Remove the problem again if we added it
527 2019-04-03 qing zhao <qing.zhao@oracle.com>
529 PR tree-optimization/89730
530 * ipa-inline.c (can_inline_edge_p): Delete the checking for
531 -flive-patching=inline-only-static.
532 (can_inline_edge_by_limits_p): Add the checking for
533 -flive-patching=inline-only-static and grant always_inline
534 even when -flive-patching=inline-only-static is specified.
536 2019-04-03 Jeff Law <law@redhat.com>
538 PR rtl-optimization/81025
539 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
541 2019-04-03 Richard Biener <rguenther@suse.de>
543 PR tree-optimization/84101
544 * tree-vect-stmts.c: Include explow.h for hard_function_value,
545 regs.h for hard_regno_nregs.
546 (cfun_returns): New helper.
547 (vect_model_store_cost): When vectorizing a store to a decl
548 we return and the function ABI returns in a multi-reg location
549 account for the possible spilling that will happen.
551 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
553 * config/s390/s390.c (s390_legitimate_address_p): Reject long
554 displacement addresses for vector mode operands.
556 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
558 * config/arc/arc.c (GMASK_LEN): Define.
559 (arc_restore_callee_saves): Restore first blink when
562 2019-04-03 Sudakshina Das <sudi.das@arm.com>
564 * doc/extend.texi: Add deprecated comment on sign-return-address
565 function attribute and add mbranch-protection.
566 * doc/invoke.texi: Add bti to the options for mbranch-protection.
568 2019-04-03 Richard Biener <rguenther@suse.de>
571 * lto-wrapper.c (run_gcc): Avoid implicit rules making
572 the all target phony.
574 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
578 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
579 Return false for variable DImode shifts.
580 (dimode_scalar_chain::compute_convert_gain): Do not handle
581 register count operand in variable DImode shifts.
582 (dimode_scalar_chain::make_vector_copies): Remove support to copy
583 count argument of a variable shift instruction to a vector register.
584 (dimode_scalar_chain::convert_reg): Remove support to convert
585 count argument of a variable shift instruction.
587 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
589 PR rtl-optimization/84206
590 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
591 iterating over loop headers.
593 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
595 PR rtl-optimization/85876
596 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
597 beyond the original fence.
599 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
601 * config.gcc: Mark spu* targets as deprecated/obsolete.
603 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
605 * config/s390/s390-builtin-types.def: New builtin function type
606 definitions. Remove unused types.
607 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
608 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
609 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
611 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
612 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
613 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
614 (vec_double, vec_signed, vec_unsigned): Define to use the new
616 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
619 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
621 * config/s390/s390-builtin-types.def: New builtin function type
623 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
624 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
625 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
626 (s390_vstrszh, s390_vstrszf): New low-level builtins.
627 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
628 constant definitions.
629 * config/s390/vecintrin.h (vec_search_string_cc)
630 (vec_search_string_until_zero_cc): New builtin name definitions.
631 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
633 ("vec_vstrs<mode>"): New insn definition.
635 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
637 * config/s390/s390-builtin-types.def: Add new builtin function
639 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
640 New overloaded builtins.
641 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
643 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
644 (UNSPEC_VEC_SLDBYTE): ... this.
645 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
646 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
648 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
649 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
650 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
652 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
654 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
656 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
657 * config/s390/vector.md (V_HW_HSD): ... here.
659 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
661 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
662 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
663 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
664 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
665 New insn definitions.
667 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
669 * config/s390/s390-builtin-types.def: Add new builtin function type.
670 * config/s390/s390-builtins.def: Add overloaded builtin
671 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
672 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
673 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
674 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
675 ("eltswap<mode>"): New expander.
676 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
679 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
681 * config/s390/s390-builtin-types.def: Add new builtin function types.
682 * config/s390/s390-builtins.def: Add overloaded builtin
683 s390_vec_revb. Add low-level builtins for vlbr and vstbr
685 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
686 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
687 ("bswap<mode>"): New expander.
688 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
690 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
692 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
693 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
694 vector builtin version number in __VEC__.
696 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
698 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
700 (SFSI): New mode attribute.
701 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
702 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
704 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
705 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
706 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
707 ("floatsi<mode>2"): Add wcefb instruction.
709 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
711 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
712 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
714 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
715 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
716 support 32 bit fp-int conversions. Rename to ...
717 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
718 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
719 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
720 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
723 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
725 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
726 if-then-else constructs if we can use the select instruction.
727 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
729 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
731 * config/s390/s390.md ("*popcountdi_arch13_cc")
732 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
734 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
735 Append _z196 to make it ...
736 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
737 ("popcounthi2_z196"): ... this.
738 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
739 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
741 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
743 * config/s390/s390.c (s390_canonicalize_comparison): Convert
744 certain compares for arch13 in order to make use of the condition
745 code result produced by the new instructions.
746 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
747 nxrk, and nxgrk instruction patterns.
748 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
749 (inv_no): Add new code iterator together with some attributes.
750 ("*andc_split_<mode>"): Disable splitter for arch13.
751 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
752 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
753 ("*<ANDOR:bitops_name>c<GPR:mode>")
754 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
755 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
756 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
757 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
759 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
761 * common/config/s390/s390-common.c (processor_flags_table): New
763 * config.gcc: Support arch13 with the --with-arch= configure flag.
764 * config/s390/driver-native.c (s390_host_detect_local_cpu):
765 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
766 * config/s390/s390.c (s390_get_sched_attrmask)
767 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
768 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
769 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
770 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
771 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
773 * config/s390/s390.opt: Support arch13 as processor type in
774 command line options.
776 2019-04-02 Martin Liska <mliska@suse.cz>
779 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
780 Fix param description of graphite-max-arrays-per-scop.
782 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
784 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
785 (ASAN_CC1_SPEC): Use it in 64-bit mode.
786 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
788 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
790 PR rtl-optimization/85412
791 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
792 sel_sched_region_1, not after.
794 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
796 PR rtl-optimization/86928
797 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
798 compute_live if necessary.
799 (sel_redirect_edge_and_branch): Likewise.
801 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
803 PR rtl-optimization/89865
804 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
805 register if it is a part of small class.
807 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
809 PR rtl-optimization/87273
810 * sel-sched-ir.c (merge_fences): Remove assert.
812 2019-04-01 Richard Biener <rguenther@suse.de>
814 PR tree-optimization/46590
815 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
816 (dom_walker::m_reachability): Add in place of...
817 (dom_walker::m_skip_unreachable_blocks): ...this.
818 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
819 Move complex initialization ...
820 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
821 lazily and initialize edge flags on each invocation.
822 (dom_walker::bb_reachable): Use m_reachability.
824 2019-04-01 Martin Liska <mliska@suse.cz>
827 * opt-suggestions.c (option_proposer::build_option_suggestions):
828 Add variant without any argument in order to provide better
831 2019-04-01 Richard Biener <rguenther@suse.de>
834 * gimple.c: Include langhooks.h.
835 (gimple_get_alias_set): Treat enumeral types as the underlying
838 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
839 Eric Botcazou <ebotcazou@adacore.com>
841 PR rtl-optimization/89862
842 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
843 that operates on the full registers for WORD_REGISTER_OPERATIONS
846 2019-03-29 Jim Wilson <jimw@sifive.com>
848 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
849 Clear MASK_RVC and then set if C subset supported.
851 2019-03-29 Jakub Jelinek <jakub@redhat.com>
854 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
855 non-addressable complit into its initializer if it is volatile.
857 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
859 * opts-common.c (integral_argument): Set errno properly in one case.
861 2019-03-29 Martin Liska <mliska@suse.cz>
863 * doc/invoke.texi: Remove -Wchkp from documentation.
865 2019-03-29 Martin Liska <mliska@suse.cz>
867 * dbgcnt.c (print_limit_reach): New function.
870 2019-03-29 Martin Liska <mliska@suse.cz>
872 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
873 (dbg_cnt_process_opt): Parse first tokens aas
874 dbg_cnt_process_single_pair is also using strtok.
876 2019-03-29 Jakub Jelinek <jakub@redhat.com>
878 PR rtl-optimization/87485
879 * function.c (expand_function_end): Move stack_protect_epilogue
880 before loading of return value into hard register(s).
882 2019-03-28 Jakub Jelinek <jakub@redhat.com>
885 * tree-inline.h (struct copy_body_data): Add
886 dont_remap_vla_if_no_change flag.
887 * tree-inline.c (remap_type_3, remap_type_2): New functions.
888 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
889 and remap_type_2 returns false.
890 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
891 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
892 only from where it is copied to nested contexts.
894 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
897 * config/i386/i386.md (RMW operation with LEA peephole):
898 Use LEAMODE mode attribute instead of SWI mode iterator for
901 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
904 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
905 Also process XEXP (src, 0) of a shift insn.
907 2019-03-28 David Malcolm <dmalcolm@redhat.com>
910 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
911 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
913 2019-03-28 Jakub Jelinek <jakub@redhat.com>
915 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
917 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
918 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
919 immediately after first one with df_analyze in between, but rather
920 process all bbs, queueing ones that need second pass in a worklist,
921 df_analyze, process queued debug insn changes and if second pass is
922 needed, process bbs from worklist, df_analyze, process queued debug
925 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
926 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
927 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
929 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
932 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
935 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
938 * config/i386/i386.c (ix86_function_value_1): Call the newly added
939 function for 32-bit MS_ABI.
940 (function_value_ms_32): New function.
942 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
944 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
945 (movdi): Call gen_movdi_symbol_save_scc.
946 (gen_movdi_symbol_save_scc): New insn and split.
948 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
950 PR rtl-optimization/89313
951 * function.c (matching_constraint_num): New static function.
952 (match_asm_constraints_1): Use it. Fixup white space and comment.
953 Don't replace inputs with non-matching constraints which conflict
954 with early clobber outputs.
956 2019-03-27 Jeff Law <law@redhat.com>
959 PR rtl-optimization/87761
960 PR rtl-optimization/89826
961 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
963 (pass_cprop_hardreg::execute): Call df_analyze after adding the
964 note problem to get REG_DEAD/REG_UNUSED notes updated.
966 2019-03-27 Richard Biener <rguenther@suse.de>
968 PR tree-optimization/89463
969 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
970 queue edges to remove.
971 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
972 dead stmts. Delay edge removal until PHIs are removed to
973 make debug-stmt creation not confused by seemingly degenerate
976 2019-03-27 Alan Modra <amodra@gmail.com>
978 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
980 * config/rs6000/darwin.h: Likewise.
981 * config/rs6000/rs6000.c: Likewise.
983 2019-03-27 Alan Modra <amodra@gmail.com>
985 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
986 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
988 2019-03-26 Andrew Waterman <andrew@sifive.com>
989 Jim Wilson <jimw@sifive.com>
991 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
992 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
993 (generic_idivdi, generic_fmul_single, generic_fmul_double)
994 (generic_fdiv, generic_fsqrt): Add check for generic tune.
995 (generic_alu): Add auipc to type list.
996 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
997 (riscv_microarchitecture): Declare.
998 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
999 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
1001 (riscv_microarchitecture): New.
1002 (sifive_7_tune_info): New.
1003 (riscv_cpu_info_table): Add microarchitecture value for rocket and
1004 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
1006 (riscv_store_data_bypass_p): New.
1007 (riscv_option_override): Set riscv_microarchitecture from
1008 cpu->microarchitecture.
1009 * config/riscv/riscv.md: Include sifive-7.md.
1012 (auipc<mode>): Change type to auipc.
1013 (restore_stack_nonlocal): New.
1014 * config/riscv/sifive-7.md: New.
1015 * doc/invoke.texi (RISC-V Options): Update mtune docs.
1017 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
1020 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
1021 Also process XEXP (src, 0) of a shift insn.
1023 2019-03-26 Richard Biener <rguenther@suse.de>
1025 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
1026 (copy_debug_stmt): Likewise.
1027 (expand_call_inline): Likewise.
1028 (copy_bb): Avoid redundant lookup & set of gimple_block.
1029 * gimple-low.c (lower_gimple_return): Likewise.
1030 (lower_builtin_setjmp): Likewise.
1032 2019-03-26 Jakub Jelinek <jakub@redhat.com>
1034 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
1035 is constant 0, turn into static const data member initialized to false.
1036 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
1037 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
1039 2019-03-26 Jason Merrill <jason@redhat.com>
1040 Jakub Jelinek <jakub@redhat.com>
1042 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
1044 (mem_alloc_description::release_object_overhead): Fix comment typos.
1045 * hash-table.h (hash_table::~hash_table): Call
1046 release_instance_overhead only if m_entries is non-NULL, otherwise
1047 call unregister_descriptor.
1049 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
1051 PR tree-optimization/81740
1052 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1053 In case of outer loop vectorization, check for backward dependence
1054 at the inner loop if outer loop dependence is reversed.
1056 2019-03-26 Alan Modra <amodra@gmail.com>
1058 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
1059 rs6000_vector_mem init. Correct wI and wJ comment.
1061 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
1063 PR rtl-optimization/88347
1064 PR rtl-optimization/88423
1065 * sched-deps.c (sched_analyze_insn): Take into account that for
1066 tablejumps the barrier appears after a label and a jump_table_data.
1068 2019-03-25 Martin Sebor <msebor@redhat.com>
1071 * c-common.c (check_user_alignment): Rename local. Correct maximum
1072 alignment in diagnostic. Avoid assuming argument fits in SHWI,
1073 convert it to UHWI when it fits.
1075 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
1078 * dwarf2out.c (premark_used_variables): New function.
1079 (prune_unused_types_walk): Do not mark not premarked external
1081 (prune_unused_types): Call premark_used_variables.
1083 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
1085 PR rtl-optimization/89676
1086 * lra-constraints.c (curr_insn_transform): Do match reload for
1087 early clobbers when the match was successful only for different
1090 2019-03-25 Martin Sebor <msebor@redhat.com>
1092 * doc/extend.texi (Common Type Attributes): Document vector_size.
1093 (Common Variable Attributes): Mention size constraint. Correct
1095 (Vector Extensions): Use @dfn when defining bas type. Clarify
1096 base type and size constraints.
1098 2019-03-25 Richard Biener <rguenther@suse.de>
1100 PR tree-optimization/89789
1101 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
1102 changes from non-undefined back to undefined.
1104 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
1106 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
1107 heap string and a gc string, but since this variable is unknown to
1108 ggc the gc string might get reused and corrupted. Fixed by always
1109 using a heap string.
1111 2019-03-25 Richard Biener <rguenther@suse.de>
1113 PR tree-optimization/89779
1114 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
1115 to remove IV defs, delay actual removal.
1116 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
1117 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
1118 very end, properly also reset loop control IV information.
1120 2019-03-25 Richard Biener <rguenther@suse.de>
1122 PR tree-optimization/89802
1123 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
1124 move EH data to folded stmt.
1126 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
1128 * config/s390/s390-builtin-types.def: Remove few unused types and
1129 fix sort order for others.
1131 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
1133 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
1134 expected and found types with -mdebug during builtin matching.
1136 2019-03-25 Richard Biener <rguenther@suse.de>
1139 * fold-const.c (operand_equal_p): Revert last change with
1142 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
1144 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
1145 notes for the result of the __tls_get_addr calls.
1146 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
1148 2019-03-24 Jeff Law <law@redhat.com>
1150 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
1152 PR rtl-optimization/87761
1153 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
1154 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
1156 (pass_cprop_hardreg::execute): Add df note problem and defer insn
1157 rescans. Reprocess blocks as needed, calling df_analyze before
1158 reprocessing. Always call df_analyze before fixing up debug bind
1161 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
1163 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
1166 2019-03-22 Andrew Pinski <apinski@marvell.com>
1168 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
1169 attrribute for uxtw.
1171 2019-03-26 Jeff Law <law@redhat.com>
1173 PR rtl-optimization/87761
1174 * config/mips/mips-protos.h (mips_split_move): Add new argument.
1175 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
1176 (mips_split_move): Accept new INSN argument. Try to forward SRC
1177 into the next instruction.
1178 (mips_split_move_insn): Pass INSN through to mips_split_move.
1180 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
1182 PR rtl-optimization/89676
1183 * lra-constraints.c (curr_insn_transform): Do match reload for
1184 early clobbers even if the match was successful.
1186 2019-03-22 Jakub Jelinek <jakub@redhat.com>
1189 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
1191 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
1193 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
1195 2019-03-22 Jakub Jelinek <jakub@redhat.com>
1197 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
1198 <avx512>_fmsub_<mode>_mask3<round_name>,
1199 <avx512>_fnmadd_<mode>_mask3<round_name>,
1200 <avx512>_fnmsub_<mode>_mask3<round_name>,
1201 avx512f_vmfmadd_<mode>_mask3<round_name>,
1202 avx512f_vmfmsub_<mode>_mask3<round_name>,
1203 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
1204 instead of register_operand and %v instead of v for match_operand 1.
1205 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
1206 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
1207 <round_nimm_predicate> instead of register_operand and %v instead of v
1208 for match_operand 1.
1210 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
1211 <avx512>_fmadd_<mode>_mask3<round_name>,
1212 <avx512>_fmsub_<mode>_mask<round_name>,
1213 <avx512>_fmsub_<mode>_mask3<round_name>,
1214 <avx512>_fnmadd_<mode>_mask<round_name>,
1215 <avx512>_fnmadd_<mode>_mask3<round_name>,
1216 <avx512>_fnmsub_<mode>_mask<round_name>,
1217 <avx512>_fnmsub_<mode>_mask3<round_name>,
1218 <avx512>_fmaddsub_<mode>_mask<round_name>,
1219 <avx512>_fmaddsub_<mode>_mask3<round_name>,
1220 <avx512>_fmsubadd_<mode>_mask<round_name>,
1221 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
1222 <round_nimm_predicate> instead of nonimmediate_operand.
1223 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
1224 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
1225 Use register_operand instead of <round_nimm_predicate> for the
1226 operand that needs to match output.
1227 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
1228 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
1229 Likewise. Formatting fixes.
1232 * config/i386/i386.c (enum ix86_builtins): Remove
1233 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
1234 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
1235 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
1236 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
1237 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
1238 __builtin_ia32_vfmsubss3_mask3): New builtins.
1239 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
1240 avx512f_vmfmadd_<mode>_mask3<round_name>,
1241 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
1242 *avx512f_vmfmsub_<mode>_mask<round_name>,
1243 avx512f_vmfmsub_<mode>_mask3<round_name>,
1244 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
1245 *avx512f_vmfnmadd_<mode>_mask<round_name>,
1246 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
1247 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
1248 *avx512f_vmfnmsub_<mode>_mask<round_name>,
1249 avx512f_vmfnmsub_<mode>_mask3<round_name>,
1250 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
1251 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
1252 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
1253 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
1254 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
1255 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
1256 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
1257 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
1258 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
1259 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
1260 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
1261 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
1262 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
1263 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
1264 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
1265 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
1266 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
1267 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
1268 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
1269 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
1270 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
1271 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
1273 2019-03-21 Martin Sebor <msebor@redhat.com>
1275 PR tree-optimization/89350
1276 * builtins.c (compute_objsize): Also ignore offsets whose upper
1278 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
1279 (builtin_memref::builtin_memref): Initialize new member.
1280 Allow EXPR to be null.
1281 (builtin_memref::extend_offset_range): Replace local with a member.
1282 Avoid assuming pointer offsets are unsigned.
1283 (builtin_memref::set_base_and_offset): Determine base object
1284 before computing offset range.
1285 (builtin_access::builtin_access): Handle memset.
1286 (builtin_access::generic_overlap): Replace local with a member.
1287 (builtin_access::strcat_overlap): Same.
1288 (builtin_access::overlap): Same.
1289 (maybe_diag_overlap): Same.
1290 (maybe_diag_access_bounds): Same.
1291 (wrestrict_dom_walker::check_call): Handle memset.
1292 (check_bounds_or_overlap): Same.
1294 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
1295 Jakub Jelinek <jakub@redhat.com>
1298 * tree.c (fld_type_variant, fld_incomplete_type_of,
1299 fld_process_array_type): Call fld->pset.add and don't call
1300 add_tree_to_fld_list if it returns true.
1301 (free_lang_data_in_type): Similarly with self-recursive call. Purge
1302 non-marked types from TYPE_NEXT_VARIANT list.
1303 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
1305 2019-03-21 Jakub Jelinek <jakub@redhat.com>
1307 * hash-table.h (hash_table): Add Lazy template parameter defaulted
1308 to false, if true, don't alloc_entries during construction, but defer
1309 it to the first method that needs m_entries allocated.
1310 (hash_table::hash_table, hash_table::~hash_table,
1311 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
1312 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
1313 hash_table::clear_slot, hash_table::traverse_noresize,
1314 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
1315 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
1317 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
1318 NO_INSERT instead of find_with_hash.
1319 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
1320 hash_set::m_table): Add Lazy to template params of hash_table.
1321 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
1322 * attribs.c (test_attribute_exclusions): Likewise.
1323 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
1324 hash_set. Add tests for hash_set with Lazy = true.
1326 2019-03-21 Richard Biener <rguenther@suse.de>
1328 PR tree-optimization/89779
1329 * tree.c (tree_nop_conversion): Consolidate and fix defensive
1330 checks with respect to released SSA names now having error_mark_node
1332 * fold-const.c (operand_equal_p): Likewise.
1334 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
1337 * config/s390/s390.c (global_not_special_regno_p): Move to make it
1339 (s390_optimize_register_info): Use global_not_special_regno_p to
1340 check for global regs.
1342 2019-03-20 Jakub Jelinek <jakub@redhat.com>
1345 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
1346 update this_alternative nor this_alternative_set.
1348 2019-03-19 Jim Wilson <jimw@sifive.com>
1351 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
1352 align, size, offset. Use them to handle a BLKmode reference. Update
1354 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
1356 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1358 PR rtl-optimization/89768
1359 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
1361 (unroll_loop_runtime_iterations): Likewise.
1363 2019-03-19 Martin Sebor <msebor@redhat.com>
1365 PR tree-optimization/89644
1366 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
1367 rather than endptr as an indicator of nul-termination.
1369 PR tree-optimization/89644
1370 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
1371 arrays in determining sequence sizes in strncpy and stpncpy.
1373 2019-03-19 Martin Liska <mliska@suse.cz>
1376 * predict.c (combine_predictions_for_bb): Empty likely_edges and
1377 unlikely_edges if there's an edge that belongs to both these sets.
1379 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
1382 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
1383 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
1384 go via a stack temporary.
1386 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1389 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
1390 instead of gen_rtx_SUBREG.
1391 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
1393 2019-03-19 Richard Biener <rguenther@suse.de>
1396 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
1398 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
1402 * tree.c (free_lang_data_in_decl): Do not free context of C++
1405 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1408 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
1409 subs for the first alternative except when operands[3] is 1.
1412 * gimplify.c (gimplify_asm_expr): For output argument with
1413 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
1416 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
1418 PR rtl-optimization/89753
1419 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
1420 explicit unrolling factor even more robust.
1422 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1425 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
1426 compensation use x2 += 1 instead of x2 -= -1 and when honoring
1427 signed zeros, do another copysign after the compensation.
1429 2019-03-18 Martin Sebor <msebor@redhat.com>
1431 PR tree-optimization/89720
1432 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
1433 more conservatively, the same as anti-range.
1435 2019-03-18 Richard Biener <rguenther@suse.de>
1438 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
1439 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
1440 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
1441 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
1443 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
1445 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
1446 Extend queue to 1024 entries.
1447 Add "consumed" field.
1448 (gomp_print_output): Remove print_index parameter.
1449 Add final parameter.
1450 Change limit to unsigned.
1451 Use consumed field to implement circular buffer.
1452 Detect interrupted print in final pass.
1453 Flush output at the end.
1454 (run): Update gomp_print_output usage.
1455 (main): Initialize kernargs->output_data.consumed.
1457 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
1459 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
1460 calculation of the minimum number of scalar iterations for
1461 fully-predicated loops.
1463 2019-03-18 Martin Jambor <mjambor@suse.cz>
1465 PR tree-optimization/89546
1466 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
1467 any propagation to its children took place.
1469 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1472 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
1473 parameter, and make use of it.
1474 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
1476 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1478 * config/arc/arc.opt (mcode-density-frame): Get the inital value
1479 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
1480 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
1481 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
1482 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
1483 match what the ops is doing.
1484 (push_multi_fp_blink): Likewise.
1485 * config/arc/arc.c (arc_override_options): Enable enter/leave when
1486 compiling for size and elf target.
1487 (arc_save_callee_enter): Adjust note to match what enter/leave
1490 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1492 * config/arc/arc.md (tst_movb): Fix constraint.
1494 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1496 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
1498 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1500 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
1501 * config/arc/arc.c (arc_conditional_register_usage): Remove all
1502 reg_alloc_order references.
1503 (size_alloc_order): Define.
1504 (arc_adjust_reg_alloc_order): New function.
1505 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
1507 (ADJUST_REG_ALLOC_ORDER): Define.
1508 (HONOR_REG_ALLOC_ORDER): Likewise.
1510 2019-03-18 Richard Biener <rguenther@suse.de>
1513 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
1514 loads and stores a bit more.
1516 2019-03-18 Richard Biener <rguenther@suse.de>
1519 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
1520 load pessimization to stores as well.
1522 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
1525 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
1526 successor, use NULL as its av set.
1528 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
1530 PR rtl-optimization/89721
1531 * lra-constraints (invariant_p): Return false if side_effects_p holds.
1533 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
1536 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1537 When handling vec_extract, use modular arithmetic to allow
1538 constant selectors greater than vector length.
1539 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
1540 V1TImode vectors to have constant selector values greater than 0.
1541 Use modular arithmetic to compute vector index.
1542 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
1543 index for in-memory vectors. Correct code generation for
1544 in-register vectors.
1545 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
1548 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
1552 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
1555 2019-03-15 Jakub Jelinek <jakub@redhat.com>
1558 * tree.c (inchash::add_expr): Strip any location wrappers.
1559 * fold-const.c (operand_equal_p): Move stripping of location wrapper
1560 after hash verification.
1563 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
1564 SIGN_EXTEND and ZERO_EXTEND.
1566 2019-03-14 Jason Merrill <jason@redhat.com>
1567 Jakub Jelinek <jakub@redhat.com>
1569 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
1570 than if is_empty (*slot).
1571 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
1572 existing elt and for elt removal.
1573 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
1574 of already removed elt.
1576 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1579 * config/i386/i386.c (remove_partial_avx_dependency): Handle
1582 2019-03-14 Martin Liska <mliska@suse.cz>
1585 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
1587 2019-03-14 Richard Biener <rguenther@suse.de>
1590 * config/i386/i386.c (make_resolver_func): Properly set
1591 DECL_CONTEXT on the RESULT_DECL.
1592 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
1594 2019-03-14 Richard Biener <rguenther@suse.de>
1596 * gimple-pretty-print.c: Include cfgloop.h.
1597 (dump_gimple_phi): Adjust.
1598 (dump_gimple_bb_header): Dump loop header for GIMPLE.
1599 (pp_cfg_jump): Adjust.
1600 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
1601 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
1602 (lower_phi_internal_fn): Remove.
1603 (verify_gimple_call): Remove IFN_PHI special-casing.
1604 (dump_function_to_file): Dump IL state.
1605 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
1606 done to deal with PHI nodes being present in non-SSA state.
1608 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1611 * multiple_target.c (create_dispatcher_calls): Change
1612 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
1613 In the node->iterate_referring loop, push *ref rather than ref, call
1614 ref->remove_reference () and always pass 0 to iterate_referring.
1616 PR rtl-optimization/89679
1617 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
1618 would contain a paradoxical SUBREG.
1620 2019-03-14 Richard Biener <rguenther@suse.de>
1622 PR tree-optimization/89710
1623 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
1626 2019-03-14 Martin Liska <mliska@suse.cz>
1628 * coverage.c (coverage_begin_function): Stream also
1630 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
1631 documentation about function declaration location.
1632 * gcov-dump.c (tag_function): Print whole range
1633 of function declaration.
1634 * gcov.c (struct function_info): Add end_column field.
1635 (function_info::function_info): Initialize it.
1636 (output_json_intermediate_file): Output {start,end}_column
1638 (read_graph_file): Read end_column.
1640 2019-03-14 Richard Biener <rguenther@suse.de>
1643 * fold-const.c (operand_equal_p): For INDIRECT_REF check
1644 that the access types are similar.
1646 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1648 PR tree-optimization/89703
1649 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
1650 aren't compatible also with builtin_decl_explicit. Check pure
1651 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
1652 and BUILT_IN_STPNCPY{,_CHK}.
1654 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
1657 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
1658 addr32 prefix to VSIB address for X32.
1659 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
1661 (*avx512pf_gatherpf<mode>df_mask): Likewise.
1662 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
1663 (*avx512pf_scatterpf<mode>df_mask): Likewise.
1664 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
1665 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
1666 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
1667 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
1668 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
1669 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
1670 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
1671 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
1672 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
1673 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
1674 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
1675 (*avx512f_scatterdi<mode>): Likewise.
1677 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
1680 * lra-constraints.c (inherit_in_ebb): Update
1681 potential_reload_hard_regs along with live_hard_regs.
1683 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1686 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
1688 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
1690 2019-03-13 Martin Sebor <msebor@redhat.com>
1692 PR tree-optimization/89662
1693 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
1696 2019-03-13 Richard Biener <rguenther@suse.de>
1699 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
1700 throw FP expressions at tree-affine.
1702 2019-03-14 Richard Biener <rguenther@suse.de>
1704 * tree-pretty-print.c (dump_generic_node): For -gimple properly
1705 dump negative integer constants using _Literal (type) -num.
1707 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1709 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
1710 nonlocal_value member.
1713 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
1714 (ipa_simd_modify_function_body): Handle PHIs.
1716 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1718 * config/s390/s390.c (s390_option_override_internal): Use more
1719 aggressive inlining parameters.
1721 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1723 * config/s390/3906.md: New file.
1724 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1725 (LONGRUNNING_THRESHOLD): Remove.
1726 (MAX_SCHED_MIX_SCORE): Decrease.
1727 (MAX_SCHED_MIX_DISTANCE): Decrease.
1728 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
1729 (struct s390_sched_state): New struct to hold scheduling state.
1730 (S390_SCHED_STATE_NORMAL): Remove.
1731 (S390_SCHED_STATE_CRACKED): Remove.
1732 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
1733 (s390_get_sched_attrmask): Use new attribute.
1734 (s390_get_unit_mask): Use new units.
1735 (s390_is_fpd): New function.
1736 (s390_is_fxd): New function.
1737 (s390_is_longrunning): New function.
1738 (s390_sched_score): Use new functions.
1739 (s390_sched_reorder): Likewise.
1740 (s390_sched_variable_issue): Rework and use new functions.
1741 (s390_sched_init): Use new functions.
1742 * config/s390/s390.h (s390_tune_attr): Add z14.
1743 * config/s390/s390.md: Add z14.
1745 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1747 * config/s390/2964.md: Update pipeline description.
1748 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1749 (LONGRUNNING_THRESHOLD): Remove.
1750 (LATENCY_FACTOR): Remove.
1751 (s390_get_unit_mask): Add unit.
1752 (s390_sched_score): Use fxd/fpd.
1753 (s390_sched_variable_issue): Use fxd/fpd.
1755 2019-03-12 Martin Liska <mliska@suse.cz>
1757 * config/i386/i386.c: Reword an error message.
1759 2019-03-12 Martin Jambor <mjambor@suse.cz>
1761 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
1762 terminate with newline.
1764 2019-03-12 Jakub Jelinek <jakub@redhat.com>
1767 * config/s390/s390.md (tabort): Use %wd instead of
1768 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
1769 letters and periods.
1770 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
1771 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
1775 * builtins.c (expand_builtin_int_roundingfn,
1776 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
1777 gcc_unreachable if validate_arglist fails.
1779 2019-03-12 Richard Biener <rguenther@suse.de>
1781 PR tree-optimization/89664
1782 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
1783 free the occurance tree after the early out.
1785 2019-03-11 Jakub Jelinek <jakub@redhat.com>
1789 * vr-values.c (vr_values::update_value_range): If
1790 old_vr->varying_p (), don't update it, make new_vr also VARYING
1793 2019-03-11 Martin Liska <mliska@suse.cz>
1795 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1796 Fix double string quoting.
1798 2019-03-11 Martin Liska <mliska@suse.cz>
1800 * collect-utils.c (collect_wait): Wrap apostrophes
1801 in gcc internal format with %'.
1802 * collect2.c (main): Likewise.
1803 (scan_prog_file): Likewise.
1804 (scan_libraries): Likewise.
1805 * config/i386/i386.c (ix86_expand_call): Likewise.
1806 (ix86_handle_interrupt_attribute): Likewise.
1807 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
1808 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
1809 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
1810 * lto-wrapper.c (find_crtoffloadtable): Likewise.
1811 * symtab.c (symtab_node::verify_base): Likewise.
1812 * tree-cfg.c (verify_gimple_label): Likewise.
1813 * tree.c (verify_type_variant): Likewise.
1815 2019-03-11 Martin Liska <mliska@suse.cz>
1817 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
1818 in a string format message and fix GNU coding style.
1819 (expand_builtin_set_thread_pointer): Likewise.
1820 * common/config/aarch64/aarch64-common.c
1821 (aarch64_rewrite_selected_cpu): Likewise.
1822 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
1823 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
1824 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
1825 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
1826 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
1827 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
1828 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
1829 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
1830 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
1831 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
1833 * common/config/riscv/riscv-common.c
1834 (riscv_subset_list::parsing_subset_version): Likewise.
1835 (riscv_subset_list::parse_std_ext): Likewise.
1836 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1837 (riscv_subset_list::parse): Likewise.
1838 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
1839 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
1840 (aarch64_override_options_internal): Likewise.
1841 (aarch64_validate_mcpu): Likewise.
1842 (aarch64_validate_march): Likewise.
1843 (aarch64_validate_mtune): Likewise.
1844 (aarch64_override_options): Likewise.
1845 * config/alpha/alpha.c (alpha_option_override): Likewise.
1846 * config/arc/arc.c (arc_init): Likewise.
1847 (parse_mrgf_banked_regs_option): Likewise.
1848 (arc_override_options): Likewise.
1849 (arc_expand_builtin_aligned): Likewise.
1850 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
1851 (arm_expand_builtin): Likewise.
1852 * config/arm/arm.c (arm_option_check_internal): Likewise.
1853 (arm_configure_build_target): Likewise.
1854 (arm_option_override): Likewise.
1855 (arm_options_perform_arch_sanity_checks): Likewise.
1856 (arm_handle_cmse_nonsecure_entry): Likewise.
1857 (arm_handle_cmse_nonsecure_call): Likewise.
1858 (arm_tls_referenced_p): Likewise.
1859 (thumb1_expand_prologue): Likewise.
1860 * config/avr/avr.c (avr_option_override): Likewise.
1861 * config/bfin/bfin.c (bfin_option_override): Likewise.
1862 * config/c6x/c6x.c (c6x_option_override): Likewise.
1863 * config/cr16/cr16.c (cr16_override_options): Likewise.
1864 * config/cris/cris.c (cris_option_override): Likewise.
1865 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
1866 * config/darwin-c.c (macosx_version_as_macro): Likewise.
1867 * config/darwin.c (darwin_override_options): Likewise.
1868 * config/frv/frv.c (frv_expand_builtin): Likewise.
1869 * config/h8300/h8300.c (h8300_option_override): Likewise.
1870 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
1871 (ix86_option_override_internal): Likewise.
1872 (warn_once_call_ms2sysv_xlogues): Likewise.
1873 (ix86_expand_prologue): Likewise.
1874 (split_stack_prologue_scratch_regno): Likewise.
1875 (ix86_warn_parameter_passing_abi): Likewise.
1876 * config/ia64/ia64.c (fix_range): Likewise.
1877 * config/m68k/m68k.c (m68k_option_override): Likewise.
1878 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
1879 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
1880 (mips_set_compression_mode): Likewise.
1881 * config/mmix/mmix.c (mmix_option_override): Likewise.
1882 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
1883 * config/msp430/msp430.c (msp430_option_override): Likewise.
1884 * config/nds32/nds32.c (nds32_option_override): Likewise.
1885 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
1886 (nios2_option_override): Likewise.
1887 (nios2_expand_custom_builtin): Likewise.
1888 * config/nvptx/mkoffload.c (main): Likewise.
1889 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
1890 * config/pa/pa.c (fix_range): Likewise.
1891 (pa_option_override): Likewise.
1892 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
1893 (riscv_option_override): Likewise.
1894 * config/rl78/rl78.c (rl78_option_override): Likewise.
1895 * config/rs6000/aix61.h: Likewise.
1896 * config/rs6000/aix71.h: Likewise.
1897 * config/rs6000/aix72.h: Likewise.
1898 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
1899 * config/rs6000/freebsd64.h: Likewise.
1900 * config/rs6000/linux64.h: Likewise.
1901 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
1902 (rs6000_expand_zeroop_builtin): Likewise.
1903 (rs6000_expand_mtfsb_builtin): Likewise.
1904 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
1905 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
1906 (rs6000_invalid_builtin): Likewise.
1907 (rs6000_expand_split_stack_prologue): Likewise.
1908 * config/rs6000/rtems.h: Likewise.
1909 * config/rx/rx.c (valid_psw_flag): Likewise.
1910 (rx_expand_builtin): Likewise.
1911 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
1912 * config/s390/s390.c (s390_expand_builtin): Likewise.
1913 (s390_function_profiler): Likewise.
1914 (s390_option_override_internal): Likewise.
1915 (s390_option_override): Likewise.
1916 * config/sh/sh.c (sh_option_override): Likewise.
1917 (sh_builtin_saveregs): Likewise.
1918 (sh_fix_range): Likewise.
1919 * config/sh/vxworks.h: Likewise.
1920 * config/sparc/sparc.c (sparc_option_override): Likewise.
1921 * config/spu/spu.c (spu_option_override): Likewise.
1922 (fix_range): Likewise.
1923 * config/visium/visium.c (visium_option_override): Likewise.
1924 (visium_handle_interrupt_attr): Likewise.
1925 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
1926 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
1927 (dbg_cnt_process_opt): Likewise.
1928 * dwarf2out.c (output_dwarf_version): Likewise.
1929 * except.c (expand_eh_return): Likewise.
1930 * gcc.c (defined): Likewise.
1931 (driver_handle_option): Likewise.
1932 (process_command): Likewise.
1933 (compare_files): Likewise.
1934 (driver::prepare_infiles): Likewise.
1935 (driver::do_spec_on_infiles): Likewise.
1936 (driver::maybe_run_linker): Likewise.
1937 * omp-offload.c (oacc_parse_default_dims): Likewise.
1938 * opts-global.c (handle_common_deferred_options): Likewise.
1939 * opts.c (parse_sanitizer_options): Likewise.
1940 (common_handle_option): Likewise.
1941 (enable_warning_as_error): Likewise.
1942 * passes.c (enable_disable_pass): Likewise.
1943 * plugin.c (parse_plugin_arg_opt): Likewise.
1944 (default_plugin_dir_name): Likewise.
1945 * targhooks.c (default_expand_builtin_saveregs): Likewise.
1946 (default_pch_valid_p): Likewise.
1947 * toplev.c (init_asm_output): Likewise.
1948 (process_options): Likewise.
1949 (toplev::run_self_tests): Likewise.
1950 * tree-cfg.c (verify_gimple_call): Likewise.
1951 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
1952 (tree_inlinable_function_p): Likewise.
1953 * var-tracking.c (vt_find_locations): Likewise.
1955 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
1957 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
1958 only on the else branch.
1960 2019-03-11 Martin Liska <mliska@suse.cz>
1962 * gcov.c (output_intermediate_json_line): Print function
1964 (output_json_intermediate_file): Add new argument.
1965 * doc/gcov.texi: Document the change.
1967 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
1969 PR rtl-optimization/89588
1970 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
1971 explicit unrolling factor more robust.
1973 2019-03-11 Richard Biener <rguenther@suse.de>
1975 PR tree-optimization/89649
1976 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
1977 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
1978 on the prolog and epilog loops.
1979 (vect_loop_versioning): Return copy of loop.
1980 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
1981 on the non-vectorized version of the loop.
1983 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
1986 * config/i386/sse.md (*vec_extractv2di_0_sse):
1987 Add (=r,x) alternative and corresponding splitter.
1989 2019-03-10 Martin Jambor <mjambor@suse.cz>
1991 PR tree-optimization/85762
1992 PR tree-optimization/87008
1993 PR tree-optimization/85459
1994 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
1995 it points to if there is a type changing MEM_REF. Adjust all callers.
1996 (build_accesses_from_assign): Disable total scalarization if
1997 contains_vce_or_bfcref_p returns true through the new parameter, for
2000 2019-03-09 Jakub Jelinek <jakub@redhat.com>
2003 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
2004 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
2007 * common.opt (fdiagnostics-show-labels,
2008 fdiagnostics-show-line-numbers, fdiagnostics-format=,
2009 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
2010 gas-locview-support, ginline-points, ginternal-reset-location-views):
2011 Terminate description text with a dot.
2012 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
2013 * config/mcore/mcore.opt (m210, m340): Likewise.
2014 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
2015 mnops=): Start description text with a capital letter.
2016 * config/arc/arc.opt (msize-level=): Likewise.
2017 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
2018 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
2020 * config/ft32/ft32.opt (msim): Likewise.
2021 (mft32b, mcompress): Likewise. Terminate description text with a dot.
2022 (mnodiv, mnopm): Terminate description text with a dot.
2023 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
2025 * config/i386/i386.opt (prefer_vector_width, instrument_return):
2027 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
2030 PR rtl-optimization/89634
2031 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
2032 are modified in BB_END (e->src) instruction.
2034 2019-03-08 David Malcolm <dmalcolm@redhat.com>
2037 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
2038 messages more amenable to translation, and improve wording.
2040 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
2042 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
2043 ud- and du-chains between phases.
2045 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
2048 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
2049 instead of POLY_INT_CST.
2051 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2053 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
2056 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
2061 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
2062 (_mm_storeu_si64): Ditto.
2064 2019-03-08 Martin Liska <mliska@suse.cz>
2067 * config/i386/i386.c (ix86_option_override_internal): Disable
2068 jump tables when retpolines are used.
2070 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
2073 * ipa-split.c (execute_split_functions): Do not split
2074 'noinline' or 'section' function.
2076 2019-03-08 Jakub Jelinek <jakub@redhat.com>
2079 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
2080 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
2081 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
2084 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
2085 from diagnostics. Formatting fixes.
2088 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
2089 warn_odr diagnostics.
2092 * lra-constraints.c (process_alt_operands): Avoid one space before
2093 " at the end of line and another after " on another line in a string
2095 * attribs.c (handle_dll_attribute): Likewise.
2096 * config/avr/avr-devices.c (avr_texinfo): Likewise.
2098 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
2099 warning_at or inform messages in G_() if there is no ?:.
2101 PR tree-optimization/89550
2102 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
2103 returned true. Formatting fixes.
2104 (expand_builtin_strnlen): Formatting fixes.
2105 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
2106 if warning_at returned true.
2107 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
2109 2019-03-08 Richard Biener <rguenther@suse.de>
2112 * cfgloop.h (struct loop): Add owned_clique field.
2113 * cfgloopmanip.c (copy_loop_info): Copy it.
2114 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
2116 * tree-inline.c (copy_loops): Remap owned_clique.
2117 * lto-streamer-in.c (input_cfg): Stream owned_clique.
2118 * lto-streamer-out.c (output_cfg): Likewise.
2120 2019-03-08 Jakub Jelinek <jakub@redhat.com>
2123 * config/darwin.c: Include intl.h.
2124 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
2125 composing the message out of two separate parts.
2127 2019-03-07 Jakub Jelinek <jakub@redhat.com>
2130 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
2131 doesn't start with a capital letter and doesn't end with a dot.
2132 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
2133 with a capital letter.
2134 (ix86_mangle_function_version_assembler_name): Likewise.
2135 (ix86_generate_version_dispatcher_body): Likewise.
2136 (fold_builtin_cpu): Likewise.
2137 (get_builtin_code_for_version): Likewise. Remove extraneous space.
2138 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
2139 translators, wrap full type name in %qs.
2141 PR translation/79999
2142 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
2143 depend clause with source (or sink) modifier.
2144 * omp-expand.c (expand_omp_ordered_sink): Likewise.
2147 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
2148 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
2149 (avx512f_load<mode>_mask): New define_expand.
2150 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
2151 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
2152 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
2153 __builtin_ia32_movess_mask): New builtins.
2154 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
2155 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
2156 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
2157 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
2159 2019-03-07 Martin Jambor <mjambor@suse.cz>
2162 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
2163 for extern inline functions.
2165 2019-03-07 Martin Jambor <mjambor@suse.cz>
2168 * cgraph.h (cgraph_node): New inline method former_thunk_p.
2169 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
2170 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
2171 have multiple callees. At the end check if declarations match as
2172 opposed to cgraph_nodes.
2174 2019-03-07 Martin Liska <mliska@suse.cz>
2176 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
2177 which is equivalent to searching for this in clones chain.
2178 * symtab.c (symtab_node::verify_base): Similarly compare ASM
2179 names with a neighbour and special case first node in a chain.
2181 2019-01-25 Jason Merrill <jason@redhat.com>
2183 PR c++/80916 - spurious "static but not defined" warning.
2184 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
2185 for an internal symbol with DECL_EXTERNAL.
2187 2019-04-07 Richard Biener <rguenther@suse.de>
2190 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
2191 * tree-inline.c (copy_loops): Simplify.
2193 2019-03-07 Martin Liska <mliska@suse.cz>
2195 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
2197 2019-03-07 Richard Biener <rguenther@suse.de>
2199 PR tree-optimization/89595
2200 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
2201 stmt iterator as reference, take boolean output parameter to
2202 indicate whether the stmt was removed and thus the iterator
2204 (dom_opt_dom_walker::before_dom_children): Re-iterate over
2205 stmts created by folding.
2207 2019-03-07 Jakub Jelinek <jakub@redhat.com>
2210 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
2213 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
2215 PR rtl-optimization/88845
2216 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
2218 * lra.c (remove_scratches_1): New function.
2219 (remove_scratches): Use it.
2220 (lra_emit_move): Likewise.
2222 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
2224 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
2225 unaligned_access variable.
2226 * config/arc/arc.c (arc_override_options): Set unaligned access
2227 default on for HS CPUs.
2228 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
2230 2019-03-06 Martin Liska <mliska@suse.cz>
2232 PR gcov-profile/89577
2233 * doc/gcov.texi: Prefer to use --coverage.
2234 * doc/sourcebuild.texi: Likewise.
2236 2019-03-02 Jason Merrill <jason@redhat.com>
2238 PR c++/86485 - -Wmaybe-unused with empty class ?:
2239 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
2241 2019-03-05 Jakub Jelinek <jakub@redhat.com>
2244 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
2248 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
2249 exactly one argument.
2251 2019-03-05 Jakub Jelinek <jakub@redhat.com>
2252 Richard Sandiford <richard.sandiford@arm.com>
2254 PR tree-optimization/89570
2255 * match.pd (vec_cond into cond_op simplification): Don't use
2256 get_conditional_internal_fn, use as_internal_fn (cond_op).
2258 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
2261 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
2262 to decide when to split off a non-zero offset from a symbol.
2263 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
2264 in function symbols.
2266 2019-03-05 Richard Biener <rguenther@suse.de>
2268 PR tree-optimization/89594
2269 * tree-if-conv.c (pass_if_conversion::execute): Handle
2270 case where .LOOP_VECTORIZED_FUNCTION was removed.
2272 2019-03-05 Jakub Jelinek <jakub@redhat.com>
2275 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
2276 instead alloca it only when needed with the needed size.
2278 PR tree-optimization/89570
2279 * match.pd (vec_cond into cond_op simplification): Guard with
2280 vectorized_internal_fn_supported_p test and #if GIMPLE.
2282 PR tree-optimization/89566
2283 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
2284 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
2285 Punt if get_user_idx_format succeeds, but idx_format argument is
2286 not provided or doesn't have pointer type, or if idx_args is above
2287 number of provided arguments.
2289 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
2291 PR tree-optimization/89437
2292 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
2294 2019-03-04 Richard Biener <rguenther@suse.de>
2297 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
2300 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
2302 PR tree-optimization/89487
2303 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
2304 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
2305 (distribute_loop): Don't do runtime alias check if there is non-
2306 addressable data reference.
2307 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
2308 is a register variable.
2310 2019-03-02 Jakub Jelinek <jakub@redhat.com>
2313 * config/arm/arm.md (cmpsi2_addneg): Use
2314 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
2315 If operands[2] is 0 or INT_MIN, force use of subs.
2316 (*compare_scc splitter): Use gen_int_mode.
2317 (*negscc): Likewise.
2318 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
2320 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
2321 Monk Chiang <sh.chiang04@gmail.com>
2323 * common/config/riscv/riscv-common.c: Include sstream.
2324 (riscv_subset_list::to_string): New.
2325 (riscv_arch_str): Likewise.
2326 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
2328 * config/riscv/riscv-protos.h (riscv_arch_str): New.
2329 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
2330 (riscv_emit_attribute): New.
2331 (riscv_file_start): Emit attribute if needed.
2332 (riscv_option_override): Init riscv_emit_attribute_p.
2333 * config/riscv/riscv.opt (mriscv-attribute): New option.
2334 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
2336 * doc/install.texi: Document --with-riscv-attribute.
2337 * doc/invoke.texi: Document -mriscv-attribute.
2339 * common/config/riscv/riscv-common.c:
2340 Include config/riscv/riscv-protos.h.
2341 (INCLUDE_STRING): Defined.
2342 (RISCV_DONT_CARE_VERSION): Defined.
2343 (riscv_subset_t): Declare.
2344 (riscv_subset_t::riscv_subset_t): New.
2345 (riscv_subset_list): Declare.
2346 (riscv_subset_list::riscv_subset_list): New.
2347 (riscv_subset_list::~riscv_subset_list): Likewise.
2348 (riscv_subset_list::parsing_subset_version): Likewise.
2349 (riscv_subset_list::parse_std_ext): Likewise.
2350 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
2351 (riscv_subset_list::add): Likewise.
2352 (riscv_subset_list::lookup): Likewise.
2353 (riscv_subset_list::xlen): Likewise.
2354 (riscv_subset_list::parse): Likewise.
2355 (riscv_supported_std_ext): Likewise.
2356 (current_subset_list): Likewise.
2357 (riscv_parse_arch_string): Using riscv_subset_list::parse to
2360 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
2362 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
2363 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
2364 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
2366 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
2368 PR rtl-optimization/85899
2369 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
2370 fallthru edges leading to the exit block.
2372 2019-03-01 Tamar Christina <tamar.christina@arm.com>
2375 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
2376 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
2378 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
2380 PR tree-optimization/89535
2381 * tree-vect-stmts.c (vectorizable_call): Record the vector types
2382 for each operand. Calculate the fallback choice for mask operands
2383 and pass it to vect_get_vec_def_for_operand.
2385 2019-03-01 Richard Biener <rguenther@suse.de>
2388 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
2389 get virtual operands.
2390 (get_expr_operands): Handle CONST_DECL like other decls.
2392 2019-03-01 Jakub Jelinek <jakub@redhat.com>
2395 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
2396 on DECL_P and EXPR_P.
2398 2019-03-01 Richard Biener <rguenther@suse.de>
2401 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
2402 argument, defaulted to zero.
2403 * passes.c (execute_function_todo): Pass down SSA update flags
2404 to cleanup_tree_cfg.
2405 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
2406 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
2408 (cleanup_tree_cfg): Get and pass down SSA update flags.
2410 2019-03-01 Jakub Jelinek <jakub@redhat.com>
2413 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
2414 early_lto_debug argument.
2416 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
2418 PR tree-optimization/89536
2419 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
2420 only whether bit #0 of the value is 0 instead of the entire value.
2422 2019-02-28 Marek Polacek <polacek@redhat.com>
2424 PR c++/87068 - missing diagnostic with fallthrough statement.
2425 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
2426 at the end of a seq, save its location to walk_stmt_info.
2427 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
2430 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
2433 * tree.c (find_atomic_core_type): Move ahead in file.
2434 (check_base_type): Correctly compare alignments of atomic types.
2436 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
2439 * config/i386/i386.c (get_builtin_code_for_version): Identify
2440 Westmere from PCLMUL, instead of AES.
2442 2019-02-28 Jakub Jelinek <jakub@redhat.com>
2445 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
2446 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
2449 2019-02-28 Tamar Christina <tamar.christina@arm.com>
2452 * config/aarch64/aarch64-option-extensions.def: Document it.
2453 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
2456 2019-02-28 Jakub Jelinek <jakub@redhat.com>
2459 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
2460 builtins if they don't have a single scalar floating point argument.
2463 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2465 PR rtl-optimization/89490
2466 * varasm.c (get_block_for_section): Bail out for mergeable sections.
2467 (default_use_anchors_for_symbol_p, output_object_block): Assert the
2468 block section is not mergeable.
2470 2019-02-27 Jakub Jelinek <jakub@redhat.com>
2473 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
2474 old define_insn to ...
2475 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
2476 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
2477 Rename old define_insn to ...
2478 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
2479 (thumb2_casesi_internal_pic): New define_expand. Rename old
2481 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
2482 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
2483 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
2485 2019-02-27 Richard Biener <rguenther@suse.de>
2488 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
2490 2019-02-27 Richard Biener <rguenther@suse.de>
2492 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
2495 2019-02-27 Richard Biener <rguenther@suse.de>
2498 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
2499 parameter, prefix section name with .gnu.debuglto_ if true.
2500 (dwarf2out_finish): Pass false to output_comdat_type_unit.
2501 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
2503 2019-02-27 Richard Biener <rguenther@suse.de>
2506 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
2507 rather than on use_debug_types, doing what output_die does.
2508 (value_format): Likewise.
2510 2019-02-27 Martin Jambor <mjambor@suse.cz>
2511 Martin Sebor <msebor@redhat.com>
2513 * doc/invoke.texi (Warning Options): Reword description of
2514 -Wno-absolute-value.
2516 2019-02-27 Jakub Jelinek <jakub@redhat.com>
2518 PR tree-optimization/89280
2519 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
2520 builtin_setjmp_setup_bb): New functions.
2521 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
2522 When visiting __builtin_setjmp_setup block, queue in special
2523 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
2524 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
2525 from visited after the loop if they don't have any visited successor
2528 2018-02-26 Steve Ellcey <sellcey@marvell.com>
2530 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
2532 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
2534 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2537 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
2538 with types other than sizetype/ssizetype.
2540 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
2542 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
2543 (enum sparc_processor_type): ...this.
2544 (enum sparc_code_model_type): New enumeration type.
2545 (enum sparc_memory_model_type): Tweak comments.
2546 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
2548 (mcmodel): Use sparc_code_model enumeration and variable.
2549 (sparc_code_model): New enumeration.
2550 (mdebug): Add Undocumented marker.
2551 * config/sparc/sparc.h (enum cmodel): Delete.
2552 (sparc_cmodel): Likewise.
2553 (TARGET_CM_MEDLOW): Adjust to above renaming.
2554 (TARGET_CM_MEDMID): Likewise.
2555 (TARGET_CM_MEDANY): Likewise.
2556 (TARGET_CM_EMBMEDANY): Likewise.
2557 * config/sparc/sparc.c (sparc_cmodel): Delete.
2558 (sparc_option_override): Remove string/value mapping support for the
2559 code model. Move code and memory model support to after the handling
2560 of target flags. Do private machine setup last.
2561 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
2562 (sparc_legitimize_reload_address): Likewise.
2563 (sparc_output_mi_thunk): Likewise.
2564 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
2566 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2568 PR tree-optimization/89500
2569 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
2570 (handle_builtin_strlen): Remove noncst_bound variable. Always
2571 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
2572 cst if the first cst bytes starting at x are known to be non-zero,
2573 even if the string is not zero terminated. Don't try to modify
2574 *si for strnlen. Update strlen_to_stridx only for strlen or if
2575 we can prove strnlen returns the same value as strlen would.
2577 2019-02-26 Martin Liska <mliska@suse.cz>
2579 * alloc-pool.h (struct pool_usage): Remove extra
2581 * bitmap.h (struct bitmap_usage): Likewise.
2582 * ggc-common.c (struct ggc_usage): Likewise.
2583 * mem-stats.h (struct mem_usage): Likewise.
2584 (mem_alloc_description::dump): Print dash lines
2585 here and repeat header at the end of a table report.
2586 It's then more readable.
2587 * tree-phinodes.c (phinodes_print_statistics): Make
2588 horizontal alignment.
2589 * tree-ssanames.c (ssanames_print_statistics): Likewise.
2590 * vec.c (struct vec_usage): Remove extra print_dash_line.
2591 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
2593 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
2595 * doc/extend.texi (__builtin_object_size):
2596 Use @pxref instead of @xref inside parenthesis.
2597 (__builtin_has_attribute): Add missing comma after @xref.
2598 (__builtin_object_size): Ditto.
2599 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
2600 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
2603 2019-02-26 Jeff Law <law@redhat.com>
2605 PR rtl-optimization/87761
2606 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
2607 detect obviously dead insns and delete them.
2609 2019-02-26 Richard Biener <rguenther@suse.de>
2611 PR tree-optimization/89505
2612 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
2613 to handle restrict pointed-to vars with multiple subvars
2616 2019-02-26 Richard Biener <rguenther@suse.de>
2618 PR tree-optimization/89489
2619 * tree-parloops.c (create_loop_fn): Copy over last_clique.
2621 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
2623 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
2624 and move around comment.
2625 <BIT_AND_EXPR>: Likewise.
2626 <BIT_NOT_EXPR>: Add specific handling for boolean types.
2628 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2631 * config/i386/i386.c (remove_partial_avx_dependency): Call
2632 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
2633 after changing possibly many instructions to use that pseudo. Fix up
2634 insertion of v4sf_const0 setter at the start of bb.
2636 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2639 * doc/extend.texi (Variadic Pointer Args): New section.
2641 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2642 Martin Sebor <msebor@gmail.com>
2644 * common.opt (Wattribute-alias): Likewise.
2645 * doc/invoke.texi (Option Summary): List general form of
2646 -Wattribute-alias=. List positive form of -Wmissing-attributes.
2647 (-Wmissing-attributes): Invert entry, rewrite and correct default.
2648 Add cross-references.
2649 (-Wattribute-alias): Rewrite and correct default. Mention
2650 considered attributes (same as for -Wmissing-attributes).
2652 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
2654 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
2655 (_mm_cvtpd_ps): Likewise.
2656 (_mm_cvttpd_epi32): Likewise.
2659 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
2660 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
2663 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
2665 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2668 * common/config/aarch64/aarch64-common.c
2669 (struct aarch64_option_extension): Add is_synthetic.
2670 (all_extensions): Use it.
2671 (TARGET_OPTION_INIT_STRUCT): Define hook.
2672 (struct gcc_targetm_common): Moved to end.
2673 (all_extensions_by_on): New.
2674 (opt_ext_cmp, typedef opt_ext): New.
2675 (aarch64_option_init_struct): New.
2676 (aarch64_contains_opt): New.
2677 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
2678 * config/aarch64/aarch64-option-extensions.def
2679 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
2680 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
2681 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
2682 Set is_synthetic to false.
2683 (crypto): Set is_synthetic to true.
2684 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
2687 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2689 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2690 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
2691 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2692 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
2693 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
2694 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
2695 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
2696 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
2698 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
2699 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2700 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
2701 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
2702 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
2703 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
2704 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
2705 vfmlsl_laneq_high_f16): ... To this.
2706 * config/arm/neon.md: Update comments.
2708 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2710 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2711 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
2712 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2713 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
2714 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
2715 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
2716 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
2717 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
2719 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
2720 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2721 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
2722 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
2723 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
2724 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
2725 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
2726 vfmlslq_laneq_high_f16): ... To this.
2728 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
2730 PR rtl-optimization/86096
2731 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
2732 comparing mw_order values.
2734 2019-02-25 Jakub Jelinek <jakub@redhat.com>
2737 * config/arm/arm.md (*subsi3_carryin_const): Use
2738 arm_neg_immediate_operand predicate instead of
2739 arm_not_immediate_operand, "L" constraint instead of "K" and
2740 print it using %n2 instead of %B2.
2741 (*subsi3_carryin_const0): New define_insn.
2742 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
2743 instead of arm_not_operand and "I" constraint instead of "K" and
2744 print it using %n3 instead of %B2. Instead of using match_dup 2 add
2745 another match_operand and in the condition check that it is negation
2747 (*subsi3_carryin_compare_const0): New define_ins.
2748 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
2749 *subsi3_carryin_const.
2750 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
2751 split into *subsi3_carryin_compare_const0 if the highpart is zero.
2754 * config/arm.vfp.md (*negdf2_vfp): Use
2755 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
2756 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
2758 2019-02-24 Jakub Jelinek <jakub@redhat.com>
2760 PR rtl-optimization/89445
2761 * simplify-rtx.c (simplify_ternary_operation): Don't use
2762 simplify_merge_mask on operands that may trap.
2763 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
2764 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
2765 second operand is CONST_VECTOR, check if any element could be zero.
2766 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
2767 their operands can trap.
2769 2019-02-23 Martin Sebor <msebor@redhat.com>
2771 * gimple-ssa-sprintf.c (target_strtol): Rename...
2772 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
2773 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
2774 check for range error.
2776 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
2779 * opts-common.c (prune_options): Also prune joined switches
2780 with Negative and RejectNegative.
2781 * config/i386/i386.opt (march=): Add Negative(march=).
2782 (mtune=): Add Negative(mtune=).
2783 * doc/options.texi: Document Negative used together with Joined
2786 2019-02-22 Martin Sebor <msebor@redhat.com>
2788 * doc/extend.texi (Other Builtins): Add
2789 __builtin_is_constant_evaluated.
2791 2019-02-22 Richard Biener <rguenther@suse.de>
2793 PR tree-optimization/87609
2794 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
2796 2019-02-22 Jeff Law <law@redhat.com>
2798 PR rtl-optimization/87761
2799 * config/mips/mips.md: Add new combiner pattern to recognize
2800 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
2802 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
2805 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
2806 destination register in peepholes generating patterns for ADDS/SUBS.
2807 (add<mode>3_compare0,
2808 *addsi3_compare0_uxtw, add<mode>3_compareC,
2809 add<mode>3_compareV_imm, add<mode>3_compareV,
2810 *adds_<optab><ALLX:mode>_<GPI:mode>,
2811 *subs_<optab><ALLX:mode>_<GPI:mode>,
2812 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
2813 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
2814 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
2815 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
2816 sub<mode>3_compare1): Allow stack pointer for source register.
2817 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
2819 2019-02-22 Martin Sebor <msebor@redhat.com>
2821 PR tree-optimization/88993
2822 PR tree-optimization/88853
2823 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
2825 (sprintf_dom_walker::call_info::is_string_func): New helper.
2826 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
2827 for formatted string functions.
2828 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
2830 2019-02-22 Martin Sebor <msebor@redhat.com>
2833 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
2834 unreachable subexpressions.
2836 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
2837 Hongtao Liu <hongtao.liu@intel.com>
2838 Sunil K Pandey <sunil.k.pandey@intel.com>
2841 * config/i386/i386-passes.def: Add
2842 pass_remove_partial_avx_dependency.
2843 * config/i386/i386-protos.h
2844 (make_pass_remove_partial_avx_dependency): New.
2845 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
2847 (pass_data_remove_partial_avx_dependency): New.
2848 (pass_remove_partial_avx_dependency): Likewise.
2849 (make_pass_remove_partial_avx_dependency): Likewise.
2850 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
2851 (*extendsfdf2): Add avx_partial_xmm_update.
2852 (truncdfsf2): Likewise.
2853 (*float<SWI48:mode><MODEF:mode>2): Likewise.
2854 (SF/DF conversion splitters): Disabled for TARGET_AVX.
2856 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
2859 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
2862 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
2865 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
2866 (PTA_SKYLAKE): Add PTA_AES.
2867 (PTA_GOLDMONT): Likewise.
2869 2019-02-22 Sudakshina Das <sudi.das@arm.com>
2871 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
2872 instruction if enabled.
2873 (aarch64_override_options): Remove reference to return address key.
2875 2019-02-22 Richard Biener <rguenther@suse.de>
2877 PR tree-optimization/89440
2878 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
2879 not necessary assert.
2881 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2884 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
2885 (oacc_replace_fn_attrib_attr): ... this new function.
2886 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
2887 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
2889 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2891 * config/arm/arm-cpus.in (ares): Rename to...
2892 (neoverse-n1): ... This. Add ares as alias.
2893 * config/arm/arm-tables.opt: Regenerate.
2894 * config/arm/arm-tune.md: Likewise.
2895 * doc/invoke.txt (ARM Options): Document neoverse-n1.
2897 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2899 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
2900 * config/aarch64/aarch64-tune.md: Regenerate.
2901 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
2903 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2905 * config/aarch64/aarch64.c (ares_tunings): Rename to...
2906 (neoversen1_tunings): ... This.
2907 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
2908 (neoverse-n1): New CPU.
2909 * config/aarch64/aarch64-tune.md: Regenerate.
2910 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
2912 2019-02-22 Richard Biener <rguenther@suse.de>
2915 * cfghooks.h (dependence_hash): New typedef.
2916 (struct copy_bb_data): New type.
2917 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
2918 (duplicate_block): Likewise.
2919 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
2920 (copy_bbs): Create and pass down copy_bb_data.
2921 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
2922 (rtl_duplicate_bb): Likewise.
2923 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
2924 remap dependence info.
2926 2019-02-22 Richard Biener <rguenther@suse.de>
2928 PR tree-optimization/87609
2929 * tree-core.h (tree_base): Document special clique values.
2930 * tree-inline.c (remap_dependence_clique): Do not use the
2931 special clique value of one.
2932 (maybe_set_dependence_info): Use clique one.
2933 (clear_dependence_clique): New callback.
2934 (compute_dependence_clique): Clear clique one from all refs
2935 before assigning it (again).
2937 2019-02-21 Martin Sebor <msebor@redhat.com>
2939 * doc/extend.texi (__clear_cache): Correct signature.
2941 2019-02-21 Ian Lance Taylor <iant@golang.org>
2944 * varasm.c (decode_addr_const): Call lookup_constant_def rather
2945 than output_constant_def.
2946 (add_constant_to_table): New static function.
2947 (output_constant_def): Call add_constant_to_table.
2948 (tree_output_constant_def): Likewise.
2950 2019-02-21 Jakub Jelinek <jakub@redhat.com>
2953 * builtins.c (fold_builtin_arith_overflow): If first two args are
2954 INTEGER_CSTs, set intres and ovfres to constants rather than calls
2957 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
2960 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
2961 error for -mindirect-branch/-mfunction-return with incompatible
2964 2019-02-21 Jakub Jelinek <jakub@redhat.com>
2967 * constraints.md (q): Remove.
2968 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
2971 2019-02-21 Martin Jambor <mjambor@suse.cz>
2974 * omp-general.c (omp_extract_for_data): Removed a duplicate call
2975 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
2976 (omp_adjust_for_condition): ...here. Added necessary parameters.
2977 * omp-general.h (omp_adjust_for_condition): Updated declaration.
2978 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
2979 proper values to new parameters of omp_adjust_for_condition.
2981 2019-02-20 Jakub Jelinek <jakub@redhat.com>
2984 * expr.c (expand_assignment): If result is a MEM, use change_address
2985 instead of simplify_gen_subreg.
2987 2019-02-20 Jakub Jelinek <jakub@redhat.com>
2988 David Malcolm <dmalcolm@redhat.com>
2991 * fold-const.c (decode_field_reference): Return NULL_TREE if
2992 lang_hooks.types.type_for_size returns NULL. Check it before
2993 overwriting *exp_. Use return NULL_TREE instead of return 0.
2995 2019-02-20 Jakub Jelinek <jakub@redhat.com>
2999 * toplev.c (do_compile): Double the emin/emax exponents to workaround
3002 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
3005 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
3006 TARGET_SSE in addition to TARGET_SSE_MATH.
3008 (ix86_excess_precision): Ditto.
3009 (ix86_float_exceptions_rounding_supported_p): Ditto.
3010 (use_rsqrt_p): Ditto.
3011 * config/i386/sse.md (rsqrt<mode>2): Ditto.
3013 2019-02-20 David Malcolm <dmalcolm@redhat.com>
3016 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
3017 linenum_arith_t when determining if two adjacent line spans are
3018 close enough to merge.
3019 (diagnostic_show_locus): Use linenum_arith_t when iterating over
3020 lines within each line_span.
3022 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
3025 * lra-constraints.c(uses_hard_regs_p): Fix handling of
3026 paradoxical SUBREGS.
3028 2019-02-20 Li Jia He <helijia@linux.ibm.com>
3031 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
3032 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
3033 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
3036 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
3038 * config/gcn/gcn.c (print_operand): Fix typo.
3040 2019-02-19 Richard Biener <rguenther@suse.de>
3043 * toplev.c (do_compile): Initialize mpfr's exponent range
3044 based on available float modes.
3046 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
3048 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
3049 as long as the epilogue isn't completed.
3051 2019-02-18 Martin Sebor <msebor@redhat.com>
3053 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
3054 __has_cpp_attribute, and __has_include.
3056 2019-02-18 Martin Sebor <msebor@redhat.com>
3058 * doc/invoke.texi (-Wreturn-type): Correct and expand.
3060 2019-02-18 Martin Sebor <msebor@redhat.com>
3063 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
3065 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
3067 2019-02-18 Richard Biener <rguenther@suse.de>
3069 PR tree-optimization/89296
3070 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
3071 of no-warning flag to cases that might emit the bogus warning.
3073 2019-02-18 Jakub Jelinek <jakub@redhat.com>
3076 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
3078 * config/arm/vfp.md (*movdi_vfp): Likewise.
3079 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
3080 "q" constraint for operands[0].
3083 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
3084 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
3085 pattern in a temporary buffer.
3086 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
3087 than 64-operands[2].
3090 * config/s390/s390.c (s390_indirect_branch_attrvalue,
3091 s390_indirect_branch_settings): Define unconditionally.
3092 (s390_set_current_function): Likewise, but guard the whole body except
3093 the s390_indirect_branch_settings call with
3094 #if S390_USE_TARGET_ATTRIBUTE.
3095 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
3097 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
3098 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
3099 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
3100 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
3101 HOST_WIDE_INT_1U instead of 1ULL.
3102 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
3103 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
3104 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
3105 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
3107 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
3110 2019-02-18 Martin Jambor <mjambor@suse.cz>
3112 PR tree-optimization/89209
3113 * tree-sra.c (create_access_replacement): New optional parameter
3114 reg_tree. Use it as a type if non-NULL and access type is not of
3116 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
3117 to create_access_replacement.
3118 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
3119 Check lacc is non-NULL before attempting to re-create it on the RHS.
3121 2019-02-18 Martin Liska <mliska@suse.cz>
3124 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
3126 (symbol_table::free_edge): Recycle m_summary_id.
3127 * cgraph.h (get_summary_id): New.
3128 (symbol_table::release_symbol): Set m_summary_id to -1
3130 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
3131 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
3132 function_summary to fast_function_summary.
3133 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
3134 * ipa-pure-const.c (class funct_state_summary_t):
3135 Switch from function_summary to fast_function_summary.
3136 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
3137 (class ipa_ref_opt_summary_t): Switch from function_summary
3138 to fast_function_summary.
3139 * symbol-summary.h (class function_summary_base): New class
3140 that is created from base of former function_summary.
3141 (function_summary_base::unregister_hooks): New.
3142 (class function_summary): Inherit from function_summary_base.
3143 (class call_summary_base): New class
3144 that is created from base of former call_summary.
3145 (class call_summary): Inherit from call_summary_base.
3146 (struct is_same): New.
3147 (class fast_function_summary): New summary class.
3148 (class fast_call_summary): New summary class.
3149 * vec.h (vec_safe_grow_cleared): New function.
3151 2019-02-18 Martin Liska <mliska@suse.cz>
3153 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
3154 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
3155 * doc/tm.texi: Document new target hook.
3156 * doc/tm.texi.in: Likewise.
3157 * target.def: Add new target macro.
3158 * gcc.c (find_fortran_preinclude_file): Do not search multilib
3161 2019-02-17 Alan Modra <amodra@gmail.com>
3164 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
3165 output reg on add insn.
3166 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
3168 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
3171 * config/i386/sse.md (ssedoublemode): Remove V4HI.
3172 (PMULHRSW): Likewise.
3173 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
3175 (ssse3_pmulhrswv4hi3): New expander.
3177 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
3179 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
3180 MMX. Add isa attribute.
3182 2019-02-16 Jakub Jelinek <jakub@redhat.com>
3184 PR rtl-optimization/66152
3185 * builtins.h (c_readstr): Declare.
3186 * builtins.c (c_readstr): Remove forward declaration. Add
3187 null_terminated_p argument, if false, read all bytes from the
3188 string instead of stopping after '\0'.
3189 * expr.c (string_cst_read_str): New function.
3190 (store_expr): Use string_cst_read_str instead of
3191 builtin_strncpy_read_str. Try to store by pieces the whole
3192 exp_len first, and only if that fails, split it up into
3193 store by pieces followed by clear_storage. Formatting fix.
3195 * config/i386/i386.md (*movqi_internal): Remove static from
3196 buf variable. Use output_asm_insn (buf, operands); return "";
3197 instead of return buf;.
3198 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
3199 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
3200 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
3202 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
3204 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
3205 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
3206 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
3207 (CC1_SPEC): Likewise.
3208 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
3210 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
3212 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
3213 the base address on 64-bit strict-alignment platforms.
3215 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
3217 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
3219 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
3221 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
3223 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
3225 PR rtl-optimization/88308
3226 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
3227 on copied instruction.
3229 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
3231 * final.c (insn_current_reference_address): Replace test on JUMP_P
3232 with test on jump_to_label_p.
3233 * config/visium/visium-passes.def: New file.
3234 * config/visium/t-visium (PASSES_EXTRA): Define.
3235 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
3236 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
3237 (TRAMPOLINE_ALIGNMENT): Define.
3238 * config/visium/visium.c (visium_option_override): Do not register
3239 the machine-specific reorg pass here.
3240 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
3242 (output_branch): Adjust threshold for long branch instruction.
3243 * config/visium/visium.md (cpu): Move around.
3244 (length): Adjust for the GR6.
3246 2019-02-15 Richard Biener <rguenther@suse.de>
3247 Jakub Jelinek <jakub@redhat.com>
3249 PR tree-optimization/89278
3250 * tree-loop-distribution.c: Include tree-eh.h.
3251 (generate_memset_builtin, generate_memcpy_builtin): Call
3252 rewrite_to_non_trapping_overflow on builtin->size before passing it
3253 to force_gimple_operand_gsi.
3255 2019-02-15 Jakub Jelinek <jakub@redhat.com>
3258 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
3260 * opth-gen.awk: Likewise.
3262 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
3264 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
3265 Enable MMX, SSE and SSE2 by default.
3266 * config/i386/i386.c (ix86_option_override_internal): Do not
3267 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
3269 2019-02-14 Jakub Jelinek <jakub@redhat.com>
3271 PR rtl-optimization/89354
3272 * combine.c (make_extraction): Punt if extraction_mode is narrower
3275 2019-02-14 Maya Rashish <coypu@sdf.org>
3277 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
3278 * config/netbsd-d.c: New file.
3279 * config/t-netbsd: Add netbsd-d.o
3281 2018-02-14 Steve Ellcey <sellcey@marvell.com>
3283 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
3284 affects_type_identity to true for aarch64_vector_pcs.
3285 (aarch64_comp_type_attributes): New function.
3286 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
3288 2019-02-14 Tamar Christina <tamar.christina@arm.com>
3291 * config/arm/iterators.md (ANY64): Add V4HF.
3293 2019-02-14 Martin Liska <mliska@suse.cz>
3295 PR rtl-optimization/89242
3296 * dce.c (delete_unmarked_insns): Call free_dominance_info we
3297 process a transformation.
3299 2019-02-14 Jakub Jelinek <jakub@redhat.com>
3301 PR tree-optimization/89314
3302 * fold-const.c (fold_binary_loc): Cast strlen argument to
3303 const char * before dereferencing it. Formatting fixes.
3306 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
3308 2019-02-13 Ian Lance Taylor <iant@golang.org>
3310 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
3311 and set current index for other optimizations.
3313 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
3315 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
3316 nonimmediate_operand as operand 2 predicate.
3317 (vec_set<VF2_512_256:mode>_0): Ditto.
3318 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
3319 (*vec_concatv2si): Remove alternative 2.
3320 (*vec_concatv4si_0): Use vm constraint for alternative 0.
3321 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
3322 (vec_concatv2di): Split alternatives 4,5,6 to ...
3323 (*vec_concatv2di_0) ... new pattern.
3325 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
3328 * config/arm/arm.c (ldm_stm_operation_p) Set
3329 addr_reg_in_reglist correctly for first register.
3330 (load_multiple_sequence): Remove dead base check.
3331 (gen_ldm_seq): Correctly set write_back for Thumb-1.
3333 2019-02-13 Tamar Christina <tamar.christina@arm.com>
3336 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
3337 Expose as @aarch64_pred_mov.
3338 * config/aarch64/aarch64.c (aarch64_classify_address):
3339 Use expand_insn which legitimizes operands.
3341 2019-02-13 Martin Liska <mliska@suse.cz>
3343 * builtins.h (expand_builtin_with_bounds): Remove declaration.
3344 * calls.c (struct arg_data): Remove special_slot, pointer_arg
3345 and pointer_offset fields.
3346 (initialize_argument_information): Remove usage of dead
3348 * cgraph.h (struct cgraph_thunk_info): Remove
3349 add_pointer_bounds_args.
3350 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
3352 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
3354 * config/i386/i386.c (ix86_function_arg_advance): Remove
3356 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
3357 (def_builtin): Remove usage of dead
3359 (ix86_add_new_builtins): Likewise.
3360 * ipa-fnsummary.c (compute_fn_summary): Likewise.
3361 * ipa-icf.c (sem_function::equals_wpa): Likewise.
3362 (sem_function::init): Likewise.
3363 (sem_variable::merge): Likewise.
3364 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3365 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3366 * lto-cgraph.c (lto_output_node): Likewise.
3367 (lto_output_varpool_node): Likewise.
3368 (input_node): Likewise.
3369 (input_varpool_node): Likewise.
3370 * lto-streamer-out.c (lto_output): Likewise.
3371 * tree-inline.c (expand_call_inline): Remove usage of
3373 * tree-inline.h (struct copy_body_data): Likewise.
3374 * varpool.c (varpool_node::dump): Likewise.
3376 2019-02-13 Jakub Jelinek <jakub@redhat.com>
3379 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
3380 into pt->vars_contains_escaped_heap instead of setting
3381 pt->vars_contains_escaped_heap to it.
3384 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
3385 INTVAL (size), compare it to GET_MODE_MASK instead of
3386 1 << GET_MODE_BITSIZE.
3389 * config/i386/predicates.md (x86_64_immediate_operand): Allow
3390 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
3393 2019-02-13 Martin Liska <mliska@suse.cz>
3396 * cfgrtl.c (remove_barriers_from_footer): New function.
3397 (try_redirect_by_replacing_jump): Use it.
3398 (cfg_layout_redirect_edge_and_branch): Likewise.
3400 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
3402 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
3403 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
3404 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
3405 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
3406 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
3407 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
3409 * config/rs6000/rs6000.c (builtin_function_type)
3410 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
3411 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
3412 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
3413 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
3414 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
3416 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
3418 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
3419 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
3421 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
3424 * config/i386/i386.md (*movoi_internal_avx): Revert revision
3425 268678 and revision 268657.
3426 (*movti_internal): Likewise.
3428 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
3431 * config/s390/s390.c (s390_decompose_address): Update comment.
3432 (s390_check_qrst_address): Reject invalid address forms after
3435 2019-02-12 Martin Liska <mliska@suse.cz>
3438 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
3439 we need default values of funct_state for a function that
3442 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
3444 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
3445 the object to pick the size of stores on strict-alignment platforms.
3447 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
3448 (*movdi_insn_sp32): Likewise.
3449 (*movdi_insn_sp64): Likewise.
3451 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
3454 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
3455 types that needs constructiong.
3456 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
3458 2019-02-12 Richard Biener <rguenther@suse.de>
3460 PR tree-optimization/89253
3461 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
3464 2019-02-11 David Malcolm <dmalcolm@redhat.com>
3467 * input.c (selftest::test_line_offset_overflow): New selftest.
3468 (selftest::input_c_tests): Call it.
3470 2019-02-11 Martin Sebor <msebor@redhat.com>
3472 PR tree-optimization/88771
3473 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
3474 when -Wstringop-overflow is set.
3475 (builtin_memref::builtin_memref): Adjust excessive upper bound
3476 only when lower bound is not excessive.
3477 (maybe_diag_overlap): Detect and diagnose excessive bounds via
3478 -Wstringop-ovefflow.
3479 (maybe_diag_offset_bounds): Rename...
3480 (maybe_diag_access_bounds): ...to this.
3481 (check_bounds_or_overlap): Adjust for name change above.
3483 2019-02-11 Martin Sebor <msebor@redhat.com>
3486 * builtins.c (max_object_size): Move from here...
3487 * builtins.h (max_object_size): ...and here...
3488 * tree.c (max_object_size): ...to here...
3489 * tree.h (max_object_size): ...and here.
3491 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
3493 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
3494 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
3495 for correct semantics.
3497 2019-02-11 Alan Modra <amodra@gmail.com>
3499 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
3500 -mlongcall and -mpltseq.
3501 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
3502 (RS/6000 and PowerPC Options <-mpltseq>): Document.
3503 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
3504 * config/rs6000/sysv4.opt (mpltseq): New option.
3505 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
3506 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
3507 support is lacking. Don't allow -mpltseq with -mbss-plt.
3508 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
3509 -mpltseq given for ELFv1.
3510 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
3511 Only use UNSPEC_PLTSEQ for inline PLT calls.
3512 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
3513 use UNSPEC_PLTSEQ for inline PLT calls.
3514 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
3515 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
3516 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
3517 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
3518 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
3519 (pltseq_mtctr_<mode>): Likewise.
3521 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3523 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
3525 * configure: Regenerate.
3527 2019-02-11 Jakub Jelinek <jakub@redhat.com>
3530 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
3533 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
3535 * function.c (assign_parm_setup_block): Use the stored
3536 size, not the passed size, when allocating stack-space,
3537 also for a parameter with alignment larger than
3538 MAX_SUPPORTED_STACK_ALIGNMENT.
3540 2019-02-11 Martin Liska <mliska@suse.cz>
3543 * ipa-cp.c (build_toporder_info): Remove usage of a param.
3544 * ipa-inline.c (inline_small_functions): Likewise.
3545 * ipa-pure-const.c (propagate_pure_const): Likewise.
3546 (propagate_nothrow): Likewise.
3547 * ipa-reference.c (propagate): Likewise.
3548 * ipa-utils.c (struct searchc_env): Remove unused field.
3549 (searchc): Always search across AVAIL_INTERPOSABLE.
3550 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
3551 the only called IPA pure const can properly not propagate
3552 across interposable boundary.
3553 * ipa-utils.h (ipa_reduced_postorder): Remove param.
3555 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
3557 * config/nds32/nds32.md (call_internal, call_value_internal,
3558 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
3560 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
3562 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
3565 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
3567 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
3570 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
3572 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
3574 2019-02-10 Jakub Jelinek <jakub@redhat.com>
3576 PR tree-optimization/89268
3577 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
3578 if preds is non-NULL.
3580 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3583 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
3586 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3588 * config/nds32/nds32.md (trap): New pattern.
3590 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3592 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
3595 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
3597 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
3600 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3602 * ipa-visibility.c (localize_node): Also do not localize
3603 LDPR_PREVAILING_DEF_IRONLY_EXP.
3605 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3608 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
3609 instead of type_with_linkage.
3611 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3614 * params.def (uninlined-function-insns, uninlined-function-time,
3615 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
3616 bound so we don't get overflows.
3618 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
3620 * config/rs6000/rs6000-string.c (expand_compare_loop,
3621 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
3624 2019-02-09 Jakub Jelinek <jakub@redhat.com>
3627 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3628 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
3629 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
3631 2019-02-09 Alan Modra <amodra@gmail.com>
3634 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
3635 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
3638 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
3641 * lra-constraints.c (process_alt_operands): Don't increase reject
3642 for memory when offset memory is required.
3644 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
3646 * config/s390/vector.md: Implement vector copysign.
3648 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3650 * expr.c (expand_constructor): Correct indentations.
3652 2019-02-08 Richard Biener <rguenther@suse.de>
3654 PR tree-optimization/89247
3655 * tree-if-conv.c: Include tree-cfgcleanup.h.
3656 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
3657 (tree_if_conversion): Pass through predicate vector.
3658 (pass_if_conversion::execute): Do CFG cleanup and SSA update
3659 inline, see if any if-converted loops we refrece in
3660 LOOP_VECTORIZED calls vanished and fixup.
3661 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
3663 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
3665 * config/s390/constraints.md (jdd): New constraint.
3667 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3670 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
3671 upper 16 vector registers without TARGET_AVX512VL.
3672 (*movti_internal): Likewise.
3674 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3676 PR rtl-optimization/89234
3677 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
3678 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
3679 (copy_reg_eh_region_note_backward): Likewise.
3681 2019-02-08 Richard Biener <rguenther@suse.de>
3684 * tree-data-ref.c (initialize_matrix_A): Fail if constant
3686 (analyze_subscript_affine_affine): Handle failure from
3687 initialize_matrix_A.
3689 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3691 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
3694 2019-02-07 David Malcolm <dmalcolm@redhat.com>
3696 PR tree-optimization/86637
3697 PR tree-optimization/89235
3698 * tree-vect-loop.c (optimize_mask_stores): Add an
3699 auto_purge_vect_location sentinel to ensure that vect_location is
3702 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
3703 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
3704 to ensure that vect_location is purged on exit.
3705 (pass_slp_vectorize::execute): Likewise, replacing the manual
3707 * tree-vectorizer.h (class auto_purge_vect_location): New class.
3709 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3711 * config/aarch64/iterators.md (max_opp): New code_attr.
3712 (USMAX): New code iterator.
3713 * config/aarch64/predicates.md (aarch64_smin): New predicate.
3714 (aarch64_smax): Likewise.
3715 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
3716 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
3719 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
3722 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
3723 for TARGET_AVX512VL.
3724 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
3726 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
3728 * config/s390/s390-builtin-types.def: Add new types.
3729 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
3730 (s390_vec_xlw4): Make the memory operand into a const pointer.
3731 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
3733 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
3734 a new vector type with the alignment of the scalar memory operand.
3736 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
3737 Jakub Jelinek <jakub@redhat.com>
3740 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
3741 arm_count_ldrdstrd_insns): New declarations.
3742 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
3744 (valid_operands_ldrd_strd): New function.
3745 (arm_count_ldrdstrd_insns): New function.
3746 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
3747 sets instead of single DImode set and define new insns to match this.
3749 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3751 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
3752 Make it a C initializer.
3754 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3757 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
3759 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3761 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
3762 Use neon_dot<q> for type.
3763 (neon_<sup>dot_lane<vsi2qi>): Likewise.
3765 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3767 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
3768 Use neon_dot<q> for type.
3769 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
3770 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
3772 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
3774 PR rtl-optimization/89225
3775 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
3778 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
3780 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
3781 after restoring registers saved to allocate the frame on Windows.
3783 2019-02-06 Richard Biener <rguenther@suse.de>
3785 PR tree-optimization/89182
3786 * graphite.h (cached_scalar_evolution_in_region): Declare.
3787 * graphite.c (struct seir_cache_key): New.
3788 (struct sese_scev_hash): Likewise.
3789 (seir_cache): New global.
3790 (cached_scalar_evolution_in_region): New function.
3791 (graphite_transform_loops): Allocate and release seir_cache.
3792 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
3793 cached_scalar_evolution_in_region.
3794 * graphite-scop-detection.c (scop_detection::can_represent_loop):
3796 (scop_detection::graphite_can_represent_expr: Use
3797 cached_scalar_evolution_in_region.
3798 (scop_detection::stmt_simple_for_scop_p): Likewise.
3799 (find_params_in_bb): Likewise.
3800 (gather_bbs::before_dom_children): Likewise.
3801 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
3802 (add_loop_constraints): Likewise.
3804 2019-02-06 Jakub Jelinek <jakub@redhat.com>
3807 * fold-const-call.c (fold_const_vec_convert): Pass true as last
3808 operand to new_unary_operation only if both element types are integral
3809 and it isn't a widening conversion. Return NULL_TREE if
3810 new_unary_operation failed.
3812 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
3815 * config/s390/s390.md: Remove load and test FP splitter.
3817 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3820 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
3821 expand_compare_loop, expand_block_compare_gpr,
3822 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
3823 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
3824 #include "profile-count.h" and "predict.h" for types and functions
3825 needed to work with REG_BR_PROB notes.
3827 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3830 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
3831 for the long branch case.
3833 2019-02-05 Jakub Jelinek <jakub@redhat.com>
3836 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
3837 can throw, non-call exceptions are enabled and we can't delete
3838 dead exceptions or alter cfg. Set must_clean if
3839 delete_insn_and_edges returns true, don't set it blindly for calls.
3840 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
3842 PR rtl-optimization/89195
3843 * combine.c (make_extraction): For MEMs, don't extract bytes outside
3844 of the original MEM.
3846 2019-02-05 Martin Liska <mliska@suse.cz>
3848 PR gcov-profile/89000
3849 * gcov.c (function_summary): Remove argument.
3850 (file_summary): New function.
3851 (print_usage): Replace tabs with spaces.
3852 (generate_results): Use new function file_summary.
3854 2019-02-05 Jakub Jelinek <jakub@redhat.com>
3857 * optabs.c (prepare_cmp_insn): Pass x and y to
3858 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
3860 2019-02-05 Richard Biener <rguenther@suse.de>
3863 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
3864 (struct bitmap_element): Drop chain_prev so we properly recurse on
3865 the prev member, supporting tree views.
3866 (struct bitmap_head): GTY skip the obstack member.
3868 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
3871 * doc/extend.texi (Vector Extensions): Add an example of using vector
3872 types together with x86 intrinsics.
3874 2019-02-04 Alan Modra <amodra@gmail.com>
3876 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
3877 str[] size to 160, and comment.
3879 2019-02-04 Alan Modra <amodra@gmail.com>
3881 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
3882 (rs6000_pltseq_template): Guard output of TLS markers with
3884 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
3885 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
3886 to use inline PLT sequences.
3887 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
3888 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
3889 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
3891 2019-02-04 Martin Liska <mliska@suse.cz>
3894 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
3895 out when ipa_fn_summaries does not contain entry for callee.
3897 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
3899 * config/sparc/sparc.h: Remove superfluous blank lines.
3900 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
3901 (got_register_rtx): ...this.
3902 (sparc_got): Adjust to above renaming.
3903 (sparc_tls_got): Likewise.
3904 (sparc_delegitimize_address): Likewise.
3905 (sparc_output_mi_thunk): Likewise.
3906 (sparc_init_pic_reg): Likewise.
3907 (save_local_or_in_reg_p): Fix test on the GOT register.
3908 (USE_HIDDEN_LINKONCE): Move around.
3909 (get_pc_thunk_name): Likewise.
3910 (gen_load_pcrel_sym): Likewise.
3911 (load_got_register): Likewise.
3913 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
3915 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
3916 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
3918 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
3920 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
3923 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
3925 * config.gcc (with_nds32_lib, glibc):
3926 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
3927 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
3928 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
3930 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
3933 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
3934 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
3935 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
3936 (*rcpsf2_sse): Ditto.
3937 (*rsqrtsf2_sse): Ditto.
3938 (sse4_1_round<mode<2): Ditto.
3940 2019-02-03 Richard Biener <rguenther@suse.de>
3943 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
3946 2019-02-02 Jakub Jelinek <jakub@redhat.com>
3949 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3950 Punt with warning on aggregate return or argument types. Ignore
3951 type/mode checking for uniform arguments.
3953 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
3955 * combine.c (try_combine): Do not print "Can't combine" messages unless
3956 printing failed combination attempts.
3958 2019-02-01 Martin Jambor <mjambor@suse.cz>
3961 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
3962 segment and global segment variables before making them static.
3964 2019-02-01 Martin Jambor <mjambor@suse.cz>
3966 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
3967 missed optimization dump with dump_enabled_p.
3969 2019-02-01 Richard Biener <rguenther@suse.de>
3972 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
3973 the instantiate cache.
3974 (instantiate_scev_binary): Elide second operand procesing
3975 if equal to the first.
3976 * tree-chrec.c (chrec_contains_symbols): Add visited set.
3977 (chrec_contains_undetermined): Likewise.
3978 (tree_contains_chrecs): Likewise.
3980 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
3982 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
3984 2019-02-01 Jakub Jelinek <jakub@redhat.com>
3986 PR tree-optimization/89143
3987 * wide-int-range.h (wide_int_range_absu): Declare.
3988 * wide-int-range.cc (wide_int_range_absu): New function.
3989 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
3991 PR tree-optimization/88107
3992 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
3993 instead of assertion that eh_region_outermost is non-NULL, if it
3994 is NULL, set *ALL to true and return NULL.
3995 (move_sese_region_to_fn): Adjust caller, if all is set, call
3996 duplicate_eh_regions with NULL region.
3998 2019-02-01 Richard Biener <rguenth@suse.de>
4000 PR rtl-optimization/88593
4001 * mode-switching.c (optimize_mode_switching): Free dominators before
4002 calling cleanup_cfg.
4004 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
4006 PR tree-optimization/88932
4007 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
4009 2019-01-31 Jakub Jelinek <jakub@redhat.com>
4012 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
4013 bogus clang warning.
4015 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
4018 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
4019 alternative to avoid partial SSE register stall for TARGET_AVX.
4020 (truncdfsf2): Ditto.
4021 (sse4_1_round<mode>2): Ditto.
4023 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
4025 PR tree-optimization/89008
4026 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
4027 process anything of the form X * 0.
4029 2019-01-31 Richard Biener <rguenther@suse.de>
4031 PR tree-optimization/89135
4032 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
4033 with abnormal preds.
4035 2019-01-31 Jakub Jelinek <jakub@redhat.com>
4038 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
4039 always_inline callees into no_sanitize_address callers.
4041 2019-01-31 Richard Biener <rguenther@suse.de>
4043 PR rtl-optimization/89115
4044 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
4046 2019-01-30 Martin Sebor <msebor@redhat.com>
4049 * doc/extend.texi (cast to a union): Correct and expand.
4051 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
4053 PR rtl-optimization/87246
4054 * lra-constraints.c (simplify_operand_subreg): Reload memory
4055 in subreg if the address became invalid.
4057 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
4060 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
4061 Disable for little-endian.
4063 2019-01-30 Richard Biener <rguenther@suse.de>
4065 PR rtl-optimization/89115
4066 * opts.c (default_options_optimization): Reduce
4067 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
4068 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
4071 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
4073 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
4074 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
4075 type of vector element when vec_extract is implemented by direct
4078 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
4080 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
4082 2019-01-30 Richard Biener <rguenther@suse.de>
4084 PR tree-optimization/89111
4085 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
4086 canonicalization to appropriately sized access types.
4088 2019-01-30 Jakub Jelinek <jakub@redhat.com>
4091 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
4092 for arguments to functions that are TU-local and shouldn't be
4093 referenced by assembly.
4095 2019-01-30 Ulrich Drepper <drepper@redhat.com>
4097 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
4100 2019-01-29 Martin Sebor <msebor@redhat.com>
4103 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
4105 2019-01-29 Jakub Jelinek <jakub@redhat.com>
4109 * omp-simd-clone.c (simd_clone_clauses_extract)
4110 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
4111 OMP_CLAUSE_ALIGNED_ALIGNMENT.
4113 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
4115 * config.gcc: Force .init_array for ARC.
4117 2019-01-29 Richard Biener <rguenther@suse.de>
4120 * dwarf2out.c (collect_skeleton_dies): New helper.
4121 (copy_decls_for_unworthy_types): Call it.
4122 (build_abbrev_table): Assert we do not try to replace
4123 DW_AT_signature refs with local refs.
4125 2019-01-28 Jakub Jelinek <jakub@redhat.com>
4128 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
4129 for lastprivate/linear IV, push gimplify context around gimplify_assign
4130 and, if it needed any temporaries, pop it into a gimple bind around the
4133 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
4135 * common.opt (-Wattribute-alias): Remove "no-" from name.
4136 Make -Wattribute-alias command line option and
4137 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
4139 2019-01-28 Jakub Jelinek <jakub@redhat.com>
4142 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
4143 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
4145 (bmi2): Add missing @opindex.
4146 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
4147 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
4148 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
4149 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
4150 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
4151 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
4152 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
4153 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
4154 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
4155 xsavec, xsaveopt and xsaves options.
4157 2019-01-28 Richard Biener <rguenther@suse.de>
4160 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
4163 2019-01-28 Richard Biener <rguenther@suse.de>
4165 PR tree-optimization/88739
4166 * tree-cfg.c (verify_types_in_gimple_reference): Verify
4167 BIT_FIELD_REFs only are applied to mode-precision operands
4168 when they are integral.
4169 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
4170 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
4171 BIT_FIELD_REFs of non-mode-precision integral operands.
4173 2019-01-27 Jakub Jelinek <jakub@redhat.com>
4176 * config/i386/sse.md
4177 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
4178 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
4179 first constants in pairs are multiples of 2. Formatting fixes.
4180 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
4181 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
4182 first constants in each quadruple are multiples of 4. Formatting fixes.
4184 2019-01-26 Martin Jambor <mjambor@suse.cz>
4187 * tree-inline.c: Include tree-cfgcleanup.h.
4188 (delete_unreachable_blocks_update_callgraph): Move...
4189 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
4190 ...here, make externally visible, make second argument bool, adjust
4192 * tree-cfgcleanup.c: Include cgraph.h.
4193 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
4195 * ipa-prop.c: Include tree-cfgcleanup.h.
4196 (ipcp_transform_function): Call
4197 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
4199 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
4201 PR rtl-optimization/88846
4202 * ira.c (process_set_for_memref_referenced_p): New.
4203 (memref_referenced_p): Add new param. Use
4204 process_set_for_memref_referenced_p. Add new switch cases.
4205 (memref_used_between_p): Pass new arg to memref_referenced_p.
4207 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
4210 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
4211 argument ABI_BREAK. Set to true if the calculated alignment has
4212 changed in gcc-9. Check bit-fields for their base type alignment.
4213 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
4214 (aarch64_function_arg_boundary): Likewise.
4215 (aarch64_gimplify_va_arg_expr): Likewise.
4217 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
4220 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
4221 instead of accessing TREE_INT_CST_ELT directly.
4223 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
4225 * doc/sourcebuild.texi (Environment attributes): Add fenv and
4226 fenv_exceptions description.
4228 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
4230 PR rtl-optimization/87763
4231 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
4232 Allow SUBREG when matching CC_NZmode compare.
4234 2019-01-25 Richard Biener <rguenther@suse.de>
4236 PR tree-optimization/89049
4237 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4238 Look at the pattern stmt to determine if the stmt is vectorized.
4240 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
4242 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
4243 (pred_mov<mode>): Handle all-register forms using both a new
4244 alternative and a split.
4246 2019-01-25 Richard Biener <rguenther@suse.de>
4248 PR tree-optimization/86865
4249 * graphite-scop-detection.c (scop_detection::can_represent_loop):
4250 Reject non-do-while loops.
4252 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
4254 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
4255 * config/rs6000/constraints.md (Q constraint): Use REG_P.
4256 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
4257 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
4258 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
4259 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4260 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
4261 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
4262 vlogical_operand, gpc_reg_operand, int_reg_operand,
4263 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
4264 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
4265 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
4266 (save_world_operation, restore_world_operation, lmw_operation,
4267 stmw_operation): Use MEM_P and REG_P.
4268 (tie_operand): Use MEM_P.
4269 (vrsave_operation, crsave_operation): Use REG_P.
4270 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
4271 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
4272 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
4273 (call_operand): Use HARD_REGISTER_P.
4274 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
4276 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
4277 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
4278 quad_aligned_load_p, replace_swapped_aligned_store,
4279 recombine_lvx_pattern, replace_swapped_aligned_load,
4280 recombine_stvx_pattern): Use MEM_P.
4281 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
4282 Use MEM_P and SYMBOL_REF_P.
4283 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
4284 (insn_is_swappable_p): Use REG_P and MEM_P.
4285 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
4286 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
4288 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
4290 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
4292 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
4293 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
4294 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
4295 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
4297 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
4298 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
4299 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
4300 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
4301 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
4302 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
4303 rs6000_split_logical_di): Use CONST_INT_P.
4304 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
4305 REG_P and SYMBOL_REF_P.
4306 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
4307 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
4308 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
4309 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
4310 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
4311 (small_data_operand, print_operand_address): Use CONST_INT_P and
4313 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
4314 (rs6000_init_hard_regno_mode_ok, direct_move_p):
4315 Use HARD_REGISTER_NUM_P.
4316 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
4317 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
4318 SUBREG_P and SYMBOL_REF_P.
4319 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
4320 and HARD_REGISTER_NUM_P.
4321 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
4323 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
4324 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
4326 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
4327 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
4328 find_addr_reg): Use REG_P.
4329 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
4330 (rs6000_emit_le_vsx_move): Use SUBREG_P.
4331 (offsettable_ok_by_alignment, constant_pool_expr_p,
4332 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
4333 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
4334 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
4335 rs6000_assemble_integer, create_TOC_reference,
4336 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
4337 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
4338 (rs6000_split_vec_extract_var): Use reg_or_subregno.
4339 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
4340 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
4341 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4342 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4343 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
4344 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
4345 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
4346 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
4347 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
4348 and cbranch<mode>4): Use CONST_INT_P.
4349 (multiple define_splits): Use REG_P and SUBREG_P.
4350 (define_expands call, call_value): Use MEM_P.
4351 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
4352 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
4353 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
4354 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
4355 and HARD_REGISTER_NUM_P.
4356 (multiple define_splits): Use HARD_REGISTER_NUM_P.
4358 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
4360 PR rtl-optimization/88948
4361 * rtl.h (prepare_copy_insn): New prototype.
4362 * gcse.c (prepare_copy_insn): New function, split out from
4363 process_insert_insn.
4364 (process_insert_insn): Use prepare_copy_insn.
4365 * store-motion.c (replace_store_insn): Use prepare_copy_insn
4366 instead of gen_move_insn.
4368 2019-01-24 Jakub Jelinek <jakub@redhat.com>
4371 * config/i386/i386.c (ix86_pic_register_p): Return true for
4374 PR tree-optimization/88964
4375 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
4376 punt if HONOR_SNANS (chrec).
4379 * tree-nested.c (convert_nonlocal_reference_stmt,
4380 convert_local_reference_stmt, convert_tramp_reference_stmt,
4381 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
4382 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
4385 PR tree-optimization/89027
4386 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
4387 for "omp simd array" variables.
4389 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
4392 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
4393 force the alignment of m_val.
4395 2019-01-24 Richard Biener <rguenther@suse.de>
4398 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
4399 When in "legacy" debug mode make sure to reset self-origins.
4401 2019-01-24 Martin Liska <mliska@suse.cz>
4403 PR gcov-profile/88994
4404 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
4405 result will be always smaller or equal to the original.
4406 * gcov.c (mangle_name): Fix else branch where we should
4407 also copy to PTR and shift the pointer.
4409 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
4411 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
4412 * vr-values.c (find_case_label_ranges): Fix a comment typo.
4414 2019-01-23 Bin Cheng <bin.cheng@arm.com>
4415 Steve Ellcey <sellcey@marvell.com>
4418 * recog.c (address_operand): Return false on wrong mode for address.
4419 (constrain_operands): Check for mode with 'p' constraint.
4421 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
4424 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
4425 Disparage MMX alternative.
4426 (sse2_cvtpd2pi): Ditto.
4427 (sse2_cvttpd2pi): Ditto.
4429 2019-01-23 David Malcolm <dmalcolm@redhat.com>
4432 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
4433 use-after-free of the result of
4434 aarch64_get_extension_string_for_isa_flags.
4436 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4439 * doc/extend.texi: Document break and continue behavior in
4440 statement expressions.
4442 2019-01-23 Richard Biener <rguenther@suse.de>
4444 PR tree-optimization/89008
4445 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
4446 not leave another stray operand.
4448 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4450 * BASE-VER: Bump to 9.0.1.
4452 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
4454 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
4455 thunk that returns by reference, use the type of the return object
4456 of the thunk instead of that of the alias to build the dereference.
4458 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
4460 * config/arc/atomic.md: Add operand to DMB instruction.
4462 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4464 PR tree-optimization/88964
4465 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
4466 build_zero_cst instead of build_int_cst. Return false for loop
4467 invariants which honor signed zeros.
4469 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
4471 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
4473 2019-01-22 Jakub Jelinek <jakub@redhat.com>
4476 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
4477 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
4478 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
4481 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
4482 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
4485 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
4486 Disable for little endian.
4488 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
4491 * config/arm/arm.c (arm_needs_double_word_align): Check
4492 DECL_BIT_FIELD_TYPE.
4494 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
4495 H.J. Lu <hongjiu.lu@intel.com>
4498 * config/i386/i386-builtin.def: Add mask2 to all builtin
4499 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
4501 * config/i386/i386.c (BDESC): Add mask2 to the definition.
4502 (BDESC_FIRST): Likewise.
4503 (define_builtin): Add an argument for mask2. Updated to handle
4504 both ix86_isa_flags and ix86_isa_flags2.
4505 (define_builtin_const): Likewise.
4506 (define_builtin_pure): Likewise.
4507 (define_builtin2): Deleted.
4508 (define_builtin_const2): Likewise.
4509 (builtin_description): Add a member, mask2.
4510 (bdesc_*): Add mask2 to builtin initializations.
4511 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
4512 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
4514 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
4516 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
4519 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
4522 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
4525 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
4526 alignment is dominated by a bitfield with 64-bit aligned base type.
4527 (arm_function_arg): Emit a warning if the alignment has changed since
4528 earlier GCC releases.
4529 (arm_function_arg_boundary): Likewise.
4530 (arm_setup_incoming_varargs): Likewise.
4532 2019-01-22 Richard Biener <rguenther@suse.de>
4534 PR tree-optimization/88862
4535 * graphite-scop-detection.c
4536 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
4538 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
4540 * doc/extend.tex (AMD GCN Function Attributes): New section.
4541 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
4542 * doc/invoke.texi (AMD GCN Options): New section.
4543 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
4545 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
4547 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
4548 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
4550 2019-01-22 Jakub Jelinek <jakub@redhat.com>
4552 PR tree-optimization/88044
4553 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
4554 is false in the first iteration, but !every_iteration, return false
4555 instead of true with niter->niter zero.
4557 PR rtl-optimization/88904
4558 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
4559 any nonequal registers before processing BB_END (b).
4562 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
4564 (expand_binop_directly, expand_doubleword_clz,
4565 expand_doubleword_popcount, expand_ctz, expand_ffs,
4566 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
4568 PR rtl-optimization/49429
4570 PR rtl-optimization/86334
4572 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
4573 addressable from here...
4574 (emit_block_op_via_libcall): ... to here.
4576 2019-01-22 Richard Biener <rguenther@suse.de>
4578 * tree-vect-loop.c (vect_analyze_loop_operations): Use
4579 auto_vec for cost vector to fix memleak.
4580 (vectorize_fold_left_reduction): Properly gather SLP defs.
4581 (vectorizable_comparison): Do not swap operands to properly
4584 2019-01-22 Alan Modra <amodra@gmail.com>
4587 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
4588 stays a reg. Allow a const_int.
4589 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
4590 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
4591 (IS_NOMARK_TLSGETADDR): Define.
4592 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
4593 (rs6000_output_tlsargs): New function.
4594 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
4595 __tls_get_addr call takes an arg.
4596 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
4597 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
4599 (call_value_nonlocal_sysv): ..or here, delete split.
4600 (tls_gdld_nomark): Delete.
4601 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
4602 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
4603 (call_value_nonlocal_sysv): Likewise.
4604 (call_value_nonlocal_sysv_secure): Likewise.
4605 (call_value_nonlocal_aix): Likewise.
4606 (call_value_indirect_aix): Likewise.
4607 (call_value_indirect_elfv2): Likewise.
4608 (call_value_local32, call_value_local64): Disable for no-mark tls.
4609 (call_value_local_aix): Likewise.
4611 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
4614 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
4615 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
4617 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
4619 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
4620 string contents as hash_map keys.
4622 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4625 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
4626 for rvalue context. Handle rvalues correctly. Use min_align_of_type
4627 instead of TYPE_ALIGN.
4628 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
4629 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
4630 pointer from TYPE_STUB_DECL.
4632 2019-01-21 Richard Biener <rguenther@suse.de>
4634 PR tree-optimization/88934
4635 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
4636 at the possibly non-constant operand.
4637 (vect_get_constant_vectors): Adjust.
4639 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4642 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
4643 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
4644 instead of _X86INTRIN_H_INCLUDED.
4645 * onfig/i386/clwbintrin.h: Likewise.
4646 * config/i386/pkuintrin.h: Likewise.
4647 * config/i386/prfchwintrin.h: Likewise.
4648 * config/i386/rdseedintrin.h: Likewise.
4649 * config/i386/wbnoinvdintrin.h: Likewise.
4650 * config/i386/xsavecintrin.h: Likewise.
4651 * config/i386/xsavesintrin.h: Likewise.
4652 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
4653 * config/i386/xsaveintrin.h: Likewise.
4654 * config/i386/xsaveoptintrin.h: Likewise.
4655 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
4656 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
4657 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
4658 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
4659 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
4660 * config/i386/immintrin.h: Here.
4662 2019-01-20 Martin Jambor <mjambor@suse.cz>
4665 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
4666 with aa_walk_budget.
4667 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
4668 aa_walk_budget_p parameter.
4669 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
4670 walk. Updated all callers.
4671 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
4672 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
4674 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
4675 parameter info. Extract info from fbi. Pass fbi to recursive calls
4676 and to unmodified_parm.
4677 (phi_result_unknown_predicate): New parameter fbi, removed parameter
4678 info, updated call to will_be_nonconstant_expr_predicate.
4679 (param_change_prob): New parameter fbi, limit AA walking.
4680 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
4681 calls to various above functions.
4682 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
4683 parameter. Use it to limit AA walking.
4684 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
4686 (detect_type_change): New parameter fbi, pass it on to
4687 detect_type_change_from_memory_writes.
4688 (detect_type_change_ssa): Likewise.
4689 (aa_overwalked): Removed.
4690 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
4691 accordingly, adjust to the neew AA limiting scheme.
4692 (parm_ref_data_preserved_p): Likewise.
4693 (ipa_compute_jump_functions_for_edge): Adjust call to
4695 (ipa_analyze_call_uses): Likewise.
4696 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
4697 (ipa_analyze_node): Initialize aa_walk_budget.
4698 (ipcp_transform_function): Likewise.
4699 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
4700 to get_dynamic_type.
4702 2019-01-19 Jakub Jelinek <jakub@redhat.com>
4704 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
4705 outside of #if CHECKING_P code.
4707 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
4709 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
4710 New function, split out from...
4711 (loop_versioning::analyze_stride): ...here.
4712 (loop_versioning::find_per_loop_multiplication): Use gassign.
4713 (loop_versioning::analyze_term_using_scevs): Return a success code.
4714 (loop_versioning::analyze_arbitrary_term): New function.
4715 (loop_versioning::analyze_address_fragment): Use
4716 analyze_arbitrary_term if all else fails.
4718 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
4721 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
4724 2019-01-18 Richard Biener <rguenther@suse.de>
4726 PR tree-optimization/88903
4727 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
4728 scalar stmts a SLP shift amount is composed of when detecting
4731 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
4734 * config/arm/arm-cpus.in (mp): New feature.
4736 (fgroup ARMv7ve): Add mp and sec features.
4737 (arch armv7-a): Add options to allow mp and sec extensions.
4738 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
4739 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
4740 extenstions to the base architecture.
4741 (cpu cortex-a8): Add sec extension to the base architecture.
4742 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
4743 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
4744 variants down to the base v7-a varaint.
4745 * config/arm/t-multilib (v7_a_arch_variants): New variable.
4746 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
4747 of permitted extensions for -march=armv7-a and for
4748 -mcpu=generic-armv7-a.
4750 2019-01-18 Martin Liska <mliska@suse.cz>
4752 * params.def: Fix comment.
4753 * tree-profile.c (gimple_init_gcov_profiler): Bump function
4755 (gimple_gen_ic_func_profiler): Likewise.
4757 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4759 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
4760 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
4761 and put in error checks for stack protector guard options.
4762 (aarch64_stack_protect_guard): New.
4763 (TARGET_STACK_PROTECT_GUARD): Define.
4764 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
4765 (reg_stack_protect_address<mode>): New.
4766 (stack_protect_set): Adjust for SSP_GLOBAL.
4767 (stack_protect_test): Likewise.
4768 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
4769 (-mstack-protector-guard): Likewise.
4770 (-mstack-protector-guard-offset): Likewise.
4772 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4774 PR tree-optimization/86214
4775 * tree-inline.h (struct copy_body_data): Add
4776 add_clobbers_to_eh_landing_pads member.
4777 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
4778 (copy_edges_for_bb): Call it if EH edge destination is <
4779 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
4780 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
4781 if flag_stack_reuse != SR_NONE and clear it afterwards.
4783 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
4786 * doc/install.texi (with-multilib-list): Document for aarch64.
4788 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4791 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
4792 (("..."))) with ("...").
4794 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
4796 * doc/extend.texi (Built-in Functions for Memory Model Aware
4797 Atomic Operations): Document atomic fetch and nand.
4799 2019-01-18 Martin Liska <mliska@suse.cz>
4800 Richard Biener <rguenther@suse.de>
4803 * cgraph.h (create_version_clone_with_body): Add new argument
4805 * cgraphclones.c (cgraph_node::create_version_clone): Add
4806 DECL_ATTRIBUTES to a newly created decl. And call
4807 valid_attribute_p so that proper cl_target_optimization_node
4808 is set for the newly created declaration.
4809 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
4811 (expand_target_clones): Do not call valid_attribute_p, it must
4813 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
4816 2019-01-17 Jakub Jelinek <jakub@redhat.com>
4819 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
4820 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
4821 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
4823 2019-01-17 Martin Sebor <msebor@redhat.com>
4826 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
4827 Handle anti-ranges the same as no range at all.
4829 2018-01-17 Steve Ellcey <sellcey@cavium.com>
4831 * config/aarch64/aarch64.c (cgraph.h): New include.
4832 (intl.h): New include.
4833 (supported_simd_type): New function.
4834 (currently_supported_simd_type): Ditto.
4835 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
4836 (aarch64_simd_clone_adjust): Ditto.
4837 (aarch64_simd_clone_usable): Ditto.
4838 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
4839 (TARGET_SIMD_CLONE_ADJUST): Ditto.
4840 (TARGET_SIMD_CLONE_USABLE): Ditto.
4841 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
4842 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
4845 2019-01-17 Martin Sebor <msebor@redhat.com>
4847 PR tree-optimization/88800
4848 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
4849 NO_WARNING bit here. Avoid folding out-of-bounds calls.
4850 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
4851 redundant argument. Add new argument and issue diagnostics under
4852 its control. Detect out-of-bounds access even with warnings
4854 (check_bounds_or_overlap): Change return type. Add argument.
4855 (wrestrict_dom_walker::check_call): Adjust.
4856 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
4857 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
4858 check_bounds_or_overlap's return value.
4859 (handle_builtin_stxncpy): Same.
4860 (handle_builtin_strcat): Same.
4862 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4863 Kwok Cheung Yeung <kcy@codesourcery.com>
4864 Julian Brown <julian@codesourcery.com>
4865 Tom de Vries <tom@codesourcery.com>
4867 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
4869 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4871 * doc/sourcebuild.texi: Document dg-require-effective-target
4872 llvm_binutils and offload_gcn.
4874 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4875 Kwok Cheung Yeung <kcy@codesourcery.com>
4876 Julian Brown <julian@codesourcery.com>
4877 Tom de Vries <tom@codesourcery.com>
4879 * doc/sourcebuild.texi: Document dg-required-effective-target
4882 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4883 Kwok Cheung Yeung <kcy@codesourcery.com>
4884 Julian Brown <julian@codesourcery.com>
4885 Tom de Vries <tom@codesourcery.com>
4886 Jan Hubicka <hubicka@ucw.cz>
4887 Martin Jambor <mjambor@suse.cz>
4889 * config.gcc: Add amdgcn*-*-amdhsa configuration.
4890 * configure.ac: Check for dlopen.
4891 * configure: Regenerate.
4893 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4894 Kwok Cheung Yeung <kcy@codesourcery.com>
4895 Julian Brown <julian@codesourcery.com>
4896 Tom de Vries <tom@codesourcery.com>
4897 Jan Hubicka <hubicka@ucw.cz>
4898 Martin Jambor <mjambor@suse.cz>
4900 * common/config/gcn/gcn-common.c: New file.
4901 * config/gcn/driver-gcn.c: New file.
4902 * config/gcn/gcn-builtins.def: New file.
4903 * config/gcn/gcn-hsa.h: New file.
4904 * config/gcn/gcn-modes.def: New file.
4905 * config/gcn/gcn-opts.h: New file.
4906 * config/gcn/gcn-passes.def: New file.
4907 * config/gcn/gcn-protos.h: New file.
4908 * config/gcn/gcn-run.c: New file.
4909 * config/gcn/gcn-tree.c: New file.
4910 * config/gcn/gcn.c: New file.
4911 * config/gcn/gcn.h: New file.
4912 * config/gcn/gcn.opt: New file.
4913 * config/gcn/t-gcn-hsa: New file.
4915 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4916 Kwok Cheung Yeung <kcy@codesourcery.com>
4917 Julian Brown <julian@codesourcery.com>
4918 Tom de Vries <tom@codesourcery.com>
4919 Jan Hubicka <hubicka@ucw.cz>
4920 Martin Jambor <mjambor@suse.cz>
4922 * config/gcn/constraints.md: New file.
4923 * config/gcn/gcn-valu.md: New file.
4924 * config/gcn/gcn.md: New file.
4925 * config/gcn/predicates.md: New file.
4927 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
4929 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
4930 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
4931 (stmt_uses_0_or_null_in_undefined_way): Likewise.
4932 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
4934 2019-01-17 Tamar Christina <tamar.christina@arm.com>
4937 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
4938 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
4939 it and document registers.
4941 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4943 * config/aarch64/aarch64.c (ares_tunings): Define.
4944 * config/aarch64/aarch64-cores.def (ares): Use the above.
4946 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
4950 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
4952 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
4953 (_mm512_fixupimm_round_pd): Update parameters and builtin.
4954 (_mm512_maskz_fixupimm_round_pd): Ditto.
4955 (_mm512_fixupimm_round_ps): Ditto.
4956 (_mm512_maskz_fixupimm_round_ps): Ditto.
4957 (_mm_fixupimm_round_sd): Ditto.
4958 (_mm_maskz_fixupimm_round_sd): Ditto.
4959 (_mm_fixupimm_round_ss): Ditto.
4960 (_mm_maskz_fixupimm_round_ss): Ditto.
4961 (_mm512_fixupimm_pd): Ditto.
4962 (_mm512_maskz_fixupimm_pd): Ditto.
4963 (_mm512_fixupimm_ps): Ditto.
4964 (_mm512_maskz_fixupimm_ps): Ditto.
4965 (_mm_fixupimm_sd): Ditto.
4966 (_mm_maskz_fixupimm_sd): Ditto.
4967 (_mm_fixupimm_ss): Ditto.
4968 (_mm_maskz_fixupimm_ss): Ditto.
4969 (_mm512_mask_fixupimm_round_pd): Update builtin.
4970 (_mm512_mask_fixupimm_round_ps): Ditto.
4971 (_mm_mask_fixupimm_round_sd): Ditto.
4972 (_mm_mask_fixupimm_round_ss): Ditto.
4973 (_mm512_mask_fixupimm_pd): Ditto.
4974 (_mm512_mask_fixupimm_ps): Ditto.
4975 (_mm_mask_fixupimm_sd): Ditto.
4976 (_mm_mask_fixupimm_ss): Ditto.
4977 * config/i386/avx512vlintrin.h:
4978 (_mm256_fixupimm_pd): Update parameters and builtin.
4979 (_mm256_maskz_fixupimm_pd): Ditto.
4980 (_mm256_fixupimm_ps): Ditto.
4981 (_mm256_maskz_fixupimm_ps): Ditto.
4982 (_mm_fixupimm_pd): Ditto.
4983 (_mm_maskz_fixupimm_pd): Ditto.
4984 (_mm_fixupimm_ps): Ditto.
4985 (_mm_maskz_fixupimm_ps): Ditto.
4986 (_mm256_mask_fixupimm_pd): Update builtin.
4987 (_mm256_mask_fixupimm_ps): Ditto.
4988 (_mm_mask_fixupimm_pd): Ditto.
4989 (_mm_mask_fixupimm_ps): Ditto.
4990 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
4991 * config/i386/i386-builtin.def: Update builtin definitions.
4992 * config/i386/i386.c: Handle new builtin types and remove useless ones.
4993 * config/i386/sse.md: Update VFIXUPIMM* patterns.
4994 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4995 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4996 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
4997 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4998 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4999 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
5000 * config/i386/subst.md:
5001 (round_saeonly_sd_mask_operand4): Add new subst_attr.
5002 (round_saeonly_sd_mask_op4): Ditto.
5003 (round_saeonly_expand_operand5): Ditto.
5004 (round_saeonly_expand): Update.
5006 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
5010 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
5012 * config/i386/sse.md: Combine VFIXUPIMM* patterns
5013 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
5014 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
5015 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
5016 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
5017 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
5018 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
5020 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
5024 2018-12-15 Jakub Jelinek <jakub@redhat.com>
5027 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
5028 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
5029 instead of UNSPEC_FIXUPIMM.
5031 2019-01-17 Richard Biener <rguenther@suse.de>
5034 * dwarf2out.c (want_pubnames): Never generate pubnames sections
5035 and friends for the LTO part of debug info.
5037 2019-01-17 Jakub Jelinek <jakub@redhat.com>
5039 PR tree-optimization/86214
5040 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
5043 PR rtl-optimization/88870
5044 * dce.c (deletable_insn_p): Never delete const/pure calls that can
5045 throw if we can't alter the cfg or delete dead exceptions.
5046 (mark_insn): Don't call find_call_stack_args for such calls.
5048 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
5050 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
5051 prototypes for vec_st.
5052 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
5053 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
5054 mainly on signed/unsigned long long and double.
5056 2019-01-16 David Malcolm <dmalcolm@redhat.com>
5059 * combine.c (delete_noop_moves): Convert to "bool" return,
5060 returning true if any edges are eliminated.
5061 (combine_instructions): Also return true if delete_noop_moves
5064 2019-01-16 Tamar Christina <tamar.christina@arm.com>
5066 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
5067 correct max nunits for endian swap.
5068 (aarch64_expand_fcmla_builtin): Correct subreg code.
5069 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
5070 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
5073 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
5075 * config/alpha/alpha.c (alpha_gimplify_va_arg):
5076 Handle split indirect COMPLEX_TYPE arguments.
5078 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
5081 * config/aarch64/aarch64-modes.def: Add comment about how the carry
5082 bit is set by add and compare.
5083 (CC_ADC): New CC_MODE.
5084 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
5085 to cache the code and mode of X. Adjust the shape of a CC_Cmode
5086 comparison. Add detection for CC_ADCmode.
5087 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
5089 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
5090 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
5091 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
5092 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
5093 to eliminate the need for zero-extending the operands.
5094 (add<mode>3_compareC_imm): Delete. Merge into ...
5095 (add<mode>3_compareC): ... this. Restructure the comparison to
5096 eliminate the need for zero-extending the operands.
5097 (add<mode>3_carryin): Use LTU for the overflow detection.
5098 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
5099 Reexpress comparison for overflow.
5100 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
5101 (add<mode>3_carryinC): Likewise.
5102 (add<mode>3_carryinV): Use LTU for carry between partials.
5103 * config/aarch64/predicates.md (aarch64_carry_operation): Update
5104 handling of CC_Cmode and add CC_ADCmode.
5105 (aarch64_borrow_operation): Likewise.
5107 2019-01-16 Tamar Christina <tamar.christina@arm.com>
5109 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
5110 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
5111 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
5112 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
5114 2019-01-16 Martin Liska <mliska@suse.cz>
5116 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
5118 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
5120 * gcc.c (add_sysrooted_hdrs_prefix): New function.
5121 (path_prefix_reset): Move up in the source file.
5122 (find_fortran_preinclude_file): Make complex search for the
5123 fortran header files.
5125 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
5127 * godump.c (go_output_typedef): When outputting a typedef, refer
5128 to the underlying type by its name and not its structure.
5130 2019-01-15 David Malcolm <dmalcolm@redhat.com>
5133 * tree.c (build_function_type): Assert that arg_types is not
5136 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
5139 * doc/extend.texi: Document that listing the stack pointer in the
5140 clobber list of an asm is a deprecated feature.
5141 * common.opt (Wdeprecated): Moved from c-family/c.opt.
5142 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
5143 warning instead of an error for clobbers of the stack pointer.
5144 Add a note explaining why.
5146 2019-01-15 Richard Biener <rguenther@suse.de>
5149 * dwarf2out.c (gen_member_die): Do not generate inheritance
5152 2019-01-15 Richard Biener <rguenther@suse.de>
5154 PR tree-optimization/88855
5155 * tree-if-conv.c (combine_blocks): Collect
5156 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
5158 2019-01-15 Tom de Vries <tdevries@suse.de>
5161 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
5162 lhs == NULL_TREE for gang-level reduction.
5164 2019-01-15 Richard Biener <rguenther@suse.de>
5165 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5168 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
5169 return true if SSA_NAME is already marked in visited bitmap.
5170 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
5172 2019-01-15 Jakub Jelinek <jakub@redhat.com>
5174 PR tree-optimization/88775
5175 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
5176 equal == 0 equality pointer comparisons some more if compared in
5177 integral types and either one points to an automatic var and the
5178 other to a global, or we can prove at least one points to the middle
5179 or both point to start or both point to end.
5181 2019-01-14 Andi Kleen <ak@linux.intel.com>
5183 * Makefile.in: Lower autofdo sampling rate by 10x.
5184 * Makefile.tpl: Dito.
5186 2019-01-14 Tom Honermann <tom@honermann.net>
5188 * defaults.h: Define CHAR8_TYPE.
5190 2019-01-14 Martin Sebor <msebor@redhat.com>
5193 * doc/extend.texi (Darwin Format Checks): Clarify.
5195 2019-01-14 Richard Biener <rguenther@suse.de>
5197 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
5198 whether we are in (simplify ...) or (match ...) context.
5200 2019-01-14 Jakub Jelinek <jakub@redhat.com>
5202 PR rtl-optimization/88796
5203 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
5204 * cfgexpand.c (stack_protect_prologue): Initialize
5205 crtl->stack_protect_guard_decl.
5206 * function.c (stack_protect_epilogue): Use it instead of calling
5207 targetm.stack_protect_guard again.
5208 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
5209 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
5210 crtl->stack_protect_guard_decl.
5211 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
5212 on the returned MEM_EXPR.
5214 2019-01-12 Tom de Vries <tdevries@suse.de>
5216 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
5217 vector length using -fopenacc-dim.
5219 2019-01-12 Tom de Vries <tdevries@suse.de>
5221 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
5222 lengths into account.
5224 2019-01-12 Svante Signell <svante.signell@gmail.com>
5226 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
5227 (TARGET_CAN_SPLIT_STACK): Define.
5228 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5230 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5232 * params.def (inline-unit-growth): Set to 40.
5234 2019-01-12 Jakub Jelinek <jakub@redhat.com>
5236 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
5238 2019-01-12 Tom de Vries <tdevries@suse.de>
5240 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
5241 region calling vector-partitionable routine, set default_vector_length
5244 2019-01-12 Tom de Vries <tdevries@suse.de>
5246 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
5247 variable default_vector_length.
5249 2019-01-12 Tom de Vries <tdevries@suse.de>
5252 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
5253 from oacc_default_dims, as oacc_validate_dims would do it, and apply
5256 2019-01-12 Tom de Vries <tdevries@suse.de>
5258 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
5259 (nvptx_goacc_validate_dims): Add used parameter.
5260 * doc/tm.texi: Regenerate.
5261 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
5262 argument to call to targetm.goacc.validate_dims.
5263 (default_goacc_validate_dims): Add used
5265 * target.def (validate_dims): Add used parameter in DEFHOOK.
5266 * targhooks.h (default_goacc_validate_dims): Add used parameter.
5268 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5272 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
5274 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
5275 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
5276 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
5277 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
5279 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
5281 PR rtl-optimization/87305
5283 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
5284 for little endian pseudos used as paradoxical subreg.
5286 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5288 PR tree-optimization/88693
5289 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
5290 for STRING_CSTs that don't contain any NUL characters in the first
5291 TREE_STRING_LENGTH bytes.
5293 2019-01-11 Alan Modra <amodra@gmail.com>
5297 * genattrtab.c (min_fn): Don't translate values.
5298 (min_attr_value): Return INT_MAX when the value can't be calculated.
5299 Return minimum among any values that can be calculated.
5300 (max_attr_value): Adjust.
5302 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5304 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
5306 2019-01-11 Steve Ellcey <sellcey@marvell.com>
5308 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
5309 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
5310 (aarch64_return_call_with_max_clobbers): New function.
5311 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
5312 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
5314 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
5315 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
5316 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
5317 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
5318 * cselib.c (cselib_process_insn): Add argument to
5319 targetm.hard_regno_call_part_clobbered call.
5320 * ira-conflicts.c (ira_build_conflicts): Ditto.
5321 * ira-costs.c (ira_tune_allocno_costs): Ditto.
5322 * lra-constraints.c (inherit_reload_reg): Ditto.
5323 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
5324 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
5325 argument. Call targetm.return_call_with_max_clobbers.
5326 Add argument to targetm.hard_regno_call_part_clobbered call.
5327 (calls_have_same_clobbers_p): New function.
5328 (process_bb_lives): Add call_insn and last_call_insn variables.
5329 Pass call_insn to check_pseudos_live_through_calls.
5330 Modify if stmt to check targetm.return_call_with_max_clobbers.
5331 Update setting of flush variable.
5332 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
5334 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
5335 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
5336 targetm.hard_regno_call_part_clobbered call.
5337 * reginfo.c (choose_hard_reg_mode): Ditto.
5338 * regrename.c (check_new_reg_p): Ditto.
5339 * reload.c (find_equiv_reg): Ditto.
5340 * reload1.c (emit_reload_insns): Ditto.
5341 * sched-deps.c (deps_analyze_insn): Ditto.
5342 * sel-sched.c (init_regs_for_mode): Ditto.
5343 (mark_unavailable_hard_regs): Ditto.
5344 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
5345 * target.def (hard_regno_call_part_clobbered): Add insn argument.
5346 (return_call_with_max_clobbers): New target function.
5347 * doc/tm.texi: Regenerate.
5348 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
5349 * hooks.c (hook_bool_uint_mode_false): Change to
5350 hook_bool_insn_uint_mode_false.
5351 * hooks.h (hook_bool_uint_mode_false): Ditto.
5353 2019-01-11 Steve Ellcey <sellcey@marvell.com>
5355 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
5356 (aarch64_remove_extra_call_preserved_regs): New function.
5357 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
5358 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
5359 * doc/tm.texi: Regenerate.
5360 * final.c (get_call_reg_set_usage): Call new hook.
5361 * target.def (remove_extra_call_preserved_regs): New hook.
5362 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
5363 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
5365 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5368 * passes.c (finish_optimization_passes): Call print_combine_total_stats
5369 inside of pass_combine_1 dump rather than pass_profile_1.
5371 2019-01-11 Tom de Vries <tdevries@suse.de>
5373 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
5374 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
5375 (PTX_NUM_PER_WORKER_BARRIERS): Define.
5376 (nvptx_apply_dim_limits): Prevent vector_length 64 and
5379 2019-01-11 Tom de Vries <tdevries@suse.de>
5381 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
5383 2019-01-11 Jan Beulich <jbeulich@suse.com>
5385 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
5386 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
5387 sse2_cvtsi2sd): Add {l}.
5388 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
5391 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5394 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
5396 (*float<floatunssuffix>v2div2sf2): New define_insn.
5397 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
5398 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
5399 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
5400 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
5401 match_operands with "const0_operand" "C".
5403 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5405 * config/aarch64/aarch64-builtins.c
5406 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
5407 (aarch64_init_simd_builtins): ...Here
5409 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
5411 PR rtl-optimization/87305
5413 (setup_live_pseudos_and_spill_after_risky_transforms): Check
5414 allocation for big endian pseudos used as paradoxical subregs and
5415 spill them if it is wrong.
5416 * lra-constraints.c (lra_constraints): Add a comment.
5418 2019-01-10 Richard Biener <rguenther@suse.de>
5420 PR tree-optimization/88792
5421 * tree-ssa-pre.c (get_representative_for): Do not return a
5424 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5428 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
5429 (assign_parm_setup_block): Do the argument slot realignment here
5432 2019-01-10 Stefan Agner <stefan@agner.ch>
5435 * config/arm/arm.c (arm_option_override_internal): Force
5436 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
5438 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5441 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
5444 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5446 * config/arm/arm-builtins.c
5447 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
5448 (MAC_LANE_PAIR_QUALIFIERS): New.
5449 (arm_expand_builtin_args): Use it.
5450 (arm_expand_builtin_1): Likewise.
5451 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
5452 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
5453 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
5454 * config/arm/arm_neon.h:
5455 (vcadd_rot90_f16): New.
5456 (vcaddq_rot90_f16): New.
5457 (vcadd_rot270_f16): New.
5458 (vcaddq_rot270_f16): New.
5461 (vcmla_lane_f16): New.
5462 (vcmla_laneq_f16): New.
5463 (vcmlaq_lane_f16): New.
5464 (vcmlaq_laneq_f16): New.
5465 (vcmla_rot90_f16): New.
5466 (vcmlaq_rot90_f16): New.
5467 (vcmla_rot90_lane_f16): New.
5468 (vcmla_rot90_laneq_f16): New.
5469 (vcmlaq_rot90_lane_f16): New.
5470 (vcmlaq_rot90_laneq_f16): New.
5471 (vcmla_rot180_f16): New.
5472 (vcmlaq_rot180_f16): New.
5473 (vcmla_rot180_lane_f16): New.
5474 (vcmla_rot180_laneq_f16): New.
5475 (vcmlaq_rot180_lane_f16): New.
5476 (vcmlaq_rot180_laneq_f16): New.
5477 (vcmla_rot270_f16): New.
5478 (vcmlaq_rot270_f16): New.
5479 (vcmla_rot270_lane_f16): New.
5480 (vcmla_rot270_laneq_f16): New.
5481 (vcmlaq_rot270_lane_f16): New.
5482 (vcmlaq_rot270_laneq_f16): New.
5483 (vcadd_rot90_f32): New.
5484 (vcaddq_rot90_f32): New.
5485 (vcadd_rot270_f32): New.
5486 (vcaddq_rot270_f32): New.
5489 (vcmla_lane_f32): New.
5490 (vcmla_laneq_f32): New.
5491 (vcmlaq_lane_f32): New.
5492 (vcmlaq_laneq_f32): New.
5493 (vcmla_rot90_f32): New.
5494 (vcmlaq_rot90_f32): New.
5495 (vcmla_rot90_lane_f32): New.
5496 (vcmla_rot90_laneq_f32): New.
5497 (vcmlaq_rot90_lane_f32): New.
5498 (vcmlaq_rot90_laneq_f32): New.
5499 (vcmla_rot180_f32): New.
5500 (vcmlaq_rot180_f32): New.
5501 (vcmla_rot180_lane_f32): New.
5502 (vcmla_rot180_laneq_f32): New.
5503 (vcmlaq_rot180_lane_f32): New.
5504 (vcmlaq_rot180_laneq_f32): New.
5505 (vcmla_rot270_f32): New.
5506 (vcmlaq_rot270_f32): New.
5507 (vcmla_rot270_lane_f32): New.
5508 (vcmla_rot270_laneq_f32): New.
5509 (vcmlaq_rot270_lane_f32): New.
5510 (vcmlaq_rot270_laneq_f32): New.
5511 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
5512 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
5513 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
5514 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
5515 vcmlaq_lane270): New.
5516 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
5517 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
5518 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
5519 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
5520 (arm_option_reconfigure_globals): Use them.
5521 * config/arm/iterators.md (VDF, VQ_HSF): New.
5522 (VCADD, VCMLA): New.
5523 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
5524 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
5526 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
5527 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
5529 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5531 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
5532 Add qualifier_lane_pair_index.
5533 (emit-rtl.h): Include.
5534 (TYPES_QUADOP_LANE_PAIR): New.
5535 (aarch64_simd_expand_args): Use it.
5536 (aarch64_simd_expand_builtin): Likewise.
5537 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
5539 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
5540 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
5541 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
5542 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
5543 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
5544 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
5545 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
5546 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
5547 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
5548 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
5549 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
5550 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
5551 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
5552 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
5553 Add __ARM_FEATURE_COMPLEX.
5554 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
5555 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
5556 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
5557 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
5558 fcmlaq_lane270): New.
5559 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
5560 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
5561 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
5562 * config/aarch64/arm_neon.h:
5563 (vcadd_rot90_f16): New.
5564 (vcaddq_rot90_f16): New.
5565 (vcadd_rot270_f16): New.
5566 (vcaddq_rot270_f16): New.
5569 (vcmla_lane_f16): New.
5570 (vcmla_laneq_f16): New.
5571 (vcmlaq_lane_f16): New.
5572 (vcmlaq_rot90_lane_f16): New.
5573 (vcmla_rot90_laneq_f16): New.
5574 (vcmla_rot90_lane_f16): New.
5575 (vcmlaq_rot90_f16): New.
5576 (vcmla_rot90_f16): New.
5577 (vcmlaq_laneq_f16): New.
5578 (vcmla_rot180_laneq_f16): New.
5579 (vcmla_rot180_lane_f16): New.
5580 (vcmlaq_rot180_f16): New.
5581 (vcmla_rot180_f16): New.
5582 (vcmlaq_rot90_laneq_f16): New.
5583 (vcmlaq_rot270_laneq_f16): New.
5584 (vcmlaq_rot270_lane_f16): New.
5585 (vcmla_rot270_laneq_f16): New.
5586 (vcmlaq_rot270_f16): New.
5587 (vcmla_rot270_f16): New.
5588 (vcmlaq_rot180_laneq_f16): New.
5589 (vcmlaq_rot180_lane_f16): New.
5590 (vcmla_rot270_lane_f16): New.
5591 (vcadd_rot90_f32): New.
5592 (vcaddq_rot90_f32): New.
5593 (vcaddq_rot90_f64): New.
5594 (vcadd_rot270_f32): New.
5595 (vcaddq_rot270_f32): New.
5596 (vcaddq_rot270_f64): New.
5600 (vcmla_lane_f32): New.
5601 (vcmla_laneq_f32): New.
5602 (vcmlaq_lane_f32): New.
5603 (vcmlaq_laneq_f32): New.
5604 (vcmla_rot90_f32): New.
5605 (vcmlaq_rot90_f32): New.
5606 (vcmlaq_rot90_f64): New.
5607 (vcmla_rot90_lane_f32): New.
5608 (vcmla_rot90_laneq_f32): New.
5609 (vcmlaq_rot90_lane_f32): New.
5610 (vcmlaq_rot90_laneq_f32): New.
5611 (vcmla_rot180_f32): New.
5612 (vcmlaq_rot180_f32): New.
5613 (vcmlaq_rot180_f64): New.
5614 (vcmla_rot180_lane_f32): New.
5615 (vcmla_rot180_laneq_f32): New.
5616 (vcmlaq_rot180_lane_f32): New.
5617 (vcmlaq_rot180_laneq_f32): New.
5618 (vcmla_rot270_f32): New.
5619 (vcmlaq_rot270_f32): New.
5620 (vcmlaq_rot270_f64): New.
5621 (vcmla_rot270_lane_f32): New.
5622 (vcmla_rot270_laneq_f32): New.
5623 (vcmlaq_rot270_lane_f32): New.
5624 (vcmlaq_rot270_laneq_f32): New.
5625 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
5626 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
5627 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
5628 (FCADD, FCMLA): New.
5630 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
5632 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5636 * config/pa/pa.c: Change "can not" to "cannot".
5637 * gimple-ssa-evrp-analyze.c: Likewise.
5638 * ipa-icf.c: Likewise.
5639 * ipa-polymorphic-call.c: Likewise.
5640 * ipa-pure-const.c: Likewise.
5641 * lra-constraints.c: Likewise.
5642 * lra-remat.c: Likewise.
5643 * reload1.c: Likewise.
5644 * reorg.c: Likewise.
5645 * tree-ssa-uninit.c: Likewise.
5647 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5651 * Makefile.in: Mechanically replace "can not" with "cannot".
5652 * alias.c: Likewise.
5653 * builtins.c: Likewise.
5654 * calls.c: Likewise.
5655 * cgraph.c: Likewise.
5656 * cgraph.h: Likewise.
5657 * cgraphclones.c: Likewise.
5658 * cgraphunit.c: Likewise.
5659 * combine-stack-adj.c: Likewise.
5660 * combine.c: Likewise.
5661 * common/config/i386/i386-common.c: Likewise.
5662 * config/aarch64/aarch64.c: Likewise.
5663 * config/alpha/sync.md: Likewise.
5664 * config/arc/arc.c: Likewise.
5665 * config/arc/predicates.md: Likewise.
5666 * config/arm/arm-c.c: Likewise.
5667 * config/arm/arm.c: Likewise.
5668 * config/arm/arm.h: Likewise.
5669 * config/arm/arm.md: Likewise.
5670 * config/arm/cortex-r4f.md: Likewise.
5671 * config/csky/csky.c: Likewise.
5672 * config/csky/csky.h: Likewise.
5673 * config/darwin-f.c: Likewise.
5674 * config/epiphany/epiphany.md: Likewise.
5675 * config/i386/i386.c: Likewise.
5676 * config/i386/sol2.h: Likewise.
5677 * config/m68k/m68k.c: Likewise.
5678 * config/mcore/mcore.h: Likewise.
5679 * config/microblaze/microblaze.md: Likewise.
5680 * config/mips/20kc.md: Likewise.
5681 * config/mips/sb1.md: Likewise.
5682 * config/nds32/nds32.c: Likewise.
5683 * config/nds32/predicates.md: Likewise.
5684 * config/pa/pa.c: Likewise.
5685 * config/rs6000/e300c2c3.md: Likewise.
5686 * config/rs6000/rs6000.c: Likewise.
5687 * config/s390/s390.h: Likewise.
5688 * config/sh/sh.c: Likewise.
5689 * config/sh/sh.md: Likewise.
5690 * config/spu/vmx2spu.h: Likewise.
5691 * cprop.c: Likewise.
5692 * dbxout.c: Likewise.
5693 * df-scan.c: Likewise.
5694 * doc/cfg.texi: Likewise.
5695 * doc/extend.texi: Likewise.
5696 * doc/fragments.texi: Likewise.
5697 * doc/gty.texi: Likewise.
5698 * doc/invoke.texi: Likewise.
5699 * doc/lto.texi: Likewise.
5700 * doc/md.texi: Likewise.
5701 * doc/objc.texi: Likewise.
5702 * doc/rtl.texi: Likewise.
5703 * doc/tm.texi: Likewise.
5705 * emit-rtl.c: Likewise.
5706 * emit-rtl.h: Likewise.
5707 * except.c: Likewise.
5708 * expmed.c: Likewise.
5710 * fold-const.c: Likewise.
5711 * genautomata.c: Likewise.
5712 * gimple-fold.c: Likewise.
5713 * hard-reg-set.h: Likewise.
5714 * ifcvt.c: Likewise.
5715 * ipa-comdats.c: Likewise.
5716 * ipa-cp.c: Likewise.
5717 * ipa-devirt.c: Likewise.
5718 * ipa-fnsummary.c: Likewise.
5719 * ipa-icf.c: Likewise.
5720 * ipa-inline-transform.c: Likewise.
5721 * ipa-inline.c: Likewise.
5722 * ipa-polymorphic-call.c: Likewise.
5723 * ipa-profile.c: Likewise.
5724 * ipa-prop.c: Likewise.
5725 * ipa-pure-const.c: Likewise.
5726 * ipa-reference.c: Likewise.
5727 * ipa-split.c: Likewise.
5728 * ipa-visibility.c: Likewise.
5730 * ira-build.c: Likewise.
5731 * ira-color.c: Likewise.
5732 * ira-conflicts.c: Likewise.
5733 * ira-costs.c: Likewise.
5734 * ira-int.h: Likewise.
5735 * ira-lives.c: Likewise.
5738 * loop-invariant.c: Likewise.
5739 * loop-unroll.c: Likewise.
5740 * lower-subreg.c: Likewise.
5741 * lra-assigns.c: Likewise.
5742 * lra-constraints.c: Likewise.
5743 * lra-eliminations.c: Likewise.
5744 * lra-lives.c: Likewise.
5745 * lra-remat.c: Likewise.
5746 * lra-spills.c: Likewise.
5748 * lto-cgraph.c: Likewise.
5749 * lto-streamer-out.c: Likewise.
5750 * postreload-gcse.c: Likewise.
5751 * predict.c: Likewise.
5752 * profile-count.h: Likewise.
5753 * profile.c: Likewise.
5754 * recog.c: Likewise.
5756 * reload.c: Likewise.
5757 * reload1.c: Likewise.
5758 * reorg.c: Likewise.
5759 * resource.c: Likewise.
5760 * rtl.def: Likewise.
5762 * rtlanal.c: Likewise.
5763 * sched-deps.c: Likewise.
5764 * sched-ebb.c: Likewise.
5765 * sched-rgn.c: Likewise.
5766 * sel-sched-ir.c: Likewise.
5767 * sel-sched.c: Likewise.
5768 * shrink-wrap.c: Likewise.
5769 * simplify-rtx.c: Likewise.
5770 * symtab.c: Likewise.
5771 * target.def: Likewise.
5772 * toplev.c: Likewise.
5773 * tree-call-cdce.c: Likewise.
5774 * tree-cfg.c: Likewise.
5775 * tree-complex.c: Likewise.
5776 * tree-core.h: Likewise.
5777 * tree-eh.c: Likewise.
5778 * tree-inline.c: Likewise.
5779 * tree-loop-distribution.c: Likewise.
5780 * tree-nrv.c: Likewise.
5781 * tree-profile.c: Likewise.
5782 * tree-sra.c: Likewise.
5783 * tree-ssa-alias.c: Likewise.
5784 * tree-ssa-dce.c: Likewise.
5785 * tree-ssa-dom.c: Likewise.
5786 * tree-ssa-forwprop.c: Likewise.
5787 * tree-ssa-loop-im.c: Likewise.
5788 * tree-ssa-loop-ivcanon.c: Likewise.
5789 * tree-ssa-loop-ivopts.c: Likewise.
5790 * tree-ssa-loop-niter.c: Likewise.
5791 * tree-ssa-phionlycprop.c: Likewise.
5792 * tree-ssa-phiopt.c: Likewise.
5793 * tree-ssa-propagate.c: Likewise.
5794 * tree-ssa-threadedge.c: Likewise.
5795 * tree-ssa-threadupdate.c: Likewise.
5796 * tree-ssa-uninit.c: Likewise.
5797 * tree-ssanames.c: Likewise.
5798 * tree-streamer-out.c: Likewise.
5801 * vr-values.c: Likewise.
5803 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
5805 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
5806 (ix86_split_xorsign): Ditto.
5807 * config/i386/i386.c (ix86_expand_xorsign): New function.
5808 (ix86_split_xorsign): Ditto.
5809 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
5810 (xorsign<mode>3): New expander.
5811 (xorsign<mode>3_1): New insn_and_split pattern.
5812 * config/i386/sse.md (xorsign<mode>3): New expander.
5814 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5816 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
5817 (*tablejump_sp64): Likewise.
5818 (*tablejump<P:mode>): ...this.
5819 (*call_address_sp32): Merge into...
5820 (*call_address_sp64): Likewise.
5821 (*call_address<P:mode>): ...this.
5822 (*call_symbolic_sp32): Merge into...
5823 (*call_symbolic_sp64): Likewise.
5824 (*call_symbolic<P:mode>): ...this.
5825 (call_value): Remove constraint and add predicate.
5826 (*call_value_address_sp32): Merge into...
5827 (*call_value_address_sp64): Likewise.
5828 (*call_value_address<P:mode>): ...this.
5829 (*call_value_symbolic_sp32): Merge into...
5830 (*call_value_symbolic_sp64): Likewise.
5831 (*call_value_symbolic<P:mode>): ...this.
5832 (*sibcall_symbolic_sp32): Merge into...
5833 (*sibcall_symbolic_sp64): Likewise.
5834 (*sibcall_symbolic<P:mode>): ...this.
5835 (sibcall_value): Remove constraint and add predicate.
5836 (*sibcall_value_symbolic_sp32): Merge into...
5837 (*sibcall_value_symbolic_sp64): Likewise.
5838 (*sibcall_value_symbolic<P:mode>): ...this.
5839 (window_save): Minor tweak.
5840 (*branch_sp32): Merge into...
5841 (*branch_sp64): Likewise.
5842 (*branch<P:mode>): ...this.
5844 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5845 James Clarke <jrtc27@jrtc27.com>
5848 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
5849 consistently in TLS address generation and adjust code to the renaming
5850 of patterns. Mark calls to __tls_get_addr as const.
5851 * config/sparc/sparc.md (tgd_hi22): Turn into...
5852 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
5853 (tgd_lo10): Turn into...
5854 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
5855 (tgd_add32): Merge into...
5856 (tgd_add64): Likewise.
5857 (tgd_add<P:mode>): ...this and use Pmode throughout.
5858 (tldm_hi22): Turn into...
5859 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
5860 (tldm_lo10): Turn into...
5861 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
5862 (tldm_add32): Merge into...
5863 (tldm_add64): Likewise.
5864 (tldm_add<P:mode>): ...this and use Pmode throughout.
5865 (tldm_call32): Merge into...
5866 (tldm_call64): Likewise.
5867 (tldm_call<P:mode>): ...this and use Pmode throughout.
5868 (tldo_hix22): Turn into...
5869 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
5870 (tldo_lox10): Turn into...
5871 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
5872 (tldo_add32): Merge into...
5873 (tldo_add64): Likewise.
5874 (tldo_add<P:mode>): ...this and use Pmode throughout.
5875 (tie_hi22): Turn into...
5876 (tie_hi22<P:mode>): ...this and use Pmode throughout.
5877 (tie_lo10): Turn into...
5878 (tie_lo10<P:mode>): ...this and use Pmode throughout.
5879 (tie_ld64): Use DImode throughout.
5880 (tie_add32): Merge into...
5881 (tie_add64): Likewise.
5882 (tie_add<P:mode>): ...this and use Pmode throughout.
5883 (tle_hix22_sp32): Merge into...
5884 (tle_hix22_sp64): Likewise.
5885 (tle_hix22<P:mode>): ...this and use Pmode throughout.
5886 (tle_lox22_sp32): Merge into...
5887 (tle_lox22_sp64): Likewise.
5888 (tle_lox22<P:mode>): ...this and use Pmode throughout.
5889 (*tldo_ldub_sp32): Merge into...
5890 (*tldo_ldub_sp64): Likewise.
5891 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
5892 (*tldo_ldub1_sp32): Merge into...
5893 (*tldo_ldub1_sp64): Likewise.
5894 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
5895 (*tldo_ldub2_sp32): Merge into...
5896 (*tldo_ldub2_sp64): Likewise.
5897 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
5898 (*tldo_ldsb1_sp32): Merge into...
5899 (*tldo_ldsb1_sp64): Likewise.
5900 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
5901 (*tldo_ldsb2_sp32): Merge into...
5902 (*tldo_ldsb2_sp64): Likewise.
5903 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
5904 (*tldo_ldub3_sp64): Use DImode throughout.
5905 (*tldo_ldsb3_sp64): Likewise.
5906 (*tldo_lduh_sp32): Merge into...
5907 (*tldo_lduh_sp64): Likewise.
5908 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
5909 (*tldo_lduh1_sp32): Merge into...
5910 (*tldo_lduh1_sp64): Likewise.
5911 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
5912 (*tldo_ldsh1_sp32): Merge into...
5913 (*tldo_ldsh1_sp64): Likewise.
5914 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
5915 (*tldo_lduh2_sp64): Use DImode throughout.
5916 (*tldo_ldsh2_sp64): Likewise.
5917 (*tldo_lduw_sp32): Merge into...
5918 (*tldo_lduw_sp64): Likewise.
5919 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
5920 (*tldo_lduw1_sp64): Use DImode throughout.
5921 (*tldo_ldsw1_sp64): Likewise.
5922 (*tldo_ldx_sp64): Likewise.
5923 (*tldo_stb_sp32): Merge into...
5924 (*tldo_stb_sp64): Likewise.
5925 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
5926 (*tldo_sth_sp32): Merge into...
5927 (*tldo_sth_sp64): Likewise.
5928 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
5929 (*tldo_stw_sp32): Merge into...
5930 (*tldo_stw_sp64): Likewise.
5931 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
5932 (*tldo_stx_sp64): Use DImode throughout.
5934 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5936 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
5937 check configure option to set BTI and Return Address Signing.
5938 * configure.ac: Add --enable-standard-branch-protection and
5939 --disable-standard-branch-protection.
5940 * configure: Regenerated.
5941 * doc/install.texi: Document the same.
5943 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5944 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5946 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
5947 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
5948 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
5950 * config/aarch64/aarch64-bti-insert.c: New file.
5951 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
5953 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
5955 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
5956 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
5957 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
5958 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
5960 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5962 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
5963 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
5964 Disable bti for -mbranch-protection=none.
5965 (aarch64_handle_standard_branch_protection): Enable bti for
5966 -mbranch-protection=standard.
5967 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
5968 -mbranch-protection.
5969 (aarch64_bti_enabled): Check if bti is enabled.
5970 * config/aarch64/aarch64.opt: Declare target variable.
5971 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
5973 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5975 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
5976 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
5977 (aarch64_expand_epilogue): Likewise.
5978 (aarch64_output_mi_thunk): Likewise
5979 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
5980 TAILCALL_ADDR_REGS to x16 and x17.
5981 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
5983 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5985 * config/aarch64/aarch64-option-extensions.def: Define
5986 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
5987 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
5988 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
5989 (AARCH64_FL_PREDRES): New.
5990 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
5991 AARCH64_FL_PREDRES by default.
5992 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
5994 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5996 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
5998 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
5999 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
6000 * doc/invoke.texi: Document ARMv8.5-A.
6002 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
6004 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
6005 (xorsign<mode>3): Likewise.
6007 2019-01-09 Jelinek <jakub@redhat.com>
6010 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
6011 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
6013 PR rtl-optimization/88331
6014 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
6015 not currently_expanding_to_rtl.
6017 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
6019 * doc/invoke.texi (-Os): Remove trailing spaces.
6020 (-finline-functions): Remove reference to -O2.
6022 2019-01-08 Jakub Jelinek <jakub@redhat.com>
6024 PR rtl-optimization/79593
6025 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
6027 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
6028 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
6030 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
6033 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
6037 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
6038 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
6040 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
6043 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
6044 ix86_avx_u128_mode_entry.
6046 2019-01-08 Martin Liska <mliska@suse.cz>
6048 PR tree-optimization/88753
6049 * tree-switch-conversion.c (switch_conversion::build_one_array):
6050 Come up with local variable constructor. Convert first to
6051 type of constructor values.
6053 2019-01-08 Richard Biener <rguenther@suse.de>
6055 PR tree-optimization/86554
6056 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
6057 rpo_avail): Move earlier.
6058 (visit_nary_op): When value-numbering to expressions
6059 with different overflow behavior make sure there's an
6060 available expression on the path.
6062 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
6064 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
6065 aarch64_parse_branch_protection,
6066 struct aarch64_branch_protect_type,
6067 aarch64_handle_no_branch_protection,
6068 aarch64_handle_standard_branch_protection,
6069 aarch64_validate_mbranch_protection,
6070 aarch64_handle_pac_ret_protection,
6071 aarch64_handle_attr_branch_protection,
6072 accepted_branch_protection_string,
6073 aarch64_pac_ret_subtypes,
6074 aarch64_branch_protect_types,
6075 aarch64_handle_pac_ret_leaf): Define.
6076 (aarch64_override_options_after_change_1, aarch64_override_options):
6077 Add check for accepted_branch_protection_string.
6078 (aarch64_option_save): Save accepted_branch_protection_string.
6079 (aarch64_option_restore): Save accepted_branch_protection_string.
6080 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
6081 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
6082 msign-return-address.
6083 * doc/invoke.texi: Add mbranch-protection.
6085 2019-01-08 Alan Modra <amodra@gmail.com>
6088 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
6089 Delete "unknownp" parameter. Adjust callers. Handle
6090 CONST_INT, PLUS, MINUS, and MULT.
6091 (attr_value_aligned): Renamed from or_attr_value.
6092 (min_attr_value): Return INT_MIN for unhandled rtl case..
6093 (min_fn): ..and translate to INT_MAX here.
6094 (write_length_unit_log): Modify to cope without "unknown".
6095 (write_attr_value): Handle IF_THEN_ELSE.
6097 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6099 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
6100 optimization for masked stores.
6102 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6105 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
6106 output vector directly to duplicate_and_interleave instead of
6107 going through a temporary. Postpone insertion of ctor_seq to
6108 the end of the loop.
6110 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
6113 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
6114 unsigned_p. Handle signed and unsigned overflow correction as
6116 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
6118 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
6120 (add<mode>3_compareV_imm): Make this callable for expanding.
6121 (subv<GPI:mode>4): Use register_operand for operand 1. Use
6122 aarch64_plus_operand for operand 2.
6123 (subv<GPI:mode>_insn): New insn pattern.
6124 (subv<GPI:mode>_imm): Likewise.
6125 (negv<GPI:mode>3): New expand pattern.
6126 (negv<GPI:mode>_insn): New insn pattern.
6127 (negv<GPI:mode>_cmp_only): Likewise.
6128 (cmpv<GPI:mode>_insn): Likewise.
6129 (subvti4): Use register_operand for operand 1. Update call to
6130 aarch64_expand_subvti.
6131 (usubvti4): Likewise.
6132 (negvti3): New expand pattern.
6133 (negdi_carryout): New insn pattern.
6134 (negvdi_carryinV): New insn pattern.
6135 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
6136 version the named version.
6137 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
6139 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
6141 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
6143 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
6144 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
6145 (sub<mode>3_carryinCV): Delete.
6146 (sub<GPI:mode>3_carryinV): New expand pattern.
6147 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
6149 2019-01-07 Richard Biener <rguenther@suse.de>
6151 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
6152 of tree_operand_hash.
6154 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6156 PR tree-optimization/88598
6157 * tree.h (single_nonzero_element): Declare.
6158 * tree.c (single_nonzero_element): New function.
6159 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
6160 if I is the only nonzero element of CST.
6162 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6164 PR tree-optimization/88598
6165 * tree.h (initializer_each_zero_or_onep): Declare.
6166 * tree.c (initializer_each_zero_or_onep): New function.
6167 (signed_or_unsigned_type_for): Handle float types too.
6168 (unsigned_type_for, signed_type_for): Update comments accordingly.
6169 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
6170 x & { 0 or -1, 0 or -1, ... }.
6172 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
6174 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
6175 with x86_64-pc-linux-gnu.
6177 2019-01-07 Tom de Vries <tdevries@suse.de>
6180 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
6182 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
6185 2019-01-07 Jakub Jelinek <jakub@redhat.com>
6187 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
6188 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
6189 TARGET_AVX512F as condition.
6192 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
6193 const_not_ok_for_debug_p target hook.
6194 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
6195 on UNSPEC and subexpressions thereof if all subexpressions of the
6196 UNSPEC are CONSTANT_P.
6198 PR tree-optimization/88676
6199 * tree-ssa-phiopt.c (two_value_replacement): New function.
6200 (tree_ssa_phiopt_worker): Call it.
6203 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
6204 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
6207 * tree-vect-generic.c: Include insn-config.h and recog.h.
6208 (expand_vector_piecewise): Add defaulted ret_type argument,
6209 if non-NULL, use that in preference to type for the result type.
6210 (expand_vector_parallel): Formatting fix.
6211 (do_vec_conversion, do_vec_narrowing_conversion,
6212 expand_vector_conversion): New functions.
6213 (expand_vector_operations_1): Call expand_vector_conversion
6214 for VEC_CONVERT ifn calls.
6215 * internal-fn.def (VEC_CONVERT): New internal function.
6216 * internal-fn.c (expand_VEC_CONVERT): New function.
6217 * fold-const-call.c (fold_const_vec_convert): New function.
6218 (fold_const_call): Use it for CFN_VEC_CONVERT.
6219 * doc/extend.texi (__builtin_convertvector): Document.
6221 2019-01-07 Tom de Vries <tdevries@suse.de>
6223 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
6224 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
6225 vector_red_partition, vector_red_sym): New global variables.
6226 (nvptx_option_override): Initialize vector_red_sym.
6227 (nvptx_declare_function_name): Restore red_partition register.
6228 (nvptx_file_end): Emit code to declare the vector reduction variables.
6229 (nvptx_output_red_partition): New function.
6230 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
6231 large vector reductions.
6232 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
6233 (nvptx_init_builtins): Add VECTOR_ADDR.
6234 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
6235 Handle nvptx_expand_shared_addr.
6236 (nvptx_get_shared_red_addr): Add vector argument and handle large
6238 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
6240 (nvptx_goacc_reduction_init): Likewise.
6241 (nvptx_goacc_reduction_fini): Likewise.
6242 (nvptx_goacc_reduction_teardown): Likewise.
6243 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
6244 init,fini,teardown}.
6245 (nvptx_init_axis_predicate): Initialize vector_red_partition.
6246 (nvptx_set_current_function): Init vector_red_partition.
6247 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
6248 (nvptx_red_partition): New insn.
6249 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
6251 2019-01-07 Tom de Vries <tdevries@suse.de>
6254 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
6257 2019-01-07 Tom de Vries <tdevries@suse.de>
6259 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
6260 (nvptx_option_override): Init oacc_bcast_partition.
6261 (nvptx_init_oacc_workers): New function.
6262 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
6263 (nvptx_needs_shared_bcast): New function.
6264 (nvptx_find_par): Generalize to enable vectors to use shared-memory
6266 (nvptx_shared_propagate): Initialize vector bcast partition and
6267 synchronization state.
6268 (nvptx_single): Generalize to enable vectors to use shared-memory
6270 (nvptx_process_pars): Likewise.
6271 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
6272 * config/nvptx/nvptx.h (struct machine_function): Add
6273 bcast_partition and sync_bar members.
6275 2019-01-07 Tom de Vries <tdevries@suse.de>
6277 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
6278 (nvptx_apply_dim_limits): New function.
6279 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
6282 2019-01-07 Tom de Vries <tdevries@suse.de>
6284 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
6285 as late as possible.
6287 2019-01-07 Tom de Vries <tdevries@suse.de>
6289 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
6290 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
6291 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
6292 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
6293 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
6295 2019-01-07 Tom de Vries <tdevries@suse.de>
6297 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
6299 2019-01-07 Tom de Vries <tdevries@suse.de>
6301 * omp-offload.c (oacc_get_min_dim): New function.
6302 * omp-offload.h (oacc_get_min_dim): Declare.
6304 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
6307 * config/i386/i386.c (function_value_ms_64): Return small sturct in
6308 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
6310 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6314 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
6316 * ipa-inline.c (edge_badness): Use inlined_time instead of
6317 inline_summaries->get.
6319 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6321 * opts.c (enable_fdo_optimizations): Enable
6322 version-loops-for-strides, loop-interchange, unrol-and-jam
6323 and tree-loop-distribution.
6324 * invoke.texi: Document newly enabled options.
6326 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6328 * doc/invoke.texi (max-inline-insns-small): New parameters.
6329 * ipa-inline.c (want_early_inline_function_p): simplify.
6330 (want_inline_small_function_p): Fix pasto from previous patch;
6331 use max-inline-insns-small bound.
6332 * params.def (max-inline-insns-small): New param.
6333 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
6334 variables correctly.
6336 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6338 * doc/invoke.texi: Document max-inline-insns-size,
6339 uninlined-function-insns, uninlined-function-time,
6340 uninlined-thunk-insns and uninlined-thunk-time.
6341 * params.def: Add max-inline-insns-size,
6342 uninlined-function-insns, uninlined-function-time,
6343 uninlined-thunk-insns and uninlined-thunk-time.
6344 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
6346 * ipa-inline.c (can_inline_edge_by_limits_p,
6347 want_inline_small_function_p): Use new parameters.
6349 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6351 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
6353 2019-01-05 Jakub Jelinek <jakub@redhat.com>
6357 * expr.c (expand_assignment): For calls returning VLA structures
6358 if to_rtx is not a MEM, force it into a stack temporary.
6361 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
6362 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
6363 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
6364 subexpressions of both operands.
6365 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
6366 subrtxes are CONSTANT_P.
6367 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
6370 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
6372 * params.def (hot-bb-count-ws-permille): Set to 990.
6374 2019-01-04 Martin Sebor <msebor@redhat.com>
6377 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
6380 2019-01-04 Martin Sebor <msebor@redhat.com>
6383 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
6385 2019-01-04 Jakub Jelinek <jakub@redhat.com>
6387 * gdbinit.in: Turn off pagination for the skip commands, restore
6388 it to previous state afterwards.
6390 2019-01-04 Jakub Jelinek <jakub@redhat.com>
6393 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
6394 of GET_MODE (opN) as modes of the libcall arguments.
6396 2019-01-04 Jan Beulich <jbeulich@suse.com>
6398 * config/i386/sse.md
6399 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
6400 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
6401 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
6402 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
6403 avx512f_vmcmp<mode>3<round_saeonly_name>,
6404 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
6405 avx512f_maskcmp<mode>3,
6406 <avx512>_cvt<ssemodesuffix>2mask<mode>,
6407 <avx512>_cvt<ssemodesuffix>2mask<mode>,
6408 *<avx512>_cvtmask2<ssemodesuffix><mode>,
6409 *<avx512>_cvtmask2<ssemodesuffix><mode>,
6410 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
6411 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
6412 <avx512>_gt<mode>3<mask_scalar_merge_name>,
6413 <avx512>_gt<mode>3<mask_scalar_merge_name>,
6414 <avx512>_testm<mode>3<mask_scalar_merge_name>,
6415 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
6416 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
6417 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
6418 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
6419 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
6420 avx512cd_maskb_vec_dup<mode>,
6421 avx512cd_maskw_vec_dup<mode>,
6422 avx512dq_fpclass<mode><mask_scalar_merge_name>,
6423 avx512dq_vmfpclass<mode>,
6424 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
6427 2019-01-03 Martin Sebor <msebor@redhat.com>
6429 PR tree-optimization/88659
6430 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
6432 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
6434 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
6435 unaligned vsx and avoid lxvd2x/stxvd2x.
6436 (gen_lvx_v4si_move): New function.
6438 2019-01-03 Tom de Vries <tdevries@suse.de>
6440 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
6441 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
6443 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
6445 2019-01-03 Tom de Vries <tdevries@suse.de>
6447 * config/nvptx/nvptx.c (struct offload_attrs): New.
6448 (populate_offload_attrs): New function. Factor mask extraction out of
6449 nvptx_reorg. Add extraction of dimensions.
6450 (nvptx_reorg): Use populate_offload_attrs.
6452 2019-01-03 Tom de Vries <tdevries@suse.de>
6454 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
6455 cases for oacc_min_dims_p and routine_p. Add asserts for
6456 oacc_default_dims_p and offload_region_p.
6458 2019-01-03 Tom de Vries <tdevries@suse.de>
6460 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
6462 (nvptx_goacc_validate_dims): ... here.
6464 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
6466 PR tree-optimization/85574
6467 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
6469 (struct ssa_equip_hash_traits): Declare.
6470 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
6472 2019-01-03 Jakub Jelinek <jakub@redhat.com>
6475 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
6476 change it to qualified_type.
6478 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
6480 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
6481 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
6483 2019-01-02 Martin Sebor <msebor@redhat.com>
6484 Jeff Law <law@redhat.com>
6486 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
6487 (get_range_strlen_tree): Update appropriately.
6489 * gimple-fold.h (get_range_strlen): Drop unused last argument.
6491 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
6492 rather than set_range_info.
6493 * tree-ssa-strlen.c (set_strlen_range): Extracted from
6494 maybe_set_strlen_range. Handle potentially boundary crossing
6495 cases more conservatively.
6496 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
6497 Call set_strlen_range.
6498 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
6501 * gimple-fold.c (get_range_strlen): Update prototype to no longer
6502 need the flexp argument.
6503 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
6504 from calls to get_range_strlen. Update comments. Just update
6505 VAL for an unterminated const char array and let the reset of the
6506 code handle it normally. No longer try to set *flexp. Adjust
6508 (get_range_strlen): Update for the new get_range_strlen API.
6509 (get_maxval_strlen): Similarly.
6510 (gimple_fold_builtin_strlen): Handle update meaning of return value
6511 from get_range_strlen.
6512 * gimple-ssa-sprintf.c (get_string_length): Update for the new
6513 get_range_strlen API.
6515 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
6518 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
6519 false at WPA time when body was removed.
6521 2019-01-02 Martin Liska <mliska@suse.cz>
6523 PR tree-optimization/88650
6524 * predict.c (set_even_probabilities): Calculate probability
6525 remainer only when really used.
6527 2019-01-02 Richard Biener <rguenther@suse.de>
6530 * tree-data-ref.c (analyze_subscript_affine_affine): Use
6531 widest_ints when mangling max_stmt_execution results.
6533 2019-01-02 Richard Biener <rguenther@suse.de>
6535 PR tree-optimization/88621
6536 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
6537 bitfields when canoncalizing.
6539 2019-01-02 Richard Biener <rguenther@suse.de>
6542 * config/i386/x86-tune-costs.h (intel_cost): Adjust
6543 cost of cheap SSE instruction.
6545 2019-01-02 Richard Biener <rguenther@suse.de>
6548 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
6549 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
6551 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
6552 set after UIDs before splitting them.
6554 2019-01-01 Martin Sebor <msebor@redhat.com>
6555 Jeff Law <law@redhat.com>
6557 * gimple-fold.c (get_range_strlen_tree): Record if the computed
6558 length is optimistic. If it is, then arrange to compute the
6559 conservative length as well.
6561 * gimple-fold.h (get_range_strlen): Update prototype.
6562 * builtins.c (check_access): Update call to get_range_strlen to use
6563 c_strlen_data pointer. Change various variable accesses to instead
6564 pull data from the c_strlen_data structure.
6565 (check_strncat_sizes, expand_builtin_strncat): Likewise.
6566 * calls.c (maybe_warn_nonstring_arg): Likewise.
6567 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
6568 minimum length if maximum lengh is unknown.
6569 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
6570 that used c_strlen, it's no longer needed. Restructure slightly.
6571 (format_string): Set unlikely range appropriately.
6572 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
6574 (get_range_strlen): Accept c_strlen_data pointer for external
6575 call sites as well. Pass through to call to internal get_range_strlen.
6576 Adjust minlen, maxlen and maxbound as needed.
6577 (get_maxval_strlen): Update comments.
6578 (gimple_fold_builtin_strlen): Update call to get_range_strlen
6579 to use c_strlen_data pointer. Change variable accesses to instead
6580 use c_strlen_data data members.
6582 * gimple-fold.c (get_range_strlen): Update prototype.
6583 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
6584 local variables. Use pdata to return information to caller.
6585 Update calls to get_range_strlen. Update pdata->maxbound.
6586 (get_range_strlen -- static version): Similarly.
6587 (get_range_strlen -- extern version): Update for internal
6588 get_range_strlen API change. Convert to external data format.
6589 (get_maxval_strlen): Similarly.
6591 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
6593 * coverage.c (get_coverage_counts): Use current_function_decl.
6594 * profile.c (read_thunk_profile): New function.
6595 (branch_prob): Add THUNK parameter.
6596 * tree-profile.c (tree_profiling): Handle thunks.
6597 * value-prof.c (init_node_map): Handle thunks.
6598 * value-prof.h (branch_prob): Upate prototype.
6599 (read_thunk_profile): Declare.
6601 2019-01-01 Jakub Jelinek <jakub@redhat.com>
6603 Update copyright years.
6605 * gcc.c (process_command): Update copyright notice dates.
6606 * gcov-dump.c (print_version): Ditto.
6607 * gcov.c (print_version): Ditto.
6608 * gcov-tool.c (print_version): Ditto.
6609 * gengtype.c (create_file): Ditto.
6610 * doc/cpp.texi: Bump @copying's copyright year.
6611 * doc/cppinternals.texi: Ditto.
6612 * doc/gcc.texi: Ditto.
6613 * doc/gccint.texi: Ditto.
6614 * doc/gcov.texi: Ditto.
6615 * doc/install.texi: Ditto.
6616 * doc/invoke.texi: Ditto.
6618 Copyright (C) 2019 Free Software Foundation, Inc.
6620 Copying and distribution of this file, with or without modification,
6621 are permitted in any medium without royalty provided the copyright
6622 notice and this notice are preserved.