1 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
4 for last two fake registers.
5 (arc_conditional_register_usage): Make sure fake frame and arg
6 pointer regs are in general regs class.
7 (FRAME_POINTER_MASK): Remove.
8 (RETURN_ADDR_MASK): Remove.
9 (arc_must_save_register): Use hard frame regnum.
10 (frame_restore_reg): Use hard_frame_pointer_rtx.
11 (arc_save_callee_saves): Likewise.
12 (arc_restore_callee_saves): Likewise.
13 (arc_save_callee_enter): Likewise.
14 (arc_restore_callee_leave): Likewise.
15 (arc_save_callee_milli): Likewise.
16 (arc_eh_return_address_location): Likewise.
17 (arc_check_multi): Use hard frame regnum.
18 (arc_can_eliminate): Likewise.
19 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20 for register allocator.
21 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
22 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
23 (FRAME_POINTER_REGNUM): Change it to a fake register.
24 (HARD_FRAME_POINTER_REGNUM): Defined.
25 (ARG_POINTER_REGNUM): Change it to a new fake register.
26 (ELIMINABLE_REGS): Update.
27 (REGISTER_NAMES): Update names.
28 * config/arc/arc.md (LP_START): Remove.
30 (shift_si3_loop): Update pattern.
32 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
34 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
35 to avoid delay slot scheduling.
36 (arc_must_save_register): Don't save SP.
37 * config/arc/arc.md (stack_tie): Remove.
38 (UNSPEC_ARC_STKTIE): Likewise.
40 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
41 Shiva Chen <shiva0217@gmail.com>
43 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
44 code gen with large shift amount.
46 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
48 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
51 2019-04-16 Jakub Jelinek <jakub@redhat.com>
54 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
55 print -m64/-mx32/-m32 if it is true.
56 (ix86_debug_options, ix86_function_specific_print): Pass true as
57 ADD_ABI_P to ix86_target_string.
58 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
59 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
60 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
62 PR rtl-optimization/90082
63 * dce.c (can_delete_call): New function.
64 (deletable_insn_p, mark_insn): Use it.
66 PR tree-optimization/90090
67 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
69 (is_division_by_square): Likewise. Formatting fix.
71 2019-04-16 Richard Biener <rguenther@suse.de>
73 PR tree-optimization/56049
74 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
75 equality check if alias-set zero will prevail.
77 2019-04-15 Jeff Law <law@redhat.com>
79 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
80 size and alignment as unsigned.
82 2019-04-15 Richard Biener <rguenther@suse.de>
85 * tree-loop-distribution.c (destroy_loop): Preserve correct
88 2019-04-15 Richard Biener <rguenther@suse.de>
90 PR tree-optimization/90071
91 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
92 abnormal operands from def stmts.
94 2019-04-15 Richard Biener <rguenther@suse.de>
97 * tree.h (auto_var_p): Declare.
98 * tree.c (auto_var_p): New function, split out from ...
99 (auto_var_in_fn_p): ... here.
100 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
102 (new_var_info): Initialize it.
103 (set_uids_in_ptset): Also set the shadow variable uid if required.
104 (ipa_pta_execute): Postprocess points-to solutions assigning
105 shadow variable uids for locals that may reach their containing
106 function recursively.
107 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
108 assert but instead check whether the points-to solution is
111 2019-04-15 Martin Jambor <mjambor@suse.cz>
114 * cgraph.c (clone_of_p): Loop over clone chain for each step in
117 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
119 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
121 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
122 Kito Cheng <kito.cheng@gmail.com>
123 Shiva Chen <shiva0217@gmail.com>
125 * config/nds32/nds32-md-auxiliary.c
126 (nds32_legitimize_pic_address): Use new PIC pattern.
127 (nds32_legitimize_tls_address): Use new TLS pattern.
128 (nds32_output_symrel): New.
129 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
130 (nds32_alloc_relax_group_id): Ditto.
131 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
132 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
134 (nds32_group_tls_insn): Ditto.
135 (nds32_group_float_insns): Ditto.
136 * config/nds32/nds32.md (tls_le): New.
139 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
141 * configure: Add nds32 target for dwarf2 debug_line checking.
142 * configure.ac: Regenerated.
144 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
147 * ipa-devirt.c (skip_in_fields_list_p): New.
148 (odr_types_equivalent_p): Use it.
150 2019-04-13 Jakub Jelinek <jakub@redhat.com>
153 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
154 instead of strncmp when checking for thumb and arm. Formatting fixes.
156 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
158 * doc/install.texi: Document --with-target-system-zlib.
160 2019-04-12 Martin Sebor <msebor@redhat.com>
166 * targhooks.c (default_vector_alignment): Avoid assuming
167 argument fits in SHWI.
168 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
170 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
172 2019-04-12 Jakub Jelinek <jakub@redhat.com>
174 PR rtl-optimization/89965
175 * dce.c: Include rtl-iter.h.
176 (struct check_argument_load_data): New type.
177 (check_argument_load): New function.
178 (find_call_stack_args): Check for loads from stack slots still tracked
179 in sp_bytes and punt if any is found.
181 * config/mips/loongson-mmiintrin.h: Fix up #error message.
183 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
185 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
186 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
188 2019-04-12 Martin Liska <mliska@suse.cz>
191 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
193 (separate_attrs): Handle multiple 'default's.
194 (expand_target_clones): Rework error handling code.
196 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
199 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
200 mode of vector rather than mode of destination for move instruction.
201 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
202 Use QI inner mode with V16QI vector mode.
204 2019-04-12 Jakub Jelinek <jakub@redhat.com>
207 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
208 "invalid %%t operand" in output_operand_lossage message.
210 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
212 * config/s390/predicates.md (permute_pattern_operand): New
214 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
215 operand for the permute pattern.
216 ("*vec_perm<mode>"): New insn definition.
217 ("bswap<mode>"): Generate the permute pattern operand in the
218 expander and perform the operand reloads for pre arch13 level
220 ("*bswap<mode>_emu"): Rename to ...
221 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
222 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
223 Add the USE operand for the permute pattern.
224 ("*vec_set_bswap_vec<mode>"): Likewise.
226 2019-04-12 Jakub Jelinek <jakub@redhat.com>
229 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
230 and gcc_unreachable if it fails, just call tree_to_uhwi which
231 verifies that too. Test TREE_CHAIN instead of list_length > 1.
232 Start warning message with a lower-case letter. Formatting fixes.
234 PR rtl-optimization/90026
235 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
236 successors, look for BARRIERs inside of the whole BB_FOOTER chain
237 rather than just at the start of it. If e->src BB_FOOTER is not NULL
238 in cfglayout mode, use emit_barrier_after_bb.
240 2018-04-11 Steve Ellcey <sellcey@marvell.com>
242 PR rtl-optimization/87763
243 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
246 2019-04-11 Tom de Vries <tdevries@suse.de>
248 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
249 max macro using statement expression.
251 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
253 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
254 * xcoffout.c (xcoff_private_rodata_section_name): Define.
255 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
256 read_only_private_data_section using xcoff_private_rodata_section_name.
257 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
259 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
262 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
264 2019-04-11 Jakub Jelinek <jakub@redhat.com>
266 PR rtl-optimization/89965
267 * dce.c (sp_based_mem_offset): New function.
268 (find_call_stack_args): Use sp_based_mem_offset.
270 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
272 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
274 2019-04-11 Richard Biener <rguenther@suse.de>
276 PR tree-optimization/90020
277 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
278 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
279 * tree-ssa-pre.c (compute_avail): Use it to not put
280 possibly trapping references after a call that might not
282 * gcse.c (compute_hash_table_work): Do not elide
283 marking a block containing a call if the call might not
286 2019-04-11 Richard Biener <rguenther@suse.de>
288 PR tree-optimization/90018
289 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
290 Test both SLP and interleaving variants.
292 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
294 * config/s390/8561.md: New file.
295 * config/s390/driver-native.c (s390_host_detect_local_cpu):
296 Add arch13 cpu model.
297 * config/s390/s390-opts.h (enum processor_type): Likewise.
298 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
299 (s390_get_unit_mask): Likewise.
300 (s390_is_fpd): Likewise.
301 (s390_is_fxd): Likewise.
302 * config/s390/s390.h (s390_tune_attr): Likewise.
303 * config/s390/s390.md: Include arch13 pipeline description.
304 * config/s390/s390.opt: Add arch13.
306 2018-04-10 Steve Ellcey <sellcey@marvell.com>
308 PR rtl-optimization/87763
309 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
311 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
313 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
315 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
316 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
317 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
318 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
320 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
322 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
323 "Although" in -fipa-icf documentation.
325 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
326 of using multiple -g options.
328 2019-04-10 Martin Liska <mliska@suse.cz>
330 PR gcov-profile/89959
331 * doc/gcov.texi: Make documentation of -x option
334 2019-04-10 Richard Biener <rguenther@suse.de>
336 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
338 (DR_GROUP_SAME_DR_STMT): Remove.
339 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
340 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
342 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
343 (vect_record_grouped_load_vectors): Remove unreachable code.
345 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
348 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
349 obsolete reference to N.
351 2019-04-10 Jakub Jelinek <jakub@redhat.com>
354 * expr.c (store_expr): Set properly size on the MEM passed to
358 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
359 with strlen in between hostsz-3 and hostsz-1 inclusive when no
360 translation is needed, and when translation is needed, only append
361 ... if the string length is hostsz or more bytes long. Avoid using
364 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
367 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
368 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
370 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
371 differences directly.
372 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
374 2019-04-09 Jakub Jelinek <jakub@redhat.com>
377 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
379 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
381 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
382 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
383 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
384 trailing space from -gsplit-dwarf diagnostics.
386 PR tree-optimization/89998
387 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
388 instead of integer_type_node if possible, don't add ranges if return
389 type is not compatible with int.
390 * gimple-fold.c (gimple_fold_builtin_sprintf,
391 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
394 2019-04-09 Martin Liska <mliska@suse.cz>
396 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
397 * doc/install.texi: Document the new config.
399 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
401 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
402 use gimple_expr_type for load and store calls. Skip over the
403 condition argument in a conditional internal function.
404 Protect use of TREE_INT_CST_LOW.
406 2019-04-09 Jakub Jelinek <jakub@redhat.com>
409 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
410 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
411 trailing period from it too.
413 2019-04-08 wu yuan <wuyuan5@huawei.com>
415 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
416 * config/aarch64/aarch64.md : Add "tsv110.md"
417 * config/aarch64/tsv110.md: New file.
419 2019-04-08 Richard Biener <rguenther@suse.de>
421 PR tree-optimization/90006
422 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
425 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
428 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
430 (fma_root_node): Likewise.
431 (func_fma_steering): Likewise.
433 2019-04-08 Jakub Jelinek <jakub@redhat.com>
435 PR rtl-optimization/89865
436 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
438 PR rtl-optimization/89865
439 * config/i386/i386.md
440 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
441 numbers not to clash with the additional operands[4].
442 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
443 with extra register copy in the middle.
445 2019-04-08 Martin Liska <mliska@suse.cz>
447 PR gcov-profile/89961
448 * doc/gcov.texi: Document data_file.
449 * gcov.c (generate_results): Add data_info into JSON output.
451 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
453 PR tree-optimization/89725
454 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
455 loop's chrec as invariant symbol.
456 * tree-chrec.h (chrec_contains_symbols): New parameter.
457 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
458 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
459 function of loops not in DDR's loop_nest.
460 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
462 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
465 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
468 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
471 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
472 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
474 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
476 * sched-deps.c (sched_macro_fuse_insns): Check return value of
477 targetm.fixed_condition_code_regs.
479 2019-04-05 Richard Biener <rguenther@suse.de>
483 * tree-cfgcleanup.c (remove_forwarder_block): Always move
484 debug bind stmts but reset them if they are not valid at the
487 2019-04-05 Martin Liska <mliska@suse.cz>
490 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
491 order to wrap keywords or arguments.
492 * collect2.c (main): Likewise.
493 (scan_prog_file): Likewise.
494 (scan_libraries): Likewise.
495 * common/config/riscv/riscv-common.c
496 (riscv_subset_list::parsing_subset_version): Likewise.
497 (riscv_subset_list::parse_std_ext): Likewise.
498 * config/aarch64/aarch64.c (aarch64_override_options_internal):
500 * config/arm/arm.c (arm_option_override): Likewise.
501 * config/cris/cris.c (cris_print_operand): Likewise.
502 * config/darwin-c.c (darwin_pragma_options): Likewise.
503 (darwin_pragma_unused): Likewise.
504 (darwin_pragma_ms_struct): Likewise.
505 * config/ft32/ft32.c (ft32_print_operand): Likewise.
506 * config/i386/i386.c (print_reg): Likewise.
507 (ix86_print_operand): Likewise.
508 * config/i386/xm-djgpp.h: Likewise.
509 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
510 * config/m32c/m32c.c (m32c_option_override): Likewise.
511 * config/msp430/msp430.c (msp430_option_override): Likewise.
512 * config/nds32/nds32.c (nds32_option_override): Likewise.
513 * config/nvptx/mkoffload.c (main): Likewise.
514 * config/rx/rx.c (rx_print_operand): Likewise.
515 (valid_psw_flag): Likewise.
516 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
517 (vms_pragma_nomember_alignment): Likewise.
518 (vms_pragma_extern_model): Likewise.
519 * lto-wrapper.c (compile_offload_image): Likewise.
520 * omp-offload.c (oacc_parse_default_dims): Likewise.
521 * symtab.c (symtab_node::verify_base): Likewise.
522 * tlink.c (recompile_files): Likewise.
523 (start_tweaking): Likewise.
524 * tree-profile.c (parse_profile_filter): Likewise.
526 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
528 PR tree-optimization/89956
529 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
530 multiple negates of the same value.
532 2019-04-04 Martin Sebor <msebor@redhat.com>
536 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
537 have the same precision since the function crashes otherwise.
538 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
539 has non-zero arguments.
541 2019-04-04 Martin Sebor <msebor@redhat.com>
544 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
545 out if the number of arguments is less than expected.
547 2019-04-04 Jeff Law <law@redhat.com>
549 PR rtl-optimization/89399
550 * ree.c (combine_set_extension): Use single_set rather than
551 digging into PATTERN for items on the candidate list.
552 (combine_reaching_defs): Likewise.
554 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
556 PR rtl-optimization/46590
557 * loop-invariant.c (find_defs): Move df_remove_problem and
558 df_process_deferred_rescans to move_invariants.
559 Move df_live_add_problem and df_live_set_all_dirty calls
561 (move_invariants): Likewise.
562 (move_loop_invariants): Likewise, making the df_live calls
563 conditional on -O. Remove the problem again if we added it
566 2019-04-03 qing zhao <qing.zhao@oracle.com>
568 PR tree-optimization/89730
569 * ipa-inline.c (can_inline_edge_p): Delete the checking for
570 -flive-patching=inline-only-static.
571 (can_inline_edge_by_limits_p): Add the checking for
572 -flive-patching=inline-only-static and grant always_inline
573 even when -flive-patching=inline-only-static is specified.
575 2019-04-03 Jeff Law <law@redhat.com>
577 PR rtl-optimization/81025
578 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
580 2019-04-03 Richard Biener <rguenther@suse.de>
582 PR tree-optimization/84101
583 * tree-vect-stmts.c: Include explow.h for hard_function_value,
584 regs.h for hard_regno_nregs.
585 (cfun_returns): New helper.
586 (vect_model_store_cost): When vectorizing a store to a decl
587 we return and the function ABI returns in a multi-reg location
588 account for the possible spilling that will happen.
590 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
592 * config/s390/s390.c (s390_legitimate_address_p): Reject long
593 displacement addresses for vector mode operands.
595 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
597 * config/arc/arc.c (GMASK_LEN): Define.
598 (arc_restore_callee_saves): Restore first blink when
601 2019-04-03 Sudakshina Das <sudi.das@arm.com>
603 * doc/extend.texi: Add deprecated comment on sign-return-address
604 function attribute and add mbranch-protection.
605 * doc/invoke.texi: Add bti to the options for mbranch-protection.
607 2019-04-03 Richard Biener <rguenther@suse.de>
610 * lto-wrapper.c (run_gcc): Avoid implicit rules making
611 the all target phony.
613 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
617 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
618 Return false for variable DImode shifts.
619 (dimode_scalar_chain::compute_convert_gain): Do not handle
620 register count operand in variable DImode shifts.
621 (dimode_scalar_chain::make_vector_copies): Remove support to copy
622 count argument of a variable shift instruction to a vector register.
623 (dimode_scalar_chain::convert_reg): Remove support to convert
624 count argument of a variable shift instruction.
626 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
628 PR rtl-optimization/84206
629 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
630 iterating over loop headers.
632 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
634 PR rtl-optimization/85876
635 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
636 beyond the original fence.
638 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
640 * config.gcc: Mark spu* targets as deprecated/obsolete.
642 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
644 * config/s390/s390-builtin-types.def: New builtin function type
645 definitions. Remove unused types.
646 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
647 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
648 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
650 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
651 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
652 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
653 (vec_double, vec_signed, vec_unsigned): Define to use the new
655 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
658 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
660 * config/s390/s390-builtin-types.def: New builtin function type
662 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
663 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
664 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
665 (s390_vstrszh, s390_vstrszf): New low-level builtins.
666 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
667 constant definitions.
668 * config/s390/vecintrin.h (vec_search_string_cc)
669 (vec_search_string_until_zero_cc): New builtin name definitions.
670 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
672 ("vec_vstrs<mode>"): New insn definition.
674 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
676 * config/s390/s390-builtin-types.def: Add new builtin function
678 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
679 New overloaded builtins.
680 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
682 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
683 (UNSPEC_VEC_SLDBYTE): ... this.
684 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
685 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
687 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
688 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
689 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
691 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
693 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
695 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
696 * config/s390/vector.md (V_HW_HSD): ... here.
698 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
700 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
701 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
702 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
703 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
704 New insn definitions.
706 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
708 * config/s390/s390-builtin-types.def: Add new builtin function type.
709 * config/s390/s390-builtins.def: Add overloaded builtin
710 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
711 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
712 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
713 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
714 ("eltswap<mode>"): New expander.
715 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
718 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
720 * config/s390/s390-builtin-types.def: Add new builtin function types.
721 * config/s390/s390-builtins.def: Add overloaded builtin
722 s390_vec_revb. Add low-level builtins for vlbr and vstbr
724 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
725 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
726 ("bswap<mode>"): New expander.
727 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
729 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
731 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
732 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
733 vector builtin version number in __VEC__.
735 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
737 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
739 (SFSI): New mode attribute.
740 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
741 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
743 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
744 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
745 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
746 ("floatsi<mode>2"): Add wcefb instruction.
748 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
750 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
751 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
753 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
754 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
755 support 32 bit fp-int conversions. Rename to ...
756 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
757 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
758 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
759 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
762 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
764 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
765 if-then-else constructs if we can use the select instruction.
766 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
768 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
770 * config/s390/s390.md ("*popcountdi_arch13_cc")
771 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
773 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
774 Append _z196 to make it ...
775 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
776 ("popcounthi2_z196"): ... this.
777 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
778 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
780 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
782 * config/s390/s390.c (s390_canonicalize_comparison): Convert
783 certain compares for arch13 in order to make use of the condition
784 code result produced by the new instructions.
785 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
786 nxrk, and nxgrk instruction patterns.
787 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
788 (inv_no): Add new code iterator together with some attributes.
789 ("*andc_split_<mode>"): Disable splitter for arch13.
790 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
791 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
792 ("*<ANDOR:bitops_name>c<GPR:mode>")
793 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
794 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
795 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
796 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
798 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
800 * common/config/s390/s390-common.c (processor_flags_table): New
802 * config.gcc: Support arch13 with the --with-arch= configure flag.
803 * config/s390/driver-native.c (s390_host_detect_local_cpu):
804 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
805 * config/s390/s390.c (s390_get_sched_attrmask)
806 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
807 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
808 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
809 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
810 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
812 * config/s390/s390.opt: Support arch13 as processor type in
813 command line options.
815 2019-04-02 Martin Liska <mliska@suse.cz>
818 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
819 Fix param description of graphite-max-arrays-per-scop.
821 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
823 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
824 (ASAN_CC1_SPEC): Use it in 64-bit mode.
825 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
827 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
829 PR rtl-optimization/85412
830 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
831 sel_sched_region_1, not after.
833 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
835 PR rtl-optimization/86928
836 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
837 compute_live if necessary.
838 (sel_redirect_edge_and_branch): Likewise.
840 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
842 PR rtl-optimization/89865
843 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
844 register if it is a part of small class.
846 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
848 PR rtl-optimization/87273
849 * sel-sched-ir.c (merge_fences): Remove assert.
851 2019-04-01 Richard Biener <rguenther@suse.de>
853 PR tree-optimization/46590
854 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
855 (dom_walker::m_reachability): Add in place of...
856 (dom_walker::m_skip_unreachable_blocks): ...this.
857 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
858 Move complex initialization ...
859 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
860 lazily and initialize edge flags on each invocation.
861 (dom_walker::bb_reachable): Use m_reachability.
863 2019-04-01 Martin Liska <mliska@suse.cz>
866 * opt-suggestions.c (option_proposer::build_option_suggestions):
867 Add variant without any argument in order to provide better
870 2019-04-01 Richard Biener <rguenther@suse.de>
873 * gimple.c: Include langhooks.h.
874 (gimple_get_alias_set): Treat enumeral types as the underlying
877 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
878 Eric Botcazou <ebotcazou@adacore.com>
880 PR rtl-optimization/89862
881 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
882 that operates on the full registers for WORD_REGISTER_OPERATIONS
885 2019-03-29 Jim Wilson <jimw@sifive.com>
887 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
888 Clear MASK_RVC and then set if C subset supported.
890 2019-03-29 Jakub Jelinek <jakub@redhat.com>
893 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
894 non-addressable complit into its initializer if it is volatile.
896 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
898 * opts-common.c (integral_argument): Set errno properly in one case.
900 2019-03-29 Martin Liska <mliska@suse.cz>
902 * doc/invoke.texi: Remove -Wchkp from documentation.
904 2019-03-29 Martin Liska <mliska@suse.cz>
906 * dbgcnt.c (print_limit_reach): New function.
909 2019-03-29 Martin Liska <mliska@suse.cz>
911 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
912 (dbg_cnt_process_opt): Parse first tokens aas
913 dbg_cnt_process_single_pair is also using strtok.
915 2019-03-29 Jakub Jelinek <jakub@redhat.com>
917 PR rtl-optimization/87485
918 * function.c (expand_function_end): Move stack_protect_epilogue
919 before loading of return value into hard register(s).
921 2019-03-28 Jakub Jelinek <jakub@redhat.com>
924 * tree-inline.h (struct copy_body_data): Add
925 dont_remap_vla_if_no_change flag.
926 * tree-inline.c (remap_type_3, remap_type_2): New functions.
927 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
928 and remap_type_2 returns false.
929 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
930 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
931 only from where it is copied to nested contexts.
933 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
936 * config/i386/i386.md (RMW operation with LEA peephole):
937 Use LEAMODE mode attribute instead of SWI mode iterator for
940 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
943 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
944 Also process XEXP (src, 0) of a shift insn.
946 2019-03-28 David Malcolm <dmalcolm@redhat.com>
949 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
950 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
952 2019-03-28 Jakub Jelinek <jakub@redhat.com>
954 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
956 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
957 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
958 immediately after first one with df_analyze in between, but rather
959 process all bbs, queueing ones that need second pass in a worklist,
960 df_analyze, process queued debug insn changes and if second pass is
961 needed, process bbs from worklist, df_analyze, process queued debug
964 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
965 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
966 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
968 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
971 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
974 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
977 * config/i386/i386.c (ix86_function_value_1): Call the newly added
978 function for 32-bit MS_ABI.
979 (function_value_ms_32): New function.
981 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
983 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
984 (movdi): Call gen_movdi_symbol_save_scc.
985 (gen_movdi_symbol_save_scc): New insn and split.
987 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
989 PR rtl-optimization/89313
990 * function.c (matching_constraint_num): New static function.
991 (match_asm_constraints_1): Use it. Fixup white space and comment.
992 Don't replace inputs with non-matching constraints which conflict
993 with early clobber outputs.
995 2019-03-27 Jeff Law <law@redhat.com>
998 PR rtl-optimization/87761
999 PR rtl-optimization/89826
1000 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
1002 (pass_cprop_hardreg::execute): Call df_analyze after adding the
1003 note problem to get REG_DEAD/REG_UNUSED notes updated.
1005 2019-03-27 Richard Biener <rguenther@suse.de>
1007 PR tree-optimization/89463
1008 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
1009 queue edges to remove.
1010 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
1011 dead stmts. Delay edge removal until PHIs are removed to
1012 make debug-stmt creation not confused by seemingly degenerate
1015 2019-03-27 Alan Modra <amodra@gmail.com>
1017 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
1019 * config/rs6000/darwin.h: Likewise.
1020 * config/rs6000/rs6000.c: Likewise.
1022 2019-03-27 Alan Modra <amodra@gmail.com>
1024 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
1025 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
1027 2019-03-26 Andrew Waterman <andrew@sifive.com>
1028 Jim Wilson <jimw@sifive.com>
1030 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
1031 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
1032 (generic_idivdi, generic_fmul_single, generic_fmul_double)
1033 (generic_fdiv, generic_fsqrt): Add check for generic tune.
1034 (generic_alu): Add auipc to type list.
1035 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
1036 (riscv_microarchitecture): Declare.
1037 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
1038 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
1040 (riscv_microarchitecture): New.
1041 (sifive_7_tune_info): New.
1042 (riscv_cpu_info_table): Add microarchitecture value for rocket and
1043 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
1045 (riscv_store_data_bypass_p): New.
1046 (riscv_option_override): Set riscv_microarchitecture from
1047 cpu->microarchitecture.
1048 * config/riscv/riscv.md: Include sifive-7.md.
1051 (auipc<mode>): Change type to auipc.
1052 (restore_stack_nonlocal): New.
1053 * config/riscv/sifive-7.md: New.
1054 * doc/invoke.texi (RISC-V Options): Update mtune docs.
1056 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
1059 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
1060 Also process XEXP (src, 0) of a shift insn.
1062 2019-03-26 Richard Biener <rguenther@suse.de>
1064 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
1065 (copy_debug_stmt): Likewise.
1066 (expand_call_inline): Likewise.
1067 (copy_bb): Avoid redundant lookup & set of gimple_block.
1068 * gimple-low.c (lower_gimple_return): Likewise.
1069 (lower_builtin_setjmp): Likewise.
1071 2019-03-26 Jakub Jelinek <jakub@redhat.com>
1073 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
1074 is constant 0, turn into static const data member initialized to false.
1075 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
1076 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
1078 2019-03-26 Jason Merrill <jason@redhat.com>
1079 Jakub Jelinek <jakub@redhat.com>
1081 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
1083 (mem_alloc_description::release_object_overhead): Fix comment typos.
1084 * hash-table.h (hash_table::~hash_table): Call
1085 release_instance_overhead only if m_entries is non-NULL, otherwise
1086 call unregister_descriptor.
1088 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
1090 PR tree-optimization/81740
1091 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1092 In case of outer loop vectorization, check for backward dependence
1093 at the inner loop if outer loop dependence is reversed.
1095 2019-03-26 Alan Modra <amodra@gmail.com>
1097 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
1098 rs6000_vector_mem init. Correct wI and wJ comment.
1100 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
1102 PR rtl-optimization/88347
1103 PR rtl-optimization/88423
1104 * sched-deps.c (sched_analyze_insn): Take into account that for
1105 tablejumps the barrier appears after a label and a jump_table_data.
1107 2019-03-25 Martin Sebor <msebor@redhat.com>
1110 * c-common.c (check_user_alignment): Rename local. Correct maximum
1111 alignment in diagnostic. Avoid assuming argument fits in SHWI,
1112 convert it to UHWI when it fits.
1114 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
1117 * dwarf2out.c (premark_used_variables): New function.
1118 (prune_unused_types_walk): Do not mark not premarked external
1120 (prune_unused_types): Call premark_used_variables.
1122 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
1124 PR rtl-optimization/89676
1125 * lra-constraints.c (curr_insn_transform): Do match reload for
1126 early clobbers when the match was successful only for different
1129 2019-03-25 Martin Sebor <msebor@redhat.com>
1131 * doc/extend.texi (Common Type Attributes): Document vector_size.
1132 (Common Variable Attributes): Mention size constraint. Correct
1134 (Vector Extensions): Use @dfn when defining bas type. Clarify
1135 base type and size constraints.
1137 2019-03-25 Richard Biener <rguenther@suse.de>
1139 PR tree-optimization/89789
1140 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
1141 changes from non-undefined back to undefined.
1143 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
1145 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
1146 heap string and a gc string, but since this variable is unknown to
1147 ggc the gc string might get reused and corrupted. Fixed by always
1148 using a heap string.
1150 2019-03-25 Richard Biener <rguenther@suse.de>
1152 PR tree-optimization/89779
1153 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
1154 to remove IV defs, delay actual removal.
1155 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
1156 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
1157 very end, properly also reset loop control IV information.
1159 2019-03-25 Richard Biener <rguenther@suse.de>
1161 PR tree-optimization/89802
1162 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
1163 move EH data to folded stmt.
1165 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
1167 * config/s390/s390-builtin-types.def: Remove few unused types and
1168 fix sort order for others.
1170 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
1172 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
1173 expected and found types with -mdebug during builtin matching.
1175 2019-03-25 Richard Biener <rguenther@suse.de>
1178 * fold-const.c (operand_equal_p): Revert last change with
1181 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
1183 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
1184 notes for the result of the __tls_get_addr calls.
1185 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
1187 2019-03-24 Jeff Law <law@redhat.com>
1189 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
1191 PR rtl-optimization/87761
1192 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
1193 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
1195 (pass_cprop_hardreg::execute): Add df note problem and defer insn
1196 rescans. Reprocess blocks as needed, calling df_analyze before
1197 reprocessing. Always call df_analyze before fixing up debug bind
1200 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
1202 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
1205 2019-03-22 Andrew Pinski <apinski@marvell.com>
1207 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
1208 attrribute for uxtw.
1210 2019-03-26 Jeff Law <law@redhat.com>
1212 PR rtl-optimization/87761
1213 * config/mips/mips-protos.h (mips_split_move): Add new argument.
1214 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
1215 (mips_split_move): Accept new INSN argument. Try to forward SRC
1216 into the next instruction.
1217 (mips_split_move_insn): Pass INSN through to mips_split_move.
1219 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
1221 PR rtl-optimization/89676
1222 * lra-constraints.c (curr_insn_transform): Do match reload for
1223 early clobbers even if the match was successful.
1225 2019-03-22 Jakub Jelinek <jakub@redhat.com>
1228 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
1230 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
1232 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
1234 2019-03-22 Jakub Jelinek <jakub@redhat.com>
1236 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
1237 <avx512>_fmsub_<mode>_mask3<round_name>,
1238 <avx512>_fnmadd_<mode>_mask3<round_name>,
1239 <avx512>_fnmsub_<mode>_mask3<round_name>,
1240 avx512f_vmfmadd_<mode>_mask3<round_name>,
1241 avx512f_vmfmsub_<mode>_mask3<round_name>,
1242 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
1243 instead of register_operand and %v instead of v for match_operand 1.
1244 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
1245 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
1246 <round_nimm_predicate> instead of register_operand and %v instead of v
1247 for match_operand 1.
1249 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
1250 <avx512>_fmadd_<mode>_mask3<round_name>,
1251 <avx512>_fmsub_<mode>_mask<round_name>,
1252 <avx512>_fmsub_<mode>_mask3<round_name>,
1253 <avx512>_fnmadd_<mode>_mask<round_name>,
1254 <avx512>_fnmadd_<mode>_mask3<round_name>,
1255 <avx512>_fnmsub_<mode>_mask<round_name>,
1256 <avx512>_fnmsub_<mode>_mask3<round_name>,
1257 <avx512>_fmaddsub_<mode>_mask<round_name>,
1258 <avx512>_fmaddsub_<mode>_mask3<round_name>,
1259 <avx512>_fmsubadd_<mode>_mask<round_name>,
1260 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
1261 <round_nimm_predicate> instead of nonimmediate_operand.
1262 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
1263 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
1264 Use register_operand instead of <round_nimm_predicate> for the
1265 operand that needs to match output.
1266 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
1267 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
1268 Likewise. Formatting fixes.
1271 * config/i386/i386.c (enum ix86_builtins): Remove
1272 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
1273 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
1274 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
1275 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
1276 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
1277 __builtin_ia32_vfmsubss3_mask3): New builtins.
1278 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
1279 avx512f_vmfmadd_<mode>_mask3<round_name>,
1280 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
1281 *avx512f_vmfmsub_<mode>_mask<round_name>,
1282 avx512f_vmfmsub_<mode>_mask3<round_name>,
1283 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
1284 *avx512f_vmfnmadd_<mode>_mask<round_name>,
1285 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
1286 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
1287 *avx512f_vmfnmsub_<mode>_mask<round_name>,
1288 avx512f_vmfnmsub_<mode>_mask3<round_name>,
1289 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
1290 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
1291 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
1292 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
1293 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
1294 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
1295 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
1296 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
1297 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
1298 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
1299 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
1300 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
1301 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
1302 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
1303 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
1304 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
1305 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
1306 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
1307 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
1308 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
1309 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
1310 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
1312 2019-03-21 Martin Sebor <msebor@redhat.com>
1314 PR tree-optimization/89350
1315 * builtins.c (compute_objsize): Also ignore offsets whose upper
1317 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
1318 (builtin_memref::builtin_memref): Initialize new member.
1319 Allow EXPR to be null.
1320 (builtin_memref::extend_offset_range): Replace local with a member.
1321 Avoid assuming pointer offsets are unsigned.
1322 (builtin_memref::set_base_and_offset): Determine base object
1323 before computing offset range.
1324 (builtin_access::builtin_access): Handle memset.
1325 (builtin_access::generic_overlap): Replace local with a member.
1326 (builtin_access::strcat_overlap): Same.
1327 (builtin_access::overlap): Same.
1328 (maybe_diag_overlap): Same.
1329 (maybe_diag_access_bounds): Same.
1330 (wrestrict_dom_walker::check_call): Handle memset.
1331 (check_bounds_or_overlap): Same.
1333 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
1334 Jakub Jelinek <jakub@redhat.com>
1337 * tree.c (fld_type_variant, fld_incomplete_type_of,
1338 fld_process_array_type): Call fld->pset.add and don't call
1339 add_tree_to_fld_list if it returns true.
1340 (free_lang_data_in_type): Similarly with self-recursive call. Purge
1341 non-marked types from TYPE_NEXT_VARIANT list.
1342 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
1344 2019-03-21 Jakub Jelinek <jakub@redhat.com>
1346 * hash-table.h (hash_table): Add Lazy template parameter defaulted
1347 to false, if true, don't alloc_entries during construction, but defer
1348 it to the first method that needs m_entries allocated.
1349 (hash_table::hash_table, hash_table::~hash_table,
1350 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
1351 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
1352 hash_table::clear_slot, hash_table::traverse_noresize,
1353 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
1354 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
1356 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
1357 NO_INSERT instead of find_with_hash.
1358 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
1359 hash_set::m_table): Add Lazy to template params of hash_table.
1360 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
1361 * attribs.c (test_attribute_exclusions): Likewise.
1362 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
1363 hash_set. Add tests for hash_set with Lazy = true.
1365 2019-03-21 Richard Biener <rguenther@suse.de>
1367 PR tree-optimization/89779
1368 * tree.c (tree_nop_conversion): Consolidate and fix defensive
1369 checks with respect to released SSA names now having error_mark_node
1371 * fold-const.c (operand_equal_p): Likewise.
1373 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
1376 * config/s390/s390.c (global_not_special_regno_p): Move to make it
1378 (s390_optimize_register_info): Use global_not_special_regno_p to
1379 check for global regs.
1381 2019-03-20 Jakub Jelinek <jakub@redhat.com>
1384 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
1385 update this_alternative nor this_alternative_set.
1387 2019-03-19 Jim Wilson <jimw@sifive.com>
1390 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
1391 align, size, offset. Use them to handle a BLKmode reference. Update
1393 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
1395 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1397 PR rtl-optimization/89768
1398 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
1400 (unroll_loop_runtime_iterations): Likewise.
1402 2019-03-19 Martin Sebor <msebor@redhat.com>
1404 PR tree-optimization/89644
1405 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
1406 rather than endptr as an indicator of nul-termination.
1408 PR tree-optimization/89644
1409 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
1410 arrays in determining sequence sizes in strncpy and stpncpy.
1412 2019-03-19 Martin Liska <mliska@suse.cz>
1415 * predict.c (combine_predictions_for_bb): Empty likely_edges and
1416 unlikely_edges if there's an edge that belongs to both these sets.
1418 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
1421 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
1422 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
1423 go via a stack temporary.
1425 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1428 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
1429 instead of gen_rtx_SUBREG.
1430 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
1432 2019-03-19 Richard Biener <rguenther@suse.de>
1435 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
1437 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
1441 * tree.c (free_lang_data_in_decl): Do not free context of C++
1444 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1447 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
1448 subs for the first alternative except when operands[3] is 1.
1451 * gimplify.c (gimplify_asm_expr): For output argument with
1452 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
1455 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
1457 PR rtl-optimization/89753
1458 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
1459 explicit unrolling factor even more robust.
1461 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1464 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
1465 compensation use x2 += 1 instead of x2 -= -1 and when honoring
1466 signed zeros, do another copysign after the compensation.
1468 2019-03-18 Martin Sebor <msebor@redhat.com>
1470 PR tree-optimization/89720
1471 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
1472 more conservatively, the same as anti-range.
1474 2019-03-18 Richard Biener <rguenther@suse.de>
1477 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
1478 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
1479 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
1480 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
1482 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
1484 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
1485 Extend queue to 1024 entries.
1486 Add "consumed" field.
1487 (gomp_print_output): Remove print_index parameter.
1488 Add final parameter.
1489 Change limit to unsigned.
1490 Use consumed field to implement circular buffer.
1491 Detect interrupted print in final pass.
1492 Flush output at the end.
1493 (run): Update gomp_print_output usage.
1494 (main): Initialize kernargs->output_data.consumed.
1496 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
1498 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
1499 calculation of the minimum number of scalar iterations for
1500 fully-predicated loops.
1502 2019-03-18 Martin Jambor <mjambor@suse.cz>
1504 PR tree-optimization/89546
1505 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
1506 any propagation to its children took place.
1508 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1511 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
1512 parameter, and make use of it.
1513 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
1515 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1517 * config/arc/arc.opt (mcode-density-frame): Get the inital value
1518 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
1519 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
1520 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
1521 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
1522 match what the ops is doing.
1523 (push_multi_fp_blink): Likewise.
1524 * config/arc/arc.c (arc_override_options): Enable enter/leave when
1525 compiling for size and elf target.
1526 (arc_save_callee_enter): Adjust note to match what enter/leave
1529 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1531 * config/arc/arc.md (tst_movb): Fix constraint.
1533 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1535 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
1537 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1539 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
1540 * config/arc/arc.c (arc_conditional_register_usage): Remove all
1541 reg_alloc_order references.
1542 (size_alloc_order): Define.
1543 (arc_adjust_reg_alloc_order): New function.
1544 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
1546 (ADJUST_REG_ALLOC_ORDER): Define.
1547 (HONOR_REG_ALLOC_ORDER): Likewise.
1549 2019-03-18 Richard Biener <rguenther@suse.de>
1552 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
1553 loads and stores a bit more.
1555 2019-03-18 Richard Biener <rguenther@suse.de>
1558 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
1559 load pessimization to stores as well.
1561 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
1564 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
1565 successor, use NULL as its av set.
1567 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
1569 PR rtl-optimization/89721
1570 * lra-constraints (invariant_p): Return false if side_effects_p holds.
1572 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
1575 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1576 When handling vec_extract, use modular arithmetic to allow
1577 constant selectors greater than vector length.
1578 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
1579 V1TImode vectors to have constant selector values greater than 0.
1580 Use modular arithmetic to compute vector index.
1581 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
1582 index for in-memory vectors. Correct code generation for
1583 in-register vectors.
1584 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
1587 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
1591 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
1594 2019-03-15 Jakub Jelinek <jakub@redhat.com>
1597 * tree.c (inchash::add_expr): Strip any location wrappers.
1598 * fold-const.c (operand_equal_p): Move stripping of location wrapper
1599 after hash verification.
1602 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
1603 SIGN_EXTEND and ZERO_EXTEND.
1605 2019-03-14 Jason Merrill <jason@redhat.com>
1606 Jakub Jelinek <jakub@redhat.com>
1608 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
1609 than if is_empty (*slot).
1610 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
1611 existing elt and for elt removal.
1612 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
1613 of already removed elt.
1615 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1618 * config/i386/i386.c (remove_partial_avx_dependency): Handle
1621 2019-03-14 Martin Liska <mliska@suse.cz>
1624 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
1626 2019-03-14 Richard Biener <rguenther@suse.de>
1629 * config/i386/i386.c (make_resolver_func): Properly set
1630 DECL_CONTEXT on the RESULT_DECL.
1631 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
1633 2019-03-14 Richard Biener <rguenther@suse.de>
1635 * gimple-pretty-print.c: Include cfgloop.h.
1636 (dump_gimple_phi): Adjust.
1637 (dump_gimple_bb_header): Dump loop header for GIMPLE.
1638 (pp_cfg_jump): Adjust.
1639 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
1640 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
1641 (lower_phi_internal_fn): Remove.
1642 (verify_gimple_call): Remove IFN_PHI special-casing.
1643 (dump_function_to_file): Dump IL state.
1644 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
1645 done to deal with PHI nodes being present in non-SSA state.
1647 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1650 * multiple_target.c (create_dispatcher_calls): Change
1651 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
1652 In the node->iterate_referring loop, push *ref rather than ref, call
1653 ref->remove_reference () and always pass 0 to iterate_referring.
1655 PR rtl-optimization/89679
1656 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
1657 would contain a paradoxical SUBREG.
1659 2019-03-14 Richard Biener <rguenther@suse.de>
1661 PR tree-optimization/89710
1662 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
1665 2019-03-14 Martin Liska <mliska@suse.cz>
1667 * coverage.c (coverage_begin_function): Stream also
1669 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
1670 documentation about function declaration location.
1671 * gcov-dump.c (tag_function): Print whole range
1672 of function declaration.
1673 * gcov.c (struct function_info): Add end_column field.
1674 (function_info::function_info): Initialize it.
1675 (output_json_intermediate_file): Output {start,end}_column
1677 (read_graph_file): Read end_column.
1679 2019-03-14 Richard Biener <rguenther@suse.de>
1682 * fold-const.c (operand_equal_p): For INDIRECT_REF check
1683 that the access types are similar.
1685 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1687 PR tree-optimization/89703
1688 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
1689 aren't compatible also with builtin_decl_explicit. Check pure
1690 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
1691 and BUILT_IN_STPNCPY{,_CHK}.
1693 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
1696 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
1697 addr32 prefix to VSIB address for X32.
1698 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
1700 (*avx512pf_gatherpf<mode>df_mask): Likewise.
1701 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
1702 (*avx512pf_scatterpf<mode>df_mask): Likewise.
1703 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
1704 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
1705 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
1706 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
1707 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
1708 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
1709 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
1710 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
1711 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
1712 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
1713 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
1714 (*avx512f_scatterdi<mode>): Likewise.
1716 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
1719 * lra-constraints.c (inherit_in_ebb): Update
1720 potential_reload_hard_regs along with live_hard_regs.
1722 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1725 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
1727 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
1729 2019-03-13 Martin Sebor <msebor@redhat.com>
1731 PR tree-optimization/89662
1732 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
1735 2019-03-13 Richard Biener <rguenther@suse.de>
1738 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
1739 throw FP expressions at tree-affine.
1741 2019-03-14 Richard Biener <rguenther@suse.de>
1743 * tree-pretty-print.c (dump_generic_node): For -gimple properly
1744 dump negative integer constants using _Literal (type) -num.
1746 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1748 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
1749 nonlocal_value member.
1752 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
1753 (ipa_simd_modify_function_body): Handle PHIs.
1755 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1757 * config/s390/s390.c (s390_option_override_internal): Use more
1758 aggressive inlining parameters.
1760 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1762 * config/s390/3906.md: New file.
1763 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1764 (LONGRUNNING_THRESHOLD): Remove.
1765 (MAX_SCHED_MIX_SCORE): Decrease.
1766 (MAX_SCHED_MIX_DISTANCE): Decrease.
1767 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
1768 (struct s390_sched_state): New struct to hold scheduling state.
1769 (S390_SCHED_STATE_NORMAL): Remove.
1770 (S390_SCHED_STATE_CRACKED): Remove.
1771 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
1772 (s390_get_sched_attrmask): Use new attribute.
1773 (s390_get_unit_mask): Use new units.
1774 (s390_is_fpd): New function.
1775 (s390_is_fxd): New function.
1776 (s390_is_longrunning): New function.
1777 (s390_sched_score): Use new functions.
1778 (s390_sched_reorder): Likewise.
1779 (s390_sched_variable_issue): Rework and use new functions.
1780 (s390_sched_init): Use new functions.
1781 * config/s390/s390.h (s390_tune_attr): Add z14.
1782 * config/s390/s390.md: Add z14.
1784 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1786 * config/s390/2964.md: Update pipeline description.
1787 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1788 (LONGRUNNING_THRESHOLD): Remove.
1789 (LATENCY_FACTOR): Remove.
1790 (s390_get_unit_mask): Add unit.
1791 (s390_sched_score): Use fxd/fpd.
1792 (s390_sched_variable_issue): Use fxd/fpd.
1794 2019-03-12 Martin Liska <mliska@suse.cz>
1796 * config/i386/i386.c: Reword an error message.
1798 2019-03-12 Martin Jambor <mjambor@suse.cz>
1800 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
1801 terminate with newline.
1803 2019-03-12 Jakub Jelinek <jakub@redhat.com>
1806 * config/s390/s390.md (tabort): Use %wd instead of
1807 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
1808 letters and periods.
1809 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
1810 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
1814 * builtins.c (expand_builtin_int_roundingfn,
1815 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
1816 gcc_unreachable if validate_arglist fails.
1818 2019-03-12 Richard Biener <rguenther@suse.de>
1820 PR tree-optimization/89664
1821 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
1822 free the occurance tree after the early out.
1824 2019-03-11 Jakub Jelinek <jakub@redhat.com>
1828 * vr-values.c (vr_values::update_value_range): If
1829 old_vr->varying_p (), don't update it, make new_vr also VARYING
1832 2019-03-11 Martin Liska <mliska@suse.cz>
1834 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1835 Fix double string quoting.
1837 2019-03-11 Martin Liska <mliska@suse.cz>
1839 * collect-utils.c (collect_wait): Wrap apostrophes
1840 in gcc internal format with %'.
1841 * collect2.c (main): Likewise.
1842 (scan_prog_file): Likewise.
1843 (scan_libraries): Likewise.
1844 * config/i386/i386.c (ix86_expand_call): Likewise.
1845 (ix86_handle_interrupt_attribute): Likewise.
1846 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
1847 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
1848 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
1849 * lto-wrapper.c (find_crtoffloadtable): Likewise.
1850 * symtab.c (symtab_node::verify_base): Likewise.
1851 * tree-cfg.c (verify_gimple_label): Likewise.
1852 * tree.c (verify_type_variant): Likewise.
1854 2019-03-11 Martin Liska <mliska@suse.cz>
1856 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
1857 in a string format message and fix GNU coding style.
1858 (expand_builtin_set_thread_pointer): Likewise.
1859 * common/config/aarch64/aarch64-common.c
1860 (aarch64_rewrite_selected_cpu): Likewise.
1861 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
1862 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
1863 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
1864 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
1865 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
1866 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
1867 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
1868 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
1869 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
1870 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
1872 * common/config/riscv/riscv-common.c
1873 (riscv_subset_list::parsing_subset_version): Likewise.
1874 (riscv_subset_list::parse_std_ext): Likewise.
1875 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1876 (riscv_subset_list::parse): Likewise.
1877 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
1878 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
1879 (aarch64_override_options_internal): Likewise.
1880 (aarch64_validate_mcpu): Likewise.
1881 (aarch64_validate_march): Likewise.
1882 (aarch64_validate_mtune): Likewise.
1883 (aarch64_override_options): Likewise.
1884 * config/alpha/alpha.c (alpha_option_override): Likewise.
1885 * config/arc/arc.c (arc_init): Likewise.
1886 (parse_mrgf_banked_regs_option): Likewise.
1887 (arc_override_options): Likewise.
1888 (arc_expand_builtin_aligned): Likewise.
1889 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
1890 (arm_expand_builtin): Likewise.
1891 * config/arm/arm.c (arm_option_check_internal): Likewise.
1892 (arm_configure_build_target): Likewise.
1893 (arm_option_override): Likewise.
1894 (arm_options_perform_arch_sanity_checks): Likewise.
1895 (arm_handle_cmse_nonsecure_entry): Likewise.
1896 (arm_handle_cmse_nonsecure_call): Likewise.
1897 (arm_tls_referenced_p): Likewise.
1898 (thumb1_expand_prologue): Likewise.
1899 * config/avr/avr.c (avr_option_override): Likewise.
1900 * config/bfin/bfin.c (bfin_option_override): Likewise.
1901 * config/c6x/c6x.c (c6x_option_override): Likewise.
1902 * config/cr16/cr16.c (cr16_override_options): Likewise.
1903 * config/cris/cris.c (cris_option_override): Likewise.
1904 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
1905 * config/darwin-c.c (macosx_version_as_macro): Likewise.
1906 * config/darwin.c (darwin_override_options): Likewise.
1907 * config/frv/frv.c (frv_expand_builtin): Likewise.
1908 * config/h8300/h8300.c (h8300_option_override): Likewise.
1909 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
1910 (ix86_option_override_internal): Likewise.
1911 (warn_once_call_ms2sysv_xlogues): Likewise.
1912 (ix86_expand_prologue): Likewise.
1913 (split_stack_prologue_scratch_regno): Likewise.
1914 (ix86_warn_parameter_passing_abi): Likewise.
1915 * config/ia64/ia64.c (fix_range): Likewise.
1916 * config/m68k/m68k.c (m68k_option_override): Likewise.
1917 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
1918 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
1919 (mips_set_compression_mode): Likewise.
1920 * config/mmix/mmix.c (mmix_option_override): Likewise.
1921 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
1922 * config/msp430/msp430.c (msp430_option_override): Likewise.
1923 * config/nds32/nds32.c (nds32_option_override): Likewise.
1924 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
1925 (nios2_option_override): Likewise.
1926 (nios2_expand_custom_builtin): Likewise.
1927 * config/nvptx/mkoffload.c (main): Likewise.
1928 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
1929 * config/pa/pa.c (fix_range): Likewise.
1930 (pa_option_override): Likewise.
1931 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
1932 (riscv_option_override): Likewise.
1933 * config/rl78/rl78.c (rl78_option_override): Likewise.
1934 * config/rs6000/aix61.h: Likewise.
1935 * config/rs6000/aix71.h: Likewise.
1936 * config/rs6000/aix72.h: Likewise.
1937 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
1938 * config/rs6000/freebsd64.h: Likewise.
1939 * config/rs6000/linux64.h: Likewise.
1940 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
1941 (rs6000_expand_zeroop_builtin): Likewise.
1942 (rs6000_expand_mtfsb_builtin): Likewise.
1943 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
1944 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
1945 (rs6000_invalid_builtin): Likewise.
1946 (rs6000_expand_split_stack_prologue): Likewise.
1947 * config/rs6000/rtems.h: Likewise.
1948 * config/rx/rx.c (valid_psw_flag): Likewise.
1949 (rx_expand_builtin): Likewise.
1950 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
1951 * config/s390/s390.c (s390_expand_builtin): Likewise.
1952 (s390_function_profiler): Likewise.
1953 (s390_option_override_internal): Likewise.
1954 (s390_option_override): Likewise.
1955 * config/sh/sh.c (sh_option_override): Likewise.
1956 (sh_builtin_saveregs): Likewise.
1957 (sh_fix_range): Likewise.
1958 * config/sh/vxworks.h: Likewise.
1959 * config/sparc/sparc.c (sparc_option_override): Likewise.
1960 * config/spu/spu.c (spu_option_override): Likewise.
1961 (fix_range): Likewise.
1962 * config/visium/visium.c (visium_option_override): Likewise.
1963 (visium_handle_interrupt_attr): Likewise.
1964 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
1965 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
1966 (dbg_cnt_process_opt): Likewise.
1967 * dwarf2out.c (output_dwarf_version): Likewise.
1968 * except.c (expand_eh_return): Likewise.
1969 * gcc.c (defined): Likewise.
1970 (driver_handle_option): Likewise.
1971 (process_command): Likewise.
1972 (compare_files): Likewise.
1973 (driver::prepare_infiles): Likewise.
1974 (driver::do_spec_on_infiles): Likewise.
1975 (driver::maybe_run_linker): Likewise.
1976 * omp-offload.c (oacc_parse_default_dims): Likewise.
1977 * opts-global.c (handle_common_deferred_options): Likewise.
1978 * opts.c (parse_sanitizer_options): Likewise.
1979 (common_handle_option): Likewise.
1980 (enable_warning_as_error): Likewise.
1981 * passes.c (enable_disable_pass): Likewise.
1982 * plugin.c (parse_plugin_arg_opt): Likewise.
1983 (default_plugin_dir_name): Likewise.
1984 * targhooks.c (default_expand_builtin_saveregs): Likewise.
1985 (default_pch_valid_p): Likewise.
1986 * toplev.c (init_asm_output): Likewise.
1987 (process_options): Likewise.
1988 (toplev::run_self_tests): Likewise.
1989 * tree-cfg.c (verify_gimple_call): Likewise.
1990 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
1991 (tree_inlinable_function_p): Likewise.
1992 * var-tracking.c (vt_find_locations): Likewise.
1994 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
1996 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
1997 only on the else branch.
1999 2019-03-11 Martin Liska <mliska@suse.cz>
2001 * gcov.c (output_intermediate_json_line): Print function
2003 (output_json_intermediate_file): Add new argument.
2004 * doc/gcov.texi: Document the change.
2006 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
2008 PR rtl-optimization/89588
2009 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
2010 explicit unrolling factor more robust.
2012 2019-03-11 Richard Biener <rguenther@suse.de>
2014 PR tree-optimization/89649
2015 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
2016 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
2017 on the prolog and epilog loops.
2018 (vect_loop_versioning): Return copy of loop.
2019 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
2020 on the non-vectorized version of the loop.
2022 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
2025 * config/i386/sse.md (*vec_extractv2di_0_sse):
2026 Add (=r,x) alternative and corresponding splitter.
2028 2019-03-10 Martin Jambor <mjambor@suse.cz>
2030 PR tree-optimization/85762
2031 PR tree-optimization/87008
2032 PR tree-optimization/85459
2033 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
2034 it points to if there is a type changing MEM_REF. Adjust all callers.
2035 (build_accesses_from_assign): Disable total scalarization if
2036 contains_vce_or_bfcref_p returns true through the new parameter, for
2039 2019-03-09 Jakub Jelinek <jakub@redhat.com>
2042 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
2043 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
2046 * common.opt (fdiagnostics-show-labels,
2047 fdiagnostics-show-line-numbers, fdiagnostics-format=,
2048 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
2049 gas-locview-support, ginline-points, ginternal-reset-location-views):
2050 Terminate description text with a dot.
2051 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
2052 * config/mcore/mcore.opt (m210, m340): Likewise.
2053 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
2054 mnops=): Start description text with a capital letter.
2055 * config/arc/arc.opt (msize-level=): Likewise.
2056 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
2057 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
2059 * config/ft32/ft32.opt (msim): Likewise.
2060 (mft32b, mcompress): Likewise. Terminate description text with a dot.
2061 (mnodiv, mnopm): Terminate description text with a dot.
2062 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
2064 * config/i386/i386.opt (prefer_vector_width, instrument_return):
2066 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
2069 PR rtl-optimization/89634
2070 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
2071 are modified in BB_END (e->src) instruction.
2073 2019-03-08 David Malcolm <dmalcolm@redhat.com>
2076 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
2077 messages more amenable to translation, and improve wording.
2079 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
2081 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
2082 ud- and du-chains between phases.
2084 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
2087 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
2088 instead of POLY_INT_CST.
2090 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2092 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
2095 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
2100 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
2101 (_mm_storeu_si64): Ditto.
2103 2019-03-08 Martin Liska <mliska@suse.cz>
2106 * config/i386/i386.c (ix86_option_override_internal): Disable
2107 jump tables when retpolines are used.
2109 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
2112 * ipa-split.c (execute_split_functions): Do not split
2113 'noinline' or 'section' function.
2115 2019-03-08 Jakub Jelinek <jakub@redhat.com>
2118 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
2119 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
2120 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
2123 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
2124 from diagnostics. Formatting fixes.
2127 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
2128 warn_odr diagnostics.
2131 * lra-constraints.c (process_alt_operands): Avoid one space before
2132 " at the end of line and another after " on another line in a string
2134 * attribs.c (handle_dll_attribute): Likewise.
2135 * config/avr/avr-devices.c (avr_texinfo): Likewise.
2137 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
2138 warning_at or inform messages in G_() if there is no ?:.
2140 PR tree-optimization/89550
2141 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
2142 returned true. Formatting fixes.
2143 (expand_builtin_strnlen): Formatting fixes.
2144 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
2145 if warning_at returned true.
2146 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
2148 2019-03-08 Richard Biener <rguenther@suse.de>
2151 * cfgloop.h (struct loop): Add owned_clique field.
2152 * cfgloopmanip.c (copy_loop_info): Copy it.
2153 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
2155 * tree-inline.c (copy_loops): Remap owned_clique.
2156 * lto-streamer-in.c (input_cfg): Stream owned_clique.
2157 * lto-streamer-out.c (output_cfg): Likewise.
2159 2019-03-08 Jakub Jelinek <jakub@redhat.com>
2162 * config/darwin.c: Include intl.h.
2163 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
2164 composing the message out of two separate parts.
2166 2019-03-07 Jakub Jelinek <jakub@redhat.com>
2169 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
2170 doesn't start with a capital letter and doesn't end with a dot.
2171 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
2172 with a capital letter.
2173 (ix86_mangle_function_version_assembler_name): Likewise.
2174 (ix86_generate_version_dispatcher_body): Likewise.
2175 (fold_builtin_cpu): Likewise.
2176 (get_builtin_code_for_version): Likewise. Remove extraneous space.
2177 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
2178 translators, wrap full type name in %qs.
2180 PR translation/79999
2181 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
2182 depend clause with source (or sink) modifier.
2183 * omp-expand.c (expand_omp_ordered_sink): Likewise.
2186 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
2187 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
2188 (avx512f_load<mode>_mask): New define_expand.
2189 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
2190 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
2191 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
2192 __builtin_ia32_movess_mask): New builtins.
2193 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
2194 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
2195 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
2196 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
2198 2019-03-07 Martin Jambor <mjambor@suse.cz>
2201 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
2202 for extern inline functions.
2204 2019-03-07 Martin Jambor <mjambor@suse.cz>
2207 * cgraph.h (cgraph_node): New inline method former_thunk_p.
2208 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
2209 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
2210 have multiple callees. At the end check if declarations match as
2211 opposed to cgraph_nodes.
2213 2019-03-07 Martin Liska <mliska@suse.cz>
2215 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
2216 which is equivalent to searching for this in clones chain.
2217 * symtab.c (symtab_node::verify_base): Similarly compare ASM
2218 names with a neighbour and special case first node in a chain.
2220 2019-01-25 Jason Merrill <jason@redhat.com>
2222 PR c++/80916 - spurious "static but not defined" warning.
2223 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
2224 for an internal symbol with DECL_EXTERNAL.
2226 2019-04-07 Richard Biener <rguenther@suse.de>
2229 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
2230 * tree-inline.c (copy_loops): Simplify.
2232 2019-03-07 Martin Liska <mliska@suse.cz>
2234 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
2236 2019-03-07 Richard Biener <rguenther@suse.de>
2238 PR tree-optimization/89595
2239 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
2240 stmt iterator as reference, take boolean output parameter to
2241 indicate whether the stmt was removed and thus the iterator
2243 (dom_opt_dom_walker::before_dom_children): Re-iterate over
2244 stmts created by folding.
2246 2019-03-07 Jakub Jelinek <jakub@redhat.com>
2249 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
2252 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
2254 PR rtl-optimization/88845
2255 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
2257 * lra.c (remove_scratches_1): New function.
2258 (remove_scratches): Use it.
2259 (lra_emit_move): Likewise.
2261 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
2263 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
2264 unaligned_access variable.
2265 * config/arc/arc.c (arc_override_options): Set unaligned access
2266 default on for HS CPUs.
2267 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
2269 2019-03-06 Martin Liska <mliska@suse.cz>
2271 PR gcov-profile/89577
2272 * doc/gcov.texi: Prefer to use --coverage.
2273 * doc/sourcebuild.texi: Likewise.
2275 2019-03-02 Jason Merrill <jason@redhat.com>
2277 PR c++/86485 - -Wmaybe-unused with empty class ?:
2278 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
2280 2019-03-05 Jakub Jelinek <jakub@redhat.com>
2283 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
2287 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
2288 exactly one argument.
2290 2019-03-05 Jakub Jelinek <jakub@redhat.com>
2291 Richard Sandiford <richard.sandiford@arm.com>
2293 PR tree-optimization/89570
2294 * match.pd (vec_cond into cond_op simplification): Don't use
2295 get_conditional_internal_fn, use as_internal_fn (cond_op).
2297 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
2300 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
2301 to decide when to split off a non-zero offset from a symbol.
2302 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
2303 in function symbols.
2305 2019-03-05 Richard Biener <rguenther@suse.de>
2307 PR tree-optimization/89594
2308 * tree-if-conv.c (pass_if_conversion::execute): Handle
2309 case where .LOOP_VECTORIZED_FUNCTION was removed.
2311 2019-03-05 Jakub Jelinek <jakub@redhat.com>
2314 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
2315 instead alloca it only when needed with the needed size.
2317 PR tree-optimization/89570
2318 * match.pd (vec_cond into cond_op simplification): Guard with
2319 vectorized_internal_fn_supported_p test and #if GIMPLE.
2321 PR tree-optimization/89566
2322 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
2323 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
2324 Punt if get_user_idx_format succeeds, but idx_format argument is
2325 not provided or doesn't have pointer type, or if idx_args is above
2326 number of provided arguments.
2328 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
2330 PR tree-optimization/89437
2331 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
2333 2019-03-04 Richard Biener <rguenther@suse.de>
2336 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
2339 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
2341 PR tree-optimization/89487
2342 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
2343 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
2344 (distribute_loop): Don't do runtime alias check if there is non-
2345 addressable data reference.
2346 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
2347 is a register variable.
2349 2019-03-02 Jakub Jelinek <jakub@redhat.com>
2352 * config/arm/arm.md (cmpsi2_addneg): Use
2353 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
2354 If operands[2] is 0 or INT_MIN, force use of subs.
2355 (*compare_scc splitter): Use gen_int_mode.
2356 (*negscc): Likewise.
2357 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
2359 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
2360 Monk Chiang <sh.chiang04@gmail.com>
2362 * common/config/riscv/riscv-common.c: Include sstream.
2363 (riscv_subset_list::to_string): New.
2364 (riscv_arch_str): Likewise.
2365 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
2367 * config/riscv/riscv-protos.h (riscv_arch_str): New.
2368 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
2369 (riscv_emit_attribute): New.
2370 (riscv_file_start): Emit attribute if needed.
2371 (riscv_option_override): Init riscv_emit_attribute_p.
2372 * config/riscv/riscv.opt (mriscv-attribute): New option.
2373 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
2375 * doc/install.texi: Document --with-riscv-attribute.
2376 * doc/invoke.texi: Document -mriscv-attribute.
2378 * common/config/riscv/riscv-common.c:
2379 Include config/riscv/riscv-protos.h.
2380 (INCLUDE_STRING): Defined.
2381 (RISCV_DONT_CARE_VERSION): Defined.
2382 (riscv_subset_t): Declare.
2383 (riscv_subset_t::riscv_subset_t): New.
2384 (riscv_subset_list): Declare.
2385 (riscv_subset_list::riscv_subset_list): New.
2386 (riscv_subset_list::~riscv_subset_list): Likewise.
2387 (riscv_subset_list::parsing_subset_version): Likewise.
2388 (riscv_subset_list::parse_std_ext): Likewise.
2389 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
2390 (riscv_subset_list::add): Likewise.
2391 (riscv_subset_list::lookup): Likewise.
2392 (riscv_subset_list::xlen): Likewise.
2393 (riscv_subset_list::parse): Likewise.
2394 (riscv_supported_std_ext): Likewise.
2395 (current_subset_list): Likewise.
2396 (riscv_parse_arch_string): Using riscv_subset_list::parse to
2399 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
2401 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
2402 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
2403 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
2405 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
2407 PR rtl-optimization/85899
2408 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
2409 fallthru edges leading to the exit block.
2411 2019-03-01 Tamar Christina <tamar.christina@arm.com>
2414 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
2415 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
2417 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
2419 PR tree-optimization/89535
2420 * tree-vect-stmts.c (vectorizable_call): Record the vector types
2421 for each operand. Calculate the fallback choice for mask operands
2422 and pass it to vect_get_vec_def_for_operand.
2424 2019-03-01 Richard Biener <rguenther@suse.de>
2427 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
2428 get virtual operands.
2429 (get_expr_operands): Handle CONST_DECL like other decls.
2431 2019-03-01 Jakub Jelinek <jakub@redhat.com>
2434 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
2435 on DECL_P and EXPR_P.
2437 2019-03-01 Richard Biener <rguenther@suse.de>
2440 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
2441 argument, defaulted to zero.
2442 * passes.c (execute_function_todo): Pass down SSA update flags
2443 to cleanup_tree_cfg.
2444 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
2445 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
2447 (cleanup_tree_cfg): Get and pass down SSA update flags.
2449 2019-03-01 Jakub Jelinek <jakub@redhat.com>
2452 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
2453 early_lto_debug argument.
2455 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
2457 PR tree-optimization/89536
2458 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
2459 only whether bit #0 of the value is 0 instead of the entire value.
2461 2019-02-28 Marek Polacek <polacek@redhat.com>
2463 PR c++/87068 - missing diagnostic with fallthrough statement.
2464 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
2465 at the end of a seq, save its location to walk_stmt_info.
2466 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
2469 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
2472 * tree.c (find_atomic_core_type): Move ahead in file.
2473 (check_base_type): Correctly compare alignments of atomic types.
2475 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
2478 * config/i386/i386.c (get_builtin_code_for_version): Identify
2479 Westmere from PCLMUL, instead of AES.
2481 2019-02-28 Jakub Jelinek <jakub@redhat.com>
2484 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
2485 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
2488 2019-02-28 Tamar Christina <tamar.christina@arm.com>
2491 * config/aarch64/aarch64-option-extensions.def: Document it.
2492 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
2495 2019-02-28 Jakub Jelinek <jakub@redhat.com>
2498 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
2499 builtins if they don't have a single scalar floating point argument.
2502 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2504 PR rtl-optimization/89490
2505 * varasm.c (get_block_for_section): Bail out for mergeable sections.
2506 (default_use_anchors_for_symbol_p, output_object_block): Assert the
2507 block section is not mergeable.
2509 2019-02-27 Jakub Jelinek <jakub@redhat.com>
2512 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
2513 old define_insn to ...
2514 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
2515 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
2516 Rename old define_insn to ...
2517 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
2518 (thumb2_casesi_internal_pic): New define_expand. Rename old
2520 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
2521 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
2522 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
2524 2019-02-27 Richard Biener <rguenther@suse.de>
2527 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
2529 2019-02-27 Richard Biener <rguenther@suse.de>
2531 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
2534 2019-02-27 Richard Biener <rguenther@suse.de>
2537 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
2538 parameter, prefix section name with .gnu.debuglto_ if true.
2539 (dwarf2out_finish): Pass false to output_comdat_type_unit.
2540 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
2542 2019-02-27 Richard Biener <rguenther@suse.de>
2545 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
2546 rather than on use_debug_types, doing what output_die does.
2547 (value_format): Likewise.
2549 2019-02-27 Martin Jambor <mjambor@suse.cz>
2550 Martin Sebor <msebor@redhat.com>
2552 * doc/invoke.texi (Warning Options): Reword description of
2553 -Wno-absolute-value.
2555 2019-02-27 Jakub Jelinek <jakub@redhat.com>
2557 PR tree-optimization/89280
2558 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
2559 builtin_setjmp_setup_bb): New functions.
2560 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
2561 When visiting __builtin_setjmp_setup block, queue in special
2562 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
2563 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
2564 from visited after the loop if they don't have any visited successor
2567 2018-02-26 Steve Ellcey <sellcey@marvell.com>
2569 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
2571 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
2573 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2576 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
2577 with types other than sizetype/ssizetype.
2579 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
2581 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
2582 (enum sparc_processor_type): ...this.
2583 (enum sparc_code_model_type): New enumeration type.
2584 (enum sparc_memory_model_type): Tweak comments.
2585 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
2587 (mcmodel): Use sparc_code_model enumeration and variable.
2588 (sparc_code_model): New enumeration.
2589 (mdebug): Add Undocumented marker.
2590 * config/sparc/sparc.h (enum cmodel): Delete.
2591 (sparc_cmodel): Likewise.
2592 (TARGET_CM_MEDLOW): Adjust to above renaming.
2593 (TARGET_CM_MEDMID): Likewise.
2594 (TARGET_CM_MEDANY): Likewise.
2595 (TARGET_CM_EMBMEDANY): Likewise.
2596 * config/sparc/sparc.c (sparc_cmodel): Delete.
2597 (sparc_option_override): Remove string/value mapping support for the
2598 code model. Move code and memory model support to after the handling
2599 of target flags. Do private machine setup last.
2600 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
2601 (sparc_legitimize_reload_address): Likewise.
2602 (sparc_output_mi_thunk): Likewise.
2603 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
2605 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2607 PR tree-optimization/89500
2608 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
2609 (handle_builtin_strlen): Remove noncst_bound variable. Always
2610 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
2611 cst if the first cst bytes starting at x are known to be non-zero,
2612 even if the string is not zero terminated. Don't try to modify
2613 *si for strnlen. Update strlen_to_stridx only for strlen or if
2614 we can prove strnlen returns the same value as strlen would.
2616 2019-02-26 Martin Liska <mliska@suse.cz>
2618 * alloc-pool.h (struct pool_usage): Remove extra
2620 * bitmap.h (struct bitmap_usage): Likewise.
2621 * ggc-common.c (struct ggc_usage): Likewise.
2622 * mem-stats.h (struct mem_usage): Likewise.
2623 (mem_alloc_description::dump): Print dash lines
2624 here and repeat header at the end of a table report.
2625 It's then more readable.
2626 * tree-phinodes.c (phinodes_print_statistics): Make
2627 horizontal alignment.
2628 * tree-ssanames.c (ssanames_print_statistics): Likewise.
2629 * vec.c (struct vec_usage): Remove extra print_dash_line.
2630 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
2632 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
2634 * doc/extend.texi (__builtin_object_size):
2635 Use @pxref instead of @xref inside parenthesis.
2636 (__builtin_has_attribute): Add missing comma after @xref.
2637 (__builtin_object_size): Ditto.
2638 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
2639 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
2642 2019-02-26 Jeff Law <law@redhat.com>
2644 PR rtl-optimization/87761
2645 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
2646 detect obviously dead insns and delete them.
2648 2019-02-26 Richard Biener <rguenther@suse.de>
2650 PR tree-optimization/89505
2651 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
2652 to handle restrict pointed-to vars with multiple subvars
2655 2019-02-26 Richard Biener <rguenther@suse.de>
2657 PR tree-optimization/89489
2658 * tree-parloops.c (create_loop_fn): Copy over last_clique.
2660 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
2662 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
2663 and move around comment.
2664 <BIT_AND_EXPR>: Likewise.
2665 <BIT_NOT_EXPR>: Add specific handling for boolean types.
2667 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2670 * config/i386/i386.c (remove_partial_avx_dependency): Call
2671 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
2672 after changing possibly many instructions to use that pseudo. Fix up
2673 insertion of v4sf_const0 setter at the start of bb.
2675 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2678 * doc/extend.texi (Variadic Pointer Args): New section.
2680 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2681 Martin Sebor <msebor@gmail.com>
2683 * common.opt (Wattribute-alias): Likewise.
2684 * doc/invoke.texi (Option Summary): List general form of
2685 -Wattribute-alias=. List positive form of -Wmissing-attributes.
2686 (-Wmissing-attributes): Invert entry, rewrite and correct default.
2687 Add cross-references.
2688 (-Wattribute-alias): Rewrite and correct default. Mention
2689 considered attributes (same as for -Wmissing-attributes).
2691 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
2693 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
2694 (_mm_cvtpd_ps): Likewise.
2695 (_mm_cvttpd_epi32): Likewise.
2698 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
2699 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
2702 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
2704 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2707 * common/config/aarch64/aarch64-common.c
2708 (struct aarch64_option_extension): Add is_synthetic.
2709 (all_extensions): Use it.
2710 (TARGET_OPTION_INIT_STRUCT): Define hook.
2711 (struct gcc_targetm_common): Moved to end.
2712 (all_extensions_by_on): New.
2713 (opt_ext_cmp, typedef opt_ext): New.
2714 (aarch64_option_init_struct): New.
2715 (aarch64_contains_opt): New.
2716 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
2717 * config/aarch64/aarch64-option-extensions.def
2718 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
2719 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
2720 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
2721 Set is_synthetic to false.
2722 (crypto): Set is_synthetic to true.
2723 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
2726 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2728 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2729 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
2730 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2731 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
2732 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
2733 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
2734 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
2735 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
2737 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
2738 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2739 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
2740 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
2741 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
2742 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
2743 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
2744 vfmlsl_laneq_high_f16): ... To this.
2745 * config/arm/neon.md: Update comments.
2747 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2749 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2750 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
2751 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2752 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
2753 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
2754 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
2755 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
2756 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
2758 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
2759 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2760 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
2761 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
2762 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
2763 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
2764 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
2765 vfmlslq_laneq_high_f16): ... To this.
2767 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
2769 PR rtl-optimization/86096
2770 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
2771 comparing mw_order values.
2773 2019-02-25 Jakub Jelinek <jakub@redhat.com>
2776 * config/arm/arm.md (*subsi3_carryin_const): Use
2777 arm_neg_immediate_operand predicate instead of
2778 arm_not_immediate_operand, "L" constraint instead of "K" and
2779 print it using %n2 instead of %B2.
2780 (*subsi3_carryin_const0): New define_insn.
2781 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
2782 instead of arm_not_operand and "I" constraint instead of "K" and
2783 print it using %n3 instead of %B2. Instead of using match_dup 2 add
2784 another match_operand and in the condition check that it is negation
2786 (*subsi3_carryin_compare_const0): New define_ins.
2787 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
2788 *subsi3_carryin_const.
2789 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
2790 split into *subsi3_carryin_compare_const0 if the highpart is zero.
2793 * config/arm.vfp.md (*negdf2_vfp): Use
2794 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
2795 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
2797 2019-02-24 Jakub Jelinek <jakub@redhat.com>
2799 PR rtl-optimization/89445
2800 * simplify-rtx.c (simplify_ternary_operation): Don't use
2801 simplify_merge_mask on operands that may trap.
2802 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
2803 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
2804 second operand is CONST_VECTOR, check if any element could be zero.
2805 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
2806 their operands can trap.
2808 2019-02-23 Martin Sebor <msebor@redhat.com>
2810 * gimple-ssa-sprintf.c (target_strtol): Rename...
2811 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
2812 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
2813 check for range error.
2815 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
2818 * opts-common.c (prune_options): Also prune joined switches
2819 with Negative and RejectNegative.
2820 * config/i386/i386.opt (march=): Add Negative(march=).
2821 (mtune=): Add Negative(mtune=).
2822 * doc/options.texi: Document Negative used together with Joined
2825 2019-02-22 Martin Sebor <msebor@redhat.com>
2827 * doc/extend.texi (Other Builtins): Add
2828 __builtin_is_constant_evaluated.
2830 2019-02-22 Richard Biener <rguenther@suse.de>
2832 PR tree-optimization/87609
2833 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
2835 2019-02-22 Jeff Law <law@redhat.com>
2837 PR rtl-optimization/87761
2838 * config/mips/mips.md: Add new combiner pattern to recognize
2839 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
2841 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
2844 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
2845 destination register in peepholes generating patterns for ADDS/SUBS.
2846 (add<mode>3_compare0,
2847 *addsi3_compare0_uxtw, add<mode>3_compareC,
2848 add<mode>3_compareV_imm, add<mode>3_compareV,
2849 *adds_<optab><ALLX:mode>_<GPI:mode>,
2850 *subs_<optab><ALLX:mode>_<GPI:mode>,
2851 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
2852 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
2853 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
2854 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
2855 sub<mode>3_compare1): Allow stack pointer for source register.
2856 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
2858 2019-02-22 Martin Sebor <msebor@redhat.com>
2860 PR tree-optimization/88993
2861 PR tree-optimization/88853
2862 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
2864 (sprintf_dom_walker::call_info::is_string_func): New helper.
2865 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
2866 for formatted string functions.
2867 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
2869 2019-02-22 Martin Sebor <msebor@redhat.com>
2872 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
2873 unreachable subexpressions.
2875 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
2876 Hongtao Liu <hongtao.liu@intel.com>
2877 Sunil K Pandey <sunil.k.pandey@intel.com>
2880 * config/i386/i386-passes.def: Add
2881 pass_remove_partial_avx_dependency.
2882 * config/i386/i386-protos.h
2883 (make_pass_remove_partial_avx_dependency): New.
2884 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
2886 (pass_data_remove_partial_avx_dependency): New.
2887 (pass_remove_partial_avx_dependency): Likewise.
2888 (make_pass_remove_partial_avx_dependency): Likewise.
2889 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
2890 (*extendsfdf2): Add avx_partial_xmm_update.
2891 (truncdfsf2): Likewise.
2892 (*float<SWI48:mode><MODEF:mode>2): Likewise.
2893 (SF/DF conversion splitters): Disabled for TARGET_AVX.
2895 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
2898 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
2901 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
2904 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
2905 (PTA_SKYLAKE): Add PTA_AES.
2906 (PTA_GOLDMONT): Likewise.
2908 2019-02-22 Sudakshina Das <sudi.das@arm.com>
2910 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
2911 instruction if enabled.
2912 (aarch64_override_options): Remove reference to return address key.
2914 2019-02-22 Richard Biener <rguenther@suse.de>
2916 PR tree-optimization/89440
2917 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
2918 not necessary assert.
2920 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2923 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
2924 (oacc_replace_fn_attrib_attr): ... this new function.
2925 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
2926 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
2928 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2930 * config/arm/arm-cpus.in (ares): Rename to...
2931 (neoverse-n1): ... This. Add ares as alias.
2932 * config/arm/arm-tables.opt: Regenerate.
2933 * config/arm/arm-tune.md: Likewise.
2934 * doc/invoke.txt (ARM Options): Document neoverse-n1.
2936 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2938 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
2939 * config/aarch64/aarch64-tune.md: Regenerate.
2940 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
2942 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2944 * config/aarch64/aarch64.c (ares_tunings): Rename to...
2945 (neoversen1_tunings): ... This.
2946 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
2947 (neoverse-n1): New CPU.
2948 * config/aarch64/aarch64-tune.md: Regenerate.
2949 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
2951 2019-02-22 Richard Biener <rguenther@suse.de>
2954 * cfghooks.h (dependence_hash): New typedef.
2955 (struct copy_bb_data): New type.
2956 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
2957 (duplicate_block): Likewise.
2958 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
2959 (copy_bbs): Create and pass down copy_bb_data.
2960 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
2961 (rtl_duplicate_bb): Likewise.
2962 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
2963 remap dependence info.
2965 2019-02-22 Richard Biener <rguenther@suse.de>
2967 PR tree-optimization/87609
2968 * tree-core.h (tree_base): Document special clique values.
2969 * tree-inline.c (remap_dependence_clique): Do not use the
2970 special clique value of one.
2971 (maybe_set_dependence_info): Use clique one.
2972 (clear_dependence_clique): New callback.
2973 (compute_dependence_clique): Clear clique one from all refs
2974 before assigning it (again).
2976 2019-02-21 Martin Sebor <msebor@redhat.com>
2978 * doc/extend.texi (__clear_cache): Correct signature.
2980 2019-02-21 Ian Lance Taylor <iant@golang.org>
2983 * varasm.c (decode_addr_const): Call lookup_constant_def rather
2984 than output_constant_def.
2985 (add_constant_to_table): New static function.
2986 (output_constant_def): Call add_constant_to_table.
2987 (tree_output_constant_def): Likewise.
2989 2019-02-21 Jakub Jelinek <jakub@redhat.com>
2992 * builtins.c (fold_builtin_arith_overflow): If first two args are
2993 INTEGER_CSTs, set intres and ovfres to constants rather than calls
2996 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
2999 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
3000 error for -mindirect-branch/-mfunction-return with incompatible
3003 2019-02-21 Jakub Jelinek <jakub@redhat.com>
3006 * constraints.md (q): Remove.
3007 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
3010 2019-02-21 Martin Jambor <mjambor@suse.cz>
3013 * omp-general.c (omp_extract_for_data): Removed a duplicate call
3014 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
3015 (omp_adjust_for_condition): ...here. Added necessary parameters.
3016 * omp-general.h (omp_adjust_for_condition): Updated declaration.
3017 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
3018 proper values to new parameters of omp_adjust_for_condition.
3020 2019-02-20 Jakub Jelinek <jakub@redhat.com>
3023 * expr.c (expand_assignment): If result is a MEM, use change_address
3024 instead of simplify_gen_subreg.
3026 2019-02-20 Jakub Jelinek <jakub@redhat.com>
3027 David Malcolm <dmalcolm@redhat.com>
3030 * fold-const.c (decode_field_reference): Return NULL_TREE if
3031 lang_hooks.types.type_for_size returns NULL. Check it before
3032 overwriting *exp_. Use return NULL_TREE instead of return 0.
3034 2019-02-20 Jakub Jelinek <jakub@redhat.com>
3038 * toplev.c (do_compile): Double the emin/emax exponents to workaround
3041 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
3044 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
3045 TARGET_SSE in addition to TARGET_SSE_MATH.
3047 (ix86_excess_precision): Ditto.
3048 (ix86_float_exceptions_rounding_supported_p): Ditto.
3049 (use_rsqrt_p): Ditto.
3050 * config/i386/sse.md (rsqrt<mode>2): Ditto.
3052 2019-02-20 David Malcolm <dmalcolm@redhat.com>
3055 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
3056 linenum_arith_t when determining if two adjacent line spans are
3057 close enough to merge.
3058 (diagnostic_show_locus): Use linenum_arith_t when iterating over
3059 lines within each line_span.
3061 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
3064 * lra-constraints.c(uses_hard_regs_p): Fix handling of
3065 paradoxical SUBREGS.
3067 2019-02-20 Li Jia He <helijia@linux.ibm.com>
3070 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
3071 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
3072 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
3075 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
3077 * config/gcn/gcn.c (print_operand): Fix typo.
3079 2019-02-19 Richard Biener <rguenther@suse.de>
3082 * toplev.c (do_compile): Initialize mpfr's exponent range
3083 based on available float modes.
3085 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
3087 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
3088 as long as the epilogue isn't completed.
3090 2019-02-18 Martin Sebor <msebor@redhat.com>
3092 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
3093 __has_cpp_attribute, and __has_include.
3095 2019-02-18 Martin Sebor <msebor@redhat.com>
3097 * doc/invoke.texi (-Wreturn-type): Correct and expand.
3099 2019-02-18 Martin Sebor <msebor@redhat.com>
3102 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
3104 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
3106 2019-02-18 Richard Biener <rguenther@suse.de>
3108 PR tree-optimization/89296
3109 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
3110 of no-warning flag to cases that might emit the bogus warning.
3112 2019-02-18 Jakub Jelinek <jakub@redhat.com>
3115 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
3117 * config/arm/vfp.md (*movdi_vfp): Likewise.
3118 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
3119 "q" constraint for operands[0].
3122 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
3123 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
3124 pattern in a temporary buffer.
3125 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
3126 than 64-operands[2].
3129 * config/s390/s390.c (s390_indirect_branch_attrvalue,
3130 s390_indirect_branch_settings): Define unconditionally.
3131 (s390_set_current_function): Likewise, but guard the whole body except
3132 the s390_indirect_branch_settings call with
3133 #if S390_USE_TARGET_ATTRIBUTE.
3134 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
3136 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
3137 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
3138 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
3139 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
3140 HOST_WIDE_INT_1U instead of 1ULL.
3141 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
3142 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
3143 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
3144 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
3146 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
3149 2019-02-18 Martin Jambor <mjambor@suse.cz>
3151 PR tree-optimization/89209
3152 * tree-sra.c (create_access_replacement): New optional parameter
3153 reg_tree. Use it as a type if non-NULL and access type is not of
3155 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
3156 to create_access_replacement.
3157 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
3158 Check lacc is non-NULL before attempting to re-create it on the RHS.
3160 2019-02-18 Martin Liska <mliska@suse.cz>
3163 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
3165 (symbol_table::free_edge): Recycle m_summary_id.
3166 * cgraph.h (get_summary_id): New.
3167 (symbol_table::release_symbol): Set m_summary_id to -1
3169 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
3170 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
3171 function_summary to fast_function_summary.
3172 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
3173 * ipa-pure-const.c (class funct_state_summary_t):
3174 Switch from function_summary to fast_function_summary.
3175 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
3176 (class ipa_ref_opt_summary_t): Switch from function_summary
3177 to fast_function_summary.
3178 * symbol-summary.h (class function_summary_base): New class
3179 that is created from base of former function_summary.
3180 (function_summary_base::unregister_hooks): New.
3181 (class function_summary): Inherit from function_summary_base.
3182 (class call_summary_base): New class
3183 that is created from base of former call_summary.
3184 (class call_summary): Inherit from call_summary_base.
3185 (struct is_same): New.
3186 (class fast_function_summary): New summary class.
3187 (class fast_call_summary): New summary class.
3188 * vec.h (vec_safe_grow_cleared): New function.
3190 2019-02-18 Martin Liska <mliska@suse.cz>
3192 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
3193 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
3194 * doc/tm.texi: Document new target hook.
3195 * doc/tm.texi.in: Likewise.
3196 * target.def: Add new target macro.
3197 * gcc.c (find_fortran_preinclude_file): Do not search multilib
3200 2019-02-17 Alan Modra <amodra@gmail.com>
3203 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
3204 output reg on add insn.
3205 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
3207 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
3210 * config/i386/sse.md (ssedoublemode): Remove V4HI.
3211 (PMULHRSW): Likewise.
3212 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
3214 (ssse3_pmulhrswv4hi3): New expander.
3216 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
3218 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
3219 MMX. Add isa attribute.
3221 2019-02-16 Jakub Jelinek <jakub@redhat.com>
3223 PR rtl-optimization/66152
3224 * builtins.h (c_readstr): Declare.
3225 * builtins.c (c_readstr): Remove forward declaration. Add
3226 null_terminated_p argument, if false, read all bytes from the
3227 string instead of stopping after '\0'.
3228 * expr.c (string_cst_read_str): New function.
3229 (store_expr): Use string_cst_read_str instead of
3230 builtin_strncpy_read_str. Try to store by pieces the whole
3231 exp_len first, and only if that fails, split it up into
3232 store by pieces followed by clear_storage. Formatting fix.
3234 * config/i386/i386.md (*movqi_internal): Remove static from
3235 buf variable. Use output_asm_insn (buf, operands); return "";
3236 instead of return buf;.
3237 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
3238 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
3239 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
3241 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
3243 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
3244 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
3245 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
3246 (CC1_SPEC): Likewise.
3247 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
3249 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
3251 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
3252 the base address on 64-bit strict-alignment platforms.
3254 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
3256 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
3258 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
3260 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
3262 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
3264 PR rtl-optimization/88308
3265 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
3266 on copied instruction.
3268 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
3270 * final.c (insn_current_reference_address): Replace test on JUMP_P
3271 with test on jump_to_label_p.
3272 * config/visium/visium-passes.def: New file.
3273 * config/visium/t-visium (PASSES_EXTRA): Define.
3274 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
3275 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
3276 (TRAMPOLINE_ALIGNMENT): Define.
3277 * config/visium/visium.c (visium_option_override): Do not register
3278 the machine-specific reorg pass here.
3279 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
3281 (output_branch): Adjust threshold for long branch instruction.
3282 * config/visium/visium.md (cpu): Move around.
3283 (length): Adjust for the GR6.
3285 2019-02-15 Richard Biener <rguenther@suse.de>
3286 Jakub Jelinek <jakub@redhat.com>
3288 PR tree-optimization/89278
3289 * tree-loop-distribution.c: Include tree-eh.h.
3290 (generate_memset_builtin, generate_memcpy_builtin): Call
3291 rewrite_to_non_trapping_overflow on builtin->size before passing it
3292 to force_gimple_operand_gsi.
3294 2019-02-15 Jakub Jelinek <jakub@redhat.com>
3297 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
3299 * opth-gen.awk: Likewise.
3301 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
3303 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
3304 Enable MMX, SSE and SSE2 by default.
3305 * config/i386/i386.c (ix86_option_override_internal): Do not
3306 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
3308 2019-02-14 Jakub Jelinek <jakub@redhat.com>
3310 PR rtl-optimization/89354
3311 * combine.c (make_extraction): Punt if extraction_mode is narrower
3314 2019-02-14 Maya Rashish <coypu@sdf.org>
3316 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
3317 * config/netbsd-d.c: New file.
3318 * config/t-netbsd: Add netbsd-d.o
3320 2018-02-14 Steve Ellcey <sellcey@marvell.com>
3322 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
3323 affects_type_identity to true for aarch64_vector_pcs.
3324 (aarch64_comp_type_attributes): New function.
3325 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
3327 2019-02-14 Tamar Christina <tamar.christina@arm.com>
3330 * config/arm/iterators.md (ANY64): Add V4HF.
3332 2019-02-14 Martin Liska <mliska@suse.cz>
3334 PR rtl-optimization/89242
3335 * dce.c (delete_unmarked_insns): Call free_dominance_info we
3336 process a transformation.
3338 2019-02-14 Jakub Jelinek <jakub@redhat.com>
3340 PR tree-optimization/89314
3341 * fold-const.c (fold_binary_loc): Cast strlen argument to
3342 const char * before dereferencing it. Formatting fixes.
3345 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
3347 2019-02-13 Ian Lance Taylor <iant@golang.org>
3349 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
3350 and set current index for other optimizations.
3352 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
3354 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
3355 nonimmediate_operand as operand 2 predicate.
3356 (vec_set<VF2_512_256:mode>_0): Ditto.
3357 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
3358 (*vec_concatv2si): Remove alternative 2.
3359 (*vec_concatv4si_0): Use vm constraint for alternative 0.
3360 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
3361 (vec_concatv2di): Split alternatives 4,5,6 to ...
3362 (*vec_concatv2di_0) ... new pattern.
3364 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
3367 * config/arm/arm.c (ldm_stm_operation_p) Set
3368 addr_reg_in_reglist correctly for first register.
3369 (load_multiple_sequence): Remove dead base check.
3370 (gen_ldm_seq): Correctly set write_back for Thumb-1.
3372 2019-02-13 Tamar Christina <tamar.christina@arm.com>
3375 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
3376 Expose as @aarch64_pred_mov.
3377 * config/aarch64/aarch64.c (aarch64_classify_address):
3378 Use expand_insn which legitimizes operands.
3380 2019-02-13 Martin Liska <mliska@suse.cz>
3382 * builtins.h (expand_builtin_with_bounds): Remove declaration.
3383 * calls.c (struct arg_data): Remove special_slot, pointer_arg
3384 and pointer_offset fields.
3385 (initialize_argument_information): Remove usage of dead
3387 * cgraph.h (struct cgraph_thunk_info): Remove
3388 add_pointer_bounds_args.
3389 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
3391 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
3393 * config/i386/i386.c (ix86_function_arg_advance): Remove
3395 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
3396 (def_builtin): Remove usage of dead
3398 (ix86_add_new_builtins): Likewise.
3399 * ipa-fnsummary.c (compute_fn_summary): Likewise.
3400 * ipa-icf.c (sem_function::equals_wpa): Likewise.
3401 (sem_function::init): Likewise.
3402 (sem_variable::merge): Likewise.
3403 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3404 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3405 * lto-cgraph.c (lto_output_node): Likewise.
3406 (lto_output_varpool_node): Likewise.
3407 (input_node): Likewise.
3408 (input_varpool_node): Likewise.
3409 * lto-streamer-out.c (lto_output): Likewise.
3410 * tree-inline.c (expand_call_inline): Remove usage of
3412 * tree-inline.h (struct copy_body_data): Likewise.
3413 * varpool.c (varpool_node::dump): Likewise.
3415 2019-02-13 Jakub Jelinek <jakub@redhat.com>
3418 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
3419 into pt->vars_contains_escaped_heap instead of setting
3420 pt->vars_contains_escaped_heap to it.
3423 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
3424 INTVAL (size), compare it to GET_MODE_MASK instead of
3425 1 << GET_MODE_BITSIZE.
3428 * config/i386/predicates.md (x86_64_immediate_operand): Allow
3429 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
3432 2019-02-13 Martin Liska <mliska@suse.cz>
3435 * cfgrtl.c (remove_barriers_from_footer): New function.
3436 (try_redirect_by_replacing_jump): Use it.
3437 (cfg_layout_redirect_edge_and_branch): Likewise.
3439 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
3441 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
3442 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
3443 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
3444 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
3445 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
3446 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
3448 * config/rs6000/rs6000.c (builtin_function_type)
3449 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
3450 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
3451 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
3452 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
3453 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
3455 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
3457 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
3458 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
3460 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
3463 * config/i386/i386.md (*movoi_internal_avx): Revert revision
3464 268678 and revision 268657.
3465 (*movti_internal): Likewise.
3467 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
3470 * config/s390/s390.c (s390_decompose_address): Update comment.
3471 (s390_check_qrst_address): Reject invalid address forms after
3474 2019-02-12 Martin Liska <mliska@suse.cz>
3477 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
3478 we need default values of funct_state for a function that
3481 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
3483 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
3484 the object to pick the size of stores on strict-alignment platforms.
3486 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
3487 (*movdi_insn_sp32): Likewise.
3488 (*movdi_insn_sp64): Likewise.
3490 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
3493 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
3494 types that needs constructiong.
3495 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
3497 2019-02-12 Richard Biener <rguenther@suse.de>
3499 PR tree-optimization/89253
3500 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
3503 2019-02-11 David Malcolm <dmalcolm@redhat.com>
3506 * input.c (selftest::test_line_offset_overflow): New selftest.
3507 (selftest::input_c_tests): Call it.
3509 2019-02-11 Martin Sebor <msebor@redhat.com>
3511 PR tree-optimization/88771
3512 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
3513 when -Wstringop-overflow is set.
3514 (builtin_memref::builtin_memref): Adjust excessive upper bound
3515 only when lower bound is not excessive.
3516 (maybe_diag_overlap): Detect and diagnose excessive bounds via
3517 -Wstringop-ovefflow.
3518 (maybe_diag_offset_bounds): Rename...
3519 (maybe_diag_access_bounds): ...to this.
3520 (check_bounds_or_overlap): Adjust for name change above.
3522 2019-02-11 Martin Sebor <msebor@redhat.com>
3525 * builtins.c (max_object_size): Move from here...
3526 * builtins.h (max_object_size): ...and here...
3527 * tree.c (max_object_size): ...to here...
3528 * tree.h (max_object_size): ...and here.
3530 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
3532 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
3533 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
3534 for correct semantics.
3536 2019-02-11 Alan Modra <amodra@gmail.com>
3538 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
3539 -mlongcall and -mpltseq.
3540 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
3541 (RS/6000 and PowerPC Options <-mpltseq>): Document.
3542 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
3543 * config/rs6000/sysv4.opt (mpltseq): New option.
3544 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
3545 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
3546 support is lacking. Don't allow -mpltseq with -mbss-plt.
3547 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
3548 -mpltseq given for ELFv1.
3549 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
3550 Only use UNSPEC_PLTSEQ for inline PLT calls.
3551 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
3552 use UNSPEC_PLTSEQ for inline PLT calls.
3553 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
3554 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
3555 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
3556 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
3557 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
3558 (pltseq_mtctr_<mode>): Likewise.
3560 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3562 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
3564 * configure: Regenerate.
3566 2019-02-11 Jakub Jelinek <jakub@redhat.com>
3569 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
3572 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
3574 * function.c (assign_parm_setup_block): Use the stored
3575 size, not the passed size, when allocating stack-space,
3576 also for a parameter with alignment larger than
3577 MAX_SUPPORTED_STACK_ALIGNMENT.
3579 2019-02-11 Martin Liska <mliska@suse.cz>
3582 * ipa-cp.c (build_toporder_info): Remove usage of a param.
3583 * ipa-inline.c (inline_small_functions): Likewise.
3584 * ipa-pure-const.c (propagate_pure_const): Likewise.
3585 (propagate_nothrow): Likewise.
3586 * ipa-reference.c (propagate): Likewise.
3587 * ipa-utils.c (struct searchc_env): Remove unused field.
3588 (searchc): Always search across AVAIL_INTERPOSABLE.
3589 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
3590 the only called IPA pure const can properly not propagate
3591 across interposable boundary.
3592 * ipa-utils.h (ipa_reduced_postorder): Remove param.
3594 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
3596 * config/nds32/nds32.md (call_internal, call_value_internal,
3597 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
3599 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
3601 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
3604 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
3606 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
3609 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
3611 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
3613 2019-02-10 Jakub Jelinek <jakub@redhat.com>
3615 PR tree-optimization/89268
3616 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
3617 if preds is non-NULL.
3619 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3622 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
3625 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3627 * config/nds32/nds32.md (trap): New pattern.
3629 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3631 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
3634 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
3636 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
3639 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3641 * ipa-visibility.c (localize_node): Also do not localize
3642 LDPR_PREVAILING_DEF_IRONLY_EXP.
3644 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3647 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
3648 instead of type_with_linkage.
3650 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3653 * params.def (uninlined-function-insns, uninlined-function-time,
3654 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
3655 bound so we don't get overflows.
3657 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
3659 * config/rs6000/rs6000-string.c (expand_compare_loop,
3660 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
3663 2019-02-09 Jakub Jelinek <jakub@redhat.com>
3666 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3667 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
3668 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
3670 2019-02-09 Alan Modra <amodra@gmail.com>
3673 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
3674 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
3677 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
3680 * lra-constraints.c (process_alt_operands): Don't increase reject
3681 for memory when offset memory is required.
3683 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
3685 * config/s390/vector.md: Implement vector copysign.
3687 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3689 * expr.c (expand_constructor): Correct indentations.
3691 2019-02-08 Richard Biener <rguenther@suse.de>
3693 PR tree-optimization/89247
3694 * tree-if-conv.c: Include tree-cfgcleanup.h.
3695 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
3696 (tree_if_conversion): Pass through predicate vector.
3697 (pass_if_conversion::execute): Do CFG cleanup and SSA update
3698 inline, see if any if-converted loops we refrece in
3699 LOOP_VECTORIZED calls vanished and fixup.
3700 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
3702 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
3704 * config/s390/constraints.md (jdd): New constraint.
3706 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3709 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
3710 upper 16 vector registers without TARGET_AVX512VL.
3711 (*movti_internal): Likewise.
3713 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3715 PR rtl-optimization/89234
3716 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
3717 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
3718 (copy_reg_eh_region_note_backward): Likewise.
3720 2019-02-08 Richard Biener <rguenther@suse.de>
3723 * tree-data-ref.c (initialize_matrix_A): Fail if constant
3725 (analyze_subscript_affine_affine): Handle failure from
3726 initialize_matrix_A.
3728 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3730 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
3733 2019-02-07 David Malcolm <dmalcolm@redhat.com>
3735 PR tree-optimization/86637
3736 PR tree-optimization/89235
3737 * tree-vect-loop.c (optimize_mask_stores): Add an
3738 auto_purge_vect_location sentinel to ensure that vect_location is
3741 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
3742 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
3743 to ensure that vect_location is purged on exit.
3744 (pass_slp_vectorize::execute): Likewise, replacing the manual
3746 * tree-vectorizer.h (class auto_purge_vect_location): New class.
3748 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3750 * config/aarch64/iterators.md (max_opp): New code_attr.
3751 (USMAX): New code iterator.
3752 * config/aarch64/predicates.md (aarch64_smin): New predicate.
3753 (aarch64_smax): Likewise.
3754 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
3755 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
3758 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
3761 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
3762 for TARGET_AVX512VL.
3763 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
3765 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
3767 * config/s390/s390-builtin-types.def: Add new types.
3768 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
3769 (s390_vec_xlw4): Make the memory operand into a const pointer.
3770 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
3772 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
3773 a new vector type with the alignment of the scalar memory operand.
3775 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
3776 Jakub Jelinek <jakub@redhat.com>
3779 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
3780 arm_count_ldrdstrd_insns): New declarations.
3781 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
3783 (valid_operands_ldrd_strd): New function.
3784 (arm_count_ldrdstrd_insns): New function.
3785 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
3786 sets instead of single DImode set and define new insns to match this.
3788 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3790 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
3791 Make it a C initializer.
3793 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3796 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
3798 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3800 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
3801 Use neon_dot<q> for type.
3802 (neon_<sup>dot_lane<vsi2qi>): Likewise.
3804 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3806 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
3807 Use neon_dot<q> for type.
3808 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
3809 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
3811 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
3813 PR rtl-optimization/89225
3814 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
3817 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
3819 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
3820 after restoring registers saved to allocate the frame on Windows.
3822 2019-02-06 Richard Biener <rguenther@suse.de>
3824 PR tree-optimization/89182
3825 * graphite.h (cached_scalar_evolution_in_region): Declare.
3826 * graphite.c (struct seir_cache_key): New.
3827 (struct sese_scev_hash): Likewise.
3828 (seir_cache): New global.
3829 (cached_scalar_evolution_in_region): New function.
3830 (graphite_transform_loops): Allocate and release seir_cache.
3831 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
3832 cached_scalar_evolution_in_region.
3833 * graphite-scop-detection.c (scop_detection::can_represent_loop):
3835 (scop_detection::graphite_can_represent_expr: Use
3836 cached_scalar_evolution_in_region.
3837 (scop_detection::stmt_simple_for_scop_p): Likewise.
3838 (find_params_in_bb): Likewise.
3839 (gather_bbs::before_dom_children): Likewise.
3840 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
3841 (add_loop_constraints): Likewise.
3843 2019-02-06 Jakub Jelinek <jakub@redhat.com>
3846 * fold-const-call.c (fold_const_vec_convert): Pass true as last
3847 operand to new_unary_operation only if both element types are integral
3848 and it isn't a widening conversion. Return NULL_TREE if
3849 new_unary_operation failed.
3851 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
3854 * config/s390/s390.md: Remove load and test FP splitter.
3856 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3859 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
3860 expand_compare_loop, expand_block_compare_gpr,
3861 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
3862 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
3863 #include "profile-count.h" and "predict.h" for types and functions
3864 needed to work with REG_BR_PROB notes.
3866 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3869 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
3870 for the long branch case.
3872 2019-02-05 Jakub Jelinek <jakub@redhat.com>
3875 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
3876 can throw, non-call exceptions are enabled and we can't delete
3877 dead exceptions or alter cfg. Set must_clean if
3878 delete_insn_and_edges returns true, don't set it blindly for calls.
3879 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
3881 PR rtl-optimization/89195
3882 * combine.c (make_extraction): For MEMs, don't extract bytes outside
3883 of the original MEM.
3885 2019-02-05 Martin Liska <mliska@suse.cz>
3887 PR gcov-profile/89000
3888 * gcov.c (function_summary): Remove argument.
3889 (file_summary): New function.
3890 (print_usage): Replace tabs with spaces.
3891 (generate_results): Use new function file_summary.
3893 2019-02-05 Jakub Jelinek <jakub@redhat.com>
3896 * optabs.c (prepare_cmp_insn): Pass x and y to
3897 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
3899 2019-02-05 Richard Biener <rguenther@suse.de>
3902 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
3903 (struct bitmap_element): Drop chain_prev so we properly recurse on
3904 the prev member, supporting tree views.
3905 (struct bitmap_head): GTY skip the obstack member.
3907 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
3910 * doc/extend.texi (Vector Extensions): Add an example of using vector
3911 types together with x86 intrinsics.
3913 2019-02-04 Alan Modra <amodra@gmail.com>
3915 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
3916 str[] size to 160, and comment.
3918 2019-02-04 Alan Modra <amodra@gmail.com>
3920 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
3921 (rs6000_pltseq_template): Guard output of TLS markers with
3923 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
3924 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
3925 to use inline PLT sequences.
3926 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
3927 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
3928 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
3930 2019-02-04 Martin Liska <mliska@suse.cz>
3933 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
3934 out when ipa_fn_summaries does not contain entry for callee.
3936 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
3938 * config/sparc/sparc.h: Remove superfluous blank lines.
3939 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
3940 (got_register_rtx): ...this.
3941 (sparc_got): Adjust to above renaming.
3942 (sparc_tls_got): Likewise.
3943 (sparc_delegitimize_address): Likewise.
3944 (sparc_output_mi_thunk): Likewise.
3945 (sparc_init_pic_reg): Likewise.
3946 (save_local_or_in_reg_p): Fix test on the GOT register.
3947 (USE_HIDDEN_LINKONCE): Move around.
3948 (get_pc_thunk_name): Likewise.
3949 (gen_load_pcrel_sym): Likewise.
3950 (load_got_register): Likewise.
3952 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
3954 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
3955 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
3957 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
3959 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
3962 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
3964 * config.gcc (with_nds32_lib, glibc):
3965 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
3966 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
3967 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
3969 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
3972 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
3973 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
3974 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
3975 (*rcpsf2_sse): Ditto.
3976 (*rsqrtsf2_sse): Ditto.
3977 (sse4_1_round<mode<2): Ditto.
3979 2019-02-03 Richard Biener <rguenther@suse.de>
3982 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
3985 2019-02-02 Jakub Jelinek <jakub@redhat.com>
3988 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3989 Punt with warning on aggregate return or argument types. Ignore
3990 type/mode checking for uniform arguments.
3992 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
3994 * combine.c (try_combine): Do not print "Can't combine" messages unless
3995 printing failed combination attempts.
3997 2019-02-01 Martin Jambor <mjambor@suse.cz>
4000 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
4001 segment and global segment variables before making them static.
4003 2019-02-01 Martin Jambor <mjambor@suse.cz>
4005 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
4006 missed optimization dump with dump_enabled_p.
4008 2019-02-01 Richard Biener <rguenther@suse.de>
4011 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
4012 the instantiate cache.
4013 (instantiate_scev_binary): Elide second operand procesing
4014 if equal to the first.
4015 * tree-chrec.c (chrec_contains_symbols): Add visited set.
4016 (chrec_contains_undetermined): Likewise.
4017 (tree_contains_chrecs): Likewise.
4019 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
4021 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
4023 2019-02-01 Jakub Jelinek <jakub@redhat.com>
4025 PR tree-optimization/89143
4026 * wide-int-range.h (wide_int_range_absu): Declare.
4027 * wide-int-range.cc (wide_int_range_absu): New function.
4028 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
4030 PR tree-optimization/88107
4031 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
4032 instead of assertion that eh_region_outermost is non-NULL, if it
4033 is NULL, set *ALL to true and return NULL.
4034 (move_sese_region_to_fn): Adjust caller, if all is set, call
4035 duplicate_eh_regions with NULL region.
4037 2019-02-01 Richard Biener <rguenth@suse.de>
4039 PR rtl-optimization/88593
4040 * mode-switching.c (optimize_mode_switching): Free dominators before
4041 calling cleanup_cfg.
4043 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
4045 PR tree-optimization/88932
4046 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
4048 2019-01-31 Jakub Jelinek <jakub@redhat.com>
4051 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
4052 bogus clang warning.
4054 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
4057 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
4058 alternative to avoid partial SSE register stall for TARGET_AVX.
4059 (truncdfsf2): Ditto.
4060 (sse4_1_round<mode>2): Ditto.
4062 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
4064 PR tree-optimization/89008
4065 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
4066 process anything of the form X * 0.
4068 2019-01-31 Richard Biener <rguenther@suse.de>
4070 PR tree-optimization/89135
4071 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
4072 with abnormal preds.
4074 2019-01-31 Jakub Jelinek <jakub@redhat.com>
4077 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
4078 always_inline callees into no_sanitize_address callers.
4080 2019-01-31 Richard Biener <rguenther@suse.de>
4082 PR rtl-optimization/89115
4083 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
4085 2019-01-30 Martin Sebor <msebor@redhat.com>
4088 * doc/extend.texi (cast to a union): Correct and expand.
4090 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
4092 PR rtl-optimization/87246
4093 * lra-constraints.c (simplify_operand_subreg): Reload memory
4094 in subreg if the address became invalid.
4096 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
4099 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
4100 Disable for little-endian.
4102 2019-01-30 Richard Biener <rguenther@suse.de>
4104 PR rtl-optimization/89115
4105 * opts.c (default_options_optimization): Reduce
4106 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
4107 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
4110 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
4112 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
4113 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
4114 type of vector element when vec_extract is implemented by direct
4117 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
4119 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
4121 2019-01-30 Richard Biener <rguenther@suse.de>
4123 PR tree-optimization/89111
4124 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
4125 canonicalization to appropriately sized access types.
4127 2019-01-30 Jakub Jelinek <jakub@redhat.com>
4130 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
4131 for arguments to functions that are TU-local and shouldn't be
4132 referenced by assembly.
4134 2019-01-30 Ulrich Drepper <drepper@redhat.com>
4136 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
4139 2019-01-29 Martin Sebor <msebor@redhat.com>
4142 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
4144 2019-01-29 Jakub Jelinek <jakub@redhat.com>
4148 * omp-simd-clone.c (simd_clone_clauses_extract)
4149 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
4150 OMP_CLAUSE_ALIGNED_ALIGNMENT.
4152 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
4154 * config.gcc: Force .init_array for ARC.
4156 2019-01-29 Richard Biener <rguenther@suse.de>
4159 * dwarf2out.c (collect_skeleton_dies): New helper.
4160 (copy_decls_for_unworthy_types): Call it.
4161 (build_abbrev_table): Assert we do not try to replace
4162 DW_AT_signature refs with local refs.
4164 2019-01-28 Jakub Jelinek <jakub@redhat.com>
4167 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
4168 for lastprivate/linear IV, push gimplify context around gimplify_assign
4169 and, if it needed any temporaries, pop it into a gimple bind around the
4172 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
4174 * common.opt (-Wattribute-alias): Remove "no-" from name.
4175 Make -Wattribute-alias command line option and
4176 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
4178 2019-01-28 Jakub Jelinek <jakub@redhat.com>
4181 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
4182 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
4184 (bmi2): Add missing @opindex.
4185 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
4186 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
4187 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
4188 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
4189 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
4190 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
4191 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
4192 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
4193 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
4194 xsavec, xsaveopt and xsaves options.
4196 2019-01-28 Richard Biener <rguenther@suse.de>
4199 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
4202 2019-01-28 Richard Biener <rguenther@suse.de>
4204 PR tree-optimization/88739
4205 * tree-cfg.c (verify_types_in_gimple_reference): Verify
4206 BIT_FIELD_REFs only are applied to mode-precision operands
4207 when they are integral.
4208 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
4209 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
4210 BIT_FIELD_REFs of non-mode-precision integral operands.
4212 2019-01-27 Jakub Jelinek <jakub@redhat.com>
4215 * config/i386/sse.md
4216 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
4217 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
4218 first constants in pairs are multiples of 2. Formatting fixes.
4219 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
4220 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
4221 first constants in each quadruple are multiples of 4. Formatting fixes.
4223 2019-01-26 Martin Jambor <mjambor@suse.cz>
4226 * tree-inline.c: Include tree-cfgcleanup.h.
4227 (delete_unreachable_blocks_update_callgraph): Move...
4228 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
4229 ...here, make externally visible, make second argument bool, adjust
4231 * tree-cfgcleanup.c: Include cgraph.h.
4232 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
4234 * ipa-prop.c: Include tree-cfgcleanup.h.
4235 (ipcp_transform_function): Call
4236 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
4238 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
4240 PR rtl-optimization/88846
4241 * ira.c (process_set_for_memref_referenced_p): New.
4242 (memref_referenced_p): Add new param. Use
4243 process_set_for_memref_referenced_p. Add new switch cases.
4244 (memref_used_between_p): Pass new arg to memref_referenced_p.
4246 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
4249 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
4250 argument ABI_BREAK. Set to true if the calculated alignment has
4251 changed in gcc-9. Check bit-fields for their base type alignment.
4252 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
4253 (aarch64_function_arg_boundary): Likewise.
4254 (aarch64_gimplify_va_arg_expr): Likewise.
4256 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
4259 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
4260 instead of accessing TREE_INT_CST_ELT directly.
4262 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
4264 * doc/sourcebuild.texi (Environment attributes): Add fenv and
4265 fenv_exceptions description.
4267 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
4269 PR rtl-optimization/87763
4270 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
4271 Allow SUBREG when matching CC_NZmode compare.
4273 2019-01-25 Richard Biener <rguenther@suse.de>
4275 PR tree-optimization/89049
4276 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4277 Look at the pattern stmt to determine if the stmt is vectorized.
4279 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
4281 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
4282 (pred_mov<mode>): Handle all-register forms using both a new
4283 alternative and a split.
4285 2019-01-25 Richard Biener <rguenther@suse.de>
4287 PR tree-optimization/86865
4288 * graphite-scop-detection.c (scop_detection::can_represent_loop):
4289 Reject non-do-while loops.
4291 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
4293 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
4294 * config/rs6000/constraints.md (Q constraint): Use REG_P.
4295 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
4296 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
4297 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
4298 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4299 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
4300 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
4301 vlogical_operand, gpc_reg_operand, int_reg_operand,
4302 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
4303 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
4304 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
4305 (save_world_operation, restore_world_operation, lmw_operation,
4306 stmw_operation): Use MEM_P and REG_P.
4307 (tie_operand): Use MEM_P.
4308 (vrsave_operation, crsave_operation): Use REG_P.
4309 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
4310 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
4311 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
4312 (call_operand): Use HARD_REGISTER_P.
4313 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
4315 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
4316 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
4317 quad_aligned_load_p, replace_swapped_aligned_store,
4318 recombine_lvx_pattern, replace_swapped_aligned_load,
4319 recombine_stvx_pattern): Use MEM_P.
4320 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
4321 Use MEM_P and SYMBOL_REF_P.
4322 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
4323 (insn_is_swappable_p): Use REG_P and MEM_P.
4324 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
4325 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
4327 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
4329 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
4331 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
4332 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
4333 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
4334 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
4336 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
4337 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
4338 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
4339 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
4340 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
4341 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
4342 rs6000_split_logical_di): Use CONST_INT_P.
4343 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
4344 REG_P and SYMBOL_REF_P.
4345 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
4346 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
4347 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
4348 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
4349 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
4350 (small_data_operand, print_operand_address): Use CONST_INT_P and
4352 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
4353 (rs6000_init_hard_regno_mode_ok, direct_move_p):
4354 Use HARD_REGISTER_NUM_P.
4355 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
4356 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
4357 SUBREG_P and SYMBOL_REF_P.
4358 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
4359 and HARD_REGISTER_NUM_P.
4360 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
4362 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
4363 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
4365 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
4366 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
4367 find_addr_reg): Use REG_P.
4368 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
4369 (rs6000_emit_le_vsx_move): Use SUBREG_P.
4370 (offsettable_ok_by_alignment, constant_pool_expr_p,
4371 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
4372 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
4373 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
4374 rs6000_assemble_integer, create_TOC_reference,
4375 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
4376 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
4377 (rs6000_split_vec_extract_var): Use reg_or_subregno.
4378 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
4379 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
4380 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4381 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4382 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
4383 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
4384 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
4385 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
4386 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
4387 and cbranch<mode>4): Use CONST_INT_P.
4388 (multiple define_splits): Use REG_P and SUBREG_P.
4389 (define_expands call, call_value): Use MEM_P.
4390 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
4391 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
4392 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
4393 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
4394 and HARD_REGISTER_NUM_P.
4395 (multiple define_splits): Use HARD_REGISTER_NUM_P.
4397 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
4399 PR rtl-optimization/88948
4400 * rtl.h (prepare_copy_insn): New prototype.
4401 * gcse.c (prepare_copy_insn): New function, split out from
4402 process_insert_insn.
4403 (process_insert_insn): Use prepare_copy_insn.
4404 * store-motion.c (replace_store_insn): Use prepare_copy_insn
4405 instead of gen_move_insn.
4407 2019-01-24 Jakub Jelinek <jakub@redhat.com>
4410 * config/i386/i386.c (ix86_pic_register_p): Return true for
4413 PR tree-optimization/88964
4414 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
4415 punt if HONOR_SNANS (chrec).
4418 * tree-nested.c (convert_nonlocal_reference_stmt,
4419 convert_local_reference_stmt, convert_tramp_reference_stmt,
4420 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
4421 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
4424 PR tree-optimization/89027
4425 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
4426 for "omp simd array" variables.
4428 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
4431 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
4432 force the alignment of m_val.
4434 2019-01-24 Richard Biener <rguenther@suse.de>
4437 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
4438 When in "legacy" debug mode make sure to reset self-origins.
4440 2019-01-24 Martin Liska <mliska@suse.cz>
4442 PR gcov-profile/88994
4443 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
4444 result will be always smaller or equal to the original.
4445 * gcov.c (mangle_name): Fix else branch where we should
4446 also copy to PTR and shift the pointer.
4448 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
4450 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
4451 * vr-values.c (find_case_label_ranges): Fix a comment typo.
4453 2019-01-23 Bin Cheng <bin.cheng@arm.com>
4454 Steve Ellcey <sellcey@marvell.com>
4457 * recog.c (address_operand): Return false on wrong mode for address.
4458 (constrain_operands): Check for mode with 'p' constraint.
4460 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
4463 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
4464 Disparage MMX alternative.
4465 (sse2_cvtpd2pi): Ditto.
4466 (sse2_cvttpd2pi): Ditto.
4468 2019-01-23 David Malcolm <dmalcolm@redhat.com>
4471 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
4472 use-after-free of the result of
4473 aarch64_get_extension_string_for_isa_flags.
4475 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4478 * doc/extend.texi: Document break and continue behavior in
4479 statement expressions.
4481 2019-01-23 Richard Biener <rguenther@suse.de>
4483 PR tree-optimization/89008
4484 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
4485 not leave another stray operand.
4487 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4489 * BASE-VER: Bump to 9.0.1.
4491 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
4493 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
4494 thunk that returns by reference, use the type of the return object
4495 of the thunk instead of that of the alias to build the dereference.
4497 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
4499 * config/arc/atomic.md: Add operand to DMB instruction.
4501 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4503 PR tree-optimization/88964
4504 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
4505 build_zero_cst instead of build_int_cst. Return false for loop
4506 invariants which honor signed zeros.
4508 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
4510 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
4512 2019-01-22 Jakub Jelinek <jakub@redhat.com>
4515 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
4516 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
4517 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
4520 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
4521 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
4524 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
4525 Disable for little endian.
4527 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
4530 * config/arm/arm.c (arm_needs_double_word_align): Check
4531 DECL_BIT_FIELD_TYPE.
4533 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
4534 H.J. Lu <hongjiu.lu@intel.com>
4537 * config/i386/i386-builtin.def: Add mask2 to all builtin
4538 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
4540 * config/i386/i386.c (BDESC): Add mask2 to the definition.
4541 (BDESC_FIRST): Likewise.
4542 (define_builtin): Add an argument for mask2. Updated to handle
4543 both ix86_isa_flags and ix86_isa_flags2.
4544 (define_builtin_const): Likewise.
4545 (define_builtin_pure): Likewise.
4546 (define_builtin2): Deleted.
4547 (define_builtin_const2): Likewise.
4548 (builtin_description): Add a member, mask2.
4549 (bdesc_*): Add mask2 to builtin initializations.
4550 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
4551 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
4553 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
4555 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
4558 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
4561 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
4564 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
4565 alignment is dominated by a bitfield with 64-bit aligned base type.
4566 (arm_function_arg): Emit a warning if the alignment has changed since
4567 earlier GCC releases.
4568 (arm_function_arg_boundary): Likewise.
4569 (arm_setup_incoming_varargs): Likewise.
4571 2019-01-22 Richard Biener <rguenther@suse.de>
4573 PR tree-optimization/88862
4574 * graphite-scop-detection.c
4575 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
4577 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
4579 * doc/extend.tex (AMD GCN Function Attributes): New section.
4580 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
4581 * doc/invoke.texi (AMD GCN Options): New section.
4582 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
4584 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
4586 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
4587 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
4589 2019-01-22 Jakub Jelinek <jakub@redhat.com>
4591 PR tree-optimization/88044
4592 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
4593 is false in the first iteration, but !every_iteration, return false
4594 instead of true with niter->niter zero.
4596 PR rtl-optimization/88904
4597 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
4598 any nonequal registers before processing BB_END (b).
4601 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
4603 (expand_binop_directly, expand_doubleword_clz,
4604 expand_doubleword_popcount, expand_ctz, expand_ffs,
4605 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
4607 PR rtl-optimization/49429
4609 PR rtl-optimization/86334
4611 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
4612 addressable from here...
4613 (emit_block_op_via_libcall): ... to here.
4615 2019-01-22 Richard Biener <rguenther@suse.de>
4617 * tree-vect-loop.c (vect_analyze_loop_operations): Use
4618 auto_vec for cost vector to fix memleak.
4619 (vectorize_fold_left_reduction): Properly gather SLP defs.
4620 (vectorizable_comparison): Do not swap operands to properly
4623 2019-01-22 Alan Modra <amodra@gmail.com>
4626 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
4627 stays a reg. Allow a const_int.
4628 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
4629 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
4630 (IS_NOMARK_TLSGETADDR): Define.
4631 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
4632 (rs6000_output_tlsargs): New function.
4633 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
4634 __tls_get_addr call takes an arg.
4635 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
4636 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
4638 (call_value_nonlocal_sysv): ..or here, delete split.
4639 (tls_gdld_nomark): Delete.
4640 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
4641 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
4642 (call_value_nonlocal_sysv): Likewise.
4643 (call_value_nonlocal_sysv_secure): Likewise.
4644 (call_value_nonlocal_aix): Likewise.
4645 (call_value_indirect_aix): Likewise.
4646 (call_value_indirect_elfv2): Likewise.
4647 (call_value_local32, call_value_local64): Disable for no-mark tls.
4648 (call_value_local_aix): Likewise.
4650 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
4653 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
4654 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
4656 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
4658 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
4659 string contents as hash_map keys.
4661 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4664 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
4665 for rvalue context. Handle rvalues correctly. Use min_align_of_type
4666 instead of TYPE_ALIGN.
4667 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
4668 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
4669 pointer from TYPE_STUB_DECL.
4671 2019-01-21 Richard Biener <rguenther@suse.de>
4673 PR tree-optimization/88934
4674 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
4675 at the possibly non-constant operand.
4676 (vect_get_constant_vectors): Adjust.
4678 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4681 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
4682 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
4683 instead of _X86INTRIN_H_INCLUDED.
4684 * onfig/i386/clwbintrin.h: Likewise.
4685 * config/i386/pkuintrin.h: Likewise.
4686 * config/i386/prfchwintrin.h: Likewise.
4687 * config/i386/rdseedintrin.h: Likewise.
4688 * config/i386/wbnoinvdintrin.h: Likewise.
4689 * config/i386/xsavecintrin.h: Likewise.
4690 * config/i386/xsavesintrin.h: Likewise.
4691 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
4692 * config/i386/xsaveintrin.h: Likewise.
4693 * config/i386/xsaveoptintrin.h: Likewise.
4694 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
4695 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
4696 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
4697 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
4698 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
4699 * config/i386/immintrin.h: Here.
4701 2019-01-20 Martin Jambor <mjambor@suse.cz>
4704 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
4705 with aa_walk_budget.
4706 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
4707 aa_walk_budget_p parameter.
4708 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
4709 walk. Updated all callers.
4710 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
4711 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
4713 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
4714 parameter info. Extract info from fbi. Pass fbi to recursive calls
4715 and to unmodified_parm.
4716 (phi_result_unknown_predicate): New parameter fbi, removed parameter
4717 info, updated call to will_be_nonconstant_expr_predicate.
4718 (param_change_prob): New parameter fbi, limit AA walking.
4719 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
4720 calls to various above functions.
4721 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
4722 parameter. Use it to limit AA walking.
4723 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
4725 (detect_type_change): New parameter fbi, pass it on to
4726 detect_type_change_from_memory_writes.
4727 (detect_type_change_ssa): Likewise.
4728 (aa_overwalked): Removed.
4729 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
4730 accordingly, adjust to the neew AA limiting scheme.
4731 (parm_ref_data_preserved_p): Likewise.
4732 (ipa_compute_jump_functions_for_edge): Adjust call to
4734 (ipa_analyze_call_uses): Likewise.
4735 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
4736 (ipa_analyze_node): Initialize aa_walk_budget.
4737 (ipcp_transform_function): Likewise.
4738 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
4739 to get_dynamic_type.
4741 2019-01-19 Jakub Jelinek <jakub@redhat.com>
4743 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
4744 outside of #if CHECKING_P code.
4746 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
4748 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
4749 New function, split out from...
4750 (loop_versioning::analyze_stride): ...here.
4751 (loop_versioning::find_per_loop_multiplication): Use gassign.
4752 (loop_versioning::analyze_term_using_scevs): Return a success code.
4753 (loop_versioning::analyze_arbitrary_term): New function.
4754 (loop_versioning::analyze_address_fragment): Use
4755 analyze_arbitrary_term if all else fails.
4757 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
4760 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
4763 2019-01-18 Richard Biener <rguenther@suse.de>
4765 PR tree-optimization/88903
4766 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
4767 scalar stmts a SLP shift amount is composed of when detecting
4770 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
4773 * config/arm/arm-cpus.in (mp): New feature.
4775 (fgroup ARMv7ve): Add mp and sec features.
4776 (arch armv7-a): Add options to allow mp and sec extensions.
4777 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
4778 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
4779 extenstions to the base architecture.
4780 (cpu cortex-a8): Add sec extension to the base architecture.
4781 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
4782 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
4783 variants down to the base v7-a varaint.
4784 * config/arm/t-multilib (v7_a_arch_variants): New variable.
4785 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
4786 of permitted extensions for -march=armv7-a and for
4787 -mcpu=generic-armv7-a.
4789 2019-01-18 Martin Liska <mliska@suse.cz>
4791 * params.def: Fix comment.
4792 * tree-profile.c (gimple_init_gcov_profiler): Bump function
4794 (gimple_gen_ic_func_profiler): Likewise.
4796 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4798 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
4799 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
4800 and put in error checks for stack protector guard options.
4801 (aarch64_stack_protect_guard): New.
4802 (TARGET_STACK_PROTECT_GUARD): Define.
4803 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
4804 (reg_stack_protect_address<mode>): New.
4805 (stack_protect_set): Adjust for SSP_GLOBAL.
4806 (stack_protect_test): Likewise.
4807 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
4808 (-mstack-protector-guard): Likewise.
4809 (-mstack-protector-guard-offset): Likewise.
4811 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4813 PR tree-optimization/86214
4814 * tree-inline.h (struct copy_body_data): Add
4815 add_clobbers_to_eh_landing_pads member.
4816 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
4817 (copy_edges_for_bb): Call it if EH edge destination is <
4818 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
4819 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
4820 if flag_stack_reuse != SR_NONE and clear it afterwards.
4822 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
4825 * doc/install.texi (with-multilib-list): Document for aarch64.
4827 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4830 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
4831 (("..."))) with ("...").
4833 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
4835 * doc/extend.texi (Built-in Functions for Memory Model Aware
4836 Atomic Operations): Document atomic fetch and nand.
4838 2019-01-18 Martin Liska <mliska@suse.cz>
4839 Richard Biener <rguenther@suse.de>
4842 * cgraph.h (create_version_clone_with_body): Add new argument
4844 * cgraphclones.c (cgraph_node::create_version_clone): Add
4845 DECL_ATTRIBUTES to a newly created decl. And call
4846 valid_attribute_p so that proper cl_target_optimization_node
4847 is set for the newly created declaration.
4848 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
4850 (expand_target_clones): Do not call valid_attribute_p, it must
4852 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
4855 2019-01-17 Jakub Jelinek <jakub@redhat.com>
4858 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
4859 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
4860 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
4862 2019-01-17 Martin Sebor <msebor@redhat.com>
4865 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
4866 Handle anti-ranges the same as no range at all.
4868 2018-01-17 Steve Ellcey <sellcey@cavium.com>
4870 * config/aarch64/aarch64.c (cgraph.h): New include.
4871 (intl.h): New include.
4872 (supported_simd_type): New function.
4873 (currently_supported_simd_type): Ditto.
4874 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
4875 (aarch64_simd_clone_adjust): Ditto.
4876 (aarch64_simd_clone_usable): Ditto.
4877 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
4878 (TARGET_SIMD_CLONE_ADJUST): Ditto.
4879 (TARGET_SIMD_CLONE_USABLE): Ditto.
4880 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
4881 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
4884 2019-01-17 Martin Sebor <msebor@redhat.com>
4886 PR tree-optimization/88800
4887 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
4888 NO_WARNING bit here. Avoid folding out-of-bounds calls.
4889 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
4890 redundant argument. Add new argument and issue diagnostics under
4891 its control. Detect out-of-bounds access even with warnings
4893 (check_bounds_or_overlap): Change return type. Add argument.
4894 (wrestrict_dom_walker::check_call): Adjust.
4895 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
4896 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
4897 check_bounds_or_overlap's return value.
4898 (handle_builtin_stxncpy): Same.
4899 (handle_builtin_strcat): Same.
4901 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4902 Kwok Cheung Yeung <kcy@codesourcery.com>
4903 Julian Brown <julian@codesourcery.com>
4904 Tom de Vries <tom@codesourcery.com>
4906 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
4908 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4910 * doc/sourcebuild.texi: Document dg-require-effective-target
4911 llvm_binutils and offload_gcn.
4913 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4914 Kwok Cheung Yeung <kcy@codesourcery.com>
4915 Julian Brown <julian@codesourcery.com>
4916 Tom de Vries <tom@codesourcery.com>
4918 * doc/sourcebuild.texi: Document dg-required-effective-target
4921 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4922 Kwok Cheung Yeung <kcy@codesourcery.com>
4923 Julian Brown <julian@codesourcery.com>
4924 Tom de Vries <tom@codesourcery.com>
4925 Jan Hubicka <hubicka@ucw.cz>
4926 Martin Jambor <mjambor@suse.cz>
4928 * config.gcc: Add amdgcn*-*-amdhsa configuration.
4929 * configure.ac: Check for dlopen.
4930 * configure: Regenerate.
4932 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4933 Kwok Cheung Yeung <kcy@codesourcery.com>
4934 Julian Brown <julian@codesourcery.com>
4935 Tom de Vries <tom@codesourcery.com>
4936 Jan Hubicka <hubicka@ucw.cz>
4937 Martin Jambor <mjambor@suse.cz>
4939 * common/config/gcn/gcn-common.c: New file.
4940 * config/gcn/driver-gcn.c: New file.
4941 * config/gcn/gcn-builtins.def: New file.
4942 * config/gcn/gcn-hsa.h: New file.
4943 * config/gcn/gcn-modes.def: New file.
4944 * config/gcn/gcn-opts.h: New file.
4945 * config/gcn/gcn-passes.def: New file.
4946 * config/gcn/gcn-protos.h: New file.
4947 * config/gcn/gcn-run.c: New file.
4948 * config/gcn/gcn-tree.c: New file.
4949 * config/gcn/gcn.c: New file.
4950 * config/gcn/gcn.h: New file.
4951 * config/gcn/gcn.opt: New file.
4952 * config/gcn/t-gcn-hsa: New file.
4954 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4955 Kwok Cheung Yeung <kcy@codesourcery.com>
4956 Julian Brown <julian@codesourcery.com>
4957 Tom de Vries <tom@codesourcery.com>
4958 Jan Hubicka <hubicka@ucw.cz>
4959 Martin Jambor <mjambor@suse.cz>
4961 * config/gcn/constraints.md: New file.
4962 * config/gcn/gcn-valu.md: New file.
4963 * config/gcn/gcn.md: New file.
4964 * config/gcn/predicates.md: New file.
4966 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
4968 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
4969 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
4970 (stmt_uses_0_or_null_in_undefined_way): Likewise.
4971 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
4973 2019-01-17 Tamar Christina <tamar.christina@arm.com>
4976 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
4977 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
4978 it and document registers.
4980 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4982 * config/aarch64/aarch64.c (ares_tunings): Define.
4983 * config/aarch64/aarch64-cores.def (ares): Use the above.
4985 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
4989 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
4991 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
4992 (_mm512_fixupimm_round_pd): Update parameters and builtin.
4993 (_mm512_maskz_fixupimm_round_pd): Ditto.
4994 (_mm512_fixupimm_round_ps): Ditto.
4995 (_mm512_maskz_fixupimm_round_ps): Ditto.
4996 (_mm_fixupimm_round_sd): Ditto.
4997 (_mm_maskz_fixupimm_round_sd): Ditto.
4998 (_mm_fixupimm_round_ss): Ditto.
4999 (_mm_maskz_fixupimm_round_ss): Ditto.
5000 (_mm512_fixupimm_pd): Ditto.
5001 (_mm512_maskz_fixupimm_pd): Ditto.
5002 (_mm512_fixupimm_ps): Ditto.
5003 (_mm512_maskz_fixupimm_ps): Ditto.
5004 (_mm_fixupimm_sd): Ditto.
5005 (_mm_maskz_fixupimm_sd): Ditto.
5006 (_mm_fixupimm_ss): Ditto.
5007 (_mm_maskz_fixupimm_ss): Ditto.
5008 (_mm512_mask_fixupimm_round_pd): Update builtin.
5009 (_mm512_mask_fixupimm_round_ps): Ditto.
5010 (_mm_mask_fixupimm_round_sd): Ditto.
5011 (_mm_mask_fixupimm_round_ss): Ditto.
5012 (_mm512_mask_fixupimm_pd): Ditto.
5013 (_mm512_mask_fixupimm_ps): Ditto.
5014 (_mm_mask_fixupimm_sd): Ditto.
5015 (_mm_mask_fixupimm_ss): Ditto.
5016 * config/i386/avx512vlintrin.h:
5017 (_mm256_fixupimm_pd): Update parameters and builtin.
5018 (_mm256_maskz_fixupimm_pd): Ditto.
5019 (_mm256_fixupimm_ps): Ditto.
5020 (_mm256_maskz_fixupimm_ps): Ditto.
5021 (_mm_fixupimm_pd): Ditto.
5022 (_mm_maskz_fixupimm_pd): Ditto.
5023 (_mm_fixupimm_ps): Ditto.
5024 (_mm_maskz_fixupimm_ps): Ditto.
5025 (_mm256_mask_fixupimm_pd): Update builtin.
5026 (_mm256_mask_fixupimm_ps): Ditto.
5027 (_mm_mask_fixupimm_pd): Ditto.
5028 (_mm_mask_fixupimm_ps): Ditto.
5029 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
5030 * config/i386/i386-builtin.def: Update builtin definitions.
5031 * config/i386/i386.c: Handle new builtin types and remove useless ones.
5032 * config/i386/sse.md: Update VFIXUPIMM* patterns.
5033 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
5034 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
5035 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
5036 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
5037 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
5038 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
5039 * config/i386/subst.md:
5040 (round_saeonly_sd_mask_operand4): Add new subst_attr.
5041 (round_saeonly_sd_mask_op4): Ditto.
5042 (round_saeonly_expand_operand5): Ditto.
5043 (round_saeonly_expand): Update.
5045 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
5049 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
5051 * config/i386/sse.md: Combine VFIXUPIMM* patterns
5052 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
5053 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
5054 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
5055 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
5056 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
5057 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
5059 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
5063 2018-12-15 Jakub Jelinek <jakub@redhat.com>
5066 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
5067 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
5068 instead of UNSPEC_FIXUPIMM.
5070 2019-01-17 Richard Biener <rguenther@suse.de>
5073 * dwarf2out.c (want_pubnames): Never generate pubnames sections
5074 and friends for the LTO part of debug info.
5076 2019-01-17 Jakub Jelinek <jakub@redhat.com>
5078 PR tree-optimization/86214
5079 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
5082 PR rtl-optimization/88870
5083 * dce.c (deletable_insn_p): Never delete const/pure calls that can
5084 throw if we can't alter the cfg or delete dead exceptions.
5085 (mark_insn): Don't call find_call_stack_args for such calls.
5087 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
5089 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
5090 prototypes for vec_st.
5091 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
5092 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
5093 mainly on signed/unsigned long long and double.
5095 2019-01-16 David Malcolm <dmalcolm@redhat.com>
5098 * combine.c (delete_noop_moves): Convert to "bool" return,
5099 returning true if any edges are eliminated.
5100 (combine_instructions): Also return true if delete_noop_moves
5103 2019-01-16 Tamar Christina <tamar.christina@arm.com>
5105 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
5106 correct max nunits for endian swap.
5107 (aarch64_expand_fcmla_builtin): Correct subreg code.
5108 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
5109 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
5112 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
5114 * config/alpha/alpha.c (alpha_gimplify_va_arg):
5115 Handle split indirect COMPLEX_TYPE arguments.
5117 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
5120 * config/aarch64/aarch64-modes.def: Add comment about how the carry
5121 bit is set by add and compare.
5122 (CC_ADC): New CC_MODE.
5123 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
5124 to cache the code and mode of X. Adjust the shape of a CC_Cmode
5125 comparison. Add detection for CC_ADCmode.
5126 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
5128 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
5129 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
5130 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
5131 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
5132 to eliminate the need for zero-extending the operands.
5133 (add<mode>3_compareC_imm): Delete. Merge into ...
5134 (add<mode>3_compareC): ... this. Restructure the comparison to
5135 eliminate the need for zero-extending the operands.
5136 (add<mode>3_carryin): Use LTU for the overflow detection.
5137 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
5138 Reexpress comparison for overflow.
5139 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
5140 (add<mode>3_carryinC): Likewise.
5141 (add<mode>3_carryinV): Use LTU for carry between partials.
5142 * config/aarch64/predicates.md (aarch64_carry_operation): Update
5143 handling of CC_Cmode and add CC_ADCmode.
5144 (aarch64_borrow_operation): Likewise.
5146 2019-01-16 Tamar Christina <tamar.christina@arm.com>
5148 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
5149 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
5150 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
5151 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
5153 2019-01-16 Martin Liska <mliska@suse.cz>
5155 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
5157 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
5159 * gcc.c (add_sysrooted_hdrs_prefix): New function.
5160 (path_prefix_reset): Move up in the source file.
5161 (find_fortran_preinclude_file): Make complex search for the
5162 fortran header files.
5164 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
5166 * godump.c (go_output_typedef): When outputting a typedef, refer
5167 to the underlying type by its name and not its structure.
5169 2019-01-15 David Malcolm <dmalcolm@redhat.com>
5172 * tree.c (build_function_type): Assert that arg_types is not
5175 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
5178 * doc/extend.texi: Document that listing the stack pointer in the
5179 clobber list of an asm is a deprecated feature.
5180 * common.opt (Wdeprecated): Moved from c-family/c.opt.
5181 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
5182 warning instead of an error for clobbers of the stack pointer.
5183 Add a note explaining why.
5185 2019-01-15 Richard Biener <rguenther@suse.de>
5188 * dwarf2out.c (gen_member_die): Do not generate inheritance
5191 2019-01-15 Richard Biener <rguenther@suse.de>
5193 PR tree-optimization/88855
5194 * tree-if-conv.c (combine_blocks): Collect
5195 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
5197 2019-01-15 Tom de Vries <tdevries@suse.de>
5200 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
5201 lhs == NULL_TREE for gang-level reduction.
5203 2019-01-15 Richard Biener <rguenther@suse.de>
5204 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5207 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
5208 return true if SSA_NAME is already marked in visited bitmap.
5209 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
5211 2019-01-15 Jakub Jelinek <jakub@redhat.com>
5213 PR tree-optimization/88775
5214 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
5215 equal == 0 equality pointer comparisons some more if compared in
5216 integral types and either one points to an automatic var and the
5217 other to a global, or we can prove at least one points to the middle
5218 or both point to start or both point to end.
5220 2019-01-14 Andi Kleen <ak@linux.intel.com>
5222 * Makefile.in: Lower autofdo sampling rate by 10x.
5223 * Makefile.tpl: Dito.
5225 2019-01-14 Tom Honermann <tom@honermann.net>
5227 * defaults.h: Define CHAR8_TYPE.
5229 2019-01-14 Martin Sebor <msebor@redhat.com>
5232 * doc/extend.texi (Darwin Format Checks): Clarify.
5234 2019-01-14 Richard Biener <rguenther@suse.de>
5236 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
5237 whether we are in (simplify ...) or (match ...) context.
5239 2019-01-14 Jakub Jelinek <jakub@redhat.com>
5241 PR rtl-optimization/88796
5242 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
5243 * cfgexpand.c (stack_protect_prologue): Initialize
5244 crtl->stack_protect_guard_decl.
5245 * function.c (stack_protect_epilogue): Use it instead of calling
5246 targetm.stack_protect_guard again.
5247 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
5248 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
5249 crtl->stack_protect_guard_decl.
5250 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
5251 on the returned MEM_EXPR.
5253 2019-01-12 Tom de Vries <tdevries@suse.de>
5255 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
5256 vector length using -fopenacc-dim.
5258 2019-01-12 Tom de Vries <tdevries@suse.de>
5260 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
5261 lengths into account.
5263 2019-01-12 Svante Signell <svante.signell@gmail.com>
5265 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
5266 (TARGET_CAN_SPLIT_STACK): Define.
5267 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5269 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5271 * params.def (inline-unit-growth): Set to 40.
5273 2019-01-12 Jakub Jelinek <jakub@redhat.com>
5275 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
5277 2019-01-12 Tom de Vries <tdevries@suse.de>
5279 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
5280 region calling vector-partitionable routine, set default_vector_length
5283 2019-01-12 Tom de Vries <tdevries@suse.de>
5285 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
5286 variable default_vector_length.
5288 2019-01-12 Tom de Vries <tdevries@suse.de>
5291 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
5292 from oacc_default_dims, as oacc_validate_dims would do it, and apply
5295 2019-01-12 Tom de Vries <tdevries@suse.de>
5297 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
5298 (nvptx_goacc_validate_dims): Add used parameter.
5299 * doc/tm.texi: Regenerate.
5300 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
5301 argument to call to targetm.goacc.validate_dims.
5302 (default_goacc_validate_dims): Add used
5304 * target.def (validate_dims): Add used parameter in DEFHOOK.
5305 * targhooks.h (default_goacc_validate_dims): Add used parameter.
5307 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5311 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
5313 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
5314 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
5315 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
5316 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
5318 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
5320 PR rtl-optimization/87305
5322 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
5323 for little endian pseudos used as paradoxical subreg.
5325 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5327 PR tree-optimization/88693
5328 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
5329 for STRING_CSTs that don't contain any NUL characters in the first
5330 TREE_STRING_LENGTH bytes.
5332 2019-01-11 Alan Modra <amodra@gmail.com>
5336 * genattrtab.c (min_fn): Don't translate values.
5337 (min_attr_value): Return INT_MAX when the value can't be calculated.
5338 Return minimum among any values that can be calculated.
5339 (max_attr_value): Adjust.
5341 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5343 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
5345 2019-01-11 Steve Ellcey <sellcey@marvell.com>
5347 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
5348 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
5349 (aarch64_return_call_with_max_clobbers): New function.
5350 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
5351 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
5353 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
5354 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
5355 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
5356 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
5357 * cselib.c (cselib_process_insn): Add argument to
5358 targetm.hard_regno_call_part_clobbered call.
5359 * ira-conflicts.c (ira_build_conflicts): Ditto.
5360 * ira-costs.c (ira_tune_allocno_costs): Ditto.
5361 * lra-constraints.c (inherit_reload_reg): Ditto.
5362 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
5363 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
5364 argument. Call targetm.return_call_with_max_clobbers.
5365 Add argument to targetm.hard_regno_call_part_clobbered call.
5366 (calls_have_same_clobbers_p): New function.
5367 (process_bb_lives): Add call_insn and last_call_insn variables.
5368 Pass call_insn to check_pseudos_live_through_calls.
5369 Modify if stmt to check targetm.return_call_with_max_clobbers.
5370 Update setting of flush variable.
5371 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
5373 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
5374 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
5375 targetm.hard_regno_call_part_clobbered call.
5376 * reginfo.c (choose_hard_reg_mode): Ditto.
5377 * regrename.c (check_new_reg_p): Ditto.
5378 * reload.c (find_equiv_reg): Ditto.
5379 * reload1.c (emit_reload_insns): Ditto.
5380 * sched-deps.c (deps_analyze_insn): Ditto.
5381 * sel-sched.c (init_regs_for_mode): Ditto.
5382 (mark_unavailable_hard_regs): Ditto.
5383 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
5384 * target.def (hard_regno_call_part_clobbered): Add insn argument.
5385 (return_call_with_max_clobbers): New target function.
5386 * doc/tm.texi: Regenerate.
5387 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
5388 * hooks.c (hook_bool_uint_mode_false): Change to
5389 hook_bool_insn_uint_mode_false.
5390 * hooks.h (hook_bool_uint_mode_false): Ditto.
5392 2019-01-11 Steve Ellcey <sellcey@marvell.com>
5394 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
5395 (aarch64_remove_extra_call_preserved_regs): New function.
5396 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
5397 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
5398 * doc/tm.texi: Regenerate.
5399 * final.c (get_call_reg_set_usage): Call new hook.
5400 * target.def (remove_extra_call_preserved_regs): New hook.
5401 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
5402 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
5404 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5407 * passes.c (finish_optimization_passes): Call print_combine_total_stats
5408 inside of pass_combine_1 dump rather than pass_profile_1.
5410 2019-01-11 Tom de Vries <tdevries@suse.de>
5412 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
5413 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
5414 (PTX_NUM_PER_WORKER_BARRIERS): Define.
5415 (nvptx_apply_dim_limits): Prevent vector_length 64 and
5418 2019-01-11 Tom de Vries <tdevries@suse.de>
5420 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
5422 2019-01-11 Jan Beulich <jbeulich@suse.com>
5424 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
5425 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
5426 sse2_cvtsi2sd): Add {l}.
5427 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
5430 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5433 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
5435 (*float<floatunssuffix>v2div2sf2): New define_insn.
5436 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
5437 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
5438 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
5439 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
5440 match_operands with "const0_operand" "C".
5442 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5444 * config/aarch64/aarch64-builtins.c
5445 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
5446 (aarch64_init_simd_builtins): ...Here
5448 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
5450 PR rtl-optimization/87305
5452 (setup_live_pseudos_and_spill_after_risky_transforms): Check
5453 allocation for big endian pseudos used as paradoxical subregs and
5454 spill them if it is wrong.
5455 * lra-constraints.c (lra_constraints): Add a comment.
5457 2019-01-10 Richard Biener <rguenther@suse.de>
5459 PR tree-optimization/88792
5460 * tree-ssa-pre.c (get_representative_for): Do not return a
5463 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5467 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
5468 (assign_parm_setup_block): Do the argument slot realignment here
5471 2019-01-10 Stefan Agner <stefan@agner.ch>
5474 * config/arm/arm.c (arm_option_override_internal): Force
5475 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
5477 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5480 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
5483 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5485 * config/arm/arm-builtins.c
5486 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
5487 (MAC_LANE_PAIR_QUALIFIERS): New.
5488 (arm_expand_builtin_args): Use it.
5489 (arm_expand_builtin_1): Likewise.
5490 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
5491 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
5492 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
5493 * config/arm/arm_neon.h:
5494 (vcadd_rot90_f16): New.
5495 (vcaddq_rot90_f16): New.
5496 (vcadd_rot270_f16): New.
5497 (vcaddq_rot270_f16): New.
5500 (vcmla_lane_f16): New.
5501 (vcmla_laneq_f16): New.
5502 (vcmlaq_lane_f16): New.
5503 (vcmlaq_laneq_f16): New.
5504 (vcmla_rot90_f16): New.
5505 (vcmlaq_rot90_f16): New.
5506 (vcmla_rot90_lane_f16): New.
5507 (vcmla_rot90_laneq_f16): New.
5508 (vcmlaq_rot90_lane_f16): New.
5509 (vcmlaq_rot90_laneq_f16): New.
5510 (vcmla_rot180_f16): New.
5511 (vcmlaq_rot180_f16): New.
5512 (vcmla_rot180_lane_f16): New.
5513 (vcmla_rot180_laneq_f16): New.
5514 (vcmlaq_rot180_lane_f16): New.
5515 (vcmlaq_rot180_laneq_f16): New.
5516 (vcmla_rot270_f16): New.
5517 (vcmlaq_rot270_f16): New.
5518 (vcmla_rot270_lane_f16): New.
5519 (vcmla_rot270_laneq_f16): New.
5520 (vcmlaq_rot270_lane_f16): New.
5521 (vcmlaq_rot270_laneq_f16): New.
5522 (vcadd_rot90_f32): New.
5523 (vcaddq_rot90_f32): New.
5524 (vcadd_rot270_f32): New.
5525 (vcaddq_rot270_f32): New.
5528 (vcmla_lane_f32): New.
5529 (vcmla_laneq_f32): New.
5530 (vcmlaq_lane_f32): New.
5531 (vcmlaq_laneq_f32): New.
5532 (vcmla_rot90_f32): New.
5533 (vcmlaq_rot90_f32): New.
5534 (vcmla_rot90_lane_f32): New.
5535 (vcmla_rot90_laneq_f32): New.
5536 (vcmlaq_rot90_lane_f32): New.
5537 (vcmlaq_rot90_laneq_f32): New.
5538 (vcmla_rot180_f32): New.
5539 (vcmlaq_rot180_f32): New.
5540 (vcmla_rot180_lane_f32): New.
5541 (vcmla_rot180_laneq_f32): New.
5542 (vcmlaq_rot180_lane_f32): New.
5543 (vcmlaq_rot180_laneq_f32): New.
5544 (vcmla_rot270_f32): New.
5545 (vcmlaq_rot270_f32): New.
5546 (vcmla_rot270_lane_f32): New.
5547 (vcmla_rot270_laneq_f32): New.
5548 (vcmlaq_rot270_lane_f32): New.
5549 (vcmlaq_rot270_laneq_f32): New.
5550 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
5551 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
5552 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
5553 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
5554 vcmlaq_lane270): New.
5555 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
5556 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
5557 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
5558 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
5559 (arm_option_reconfigure_globals): Use them.
5560 * config/arm/iterators.md (VDF, VQ_HSF): New.
5561 (VCADD, VCMLA): New.
5562 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
5563 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
5565 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
5566 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
5568 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5570 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
5571 Add qualifier_lane_pair_index.
5572 (emit-rtl.h): Include.
5573 (TYPES_QUADOP_LANE_PAIR): New.
5574 (aarch64_simd_expand_args): Use it.
5575 (aarch64_simd_expand_builtin): Likewise.
5576 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
5578 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
5579 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
5580 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
5581 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
5582 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
5583 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
5584 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
5585 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
5586 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
5587 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
5588 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
5589 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
5590 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
5591 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
5592 Add __ARM_FEATURE_COMPLEX.
5593 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
5594 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
5595 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
5596 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
5597 fcmlaq_lane270): New.
5598 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
5599 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
5600 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
5601 * config/aarch64/arm_neon.h:
5602 (vcadd_rot90_f16): New.
5603 (vcaddq_rot90_f16): New.
5604 (vcadd_rot270_f16): New.
5605 (vcaddq_rot270_f16): New.
5608 (vcmla_lane_f16): New.
5609 (vcmla_laneq_f16): New.
5610 (vcmlaq_lane_f16): New.
5611 (vcmlaq_rot90_lane_f16): New.
5612 (vcmla_rot90_laneq_f16): New.
5613 (vcmla_rot90_lane_f16): New.
5614 (vcmlaq_rot90_f16): New.
5615 (vcmla_rot90_f16): New.
5616 (vcmlaq_laneq_f16): New.
5617 (vcmla_rot180_laneq_f16): New.
5618 (vcmla_rot180_lane_f16): New.
5619 (vcmlaq_rot180_f16): New.
5620 (vcmla_rot180_f16): New.
5621 (vcmlaq_rot90_laneq_f16): New.
5622 (vcmlaq_rot270_laneq_f16): New.
5623 (vcmlaq_rot270_lane_f16): New.
5624 (vcmla_rot270_laneq_f16): New.
5625 (vcmlaq_rot270_f16): New.
5626 (vcmla_rot270_f16): New.
5627 (vcmlaq_rot180_laneq_f16): New.
5628 (vcmlaq_rot180_lane_f16): New.
5629 (vcmla_rot270_lane_f16): New.
5630 (vcadd_rot90_f32): New.
5631 (vcaddq_rot90_f32): New.
5632 (vcaddq_rot90_f64): New.
5633 (vcadd_rot270_f32): New.
5634 (vcaddq_rot270_f32): New.
5635 (vcaddq_rot270_f64): New.
5639 (vcmla_lane_f32): New.
5640 (vcmla_laneq_f32): New.
5641 (vcmlaq_lane_f32): New.
5642 (vcmlaq_laneq_f32): New.
5643 (vcmla_rot90_f32): New.
5644 (vcmlaq_rot90_f32): New.
5645 (vcmlaq_rot90_f64): New.
5646 (vcmla_rot90_lane_f32): New.
5647 (vcmla_rot90_laneq_f32): New.
5648 (vcmlaq_rot90_lane_f32): New.
5649 (vcmlaq_rot90_laneq_f32): New.
5650 (vcmla_rot180_f32): New.
5651 (vcmlaq_rot180_f32): New.
5652 (vcmlaq_rot180_f64): New.
5653 (vcmla_rot180_lane_f32): New.
5654 (vcmla_rot180_laneq_f32): New.
5655 (vcmlaq_rot180_lane_f32): New.
5656 (vcmlaq_rot180_laneq_f32): New.
5657 (vcmla_rot270_f32): New.
5658 (vcmlaq_rot270_f32): New.
5659 (vcmlaq_rot270_f64): New.
5660 (vcmla_rot270_lane_f32): New.
5661 (vcmla_rot270_laneq_f32): New.
5662 (vcmlaq_rot270_lane_f32): New.
5663 (vcmlaq_rot270_laneq_f32): New.
5664 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
5665 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
5666 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
5667 (FCADD, FCMLA): New.
5669 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
5671 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5675 * config/pa/pa.c: Change "can not" to "cannot".
5676 * gimple-ssa-evrp-analyze.c: Likewise.
5677 * ipa-icf.c: Likewise.
5678 * ipa-polymorphic-call.c: Likewise.
5679 * ipa-pure-const.c: Likewise.
5680 * lra-constraints.c: Likewise.
5681 * lra-remat.c: Likewise.
5682 * reload1.c: Likewise.
5683 * reorg.c: Likewise.
5684 * tree-ssa-uninit.c: Likewise.
5686 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5690 * Makefile.in: Mechanically replace "can not" with "cannot".
5691 * alias.c: Likewise.
5692 * builtins.c: Likewise.
5693 * calls.c: Likewise.
5694 * cgraph.c: Likewise.
5695 * cgraph.h: Likewise.
5696 * cgraphclones.c: Likewise.
5697 * cgraphunit.c: Likewise.
5698 * combine-stack-adj.c: Likewise.
5699 * combine.c: Likewise.
5700 * common/config/i386/i386-common.c: Likewise.
5701 * config/aarch64/aarch64.c: Likewise.
5702 * config/alpha/sync.md: Likewise.
5703 * config/arc/arc.c: Likewise.
5704 * config/arc/predicates.md: Likewise.
5705 * config/arm/arm-c.c: Likewise.
5706 * config/arm/arm.c: Likewise.
5707 * config/arm/arm.h: Likewise.
5708 * config/arm/arm.md: Likewise.
5709 * config/arm/cortex-r4f.md: Likewise.
5710 * config/csky/csky.c: Likewise.
5711 * config/csky/csky.h: Likewise.
5712 * config/darwin-f.c: Likewise.
5713 * config/epiphany/epiphany.md: Likewise.
5714 * config/i386/i386.c: Likewise.
5715 * config/i386/sol2.h: Likewise.
5716 * config/m68k/m68k.c: Likewise.
5717 * config/mcore/mcore.h: Likewise.
5718 * config/microblaze/microblaze.md: Likewise.
5719 * config/mips/20kc.md: Likewise.
5720 * config/mips/sb1.md: Likewise.
5721 * config/nds32/nds32.c: Likewise.
5722 * config/nds32/predicates.md: Likewise.
5723 * config/pa/pa.c: Likewise.
5724 * config/rs6000/e300c2c3.md: Likewise.
5725 * config/rs6000/rs6000.c: Likewise.
5726 * config/s390/s390.h: Likewise.
5727 * config/sh/sh.c: Likewise.
5728 * config/sh/sh.md: Likewise.
5729 * config/spu/vmx2spu.h: Likewise.
5730 * cprop.c: Likewise.
5731 * dbxout.c: Likewise.
5732 * df-scan.c: Likewise.
5733 * doc/cfg.texi: Likewise.
5734 * doc/extend.texi: Likewise.
5735 * doc/fragments.texi: Likewise.
5736 * doc/gty.texi: Likewise.
5737 * doc/invoke.texi: Likewise.
5738 * doc/lto.texi: Likewise.
5739 * doc/md.texi: Likewise.
5740 * doc/objc.texi: Likewise.
5741 * doc/rtl.texi: Likewise.
5742 * doc/tm.texi: Likewise.
5744 * emit-rtl.c: Likewise.
5745 * emit-rtl.h: Likewise.
5746 * except.c: Likewise.
5747 * expmed.c: Likewise.
5749 * fold-const.c: Likewise.
5750 * genautomata.c: Likewise.
5751 * gimple-fold.c: Likewise.
5752 * hard-reg-set.h: Likewise.
5753 * ifcvt.c: Likewise.
5754 * ipa-comdats.c: Likewise.
5755 * ipa-cp.c: Likewise.
5756 * ipa-devirt.c: Likewise.
5757 * ipa-fnsummary.c: Likewise.
5758 * ipa-icf.c: Likewise.
5759 * ipa-inline-transform.c: Likewise.
5760 * ipa-inline.c: Likewise.
5761 * ipa-polymorphic-call.c: Likewise.
5762 * ipa-profile.c: Likewise.
5763 * ipa-prop.c: Likewise.
5764 * ipa-pure-const.c: Likewise.
5765 * ipa-reference.c: Likewise.
5766 * ipa-split.c: Likewise.
5767 * ipa-visibility.c: Likewise.
5769 * ira-build.c: Likewise.
5770 * ira-color.c: Likewise.
5771 * ira-conflicts.c: Likewise.
5772 * ira-costs.c: Likewise.
5773 * ira-int.h: Likewise.
5774 * ira-lives.c: Likewise.
5777 * loop-invariant.c: Likewise.
5778 * loop-unroll.c: Likewise.
5779 * lower-subreg.c: Likewise.
5780 * lra-assigns.c: Likewise.
5781 * lra-constraints.c: Likewise.
5782 * lra-eliminations.c: Likewise.
5783 * lra-lives.c: Likewise.
5784 * lra-remat.c: Likewise.
5785 * lra-spills.c: Likewise.
5787 * lto-cgraph.c: Likewise.
5788 * lto-streamer-out.c: Likewise.
5789 * postreload-gcse.c: Likewise.
5790 * predict.c: Likewise.
5791 * profile-count.h: Likewise.
5792 * profile.c: Likewise.
5793 * recog.c: Likewise.
5795 * reload.c: Likewise.
5796 * reload1.c: Likewise.
5797 * reorg.c: Likewise.
5798 * resource.c: Likewise.
5799 * rtl.def: Likewise.
5801 * rtlanal.c: Likewise.
5802 * sched-deps.c: Likewise.
5803 * sched-ebb.c: Likewise.
5804 * sched-rgn.c: Likewise.
5805 * sel-sched-ir.c: Likewise.
5806 * sel-sched.c: Likewise.
5807 * shrink-wrap.c: Likewise.
5808 * simplify-rtx.c: Likewise.
5809 * symtab.c: Likewise.
5810 * target.def: Likewise.
5811 * toplev.c: Likewise.
5812 * tree-call-cdce.c: Likewise.
5813 * tree-cfg.c: Likewise.
5814 * tree-complex.c: Likewise.
5815 * tree-core.h: Likewise.
5816 * tree-eh.c: Likewise.
5817 * tree-inline.c: Likewise.
5818 * tree-loop-distribution.c: Likewise.
5819 * tree-nrv.c: Likewise.
5820 * tree-profile.c: Likewise.
5821 * tree-sra.c: Likewise.
5822 * tree-ssa-alias.c: Likewise.
5823 * tree-ssa-dce.c: Likewise.
5824 * tree-ssa-dom.c: Likewise.
5825 * tree-ssa-forwprop.c: Likewise.
5826 * tree-ssa-loop-im.c: Likewise.
5827 * tree-ssa-loop-ivcanon.c: Likewise.
5828 * tree-ssa-loop-ivopts.c: Likewise.
5829 * tree-ssa-loop-niter.c: Likewise.
5830 * tree-ssa-phionlycprop.c: Likewise.
5831 * tree-ssa-phiopt.c: Likewise.
5832 * tree-ssa-propagate.c: Likewise.
5833 * tree-ssa-threadedge.c: Likewise.
5834 * tree-ssa-threadupdate.c: Likewise.
5835 * tree-ssa-uninit.c: Likewise.
5836 * tree-ssanames.c: Likewise.
5837 * tree-streamer-out.c: Likewise.
5840 * vr-values.c: Likewise.
5842 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
5844 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
5845 (ix86_split_xorsign): Ditto.
5846 * config/i386/i386.c (ix86_expand_xorsign): New function.
5847 (ix86_split_xorsign): Ditto.
5848 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
5849 (xorsign<mode>3): New expander.
5850 (xorsign<mode>3_1): New insn_and_split pattern.
5851 * config/i386/sse.md (xorsign<mode>3): New expander.
5853 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5855 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
5856 (*tablejump_sp64): Likewise.
5857 (*tablejump<P:mode>): ...this.
5858 (*call_address_sp32): Merge into...
5859 (*call_address_sp64): Likewise.
5860 (*call_address<P:mode>): ...this.
5861 (*call_symbolic_sp32): Merge into...
5862 (*call_symbolic_sp64): Likewise.
5863 (*call_symbolic<P:mode>): ...this.
5864 (call_value): Remove constraint and add predicate.
5865 (*call_value_address_sp32): Merge into...
5866 (*call_value_address_sp64): Likewise.
5867 (*call_value_address<P:mode>): ...this.
5868 (*call_value_symbolic_sp32): Merge into...
5869 (*call_value_symbolic_sp64): Likewise.
5870 (*call_value_symbolic<P:mode>): ...this.
5871 (*sibcall_symbolic_sp32): Merge into...
5872 (*sibcall_symbolic_sp64): Likewise.
5873 (*sibcall_symbolic<P:mode>): ...this.
5874 (sibcall_value): Remove constraint and add predicate.
5875 (*sibcall_value_symbolic_sp32): Merge into...
5876 (*sibcall_value_symbolic_sp64): Likewise.
5877 (*sibcall_value_symbolic<P:mode>): ...this.
5878 (window_save): Minor tweak.
5879 (*branch_sp32): Merge into...
5880 (*branch_sp64): Likewise.
5881 (*branch<P:mode>): ...this.
5883 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5884 James Clarke <jrtc27@jrtc27.com>
5887 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
5888 consistently in TLS address generation and adjust code to the renaming
5889 of patterns. Mark calls to __tls_get_addr as const.
5890 * config/sparc/sparc.md (tgd_hi22): Turn into...
5891 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
5892 (tgd_lo10): Turn into...
5893 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
5894 (tgd_add32): Merge into...
5895 (tgd_add64): Likewise.
5896 (tgd_add<P:mode>): ...this and use Pmode throughout.
5897 (tldm_hi22): Turn into...
5898 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
5899 (tldm_lo10): Turn into...
5900 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
5901 (tldm_add32): Merge into...
5902 (tldm_add64): Likewise.
5903 (tldm_add<P:mode>): ...this and use Pmode throughout.
5904 (tldm_call32): Merge into...
5905 (tldm_call64): Likewise.
5906 (tldm_call<P:mode>): ...this and use Pmode throughout.
5907 (tldo_hix22): Turn into...
5908 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
5909 (tldo_lox10): Turn into...
5910 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
5911 (tldo_add32): Merge into...
5912 (tldo_add64): Likewise.
5913 (tldo_add<P:mode>): ...this and use Pmode throughout.
5914 (tie_hi22): Turn into...
5915 (tie_hi22<P:mode>): ...this and use Pmode throughout.
5916 (tie_lo10): Turn into...
5917 (tie_lo10<P:mode>): ...this and use Pmode throughout.
5918 (tie_ld64): Use DImode throughout.
5919 (tie_add32): Merge into...
5920 (tie_add64): Likewise.
5921 (tie_add<P:mode>): ...this and use Pmode throughout.
5922 (tle_hix22_sp32): Merge into...
5923 (tle_hix22_sp64): Likewise.
5924 (tle_hix22<P:mode>): ...this and use Pmode throughout.
5925 (tle_lox22_sp32): Merge into...
5926 (tle_lox22_sp64): Likewise.
5927 (tle_lox22<P:mode>): ...this and use Pmode throughout.
5928 (*tldo_ldub_sp32): Merge into...
5929 (*tldo_ldub_sp64): Likewise.
5930 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
5931 (*tldo_ldub1_sp32): Merge into...
5932 (*tldo_ldub1_sp64): Likewise.
5933 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
5934 (*tldo_ldub2_sp32): Merge into...
5935 (*tldo_ldub2_sp64): Likewise.
5936 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
5937 (*tldo_ldsb1_sp32): Merge into...
5938 (*tldo_ldsb1_sp64): Likewise.
5939 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
5940 (*tldo_ldsb2_sp32): Merge into...
5941 (*tldo_ldsb2_sp64): Likewise.
5942 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
5943 (*tldo_ldub3_sp64): Use DImode throughout.
5944 (*tldo_ldsb3_sp64): Likewise.
5945 (*tldo_lduh_sp32): Merge into...
5946 (*tldo_lduh_sp64): Likewise.
5947 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
5948 (*tldo_lduh1_sp32): Merge into...
5949 (*tldo_lduh1_sp64): Likewise.
5950 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
5951 (*tldo_ldsh1_sp32): Merge into...
5952 (*tldo_ldsh1_sp64): Likewise.
5953 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
5954 (*tldo_lduh2_sp64): Use DImode throughout.
5955 (*tldo_ldsh2_sp64): Likewise.
5956 (*tldo_lduw_sp32): Merge into...
5957 (*tldo_lduw_sp64): Likewise.
5958 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
5959 (*tldo_lduw1_sp64): Use DImode throughout.
5960 (*tldo_ldsw1_sp64): Likewise.
5961 (*tldo_ldx_sp64): Likewise.
5962 (*tldo_stb_sp32): Merge into...
5963 (*tldo_stb_sp64): Likewise.
5964 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
5965 (*tldo_sth_sp32): Merge into...
5966 (*tldo_sth_sp64): Likewise.
5967 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
5968 (*tldo_stw_sp32): Merge into...
5969 (*tldo_stw_sp64): Likewise.
5970 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
5971 (*tldo_stx_sp64): Use DImode throughout.
5973 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5975 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
5976 check configure option to set BTI and Return Address Signing.
5977 * configure.ac: Add --enable-standard-branch-protection and
5978 --disable-standard-branch-protection.
5979 * configure: Regenerated.
5980 * doc/install.texi: Document the same.
5982 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5983 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5985 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
5986 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
5987 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
5989 * config/aarch64/aarch64-bti-insert.c: New file.
5990 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
5992 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
5994 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
5995 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
5996 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
5997 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
5999 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6001 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
6002 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
6003 Disable bti for -mbranch-protection=none.
6004 (aarch64_handle_standard_branch_protection): Enable bti for
6005 -mbranch-protection=standard.
6006 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
6007 -mbranch-protection.
6008 (aarch64_bti_enabled): Check if bti is enabled.
6009 * config/aarch64/aarch64.opt: Declare target variable.
6010 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
6012 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6014 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
6015 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
6016 (aarch64_expand_epilogue): Likewise.
6017 (aarch64_output_mi_thunk): Likewise
6018 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
6019 TAILCALL_ADDR_REGS to x16 and x17.
6020 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
6022 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6024 * config/aarch64/aarch64-option-extensions.def: Define
6025 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
6026 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
6027 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
6028 (AARCH64_FL_PREDRES): New.
6029 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
6030 AARCH64_FL_PREDRES by default.
6031 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
6033 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6035 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
6037 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
6038 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
6039 * doc/invoke.texi: Document ARMv8.5-A.
6041 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
6043 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
6044 (xorsign<mode>3): Likewise.
6046 2019-01-09 Jelinek <jakub@redhat.com>
6049 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
6050 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
6052 PR rtl-optimization/88331
6053 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
6054 not currently_expanding_to_rtl.
6056 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
6058 * doc/invoke.texi (-Os): Remove trailing spaces.
6059 (-finline-functions): Remove reference to -O2.
6061 2019-01-08 Jakub Jelinek <jakub@redhat.com>
6063 PR rtl-optimization/79593
6064 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
6066 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
6067 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
6069 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
6072 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
6076 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
6077 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
6079 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
6082 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
6083 ix86_avx_u128_mode_entry.
6085 2019-01-08 Martin Liska <mliska@suse.cz>
6087 PR tree-optimization/88753
6088 * tree-switch-conversion.c (switch_conversion::build_one_array):
6089 Come up with local variable constructor. Convert first to
6090 type of constructor values.
6092 2019-01-08 Richard Biener <rguenther@suse.de>
6094 PR tree-optimization/86554
6095 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
6096 rpo_avail): Move earlier.
6097 (visit_nary_op): When value-numbering to expressions
6098 with different overflow behavior make sure there's an
6099 available expression on the path.
6101 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
6103 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
6104 aarch64_parse_branch_protection,
6105 struct aarch64_branch_protect_type,
6106 aarch64_handle_no_branch_protection,
6107 aarch64_handle_standard_branch_protection,
6108 aarch64_validate_mbranch_protection,
6109 aarch64_handle_pac_ret_protection,
6110 aarch64_handle_attr_branch_protection,
6111 accepted_branch_protection_string,
6112 aarch64_pac_ret_subtypes,
6113 aarch64_branch_protect_types,
6114 aarch64_handle_pac_ret_leaf): Define.
6115 (aarch64_override_options_after_change_1, aarch64_override_options):
6116 Add check for accepted_branch_protection_string.
6117 (aarch64_option_save): Save accepted_branch_protection_string.
6118 (aarch64_option_restore): Save accepted_branch_protection_string.
6119 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
6120 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
6121 msign-return-address.
6122 * doc/invoke.texi: Add mbranch-protection.
6124 2019-01-08 Alan Modra <amodra@gmail.com>
6127 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
6128 Delete "unknownp" parameter. Adjust callers. Handle
6129 CONST_INT, PLUS, MINUS, and MULT.
6130 (attr_value_aligned): Renamed from or_attr_value.
6131 (min_attr_value): Return INT_MIN for unhandled rtl case..
6132 (min_fn): ..and translate to INT_MAX here.
6133 (write_length_unit_log): Modify to cope without "unknown".
6134 (write_attr_value): Handle IF_THEN_ELSE.
6136 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6138 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
6139 optimization for masked stores.
6141 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6144 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
6145 output vector directly to duplicate_and_interleave instead of
6146 going through a temporary. Postpone insertion of ctor_seq to
6147 the end of the loop.
6149 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
6152 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
6153 unsigned_p. Handle signed and unsigned overflow correction as
6155 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
6157 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
6159 (add<mode>3_compareV_imm): Make this callable for expanding.
6160 (subv<GPI:mode>4): Use register_operand for operand 1. Use
6161 aarch64_plus_operand for operand 2.
6162 (subv<GPI:mode>_insn): New insn pattern.
6163 (subv<GPI:mode>_imm): Likewise.
6164 (negv<GPI:mode>3): New expand pattern.
6165 (negv<GPI:mode>_insn): New insn pattern.
6166 (negv<GPI:mode>_cmp_only): Likewise.
6167 (cmpv<GPI:mode>_insn): Likewise.
6168 (subvti4): Use register_operand for operand 1. Update call to
6169 aarch64_expand_subvti.
6170 (usubvti4): Likewise.
6171 (negvti3): New expand pattern.
6172 (negdi_carryout): New insn pattern.
6173 (negvdi_carryinV): New insn pattern.
6174 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
6175 version the named version.
6176 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
6178 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
6180 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
6182 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
6183 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
6184 (sub<mode>3_carryinCV): Delete.
6185 (sub<GPI:mode>3_carryinV): New expand pattern.
6186 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
6188 2019-01-07 Richard Biener <rguenther@suse.de>
6190 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
6191 of tree_operand_hash.
6193 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6195 PR tree-optimization/88598
6196 * tree.h (single_nonzero_element): Declare.
6197 * tree.c (single_nonzero_element): New function.
6198 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
6199 if I is the only nonzero element of CST.
6201 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6203 PR tree-optimization/88598
6204 * tree.h (initializer_each_zero_or_onep): Declare.
6205 * tree.c (initializer_each_zero_or_onep): New function.
6206 (signed_or_unsigned_type_for): Handle float types too.
6207 (unsigned_type_for, signed_type_for): Update comments accordingly.
6208 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
6209 x & { 0 or -1, 0 or -1, ... }.
6211 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
6213 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
6214 with x86_64-pc-linux-gnu.
6216 2019-01-07 Tom de Vries <tdevries@suse.de>
6219 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
6221 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
6224 2019-01-07 Jakub Jelinek <jakub@redhat.com>
6226 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
6227 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
6228 TARGET_AVX512F as condition.
6231 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
6232 const_not_ok_for_debug_p target hook.
6233 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
6234 on UNSPEC and subexpressions thereof if all subexpressions of the
6235 UNSPEC are CONSTANT_P.
6237 PR tree-optimization/88676
6238 * tree-ssa-phiopt.c (two_value_replacement): New function.
6239 (tree_ssa_phiopt_worker): Call it.
6242 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
6243 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
6246 * tree-vect-generic.c: Include insn-config.h and recog.h.
6247 (expand_vector_piecewise): Add defaulted ret_type argument,
6248 if non-NULL, use that in preference to type for the result type.
6249 (expand_vector_parallel): Formatting fix.
6250 (do_vec_conversion, do_vec_narrowing_conversion,
6251 expand_vector_conversion): New functions.
6252 (expand_vector_operations_1): Call expand_vector_conversion
6253 for VEC_CONVERT ifn calls.
6254 * internal-fn.def (VEC_CONVERT): New internal function.
6255 * internal-fn.c (expand_VEC_CONVERT): New function.
6256 * fold-const-call.c (fold_const_vec_convert): New function.
6257 (fold_const_call): Use it for CFN_VEC_CONVERT.
6258 * doc/extend.texi (__builtin_convertvector): Document.
6260 2019-01-07 Tom de Vries <tdevries@suse.de>
6262 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
6263 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
6264 vector_red_partition, vector_red_sym): New global variables.
6265 (nvptx_option_override): Initialize vector_red_sym.
6266 (nvptx_declare_function_name): Restore red_partition register.
6267 (nvptx_file_end): Emit code to declare the vector reduction variables.
6268 (nvptx_output_red_partition): New function.
6269 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
6270 large vector reductions.
6271 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
6272 (nvptx_init_builtins): Add VECTOR_ADDR.
6273 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
6274 Handle nvptx_expand_shared_addr.
6275 (nvptx_get_shared_red_addr): Add vector argument and handle large
6277 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
6279 (nvptx_goacc_reduction_init): Likewise.
6280 (nvptx_goacc_reduction_fini): Likewise.
6281 (nvptx_goacc_reduction_teardown): Likewise.
6282 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
6283 init,fini,teardown}.
6284 (nvptx_init_axis_predicate): Initialize vector_red_partition.
6285 (nvptx_set_current_function): Init vector_red_partition.
6286 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
6287 (nvptx_red_partition): New insn.
6288 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
6290 2019-01-07 Tom de Vries <tdevries@suse.de>
6293 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
6296 2019-01-07 Tom de Vries <tdevries@suse.de>
6298 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
6299 (nvptx_option_override): Init oacc_bcast_partition.
6300 (nvptx_init_oacc_workers): New function.
6301 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
6302 (nvptx_needs_shared_bcast): New function.
6303 (nvptx_find_par): Generalize to enable vectors to use shared-memory
6305 (nvptx_shared_propagate): Initialize vector bcast partition and
6306 synchronization state.
6307 (nvptx_single): Generalize to enable vectors to use shared-memory
6309 (nvptx_process_pars): Likewise.
6310 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
6311 * config/nvptx/nvptx.h (struct machine_function): Add
6312 bcast_partition and sync_bar members.
6314 2019-01-07 Tom de Vries <tdevries@suse.de>
6316 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
6317 (nvptx_apply_dim_limits): New function.
6318 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
6321 2019-01-07 Tom de Vries <tdevries@suse.de>
6323 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
6324 as late as possible.
6326 2019-01-07 Tom de Vries <tdevries@suse.de>
6328 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
6329 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
6330 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
6331 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
6332 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
6334 2019-01-07 Tom de Vries <tdevries@suse.de>
6336 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
6338 2019-01-07 Tom de Vries <tdevries@suse.de>
6340 * omp-offload.c (oacc_get_min_dim): New function.
6341 * omp-offload.h (oacc_get_min_dim): Declare.
6343 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
6346 * config/i386/i386.c (function_value_ms_64): Return small sturct in
6347 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
6349 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6353 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
6355 * ipa-inline.c (edge_badness): Use inlined_time instead of
6356 inline_summaries->get.
6358 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6360 * opts.c (enable_fdo_optimizations): Enable
6361 version-loops-for-strides, loop-interchange, unrol-and-jam
6362 and tree-loop-distribution.
6363 * invoke.texi: Document newly enabled options.
6365 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6367 * doc/invoke.texi (max-inline-insns-small): New parameters.
6368 * ipa-inline.c (want_early_inline_function_p): simplify.
6369 (want_inline_small_function_p): Fix pasto from previous patch;
6370 use max-inline-insns-small bound.
6371 * params.def (max-inline-insns-small): New param.
6372 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
6373 variables correctly.
6375 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6377 * doc/invoke.texi: Document max-inline-insns-size,
6378 uninlined-function-insns, uninlined-function-time,
6379 uninlined-thunk-insns and uninlined-thunk-time.
6380 * params.def: Add max-inline-insns-size,
6381 uninlined-function-insns, uninlined-function-time,
6382 uninlined-thunk-insns and uninlined-thunk-time.
6383 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
6385 * ipa-inline.c (can_inline_edge_by_limits_p,
6386 want_inline_small_function_p): Use new parameters.
6388 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6390 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
6392 2019-01-05 Jakub Jelinek <jakub@redhat.com>
6396 * expr.c (expand_assignment): For calls returning VLA structures
6397 if to_rtx is not a MEM, force it into a stack temporary.
6400 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
6401 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
6402 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
6403 subexpressions of both operands.
6404 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
6405 subrtxes are CONSTANT_P.
6406 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
6409 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
6411 * params.def (hot-bb-count-ws-permille): Set to 990.
6413 2019-01-04 Martin Sebor <msebor@redhat.com>
6416 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
6419 2019-01-04 Martin Sebor <msebor@redhat.com>
6422 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
6424 2019-01-04 Jakub Jelinek <jakub@redhat.com>
6426 * gdbinit.in: Turn off pagination for the skip commands, restore
6427 it to previous state afterwards.
6429 2019-01-04 Jakub Jelinek <jakub@redhat.com>
6432 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
6433 of GET_MODE (opN) as modes of the libcall arguments.
6435 2019-01-04 Jan Beulich <jbeulich@suse.com>
6437 * config/i386/sse.md
6438 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
6439 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
6440 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
6441 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
6442 avx512f_vmcmp<mode>3<round_saeonly_name>,
6443 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
6444 avx512f_maskcmp<mode>3,
6445 <avx512>_cvt<ssemodesuffix>2mask<mode>,
6446 <avx512>_cvt<ssemodesuffix>2mask<mode>,
6447 *<avx512>_cvtmask2<ssemodesuffix><mode>,
6448 *<avx512>_cvtmask2<ssemodesuffix><mode>,
6449 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
6450 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
6451 <avx512>_gt<mode>3<mask_scalar_merge_name>,
6452 <avx512>_gt<mode>3<mask_scalar_merge_name>,
6453 <avx512>_testm<mode>3<mask_scalar_merge_name>,
6454 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
6455 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
6456 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
6457 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
6458 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
6459 avx512cd_maskb_vec_dup<mode>,
6460 avx512cd_maskw_vec_dup<mode>,
6461 avx512dq_fpclass<mode><mask_scalar_merge_name>,
6462 avx512dq_vmfpclass<mode>,
6463 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
6466 2019-01-03 Martin Sebor <msebor@redhat.com>
6468 PR tree-optimization/88659
6469 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
6471 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
6473 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
6474 unaligned vsx and avoid lxvd2x/stxvd2x.
6475 (gen_lvx_v4si_move): New function.
6477 2019-01-03 Tom de Vries <tdevries@suse.de>
6479 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
6480 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
6482 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
6484 2019-01-03 Tom de Vries <tdevries@suse.de>
6486 * config/nvptx/nvptx.c (struct offload_attrs): New.
6487 (populate_offload_attrs): New function. Factor mask extraction out of
6488 nvptx_reorg. Add extraction of dimensions.
6489 (nvptx_reorg): Use populate_offload_attrs.
6491 2019-01-03 Tom de Vries <tdevries@suse.de>
6493 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
6494 cases for oacc_min_dims_p and routine_p. Add asserts for
6495 oacc_default_dims_p and offload_region_p.
6497 2019-01-03 Tom de Vries <tdevries@suse.de>
6499 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
6501 (nvptx_goacc_validate_dims): ... here.
6503 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
6505 PR tree-optimization/85574
6506 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
6508 (struct ssa_equip_hash_traits): Declare.
6509 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
6511 2019-01-03 Jakub Jelinek <jakub@redhat.com>
6514 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
6515 change it to qualified_type.
6517 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
6519 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
6520 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
6522 2019-01-02 Martin Sebor <msebor@redhat.com>
6523 Jeff Law <law@redhat.com>
6525 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
6526 (get_range_strlen_tree): Update appropriately.
6528 * gimple-fold.h (get_range_strlen): Drop unused last argument.
6530 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
6531 rather than set_range_info.
6532 * tree-ssa-strlen.c (set_strlen_range): Extracted from
6533 maybe_set_strlen_range. Handle potentially boundary crossing
6534 cases more conservatively.
6535 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
6536 Call set_strlen_range.
6537 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
6540 * gimple-fold.c (get_range_strlen): Update prototype to no longer
6541 need the flexp argument.
6542 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
6543 from calls to get_range_strlen. Update comments. Just update
6544 VAL for an unterminated const char array and let the reset of the
6545 code handle it normally. No longer try to set *flexp. Adjust
6547 (get_range_strlen): Update for the new get_range_strlen API.
6548 (get_maxval_strlen): Similarly.
6549 (gimple_fold_builtin_strlen): Handle update meaning of return value
6550 from get_range_strlen.
6551 * gimple-ssa-sprintf.c (get_string_length): Update for the new
6552 get_range_strlen API.
6554 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
6557 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
6558 false at WPA time when body was removed.
6560 2019-01-02 Martin Liska <mliska@suse.cz>
6562 PR tree-optimization/88650
6563 * predict.c (set_even_probabilities): Calculate probability
6564 remainer only when really used.
6566 2019-01-02 Richard Biener <rguenther@suse.de>
6569 * tree-data-ref.c (analyze_subscript_affine_affine): Use
6570 widest_ints when mangling max_stmt_execution results.
6572 2019-01-02 Richard Biener <rguenther@suse.de>
6574 PR tree-optimization/88621
6575 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
6576 bitfields when canoncalizing.
6578 2019-01-02 Richard Biener <rguenther@suse.de>
6581 * config/i386/x86-tune-costs.h (intel_cost): Adjust
6582 cost of cheap SSE instruction.
6584 2019-01-02 Richard Biener <rguenther@suse.de>
6587 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
6588 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
6590 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
6591 set after UIDs before splitting them.
6593 2019-01-01 Martin Sebor <msebor@redhat.com>
6594 Jeff Law <law@redhat.com>
6596 * gimple-fold.c (get_range_strlen_tree): Record if the computed
6597 length is optimistic. If it is, then arrange to compute the
6598 conservative length as well.
6600 * gimple-fold.h (get_range_strlen): Update prototype.
6601 * builtins.c (check_access): Update call to get_range_strlen to use
6602 c_strlen_data pointer. Change various variable accesses to instead
6603 pull data from the c_strlen_data structure.
6604 (check_strncat_sizes, expand_builtin_strncat): Likewise.
6605 * calls.c (maybe_warn_nonstring_arg): Likewise.
6606 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
6607 minimum length if maximum lengh is unknown.
6608 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
6609 that used c_strlen, it's no longer needed. Restructure slightly.
6610 (format_string): Set unlikely range appropriately.
6611 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
6613 (get_range_strlen): Accept c_strlen_data pointer for external
6614 call sites as well. Pass through to call to internal get_range_strlen.
6615 Adjust minlen, maxlen and maxbound as needed.
6616 (get_maxval_strlen): Update comments.
6617 (gimple_fold_builtin_strlen): Update call to get_range_strlen
6618 to use c_strlen_data pointer. Change variable accesses to instead
6619 use c_strlen_data data members.
6621 * gimple-fold.c (get_range_strlen): Update prototype.
6622 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
6623 local variables. Use pdata to return information to caller.
6624 Update calls to get_range_strlen. Update pdata->maxbound.
6625 (get_range_strlen -- static version): Similarly.
6626 (get_range_strlen -- extern version): Update for internal
6627 get_range_strlen API change. Convert to external data format.
6628 (get_maxval_strlen): Similarly.
6630 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
6632 * coverage.c (get_coverage_counts): Use current_function_decl.
6633 * profile.c (read_thunk_profile): New function.
6634 (branch_prob): Add THUNK parameter.
6635 * tree-profile.c (tree_profiling): Handle thunks.
6636 * value-prof.c (init_node_map): Handle thunks.
6637 * value-prof.h (branch_prob): Upate prototype.
6638 (read_thunk_profile): Declare.
6640 2019-01-01 Jakub Jelinek <jakub@redhat.com>
6642 Update copyright years.
6644 * gcc.c (process_command): Update copyright notice dates.
6645 * gcov-dump.c (print_version): Ditto.
6646 * gcov.c (print_version): Ditto.
6647 * gcov-tool.c (print_version): Ditto.
6648 * gengtype.c (create_file): Ditto.
6649 * doc/cpp.texi: Bump @copying's copyright year.
6650 * doc/cppinternals.texi: Ditto.
6651 * doc/gcc.texi: Ditto.
6652 * doc/gccint.texi: Ditto.
6653 * doc/gcov.texi: Ditto.
6654 * doc/install.texi: Ditto.
6655 * doc/invoke.texi: Ditto.
6657 Copyright (C) 2019 Free Software Foundation, Inc.
6659 Copying and distribution of this file, with or without modification,
6660 are permitted in any medium without royalty provided the copyright
6661 notice and this notice are preserved.