1 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3 * auto-inc-dec.c (attempt_change): Set the alignment of the
4 temporary memory to that of the original.
6 2019-04-17 Joao Moreira <jmoreira@suse.de>
8 * targhooks.c (default_print_patchable_function_entry): Emit
9 __patchable_function_entries section with writable flags to allow
10 relocation resolution.
12 2019-04-17 Jonny Grant <jg@jguk.org>
14 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
16 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
22 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
24 * config/arc/arc.c (arc_init): Format diagnostic string.
25 (arc_override_options): Likewise.
26 (check_if_valid_regno_const): Likewise.
27 (arc_reorg): Likewise.
29 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
32 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
34 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
36 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
37 (*movdi_update1): Use Pmode.
38 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
39 (movdi_<mode>_update_stack): Rename to ...
40 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
42 (*movsi_update1): Use Pmode.
43 (*movsi_update2): Use Pmode.
44 (movsi_update): Rename to ...
45 (movsi_<mode>_update): ... this. Use Pmode.
46 (movsi_update_stack): Fix condition.
47 (*movhi_update1): Use Pmode. Fix argument to
48 avoiding_indexed_address_p.
49 (*movhi_update2): Ditto.
50 (*movhi_update3): Ditto.
51 (*movhi_update4): Ditto.
52 (*movqi_update1): Ditto.
53 (*movqi_update2): Ditto.
54 (*movqi_update3): Ditto.
55 (*movsf_update1, *movdf_update1): Merge, rename to...
56 (*mov<mode>_update1): This. Use Pmode. Fix argument to
57 avoiding_indexed_address_p. Add "size" attribute.
58 (*movsf_update2, *movdf_update2): Merge, rename to...
59 (*mov<mode>_update2): This. Ditto.
60 (*movsf_update3): Use Pmode. Fix argument to
61 avoiding_indexed_address_p.
62 (*movsf_update4): Ditto.
63 (allocate_stack): Simplify condition. Adjust pattern names.
65 2019-04-17 Jakub Jelinek <jakub@redhat.com>
68 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
69 whitespace at the start of target attribute string.
71 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
74 * config/rs6000/power9.md: Add store forwarding bypass.
76 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
79 * valtrack.c (dead_debug_insert_temp): Reset debug references
80 to the return value of a call being removed.
82 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
84 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
85 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
86 implement target hook.
87 (arc_memory_move_cost): New function.
88 (TARGET_REGISTER_MOVE_COST): Define.
89 (TARGET_MEMORY_MOVE_COST): Likewise.
90 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
91 (MEMORY_MOVE_COST): Likewise.
93 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
95 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
96 (sibcall_value_insn): Likewise.
97 * config/arc/constraints.md (Rs5): Remove.
99 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
101 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
102 for last two fake registers.
103 (arc_conditional_register_usage): Make sure fake frame and arg
104 pointer regs are in general regs class.
105 (FRAME_POINTER_MASK): Remove.
106 (RETURN_ADDR_MASK): Remove.
107 (arc_must_save_register): Use hard frame regnum.
108 (frame_restore_reg): Use hard_frame_pointer_rtx.
109 (arc_save_callee_saves): Likewise.
110 (arc_restore_callee_saves): Likewise.
111 (arc_save_callee_enter): Likewise.
112 (arc_restore_callee_leave): Likewise.
113 (arc_save_callee_milli): Likewise.
114 (arc_eh_return_address_location): Likewise.
115 (arc_check_multi): Use hard frame regnum.
116 (arc_can_eliminate): Likewise.
117 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
118 for register allocator.
119 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
120 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
121 (FRAME_POINTER_REGNUM): Change it to a fake register.
122 (HARD_FRAME_POINTER_REGNUM): Defined.
123 (ARG_POINTER_REGNUM): Change it to a new fake register.
124 (ELIMINABLE_REGS): Update.
125 (REGISTER_NAMES): Update names.
126 * config/arc/arc.md (LP_START): Remove.
128 (shift_si3_loop): Update pattern.
130 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
132 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
133 to avoid delay slot scheduling.
134 (arc_must_save_register): Don't save SP.
135 * config/arc/arc.md (stack_tie): Remove.
136 (UNSPEC_ARC_STKTIE): Likewise.
138 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
139 Shiva Chen <shiva0217@gmail.com>
141 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
142 code gen with large shift amount.
144 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
146 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
149 2019-04-16 Jakub Jelinek <jakub@redhat.com>
152 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
153 print -m64/-mx32/-m32 if it is true.
154 (ix86_debug_options, ix86_function_specific_print): Pass true as
155 ADD_ABI_P to ix86_target_string.
156 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
157 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
158 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
160 PR rtl-optimization/90082
161 * dce.c (can_delete_call): New function.
162 (deletable_insn_p, mark_insn): Use it.
164 PR tree-optimization/90090
165 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
167 (is_division_by_square): Likewise. Formatting fix.
169 2019-04-16 Richard Biener <rguenther@suse.de>
171 PR tree-optimization/56049
172 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
173 equality check if alias-set zero will prevail.
175 2019-04-15 Jeff Law <law@redhat.com>
177 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
178 size and alignment as unsigned.
180 2019-04-15 Richard Biener <rguenther@suse.de>
183 * tree-loop-distribution.c (destroy_loop): Preserve correct
186 2019-04-15 Richard Biener <rguenther@suse.de>
188 PR tree-optimization/90071
189 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
190 abnormal operands from def stmts.
192 2019-04-15 Richard Biener <rguenther@suse.de>
195 * tree.h (auto_var_p): Declare.
196 * tree.c (auto_var_p): New function, split out from ...
197 (auto_var_in_fn_p): ... here.
198 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
200 (new_var_info): Initialize it.
201 (set_uids_in_ptset): Also set the shadow variable uid if required.
202 (ipa_pta_execute): Postprocess points-to solutions assigning
203 shadow variable uids for locals that may reach their containing
204 function recursively.
205 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
206 assert but instead check whether the points-to solution is
209 2019-04-15 Martin Jambor <mjambor@suse.cz>
212 * cgraph.c (clone_of_p): Loop over clone chain for each step in
215 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
217 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
219 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
220 Kito Cheng <kito.cheng@gmail.com>
221 Shiva Chen <shiva0217@gmail.com>
223 * config/nds32/nds32-md-auxiliary.c
224 (nds32_legitimize_pic_address): Use new PIC pattern.
225 (nds32_legitimize_tls_address): Use new TLS pattern.
226 (nds32_output_symrel): New.
227 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
228 (nds32_alloc_relax_group_id): Ditto.
229 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
230 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
232 (nds32_group_tls_insn): Ditto.
233 (nds32_group_float_insns): Ditto.
234 * config/nds32/nds32.md (tls_le): New.
237 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
239 * configure: Add nds32 target for dwarf2 debug_line checking.
240 * configure.ac: Regenerated.
242 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
245 * ipa-devirt.c (skip_in_fields_list_p): New.
246 (odr_types_equivalent_p): Use it.
248 2019-04-13 Jakub Jelinek <jakub@redhat.com>
251 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
252 instead of strncmp when checking for thumb and arm. Formatting fixes.
254 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
256 * doc/install.texi: Document --with-target-system-zlib.
258 2019-04-12 Martin Sebor <msebor@redhat.com>
264 * targhooks.c (default_vector_alignment): Avoid assuming
265 argument fits in SHWI.
266 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
268 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
270 2019-04-12 Jakub Jelinek <jakub@redhat.com>
272 PR rtl-optimization/89965
273 * dce.c: Include rtl-iter.h.
274 (struct check_argument_load_data): New type.
275 (check_argument_load): New function.
276 (find_call_stack_args): Check for loads from stack slots still tracked
277 in sp_bytes and punt if any is found.
279 * config/mips/loongson-mmiintrin.h: Fix up #error message.
281 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
283 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
284 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
286 2019-04-12 Martin Liska <mliska@suse.cz>
289 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
291 (separate_attrs): Handle multiple 'default's.
292 (expand_target_clones): Rework error handling code.
294 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
297 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
298 mode of vector rather than mode of destination for move instruction.
299 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
300 Use QI inner mode with V16QI vector mode.
302 2019-04-12 Jakub Jelinek <jakub@redhat.com>
305 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
306 "invalid %%t operand" in output_operand_lossage message.
308 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
310 * config/s390/predicates.md (permute_pattern_operand): New
312 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
313 operand for the permute pattern.
314 ("*vec_perm<mode>"): New insn definition.
315 ("bswap<mode>"): Generate the permute pattern operand in the
316 expander and perform the operand reloads for pre arch13 level
318 ("*bswap<mode>_emu"): Rename to ...
319 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
320 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
321 Add the USE operand for the permute pattern.
322 ("*vec_set_bswap_vec<mode>"): Likewise.
324 2019-04-12 Jakub Jelinek <jakub@redhat.com>
327 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
328 and gcc_unreachable if it fails, just call tree_to_uhwi which
329 verifies that too. Test TREE_CHAIN instead of list_length > 1.
330 Start warning message with a lower-case letter. Formatting fixes.
332 PR rtl-optimization/90026
333 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
334 successors, look for BARRIERs inside of the whole BB_FOOTER chain
335 rather than just at the start of it. If e->src BB_FOOTER is not NULL
336 in cfglayout mode, use emit_barrier_after_bb.
338 2018-04-11 Steve Ellcey <sellcey@marvell.com>
340 PR rtl-optimization/87763
341 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
344 2019-04-11 Tom de Vries <tdevries@suse.de>
346 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
347 max macro using statement expression.
349 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
351 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
352 * xcoffout.c (xcoff_private_rodata_section_name): Define.
353 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
354 read_only_private_data_section using xcoff_private_rodata_section_name.
355 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
357 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
360 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
362 2019-04-11 Jakub Jelinek <jakub@redhat.com>
364 PR rtl-optimization/89965
365 * dce.c (sp_based_mem_offset): New function.
366 (find_call_stack_args): Use sp_based_mem_offset.
368 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
370 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
372 2019-04-11 Richard Biener <rguenther@suse.de>
374 PR tree-optimization/90020
375 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
376 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
377 * tree-ssa-pre.c (compute_avail): Use it to not put
378 possibly trapping references after a call that might not
380 * gcse.c (compute_hash_table_work): Do not elide
381 marking a block containing a call if the call might not
384 2019-04-11 Richard Biener <rguenther@suse.de>
386 PR tree-optimization/90018
387 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
388 Test both SLP and interleaving variants.
390 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
392 * config/s390/8561.md: New file.
393 * config/s390/driver-native.c (s390_host_detect_local_cpu):
394 Add arch13 cpu model.
395 * config/s390/s390-opts.h (enum processor_type): Likewise.
396 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
397 (s390_get_unit_mask): Likewise.
398 (s390_is_fpd): Likewise.
399 (s390_is_fxd): Likewise.
400 * config/s390/s390.h (s390_tune_attr): Likewise.
401 * config/s390/s390.md: Include arch13 pipeline description.
402 * config/s390/s390.opt: Add arch13.
404 2018-04-10 Steve Ellcey <sellcey@marvell.com>
406 PR rtl-optimization/87763
407 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
409 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
411 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
413 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
414 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
415 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
416 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
418 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
420 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
421 "Although" in -fipa-icf documentation.
423 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
424 of using multiple -g options.
426 2019-04-10 Martin Liska <mliska@suse.cz>
428 PR gcov-profile/89959
429 * doc/gcov.texi: Make documentation of -x option
432 2019-04-10 Richard Biener <rguenther@suse.de>
434 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
436 (DR_GROUP_SAME_DR_STMT): Remove.
437 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
438 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
440 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
441 (vect_record_grouped_load_vectors): Remove unreachable code.
443 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
446 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
447 obsolete reference to N.
449 2019-04-10 Jakub Jelinek <jakub@redhat.com>
452 * expr.c (store_expr): Set properly size on the MEM passed to
456 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
457 with strlen in between hostsz-3 and hostsz-1 inclusive when no
458 translation is needed, and when translation is needed, only append
459 ... if the string length is hostsz or more bytes long. Avoid using
462 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
465 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
466 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
468 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
469 differences directly.
470 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
472 2019-04-09 Jakub Jelinek <jakub@redhat.com>
475 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
477 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
479 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
480 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
481 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
482 trailing space from -gsplit-dwarf diagnostics.
484 PR tree-optimization/89998
485 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
486 instead of integer_type_node if possible, don't add ranges if return
487 type is not compatible with int.
488 * gimple-fold.c (gimple_fold_builtin_sprintf,
489 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
492 2019-04-09 Martin Liska <mliska@suse.cz>
494 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
495 * doc/install.texi: Document the new config.
497 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
499 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
500 use gimple_expr_type for load and store calls. Skip over the
501 condition argument in a conditional internal function.
502 Protect use of TREE_INT_CST_LOW.
504 2019-04-09 Jakub Jelinek <jakub@redhat.com>
507 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
508 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
509 trailing period from it too.
511 2019-04-08 wu yuan <wuyuan5@huawei.com>
513 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
514 * config/aarch64/aarch64.md : Add "tsv110.md"
515 * config/aarch64/tsv110.md: New file.
517 2019-04-08 Richard Biener <rguenther@suse.de>
519 PR tree-optimization/90006
520 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
523 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
526 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
528 (fma_root_node): Likewise.
529 (func_fma_steering): Likewise.
531 2019-04-08 Jakub Jelinek <jakub@redhat.com>
533 PR rtl-optimization/89865
534 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
536 PR rtl-optimization/89865
537 * config/i386/i386.md
538 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
539 numbers not to clash with the additional operands[4].
540 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
541 with extra register copy in the middle.
543 2019-04-08 Martin Liska <mliska@suse.cz>
545 PR gcov-profile/89961
546 * doc/gcov.texi: Document data_file.
547 * gcov.c (generate_results): Add data_info into JSON output.
549 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
551 PR tree-optimization/89725
552 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
553 loop's chrec as invariant symbol.
554 * tree-chrec.h (chrec_contains_symbols): New parameter.
555 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
556 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
557 function of loops not in DDR's loop_nest.
558 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
560 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
563 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
566 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
569 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
570 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
572 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
574 * sched-deps.c (sched_macro_fuse_insns): Check return value of
575 targetm.fixed_condition_code_regs.
577 2019-04-05 Richard Biener <rguenther@suse.de>
581 * tree-cfgcleanup.c (remove_forwarder_block): Always move
582 debug bind stmts but reset them if they are not valid at the
585 2019-04-05 Martin Liska <mliska@suse.cz>
588 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
589 order to wrap keywords or arguments.
590 * collect2.c (main): Likewise.
591 (scan_prog_file): Likewise.
592 (scan_libraries): Likewise.
593 * common/config/riscv/riscv-common.c
594 (riscv_subset_list::parsing_subset_version): Likewise.
595 (riscv_subset_list::parse_std_ext): Likewise.
596 * config/aarch64/aarch64.c (aarch64_override_options_internal):
598 * config/arm/arm.c (arm_option_override): Likewise.
599 * config/cris/cris.c (cris_print_operand): Likewise.
600 * config/darwin-c.c (darwin_pragma_options): Likewise.
601 (darwin_pragma_unused): Likewise.
602 (darwin_pragma_ms_struct): Likewise.
603 * config/ft32/ft32.c (ft32_print_operand): Likewise.
604 * config/i386/i386.c (print_reg): Likewise.
605 (ix86_print_operand): Likewise.
606 * config/i386/xm-djgpp.h: Likewise.
607 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
608 * config/m32c/m32c.c (m32c_option_override): Likewise.
609 * config/msp430/msp430.c (msp430_option_override): Likewise.
610 * config/nds32/nds32.c (nds32_option_override): Likewise.
611 * config/nvptx/mkoffload.c (main): Likewise.
612 * config/rx/rx.c (rx_print_operand): Likewise.
613 (valid_psw_flag): Likewise.
614 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
615 (vms_pragma_nomember_alignment): Likewise.
616 (vms_pragma_extern_model): Likewise.
617 * lto-wrapper.c (compile_offload_image): Likewise.
618 * omp-offload.c (oacc_parse_default_dims): Likewise.
619 * symtab.c (symtab_node::verify_base): Likewise.
620 * tlink.c (recompile_files): Likewise.
621 (start_tweaking): Likewise.
622 * tree-profile.c (parse_profile_filter): Likewise.
624 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
626 PR tree-optimization/89956
627 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
628 multiple negates of the same value.
630 2019-04-04 Martin Sebor <msebor@redhat.com>
634 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
635 have the same precision since the function crashes otherwise.
636 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
637 has non-zero arguments.
639 2019-04-04 Martin Sebor <msebor@redhat.com>
642 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
643 out if the number of arguments is less than expected.
645 2019-04-04 Jeff Law <law@redhat.com>
647 PR rtl-optimization/89399
648 * ree.c (combine_set_extension): Use single_set rather than
649 digging into PATTERN for items on the candidate list.
650 (combine_reaching_defs): Likewise.
652 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
654 PR rtl-optimization/46590
655 * loop-invariant.c (find_defs): Move df_remove_problem and
656 df_process_deferred_rescans to move_invariants.
657 Move df_live_add_problem and df_live_set_all_dirty calls
659 (move_invariants): Likewise.
660 (move_loop_invariants): Likewise, making the df_live calls
661 conditional on -O. Remove the problem again if we added it
664 2019-04-03 qing zhao <qing.zhao@oracle.com>
666 PR tree-optimization/89730
667 * ipa-inline.c (can_inline_edge_p): Delete the checking for
668 -flive-patching=inline-only-static.
669 (can_inline_edge_by_limits_p): Add the checking for
670 -flive-patching=inline-only-static and grant always_inline
671 even when -flive-patching=inline-only-static is specified.
673 2019-04-03 Jeff Law <law@redhat.com>
675 PR rtl-optimization/81025
676 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
678 2019-04-03 Richard Biener <rguenther@suse.de>
680 PR tree-optimization/84101
681 * tree-vect-stmts.c: Include explow.h for hard_function_value,
682 regs.h for hard_regno_nregs.
683 (cfun_returns): New helper.
684 (vect_model_store_cost): When vectorizing a store to a decl
685 we return and the function ABI returns in a multi-reg location
686 account for the possible spilling that will happen.
688 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
690 * config/s390/s390.c (s390_legitimate_address_p): Reject long
691 displacement addresses for vector mode operands.
693 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
695 * config/arc/arc.c (GMASK_LEN): Define.
696 (arc_restore_callee_saves): Restore first blink when
699 2019-04-03 Sudakshina Das <sudi.das@arm.com>
701 * doc/extend.texi: Add deprecated comment on sign-return-address
702 function attribute and add mbranch-protection.
703 * doc/invoke.texi: Add bti to the options for mbranch-protection.
705 2019-04-03 Richard Biener <rguenther@suse.de>
708 * lto-wrapper.c (run_gcc): Avoid implicit rules making
709 the all target phony.
711 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
715 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
716 Return false for variable DImode shifts.
717 (dimode_scalar_chain::compute_convert_gain): Do not handle
718 register count operand in variable DImode shifts.
719 (dimode_scalar_chain::make_vector_copies): Remove support to copy
720 count argument of a variable shift instruction to a vector register.
721 (dimode_scalar_chain::convert_reg): Remove support to convert
722 count argument of a variable shift instruction.
724 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
726 PR rtl-optimization/84206
727 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
728 iterating over loop headers.
730 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
732 PR rtl-optimization/85876
733 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
734 beyond the original fence.
736 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
738 * config.gcc: Mark spu* targets as deprecated/obsolete.
740 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
742 * config/s390/s390-builtin-types.def: New builtin function type
743 definitions. Remove unused types.
744 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
745 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
746 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
748 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
749 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
750 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
751 (vec_double, vec_signed, vec_unsigned): Define to use the new
753 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
756 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
758 * config/s390/s390-builtin-types.def: New builtin function type
760 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
761 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
762 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
763 (s390_vstrszh, s390_vstrszf): New low-level builtins.
764 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
765 constant definitions.
766 * config/s390/vecintrin.h (vec_search_string_cc)
767 (vec_search_string_until_zero_cc): New builtin name definitions.
768 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
770 ("vec_vstrs<mode>"): New insn definition.
772 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
774 * config/s390/s390-builtin-types.def: Add new builtin function
776 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
777 New overloaded builtins.
778 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
780 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
781 (UNSPEC_VEC_SLDBYTE): ... this.
782 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
783 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
785 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
786 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
787 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
789 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
791 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
793 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
794 * config/s390/vector.md (V_HW_HSD): ... here.
796 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
798 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
799 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
800 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
801 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
802 New insn definitions.
804 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
806 * config/s390/s390-builtin-types.def: Add new builtin function type.
807 * config/s390/s390-builtins.def: Add overloaded builtin
808 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
809 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
810 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
811 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
812 ("eltswap<mode>"): New expander.
813 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
816 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
818 * config/s390/s390-builtin-types.def: Add new builtin function types.
819 * config/s390/s390-builtins.def: Add overloaded builtin
820 s390_vec_revb. Add low-level builtins for vlbr and vstbr
822 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
823 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
824 ("bswap<mode>"): New expander.
825 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
827 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
829 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
830 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
831 vector builtin version number in __VEC__.
833 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
835 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
837 (SFSI): New mode attribute.
838 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
839 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
841 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
842 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
843 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
844 ("floatsi<mode>2"): Add wcefb instruction.
846 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
848 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
849 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
851 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
852 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
853 support 32 bit fp-int conversions. Rename to ...
854 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
855 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
856 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
857 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
860 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
862 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
863 if-then-else constructs if we can use the select instruction.
864 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
866 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
868 * config/s390/s390.md ("*popcountdi_arch13_cc")
869 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
871 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
872 Append _z196 to make it ...
873 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
874 ("popcounthi2_z196"): ... this.
875 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
876 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
878 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
880 * config/s390/s390.c (s390_canonicalize_comparison): Convert
881 certain compares for arch13 in order to make use of the condition
882 code result produced by the new instructions.
883 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
884 nxrk, and nxgrk instruction patterns.
885 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
886 (inv_no): Add new code iterator together with some attributes.
887 ("*andc_split_<mode>"): Disable splitter for arch13.
888 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
889 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
890 ("*<ANDOR:bitops_name>c<GPR:mode>")
891 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
892 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
893 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
894 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
896 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
898 * common/config/s390/s390-common.c (processor_flags_table): New
900 * config.gcc: Support arch13 with the --with-arch= configure flag.
901 * config/s390/driver-native.c (s390_host_detect_local_cpu):
902 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
903 * config/s390/s390.c (s390_get_sched_attrmask)
904 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
905 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
906 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
907 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
908 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
910 * config/s390/s390.opt: Support arch13 as processor type in
911 command line options.
913 2019-04-02 Martin Liska <mliska@suse.cz>
916 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
917 Fix param description of graphite-max-arrays-per-scop.
919 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
921 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
922 (ASAN_CC1_SPEC): Use it in 64-bit mode.
923 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
925 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
927 PR rtl-optimization/85412
928 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
929 sel_sched_region_1, not after.
931 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
933 PR rtl-optimization/86928
934 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
935 compute_live if necessary.
936 (sel_redirect_edge_and_branch): Likewise.
938 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
940 PR rtl-optimization/89865
941 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
942 register if it is a part of small class.
944 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
946 PR rtl-optimization/87273
947 * sel-sched-ir.c (merge_fences): Remove assert.
949 2019-04-01 Richard Biener <rguenther@suse.de>
951 PR tree-optimization/46590
952 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
953 (dom_walker::m_reachability): Add in place of...
954 (dom_walker::m_skip_unreachable_blocks): ...this.
955 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
956 Move complex initialization ...
957 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
958 lazily and initialize edge flags on each invocation.
959 (dom_walker::bb_reachable): Use m_reachability.
961 2019-04-01 Martin Liska <mliska@suse.cz>
964 * opt-suggestions.c (option_proposer::build_option_suggestions):
965 Add variant without any argument in order to provide better
968 2019-04-01 Richard Biener <rguenther@suse.de>
971 * gimple.c: Include langhooks.h.
972 (gimple_get_alias_set): Treat enumeral types as the underlying
975 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
976 Eric Botcazou <ebotcazou@adacore.com>
978 PR rtl-optimization/89862
979 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
980 that operates on the full registers for WORD_REGISTER_OPERATIONS
983 2019-03-29 Jim Wilson <jimw@sifive.com>
985 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
986 Clear MASK_RVC and then set if C subset supported.
988 2019-03-29 Jakub Jelinek <jakub@redhat.com>
991 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
992 non-addressable complit into its initializer if it is volatile.
994 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
996 * opts-common.c (integral_argument): Set errno properly in one case.
998 2019-03-29 Martin Liska <mliska@suse.cz>
1000 * doc/invoke.texi: Remove -Wchkp from documentation.
1002 2019-03-29 Martin Liska <mliska@suse.cz>
1004 * dbgcnt.c (print_limit_reach): New function.
1007 2019-03-29 Martin Liska <mliska@suse.cz>
1009 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
1010 (dbg_cnt_process_opt): Parse first tokens aas
1011 dbg_cnt_process_single_pair is also using strtok.
1013 2019-03-29 Jakub Jelinek <jakub@redhat.com>
1015 PR rtl-optimization/87485
1016 * function.c (expand_function_end): Move stack_protect_epilogue
1017 before loading of return value into hard register(s).
1019 2019-03-28 Jakub Jelinek <jakub@redhat.com>
1022 * tree-inline.h (struct copy_body_data): Add
1023 dont_remap_vla_if_no_change flag.
1024 * tree-inline.c (remap_type_3, remap_type_2): New functions.
1025 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
1026 and remap_type_2 returns false.
1027 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
1028 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
1029 only from where it is copied to nested contexts.
1031 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
1034 * config/i386/i386.md (RMW operation with LEA peephole):
1035 Use LEAMODE mode attribute instead of SWI mode iterator for
1038 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
1041 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
1042 Also process XEXP (src, 0) of a shift insn.
1044 2019-03-28 David Malcolm <dmalcolm@redhat.com>
1047 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
1048 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
1050 2019-03-28 Jakub Jelinek <jakub@redhat.com>
1052 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
1054 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
1055 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
1056 immediately after first one with df_analyze in between, but rather
1057 process all bbs, queueing ones that need second pass in a worklist,
1058 df_analyze, process queued debug insn changes and if second pass is
1059 needed, process bbs from worklist, df_analyze, process queued debug
1062 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
1063 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
1064 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
1066 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
1069 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
1072 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
1075 * config/i386/i386.c (ix86_function_value_1): Call the newly added
1076 function for 32-bit MS_ABI.
1077 (function_value_ms_32): New function.
1079 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
1081 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
1082 (movdi): Call gen_movdi_symbol_save_scc.
1083 (gen_movdi_symbol_save_scc): New insn and split.
1085 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
1087 PR rtl-optimization/89313
1088 * function.c (matching_constraint_num): New static function.
1089 (match_asm_constraints_1): Use it. Fixup white space and comment.
1090 Don't replace inputs with non-matching constraints which conflict
1091 with early clobber outputs.
1093 2019-03-27 Jeff Law <law@redhat.com>
1096 PR rtl-optimization/87761
1097 PR rtl-optimization/89826
1098 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
1100 (pass_cprop_hardreg::execute): Call df_analyze after adding the
1101 note problem to get REG_DEAD/REG_UNUSED notes updated.
1103 2019-03-27 Richard Biener <rguenther@suse.de>
1105 PR tree-optimization/89463
1106 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
1107 queue edges to remove.
1108 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
1109 dead stmts. Delay edge removal until PHIs are removed to
1110 make debug-stmt creation not confused by seemingly degenerate
1113 2019-03-27 Alan Modra <amodra@gmail.com>
1115 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
1117 * config/rs6000/darwin.h: Likewise.
1118 * config/rs6000/rs6000.c: Likewise.
1120 2019-03-27 Alan Modra <amodra@gmail.com>
1122 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
1123 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
1125 2019-03-26 Andrew Waterman <andrew@sifive.com>
1126 Jim Wilson <jimw@sifive.com>
1128 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
1129 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
1130 (generic_idivdi, generic_fmul_single, generic_fmul_double)
1131 (generic_fdiv, generic_fsqrt): Add check for generic tune.
1132 (generic_alu): Add auipc to type list.
1133 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
1134 (riscv_microarchitecture): Declare.
1135 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
1136 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
1138 (riscv_microarchitecture): New.
1139 (sifive_7_tune_info): New.
1140 (riscv_cpu_info_table): Add microarchitecture value for rocket and
1141 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
1143 (riscv_store_data_bypass_p): New.
1144 (riscv_option_override): Set riscv_microarchitecture from
1145 cpu->microarchitecture.
1146 * config/riscv/riscv.md: Include sifive-7.md.
1149 (auipc<mode>): Change type to auipc.
1150 (restore_stack_nonlocal): New.
1151 * config/riscv/sifive-7.md: New.
1152 * doc/invoke.texi (RISC-V Options): Update mtune docs.
1154 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
1157 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
1158 Also process XEXP (src, 0) of a shift insn.
1160 2019-03-26 Richard Biener <rguenther@suse.de>
1162 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
1163 (copy_debug_stmt): Likewise.
1164 (expand_call_inline): Likewise.
1165 (copy_bb): Avoid redundant lookup & set of gimple_block.
1166 * gimple-low.c (lower_gimple_return): Likewise.
1167 (lower_builtin_setjmp): Likewise.
1169 2019-03-26 Jakub Jelinek <jakub@redhat.com>
1171 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
1172 is constant 0, turn into static const data member initialized to false.
1173 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
1174 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
1176 2019-03-26 Jason Merrill <jason@redhat.com>
1177 Jakub Jelinek <jakub@redhat.com>
1179 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
1181 (mem_alloc_description::release_object_overhead): Fix comment typos.
1182 * hash-table.h (hash_table::~hash_table): Call
1183 release_instance_overhead only if m_entries is non-NULL, otherwise
1184 call unregister_descriptor.
1186 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
1188 PR tree-optimization/81740
1189 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1190 In case of outer loop vectorization, check for backward dependence
1191 at the inner loop if outer loop dependence is reversed.
1193 2019-03-26 Alan Modra <amodra@gmail.com>
1195 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
1196 rs6000_vector_mem init. Correct wI and wJ comment.
1198 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
1200 PR rtl-optimization/88347
1201 PR rtl-optimization/88423
1202 * sched-deps.c (sched_analyze_insn): Take into account that for
1203 tablejumps the barrier appears after a label and a jump_table_data.
1205 2019-03-25 Martin Sebor <msebor@redhat.com>
1208 * c-common.c (check_user_alignment): Rename local. Correct maximum
1209 alignment in diagnostic. Avoid assuming argument fits in SHWI,
1210 convert it to UHWI when it fits.
1212 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
1215 * dwarf2out.c (premark_used_variables): New function.
1216 (prune_unused_types_walk): Do not mark not premarked external
1218 (prune_unused_types): Call premark_used_variables.
1220 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
1222 PR rtl-optimization/89676
1223 * lra-constraints.c (curr_insn_transform): Do match reload for
1224 early clobbers when the match was successful only for different
1227 2019-03-25 Martin Sebor <msebor@redhat.com>
1229 * doc/extend.texi (Common Type Attributes): Document vector_size.
1230 (Common Variable Attributes): Mention size constraint. Correct
1232 (Vector Extensions): Use @dfn when defining bas type. Clarify
1233 base type and size constraints.
1235 2019-03-25 Richard Biener <rguenther@suse.de>
1237 PR tree-optimization/89789
1238 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
1239 changes from non-undefined back to undefined.
1241 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
1243 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
1244 heap string and a gc string, but since this variable is unknown to
1245 ggc the gc string might get reused and corrupted. Fixed by always
1246 using a heap string.
1248 2019-03-25 Richard Biener <rguenther@suse.de>
1250 PR tree-optimization/89779
1251 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
1252 to remove IV defs, delay actual removal.
1253 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
1254 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
1255 very end, properly also reset loop control IV information.
1257 2019-03-25 Richard Biener <rguenther@suse.de>
1259 PR tree-optimization/89802
1260 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
1261 move EH data to folded stmt.
1263 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
1265 * config/s390/s390-builtin-types.def: Remove few unused types and
1266 fix sort order for others.
1268 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
1270 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
1271 expected and found types with -mdebug during builtin matching.
1273 2019-03-25 Richard Biener <rguenther@suse.de>
1276 * fold-const.c (operand_equal_p): Revert last change with
1279 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
1281 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
1282 notes for the result of the __tls_get_addr calls.
1283 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
1285 2019-03-24 Jeff Law <law@redhat.com>
1287 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
1289 PR rtl-optimization/87761
1290 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
1291 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
1293 (pass_cprop_hardreg::execute): Add df note problem and defer insn
1294 rescans. Reprocess blocks as needed, calling df_analyze before
1295 reprocessing. Always call df_analyze before fixing up debug bind
1298 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
1300 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
1303 2019-03-22 Andrew Pinski <apinski@marvell.com>
1305 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
1306 attrribute for uxtw.
1308 2019-03-26 Jeff Law <law@redhat.com>
1310 PR rtl-optimization/87761
1311 * config/mips/mips-protos.h (mips_split_move): Add new argument.
1312 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
1313 (mips_split_move): Accept new INSN argument. Try to forward SRC
1314 into the next instruction.
1315 (mips_split_move_insn): Pass INSN through to mips_split_move.
1317 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
1319 PR rtl-optimization/89676
1320 * lra-constraints.c (curr_insn_transform): Do match reload for
1321 early clobbers even if the match was successful.
1323 2019-03-22 Jakub Jelinek <jakub@redhat.com>
1326 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
1328 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
1330 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
1332 2019-03-22 Jakub Jelinek <jakub@redhat.com>
1334 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
1335 <avx512>_fmsub_<mode>_mask3<round_name>,
1336 <avx512>_fnmadd_<mode>_mask3<round_name>,
1337 <avx512>_fnmsub_<mode>_mask3<round_name>,
1338 avx512f_vmfmadd_<mode>_mask3<round_name>,
1339 avx512f_vmfmsub_<mode>_mask3<round_name>,
1340 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
1341 instead of register_operand and %v instead of v for match_operand 1.
1342 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
1343 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
1344 <round_nimm_predicate> instead of register_operand and %v instead of v
1345 for match_operand 1.
1347 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
1348 <avx512>_fmadd_<mode>_mask3<round_name>,
1349 <avx512>_fmsub_<mode>_mask<round_name>,
1350 <avx512>_fmsub_<mode>_mask3<round_name>,
1351 <avx512>_fnmadd_<mode>_mask<round_name>,
1352 <avx512>_fnmadd_<mode>_mask3<round_name>,
1353 <avx512>_fnmsub_<mode>_mask<round_name>,
1354 <avx512>_fnmsub_<mode>_mask3<round_name>,
1355 <avx512>_fmaddsub_<mode>_mask<round_name>,
1356 <avx512>_fmaddsub_<mode>_mask3<round_name>,
1357 <avx512>_fmsubadd_<mode>_mask<round_name>,
1358 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
1359 <round_nimm_predicate> instead of nonimmediate_operand.
1360 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
1361 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
1362 Use register_operand instead of <round_nimm_predicate> for the
1363 operand that needs to match output.
1364 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
1365 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
1366 Likewise. Formatting fixes.
1369 * config/i386/i386.c (enum ix86_builtins): Remove
1370 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
1371 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
1372 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
1373 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
1374 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
1375 __builtin_ia32_vfmsubss3_mask3): New builtins.
1376 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
1377 avx512f_vmfmadd_<mode>_mask3<round_name>,
1378 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
1379 *avx512f_vmfmsub_<mode>_mask<round_name>,
1380 avx512f_vmfmsub_<mode>_mask3<round_name>,
1381 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
1382 *avx512f_vmfnmadd_<mode>_mask<round_name>,
1383 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
1384 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
1385 *avx512f_vmfnmsub_<mode>_mask<round_name>,
1386 avx512f_vmfnmsub_<mode>_mask3<round_name>,
1387 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
1388 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
1389 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
1390 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
1391 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
1392 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
1393 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
1394 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
1395 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
1396 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
1397 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
1398 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
1399 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
1400 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
1401 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
1402 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
1403 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
1404 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
1405 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
1406 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
1407 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
1408 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
1410 2019-03-21 Martin Sebor <msebor@redhat.com>
1412 PR tree-optimization/89350
1413 * builtins.c (compute_objsize): Also ignore offsets whose upper
1415 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
1416 (builtin_memref::builtin_memref): Initialize new member.
1417 Allow EXPR to be null.
1418 (builtin_memref::extend_offset_range): Replace local with a member.
1419 Avoid assuming pointer offsets are unsigned.
1420 (builtin_memref::set_base_and_offset): Determine base object
1421 before computing offset range.
1422 (builtin_access::builtin_access): Handle memset.
1423 (builtin_access::generic_overlap): Replace local with a member.
1424 (builtin_access::strcat_overlap): Same.
1425 (builtin_access::overlap): Same.
1426 (maybe_diag_overlap): Same.
1427 (maybe_diag_access_bounds): Same.
1428 (wrestrict_dom_walker::check_call): Handle memset.
1429 (check_bounds_or_overlap): Same.
1431 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
1432 Jakub Jelinek <jakub@redhat.com>
1435 * tree.c (fld_type_variant, fld_incomplete_type_of,
1436 fld_process_array_type): Call fld->pset.add and don't call
1437 add_tree_to_fld_list if it returns true.
1438 (free_lang_data_in_type): Similarly with self-recursive call. Purge
1439 non-marked types from TYPE_NEXT_VARIANT list.
1440 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
1442 2019-03-21 Jakub Jelinek <jakub@redhat.com>
1444 * hash-table.h (hash_table): Add Lazy template parameter defaulted
1445 to false, if true, don't alloc_entries during construction, but defer
1446 it to the first method that needs m_entries allocated.
1447 (hash_table::hash_table, hash_table::~hash_table,
1448 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
1449 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
1450 hash_table::clear_slot, hash_table::traverse_noresize,
1451 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
1452 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
1454 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
1455 NO_INSERT instead of find_with_hash.
1456 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
1457 hash_set::m_table): Add Lazy to template params of hash_table.
1458 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
1459 * attribs.c (test_attribute_exclusions): Likewise.
1460 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
1461 hash_set. Add tests for hash_set with Lazy = true.
1463 2019-03-21 Richard Biener <rguenther@suse.de>
1465 PR tree-optimization/89779
1466 * tree.c (tree_nop_conversion): Consolidate and fix defensive
1467 checks with respect to released SSA names now having error_mark_node
1469 * fold-const.c (operand_equal_p): Likewise.
1471 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
1474 * config/s390/s390.c (global_not_special_regno_p): Move to make it
1476 (s390_optimize_register_info): Use global_not_special_regno_p to
1477 check for global regs.
1479 2019-03-20 Jakub Jelinek <jakub@redhat.com>
1482 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
1483 update this_alternative nor this_alternative_set.
1485 2019-03-19 Jim Wilson <jimw@sifive.com>
1488 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
1489 align, size, offset. Use them to handle a BLKmode reference. Update
1491 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
1493 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1495 PR rtl-optimization/89768
1496 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
1498 (unroll_loop_runtime_iterations): Likewise.
1500 2019-03-19 Martin Sebor <msebor@redhat.com>
1502 PR tree-optimization/89644
1503 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
1504 rather than endptr as an indicator of nul-termination.
1506 PR tree-optimization/89644
1507 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
1508 arrays in determining sequence sizes in strncpy and stpncpy.
1510 2019-03-19 Martin Liska <mliska@suse.cz>
1513 * predict.c (combine_predictions_for_bb): Empty likely_edges and
1514 unlikely_edges if there's an edge that belongs to both these sets.
1516 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
1519 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
1520 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
1521 go via a stack temporary.
1523 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1526 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
1527 instead of gen_rtx_SUBREG.
1528 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
1530 2019-03-19 Richard Biener <rguenther@suse.de>
1533 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
1535 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
1539 * tree.c (free_lang_data_in_decl): Do not free context of C++
1542 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1545 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
1546 subs for the first alternative except when operands[3] is 1.
1549 * gimplify.c (gimplify_asm_expr): For output argument with
1550 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
1553 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
1555 PR rtl-optimization/89753
1556 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
1557 explicit unrolling factor even more robust.
1559 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1562 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
1563 compensation use x2 += 1 instead of x2 -= -1 and when honoring
1564 signed zeros, do another copysign after the compensation.
1566 2019-03-18 Martin Sebor <msebor@redhat.com>
1568 PR tree-optimization/89720
1569 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
1570 more conservatively, the same as anti-range.
1572 2019-03-18 Richard Biener <rguenther@suse.de>
1575 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
1576 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
1577 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
1578 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
1580 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
1582 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
1583 Extend queue to 1024 entries.
1584 Add "consumed" field.
1585 (gomp_print_output): Remove print_index parameter.
1586 Add final parameter.
1587 Change limit to unsigned.
1588 Use consumed field to implement circular buffer.
1589 Detect interrupted print in final pass.
1590 Flush output at the end.
1591 (run): Update gomp_print_output usage.
1592 (main): Initialize kernargs->output_data.consumed.
1594 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
1596 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
1597 calculation of the minimum number of scalar iterations for
1598 fully-predicated loops.
1600 2019-03-18 Martin Jambor <mjambor@suse.cz>
1602 PR tree-optimization/89546
1603 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
1604 any propagation to its children took place.
1606 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1609 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
1610 parameter, and make use of it.
1611 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
1613 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1615 * config/arc/arc.opt (mcode-density-frame): Get the inital value
1616 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
1617 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
1618 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
1619 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
1620 match what the ops is doing.
1621 (push_multi_fp_blink): Likewise.
1622 * config/arc/arc.c (arc_override_options): Enable enter/leave when
1623 compiling for size and elf target.
1624 (arc_save_callee_enter): Adjust note to match what enter/leave
1627 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1629 * config/arc/arc.md (tst_movb): Fix constraint.
1631 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1633 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
1635 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1637 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
1638 * config/arc/arc.c (arc_conditional_register_usage): Remove all
1639 reg_alloc_order references.
1640 (size_alloc_order): Define.
1641 (arc_adjust_reg_alloc_order): New function.
1642 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
1644 (ADJUST_REG_ALLOC_ORDER): Define.
1645 (HONOR_REG_ALLOC_ORDER): Likewise.
1647 2019-03-18 Richard Biener <rguenther@suse.de>
1650 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
1651 loads and stores a bit more.
1653 2019-03-18 Richard Biener <rguenther@suse.de>
1656 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
1657 load pessimization to stores as well.
1659 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
1662 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
1663 successor, use NULL as its av set.
1665 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
1667 PR rtl-optimization/89721
1668 * lra-constraints (invariant_p): Return false if side_effects_p holds.
1670 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
1673 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1674 When handling vec_extract, use modular arithmetic to allow
1675 constant selectors greater than vector length.
1676 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
1677 V1TImode vectors to have constant selector values greater than 0.
1678 Use modular arithmetic to compute vector index.
1679 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
1680 index for in-memory vectors. Correct code generation for
1681 in-register vectors.
1682 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
1685 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
1689 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
1692 2019-03-15 Jakub Jelinek <jakub@redhat.com>
1695 * tree.c (inchash::add_expr): Strip any location wrappers.
1696 * fold-const.c (operand_equal_p): Move stripping of location wrapper
1697 after hash verification.
1700 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
1701 SIGN_EXTEND and ZERO_EXTEND.
1703 2019-03-14 Jason Merrill <jason@redhat.com>
1704 Jakub Jelinek <jakub@redhat.com>
1706 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
1707 than if is_empty (*slot).
1708 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
1709 existing elt and for elt removal.
1710 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
1711 of already removed elt.
1713 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1716 * config/i386/i386.c (remove_partial_avx_dependency): Handle
1719 2019-03-14 Martin Liska <mliska@suse.cz>
1722 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
1724 2019-03-14 Richard Biener <rguenther@suse.de>
1727 * config/i386/i386.c (make_resolver_func): Properly set
1728 DECL_CONTEXT on the RESULT_DECL.
1729 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
1731 2019-03-14 Richard Biener <rguenther@suse.de>
1733 * gimple-pretty-print.c: Include cfgloop.h.
1734 (dump_gimple_phi): Adjust.
1735 (dump_gimple_bb_header): Dump loop header for GIMPLE.
1736 (pp_cfg_jump): Adjust.
1737 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
1738 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
1739 (lower_phi_internal_fn): Remove.
1740 (verify_gimple_call): Remove IFN_PHI special-casing.
1741 (dump_function_to_file): Dump IL state.
1742 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
1743 done to deal with PHI nodes being present in non-SSA state.
1745 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1748 * multiple_target.c (create_dispatcher_calls): Change
1749 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
1750 In the node->iterate_referring loop, push *ref rather than ref, call
1751 ref->remove_reference () and always pass 0 to iterate_referring.
1753 PR rtl-optimization/89679
1754 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
1755 would contain a paradoxical SUBREG.
1757 2019-03-14 Richard Biener <rguenther@suse.de>
1759 PR tree-optimization/89710
1760 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
1763 2019-03-14 Martin Liska <mliska@suse.cz>
1765 * coverage.c (coverage_begin_function): Stream also
1767 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
1768 documentation about function declaration location.
1769 * gcov-dump.c (tag_function): Print whole range
1770 of function declaration.
1771 * gcov.c (struct function_info): Add end_column field.
1772 (function_info::function_info): Initialize it.
1773 (output_json_intermediate_file): Output {start,end}_column
1775 (read_graph_file): Read end_column.
1777 2019-03-14 Richard Biener <rguenther@suse.de>
1780 * fold-const.c (operand_equal_p): For INDIRECT_REF check
1781 that the access types are similar.
1783 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1785 PR tree-optimization/89703
1786 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
1787 aren't compatible also with builtin_decl_explicit. Check pure
1788 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
1789 and BUILT_IN_STPNCPY{,_CHK}.
1791 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
1794 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
1795 addr32 prefix to VSIB address for X32.
1796 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
1798 (*avx512pf_gatherpf<mode>df_mask): Likewise.
1799 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
1800 (*avx512pf_scatterpf<mode>df_mask): Likewise.
1801 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
1802 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
1803 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
1804 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
1805 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
1806 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
1807 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
1808 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
1809 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
1810 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
1811 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
1812 (*avx512f_scatterdi<mode>): Likewise.
1814 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
1817 * lra-constraints.c (inherit_in_ebb): Update
1818 potential_reload_hard_regs along with live_hard_regs.
1820 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1823 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
1825 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
1827 2019-03-13 Martin Sebor <msebor@redhat.com>
1829 PR tree-optimization/89662
1830 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
1833 2019-03-13 Richard Biener <rguenther@suse.de>
1836 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
1837 throw FP expressions at tree-affine.
1839 2019-03-14 Richard Biener <rguenther@suse.de>
1841 * tree-pretty-print.c (dump_generic_node): For -gimple properly
1842 dump negative integer constants using _Literal (type) -num.
1844 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1846 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
1847 nonlocal_value member.
1850 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
1851 (ipa_simd_modify_function_body): Handle PHIs.
1853 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1855 * config/s390/s390.c (s390_option_override_internal): Use more
1856 aggressive inlining parameters.
1858 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1860 * config/s390/3906.md: New file.
1861 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1862 (LONGRUNNING_THRESHOLD): Remove.
1863 (MAX_SCHED_MIX_SCORE): Decrease.
1864 (MAX_SCHED_MIX_DISTANCE): Decrease.
1865 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
1866 (struct s390_sched_state): New struct to hold scheduling state.
1867 (S390_SCHED_STATE_NORMAL): Remove.
1868 (S390_SCHED_STATE_CRACKED): Remove.
1869 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
1870 (s390_get_sched_attrmask): Use new attribute.
1871 (s390_get_unit_mask): Use new units.
1872 (s390_is_fpd): New function.
1873 (s390_is_fxd): New function.
1874 (s390_is_longrunning): New function.
1875 (s390_sched_score): Use new functions.
1876 (s390_sched_reorder): Likewise.
1877 (s390_sched_variable_issue): Rework and use new functions.
1878 (s390_sched_init): Use new functions.
1879 * config/s390/s390.h (s390_tune_attr): Add z14.
1880 * config/s390/s390.md: Add z14.
1882 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1884 * config/s390/2964.md: Update pipeline description.
1885 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1886 (LONGRUNNING_THRESHOLD): Remove.
1887 (LATENCY_FACTOR): Remove.
1888 (s390_get_unit_mask): Add unit.
1889 (s390_sched_score): Use fxd/fpd.
1890 (s390_sched_variable_issue): Use fxd/fpd.
1892 2019-03-12 Martin Liska <mliska@suse.cz>
1894 * config/i386/i386.c: Reword an error message.
1896 2019-03-12 Martin Jambor <mjambor@suse.cz>
1898 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
1899 terminate with newline.
1901 2019-03-12 Jakub Jelinek <jakub@redhat.com>
1904 * config/s390/s390.md (tabort): Use %wd instead of
1905 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
1906 letters and periods.
1907 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
1908 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
1912 * builtins.c (expand_builtin_int_roundingfn,
1913 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
1914 gcc_unreachable if validate_arglist fails.
1916 2019-03-12 Richard Biener <rguenther@suse.de>
1918 PR tree-optimization/89664
1919 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
1920 free the occurance tree after the early out.
1922 2019-03-11 Jakub Jelinek <jakub@redhat.com>
1926 * vr-values.c (vr_values::update_value_range): If
1927 old_vr->varying_p (), don't update it, make new_vr also VARYING
1930 2019-03-11 Martin Liska <mliska@suse.cz>
1932 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1933 Fix double string quoting.
1935 2019-03-11 Martin Liska <mliska@suse.cz>
1937 * collect-utils.c (collect_wait): Wrap apostrophes
1938 in gcc internal format with %'.
1939 * collect2.c (main): Likewise.
1940 (scan_prog_file): Likewise.
1941 (scan_libraries): Likewise.
1942 * config/i386/i386.c (ix86_expand_call): Likewise.
1943 (ix86_handle_interrupt_attribute): Likewise.
1944 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
1945 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
1946 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
1947 * lto-wrapper.c (find_crtoffloadtable): Likewise.
1948 * symtab.c (symtab_node::verify_base): Likewise.
1949 * tree-cfg.c (verify_gimple_label): Likewise.
1950 * tree.c (verify_type_variant): Likewise.
1952 2019-03-11 Martin Liska <mliska@suse.cz>
1954 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
1955 in a string format message and fix GNU coding style.
1956 (expand_builtin_set_thread_pointer): Likewise.
1957 * common/config/aarch64/aarch64-common.c
1958 (aarch64_rewrite_selected_cpu): Likewise.
1959 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
1960 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
1961 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
1962 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
1963 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
1964 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
1965 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
1966 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
1967 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
1968 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
1970 * common/config/riscv/riscv-common.c
1971 (riscv_subset_list::parsing_subset_version): Likewise.
1972 (riscv_subset_list::parse_std_ext): Likewise.
1973 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1974 (riscv_subset_list::parse): Likewise.
1975 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
1976 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
1977 (aarch64_override_options_internal): Likewise.
1978 (aarch64_validate_mcpu): Likewise.
1979 (aarch64_validate_march): Likewise.
1980 (aarch64_validate_mtune): Likewise.
1981 (aarch64_override_options): Likewise.
1982 * config/alpha/alpha.c (alpha_option_override): Likewise.
1983 * config/arc/arc.c (arc_init): Likewise.
1984 (parse_mrgf_banked_regs_option): Likewise.
1985 (arc_override_options): Likewise.
1986 (arc_expand_builtin_aligned): Likewise.
1987 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
1988 (arm_expand_builtin): Likewise.
1989 * config/arm/arm.c (arm_option_check_internal): Likewise.
1990 (arm_configure_build_target): Likewise.
1991 (arm_option_override): Likewise.
1992 (arm_options_perform_arch_sanity_checks): Likewise.
1993 (arm_handle_cmse_nonsecure_entry): Likewise.
1994 (arm_handle_cmse_nonsecure_call): Likewise.
1995 (arm_tls_referenced_p): Likewise.
1996 (thumb1_expand_prologue): Likewise.
1997 * config/avr/avr.c (avr_option_override): Likewise.
1998 * config/bfin/bfin.c (bfin_option_override): Likewise.
1999 * config/c6x/c6x.c (c6x_option_override): Likewise.
2000 * config/cr16/cr16.c (cr16_override_options): Likewise.
2001 * config/cris/cris.c (cris_option_override): Likewise.
2002 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
2003 * config/darwin-c.c (macosx_version_as_macro): Likewise.
2004 * config/darwin.c (darwin_override_options): Likewise.
2005 * config/frv/frv.c (frv_expand_builtin): Likewise.
2006 * config/h8300/h8300.c (h8300_option_override): Likewise.
2007 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
2008 (ix86_option_override_internal): Likewise.
2009 (warn_once_call_ms2sysv_xlogues): Likewise.
2010 (ix86_expand_prologue): Likewise.
2011 (split_stack_prologue_scratch_regno): Likewise.
2012 (ix86_warn_parameter_passing_abi): Likewise.
2013 * config/ia64/ia64.c (fix_range): Likewise.
2014 * config/m68k/m68k.c (m68k_option_override): Likewise.
2015 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
2016 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
2017 (mips_set_compression_mode): Likewise.
2018 * config/mmix/mmix.c (mmix_option_override): Likewise.
2019 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
2020 * config/msp430/msp430.c (msp430_option_override): Likewise.
2021 * config/nds32/nds32.c (nds32_option_override): Likewise.
2022 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
2023 (nios2_option_override): Likewise.
2024 (nios2_expand_custom_builtin): Likewise.
2025 * config/nvptx/mkoffload.c (main): Likewise.
2026 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
2027 * config/pa/pa.c (fix_range): Likewise.
2028 (pa_option_override): Likewise.
2029 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
2030 (riscv_option_override): Likewise.
2031 * config/rl78/rl78.c (rl78_option_override): Likewise.
2032 * config/rs6000/aix61.h: Likewise.
2033 * config/rs6000/aix71.h: Likewise.
2034 * config/rs6000/aix72.h: Likewise.
2035 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
2036 * config/rs6000/freebsd64.h: Likewise.
2037 * config/rs6000/linux64.h: Likewise.
2038 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
2039 (rs6000_expand_zeroop_builtin): Likewise.
2040 (rs6000_expand_mtfsb_builtin): Likewise.
2041 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
2042 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
2043 (rs6000_invalid_builtin): Likewise.
2044 (rs6000_expand_split_stack_prologue): Likewise.
2045 * config/rs6000/rtems.h: Likewise.
2046 * config/rx/rx.c (valid_psw_flag): Likewise.
2047 (rx_expand_builtin): Likewise.
2048 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
2049 * config/s390/s390.c (s390_expand_builtin): Likewise.
2050 (s390_function_profiler): Likewise.
2051 (s390_option_override_internal): Likewise.
2052 (s390_option_override): Likewise.
2053 * config/sh/sh.c (sh_option_override): Likewise.
2054 (sh_builtin_saveregs): Likewise.
2055 (sh_fix_range): Likewise.
2056 * config/sh/vxworks.h: Likewise.
2057 * config/sparc/sparc.c (sparc_option_override): Likewise.
2058 * config/spu/spu.c (spu_option_override): Likewise.
2059 (fix_range): Likewise.
2060 * config/visium/visium.c (visium_option_override): Likewise.
2061 (visium_handle_interrupt_attr): Likewise.
2062 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
2063 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
2064 (dbg_cnt_process_opt): Likewise.
2065 * dwarf2out.c (output_dwarf_version): Likewise.
2066 * except.c (expand_eh_return): Likewise.
2067 * gcc.c (defined): Likewise.
2068 (driver_handle_option): Likewise.
2069 (process_command): Likewise.
2070 (compare_files): Likewise.
2071 (driver::prepare_infiles): Likewise.
2072 (driver::do_spec_on_infiles): Likewise.
2073 (driver::maybe_run_linker): Likewise.
2074 * omp-offload.c (oacc_parse_default_dims): Likewise.
2075 * opts-global.c (handle_common_deferred_options): Likewise.
2076 * opts.c (parse_sanitizer_options): Likewise.
2077 (common_handle_option): Likewise.
2078 (enable_warning_as_error): Likewise.
2079 * passes.c (enable_disable_pass): Likewise.
2080 * plugin.c (parse_plugin_arg_opt): Likewise.
2081 (default_plugin_dir_name): Likewise.
2082 * targhooks.c (default_expand_builtin_saveregs): Likewise.
2083 (default_pch_valid_p): Likewise.
2084 * toplev.c (init_asm_output): Likewise.
2085 (process_options): Likewise.
2086 (toplev::run_self_tests): Likewise.
2087 * tree-cfg.c (verify_gimple_call): Likewise.
2088 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
2089 (tree_inlinable_function_p): Likewise.
2090 * var-tracking.c (vt_find_locations): Likewise.
2092 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
2094 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
2095 only on the else branch.
2097 2019-03-11 Martin Liska <mliska@suse.cz>
2099 * gcov.c (output_intermediate_json_line): Print function
2101 (output_json_intermediate_file): Add new argument.
2102 * doc/gcov.texi: Document the change.
2104 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
2106 PR rtl-optimization/89588
2107 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
2108 explicit unrolling factor more robust.
2110 2019-03-11 Richard Biener <rguenther@suse.de>
2112 PR tree-optimization/89649
2113 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
2114 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
2115 on the prolog and epilog loops.
2116 (vect_loop_versioning): Return copy of loop.
2117 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
2118 on the non-vectorized version of the loop.
2120 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
2123 * config/i386/sse.md (*vec_extractv2di_0_sse):
2124 Add (=r,x) alternative and corresponding splitter.
2126 2019-03-10 Martin Jambor <mjambor@suse.cz>
2128 PR tree-optimization/85762
2129 PR tree-optimization/87008
2130 PR tree-optimization/85459
2131 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
2132 it points to if there is a type changing MEM_REF. Adjust all callers.
2133 (build_accesses_from_assign): Disable total scalarization if
2134 contains_vce_or_bfcref_p returns true through the new parameter, for
2137 2019-03-09 Jakub Jelinek <jakub@redhat.com>
2140 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
2141 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
2144 * common.opt (fdiagnostics-show-labels,
2145 fdiagnostics-show-line-numbers, fdiagnostics-format=,
2146 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
2147 gas-locview-support, ginline-points, ginternal-reset-location-views):
2148 Terminate description text with a dot.
2149 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
2150 * config/mcore/mcore.opt (m210, m340): Likewise.
2151 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
2152 mnops=): Start description text with a capital letter.
2153 * config/arc/arc.opt (msize-level=): Likewise.
2154 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
2155 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
2157 * config/ft32/ft32.opt (msim): Likewise.
2158 (mft32b, mcompress): Likewise. Terminate description text with a dot.
2159 (mnodiv, mnopm): Terminate description text with a dot.
2160 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
2162 * config/i386/i386.opt (prefer_vector_width, instrument_return):
2164 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
2167 PR rtl-optimization/89634
2168 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
2169 are modified in BB_END (e->src) instruction.
2171 2019-03-08 David Malcolm <dmalcolm@redhat.com>
2174 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
2175 messages more amenable to translation, and improve wording.
2177 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
2179 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
2180 ud- and du-chains between phases.
2182 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
2185 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
2186 instead of POLY_INT_CST.
2188 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2190 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
2193 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
2198 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
2199 (_mm_storeu_si64): Ditto.
2201 2019-03-08 Martin Liska <mliska@suse.cz>
2204 * config/i386/i386.c (ix86_option_override_internal): Disable
2205 jump tables when retpolines are used.
2207 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
2210 * ipa-split.c (execute_split_functions): Do not split
2211 'noinline' or 'section' function.
2213 2019-03-08 Jakub Jelinek <jakub@redhat.com>
2216 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
2217 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
2218 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
2221 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
2222 from diagnostics. Formatting fixes.
2225 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
2226 warn_odr diagnostics.
2229 * lra-constraints.c (process_alt_operands): Avoid one space before
2230 " at the end of line and another after " on another line in a string
2232 * attribs.c (handle_dll_attribute): Likewise.
2233 * config/avr/avr-devices.c (avr_texinfo): Likewise.
2235 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
2236 warning_at or inform messages in G_() if there is no ?:.
2238 PR tree-optimization/89550
2239 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
2240 returned true. Formatting fixes.
2241 (expand_builtin_strnlen): Formatting fixes.
2242 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
2243 if warning_at returned true.
2244 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
2246 2019-03-08 Richard Biener <rguenther@suse.de>
2249 * cfgloop.h (struct loop): Add owned_clique field.
2250 * cfgloopmanip.c (copy_loop_info): Copy it.
2251 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
2253 * tree-inline.c (copy_loops): Remap owned_clique.
2254 * lto-streamer-in.c (input_cfg): Stream owned_clique.
2255 * lto-streamer-out.c (output_cfg): Likewise.
2257 2019-03-08 Jakub Jelinek <jakub@redhat.com>
2260 * config/darwin.c: Include intl.h.
2261 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
2262 composing the message out of two separate parts.
2264 2019-03-07 Jakub Jelinek <jakub@redhat.com>
2267 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
2268 doesn't start with a capital letter and doesn't end with a dot.
2269 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
2270 with a capital letter.
2271 (ix86_mangle_function_version_assembler_name): Likewise.
2272 (ix86_generate_version_dispatcher_body): Likewise.
2273 (fold_builtin_cpu): Likewise.
2274 (get_builtin_code_for_version): Likewise. Remove extraneous space.
2275 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
2276 translators, wrap full type name in %qs.
2278 PR translation/79999
2279 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
2280 depend clause with source (or sink) modifier.
2281 * omp-expand.c (expand_omp_ordered_sink): Likewise.
2284 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
2285 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
2286 (avx512f_load<mode>_mask): New define_expand.
2287 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
2288 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
2289 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
2290 __builtin_ia32_movess_mask): New builtins.
2291 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
2292 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
2293 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
2294 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
2296 2019-03-07 Martin Jambor <mjambor@suse.cz>
2299 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
2300 for extern inline functions.
2302 2019-03-07 Martin Jambor <mjambor@suse.cz>
2305 * cgraph.h (cgraph_node): New inline method former_thunk_p.
2306 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
2307 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
2308 have multiple callees. At the end check if declarations match as
2309 opposed to cgraph_nodes.
2311 2019-03-07 Martin Liska <mliska@suse.cz>
2313 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
2314 which is equivalent to searching for this in clones chain.
2315 * symtab.c (symtab_node::verify_base): Similarly compare ASM
2316 names with a neighbour and special case first node in a chain.
2318 2019-01-25 Jason Merrill <jason@redhat.com>
2320 PR c++/80916 - spurious "static but not defined" warning.
2321 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
2322 for an internal symbol with DECL_EXTERNAL.
2324 2019-04-07 Richard Biener <rguenther@suse.de>
2327 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
2328 * tree-inline.c (copy_loops): Simplify.
2330 2019-03-07 Martin Liska <mliska@suse.cz>
2332 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
2334 2019-03-07 Richard Biener <rguenther@suse.de>
2336 PR tree-optimization/89595
2337 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
2338 stmt iterator as reference, take boolean output parameter to
2339 indicate whether the stmt was removed and thus the iterator
2341 (dom_opt_dom_walker::before_dom_children): Re-iterate over
2342 stmts created by folding.
2344 2019-03-07 Jakub Jelinek <jakub@redhat.com>
2347 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
2350 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
2352 PR rtl-optimization/88845
2353 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
2355 * lra.c (remove_scratches_1): New function.
2356 (remove_scratches): Use it.
2357 (lra_emit_move): Likewise.
2359 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
2361 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
2362 unaligned_access variable.
2363 * config/arc/arc.c (arc_override_options): Set unaligned access
2364 default on for HS CPUs.
2365 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
2367 2019-03-06 Martin Liska <mliska@suse.cz>
2369 PR gcov-profile/89577
2370 * doc/gcov.texi: Prefer to use --coverage.
2371 * doc/sourcebuild.texi: Likewise.
2373 2019-03-02 Jason Merrill <jason@redhat.com>
2375 PR c++/86485 - -Wmaybe-unused with empty class ?:
2376 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
2378 2019-03-05 Jakub Jelinek <jakub@redhat.com>
2381 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
2385 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
2386 exactly one argument.
2388 2019-03-05 Jakub Jelinek <jakub@redhat.com>
2389 Richard Sandiford <richard.sandiford@arm.com>
2391 PR tree-optimization/89570
2392 * match.pd (vec_cond into cond_op simplification): Don't use
2393 get_conditional_internal_fn, use as_internal_fn (cond_op).
2395 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
2398 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
2399 to decide when to split off a non-zero offset from a symbol.
2400 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
2401 in function symbols.
2403 2019-03-05 Richard Biener <rguenther@suse.de>
2405 PR tree-optimization/89594
2406 * tree-if-conv.c (pass_if_conversion::execute): Handle
2407 case where .LOOP_VECTORIZED_FUNCTION was removed.
2409 2019-03-05 Jakub Jelinek <jakub@redhat.com>
2412 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
2413 instead alloca it only when needed with the needed size.
2415 PR tree-optimization/89570
2416 * match.pd (vec_cond into cond_op simplification): Guard with
2417 vectorized_internal_fn_supported_p test and #if GIMPLE.
2419 PR tree-optimization/89566
2420 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
2421 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
2422 Punt if get_user_idx_format succeeds, but idx_format argument is
2423 not provided or doesn't have pointer type, or if idx_args is above
2424 number of provided arguments.
2426 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
2428 PR tree-optimization/89437
2429 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
2431 2019-03-04 Richard Biener <rguenther@suse.de>
2434 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
2437 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
2439 PR tree-optimization/89487
2440 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
2441 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
2442 (distribute_loop): Don't do runtime alias check if there is non-
2443 addressable data reference.
2444 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
2445 is a register variable.
2447 2019-03-02 Jakub Jelinek <jakub@redhat.com>
2450 * config/arm/arm.md (cmpsi2_addneg): Use
2451 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
2452 If operands[2] is 0 or INT_MIN, force use of subs.
2453 (*compare_scc splitter): Use gen_int_mode.
2454 (*negscc): Likewise.
2455 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
2457 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
2458 Monk Chiang <sh.chiang04@gmail.com>
2460 * common/config/riscv/riscv-common.c: Include sstream.
2461 (riscv_subset_list::to_string): New.
2462 (riscv_arch_str): Likewise.
2463 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
2465 * config/riscv/riscv-protos.h (riscv_arch_str): New.
2466 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
2467 (riscv_emit_attribute): New.
2468 (riscv_file_start): Emit attribute if needed.
2469 (riscv_option_override): Init riscv_emit_attribute_p.
2470 * config/riscv/riscv.opt (mriscv-attribute): New option.
2471 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
2473 * doc/install.texi: Document --with-riscv-attribute.
2474 * doc/invoke.texi: Document -mriscv-attribute.
2476 * common/config/riscv/riscv-common.c:
2477 Include config/riscv/riscv-protos.h.
2478 (INCLUDE_STRING): Defined.
2479 (RISCV_DONT_CARE_VERSION): Defined.
2480 (riscv_subset_t): Declare.
2481 (riscv_subset_t::riscv_subset_t): New.
2482 (riscv_subset_list): Declare.
2483 (riscv_subset_list::riscv_subset_list): New.
2484 (riscv_subset_list::~riscv_subset_list): Likewise.
2485 (riscv_subset_list::parsing_subset_version): Likewise.
2486 (riscv_subset_list::parse_std_ext): Likewise.
2487 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
2488 (riscv_subset_list::add): Likewise.
2489 (riscv_subset_list::lookup): Likewise.
2490 (riscv_subset_list::xlen): Likewise.
2491 (riscv_subset_list::parse): Likewise.
2492 (riscv_supported_std_ext): Likewise.
2493 (current_subset_list): Likewise.
2494 (riscv_parse_arch_string): Using riscv_subset_list::parse to
2497 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
2499 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
2500 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
2501 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
2503 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
2505 PR rtl-optimization/85899
2506 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
2507 fallthru edges leading to the exit block.
2509 2019-03-01 Tamar Christina <tamar.christina@arm.com>
2512 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
2513 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
2515 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
2517 PR tree-optimization/89535
2518 * tree-vect-stmts.c (vectorizable_call): Record the vector types
2519 for each operand. Calculate the fallback choice for mask operands
2520 and pass it to vect_get_vec_def_for_operand.
2522 2019-03-01 Richard Biener <rguenther@suse.de>
2525 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
2526 get virtual operands.
2527 (get_expr_operands): Handle CONST_DECL like other decls.
2529 2019-03-01 Jakub Jelinek <jakub@redhat.com>
2532 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
2533 on DECL_P and EXPR_P.
2535 2019-03-01 Richard Biener <rguenther@suse.de>
2538 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
2539 argument, defaulted to zero.
2540 * passes.c (execute_function_todo): Pass down SSA update flags
2541 to cleanup_tree_cfg.
2542 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
2543 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
2545 (cleanup_tree_cfg): Get and pass down SSA update flags.
2547 2019-03-01 Jakub Jelinek <jakub@redhat.com>
2550 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
2551 early_lto_debug argument.
2553 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
2555 PR tree-optimization/89536
2556 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
2557 only whether bit #0 of the value is 0 instead of the entire value.
2559 2019-02-28 Marek Polacek <polacek@redhat.com>
2561 PR c++/87068 - missing diagnostic with fallthrough statement.
2562 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
2563 at the end of a seq, save its location to walk_stmt_info.
2564 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
2567 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
2570 * tree.c (find_atomic_core_type): Move ahead in file.
2571 (check_base_type): Correctly compare alignments of atomic types.
2573 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
2576 * config/i386/i386.c (get_builtin_code_for_version): Identify
2577 Westmere from PCLMUL, instead of AES.
2579 2019-02-28 Jakub Jelinek <jakub@redhat.com>
2582 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
2583 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
2586 2019-02-28 Tamar Christina <tamar.christina@arm.com>
2589 * config/aarch64/aarch64-option-extensions.def: Document it.
2590 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
2593 2019-02-28 Jakub Jelinek <jakub@redhat.com>
2596 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
2597 builtins if they don't have a single scalar floating point argument.
2600 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2602 PR rtl-optimization/89490
2603 * varasm.c (get_block_for_section): Bail out for mergeable sections.
2604 (default_use_anchors_for_symbol_p, output_object_block): Assert the
2605 block section is not mergeable.
2607 2019-02-27 Jakub Jelinek <jakub@redhat.com>
2610 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
2611 old define_insn to ...
2612 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
2613 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
2614 Rename old define_insn to ...
2615 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
2616 (thumb2_casesi_internal_pic): New define_expand. Rename old
2618 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
2619 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
2620 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
2622 2019-02-27 Richard Biener <rguenther@suse.de>
2625 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
2627 2019-02-27 Richard Biener <rguenther@suse.de>
2629 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
2632 2019-02-27 Richard Biener <rguenther@suse.de>
2635 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
2636 parameter, prefix section name with .gnu.debuglto_ if true.
2637 (dwarf2out_finish): Pass false to output_comdat_type_unit.
2638 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
2640 2019-02-27 Richard Biener <rguenther@suse.de>
2643 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
2644 rather than on use_debug_types, doing what output_die does.
2645 (value_format): Likewise.
2647 2019-02-27 Martin Jambor <mjambor@suse.cz>
2648 Martin Sebor <msebor@redhat.com>
2650 * doc/invoke.texi (Warning Options): Reword description of
2651 -Wno-absolute-value.
2653 2019-02-27 Jakub Jelinek <jakub@redhat.com>
2655 PR tree-optimization/89280
2656 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
2657 builtin_setjmp_setup_bb): New functions.
2658 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
2659 When visiting __builtin_setjmp_setup block, queue in special
2660 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
2661 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
2662 from visited after the loop if they don't have any visited successor
2665 2018-02-26 Steve Ellcey <sellcey@marvell.com>
2667 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
2669 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
2671 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2674 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
2675 with types other than sizetype/ssizetype.
2677 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
2679 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
2680 (enum sparc_processor_type): ...this.
2681 (enum sparc_code_model_type): New enumeration type.
2682 (enum sparc_memory_model_type): Tweak comments.
2683 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
2685 (mcmodel): Use sparc_code_model enumeration and variable.
2686 (sparc_code_model): New enumeration.
2687 (mdebug): Add Undocumented marker.
2688 * config/sparc/sparc.h (enum cmodel): Delete.
2689 (sparc_cmodel): Likewise.
2690 (TARGET_CM_MEDLOW): Adjust to above renaming.
2691 (TARGET_CM_MEDMID): Likewise.
2692 (TARGET_CM_MEDANY): Likewise.
2693 (TARGET_CM_EMBMEDANY): Likewise.
2694 * config/sparc/sparc.c (sparc_cmodel): Delete.
2695 (sparc_option_override): Remove string/value mapping support for the
2696 code model. Move code and memory model support to after the handling
2697 of target flags. Do private machine setup last.
2698 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
2699 (sparc_legitimize_reload_address): Likewise.
2700 (sparc_output_mi_thunk): Likewise.
2701 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
2703 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2705 PR tree-optimization/89500
2706 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
2707 (handle_builtin_strlen): Remove noncst_bound variable. Always
2708 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
2709 cst if the first cst bytes starting at x are known to be non-zero,
2710 even if the string is not zero terminated. Don't try to modify
2711 *si for strnlen. Update strlen_to_stridx only for strlen or if
2712 we can prove strnlen returns the same value as strlen would.
2714 2019-02-26 Martin Liska <mliska@suse.cz>
2716 * alloc-pool.h (struct pool_usage): Remove extra
2718 * bitmap.h (struct bitmap_usage): Likewise.
2719 * ggc-common.c (struct ggc_usage): Likewise.
2720 * mem-stats.h (struct mem_usage): Likewise.
2721 (mem_alloc_description::dump): Print dash lines
2722 here and repeat header at the end of a table report.
2723 It's then more readable.
2724 * tree-phinodes.c (phinodes_print_statistics): Make
2725 horizontal alignment.
2726 * tree-ssanames.c (ssanames_print_statistics): Likewise.
2727 * vec.c (struct vec_usage): Remove extra print_dash_line.
2728 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
2730 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
2732 * doc/extend.texi (__builtin_object_size):
2733 Use @pxref instead of @xref inside parenthesis.
2734 (__builtin_has_attribute): Add missing comma after @xref.
2735 (__builtin_object_size): Ditto.
2736 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
2737 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
2740 2019-02-26 Jeff Law <law@redhat.com>
2742 PR rtl-optimization/87761
2743 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
2744 detect obviously dead insns and delete them.
2746 2019-02-26 Richard Biener <rguenther@suse.de>
2748 PR tree-optimization/89505
2749 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
2750 to handle restrict pointed-to vars with multiple subvars
2753 2019-02-26 Richard Biener <rguenther@suse.de>
2755 PR tree-optimization/89489
2756 * tree-parloops.c (create_loop_fn): Copy over last_clique.
2758 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
2760 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
2761 and move around comment.
2762 <BIT_AND_EXPR>: Likewise.
2763 <BIT_NOT_EXPR>: Add specific handling for boolean types.
2765 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2768 * config/i386/i386.c (remove_partial_avx_dependency): Call
2769 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
2770 after changing possibly many instructions to use that pseudo. Fix up
2771 insertion of v4sf_const0 setter at the start of bb.
2773 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2776 * doc/extend.texi (Variadic Pointer Args): New section.
2778 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2779 Martin Sebor <msebor@gmail.com>
2781 * common.opt (Wattribute-alias): Likewise.
2782 * doc/invoke.texi (Option Summary): List general form of
2783 -Wattribute-alias=. List positive form of -Wmissing-attributes.
2784 (-Wmissing-attributes): Invert entry, rewrite and correct default.
2785 Add cross-references.
2786 (-Wattribute-alias): Rewrite and correct default. Mention
2787 considered attributes (same as for -Wmissing-attributes).
2789 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
2791 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
2792 (_mm_cvtpd_ps): Likewise.
2793 (_mm_cvttpd_epi32): Likewise.
2796 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
2797 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
2800 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
2802 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2805 * common/config/aarch64/aarch64-common.c
2806 (struct aarch64_option_extension): Add is_synthetic.
2807 (all_extensions): Use it.
2808 (TARGET_OPTION_INIT_STRUCT): Define hook.
2809 (struct gcc_targetm_common): Moved to end.
2810 (all_extensions_by_on): New.
2811 (opt_ext_cmp, typedef opt_ext): New.
2812 (aarch64_option_init_struct): New.
2813 (aarch64_contains_opt): New.
2814 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
2815 * config/aarch64/aarch64-option-extensions.def
2816 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
2817 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
2818 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
2819 Set is_synthetic to false.
2820 (crypto): Set is_synthetic to true.
2821 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
2824 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2826 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2827 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
2828 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2829 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
2830 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
2831 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
2832 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
2833 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
2835 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
2836 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2837 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
2838 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
2839 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
2840 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
2841 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
2842 vfmlsl_laneq_high_f16): ... To this.
2843 * config/arm/neon.md: Update comments.
2845 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2847 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2848 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
2849 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2850 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
2851 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
2852 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
2853 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
2854 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
2856 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
2857 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2858 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
2859 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
2860 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
2861 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
2862 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
2863 vfmlslq_laneq_high_f16): ... To this.
2865 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
2867 PR rtl-optimization/86096
2868 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
2869 comparing mw_order values.
2871 2019-02-25 Jakub Jelinek <jakub@redhat.com>
2874 * config/arm/arm.md (*subsi3_carryin_const): Use
2875 arm_neg_immediate_operand predicate instead of
2876 arm_not_immediate_operand, "L" constraint instead of "K" and
2877 print it using %n2 instead of %B2.
2878 (*subsi3_carryin_const0): New define_insn.
2879 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
2880 instead of arm_not_operand and "I" constraint instead of "K" and
2881 print it using %n3 instead of %B2. Instead of using match_dup 2 add
2882 another match_operand and in the condition check that it is negation
2884 (*subsi3_carryin_compare_const0): New define_ins.
2885 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
2886 *subsi3_carryin_const.
2887 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
2888 split into *subsi3_carryin_compare_const0 if the highpart is zero.
2891 * config/arm.vfp.md (*negdf2_vfp): Use
2892 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
2893 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
2895 2019-02-24 Jakub Jelinek <jakub@redhat.com>
2897 PR rtl-optimization/89445
2898 * simplify-rtx.c (simplify_ternary_operation): Don't use
2899 simplify_merge_mask on operands that may trap.
2900 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
2901 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
2902 second operand is CONST_VECTOR, check if any element could be zero.
2903 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
2904 their operands can trap.
2906 2019-02-23 Martin Sebor <msebor@redhat.com>
2908 * gimple-ssa-sprintf.c (target_strtol): Rename...
2909 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
2910 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
2911 check for range error.
2913 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
2916 * opts-common.c (prune_options): Also prune joined switches
2917 with Negative and RejectNegative.
2918 * config/i386/i386.opt (march=): Add Negative(march=).
2919 (mtune=): Add Negative(mtune=).
2920 * doc/options.texi: Document Negative used together with Joined
2923 2019-02-22 Martin Sebor <msebor@redhat.com>
2925 * doc/extend.texi (Other Builtins): Add
2926 __builtin_is_constant_evaluated.
2928 2019-02-22 Richard Biener <rguenther@suse.de>
2930 PR tree-optimization/87609
2931 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
2933 2019-02-22 Jeff Law <law@redhat.com>
2935 PR rtl-optimization/87761
2936 * config/mips/mips.md: Add new combiner pattern to recognize
2937 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
2939 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
2942 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
2943 destination register in peepholes generating patterns for ADDS/SUBS.
2944 (add<mode>3_compare0,
2945 *addsi3_compare0_uxtw, add<mode>3_compareC,
2946 add<mode>3_compareV_imm, add<mode>3_compareV,
2947 *adds_<optab><ALLX:mode>_<GPI:mode>,
2948 *subs_<optab><ALLX:mode>_<GPI:mode>,
2949 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
2950 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
2951 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
2952 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
2953 sub<mode>3_compare1): Allow stack pointer for source register.
2954 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
2956 2019-02-22 Martin Sebor <msebor@redhat.com>
2958 PR tree-optimization/88993
2959 PR tree-optimization/88853
2960 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
2962 (sprintf_dom_walker::call_info::is_string_func): New helper.
2963 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
2964 for formatted string functions.
2965 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
2967 2019-02-22 Martin Sebor <msebor@redhat.com>
2970 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
2971 unreachable subexpressions.
2973 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
2974 Hongtao Liu <hongtao.liu@intel.com>
2975 Sunil K Pandey <sunil.k.pandey@intel.com>
2978 * config/i386/i386-passes.def: Add
2979 pass_remove_partial_avx_dependency.
2980 * config/i386/i386-protos.h
2981 (make_pass_remove_partial_avx_dependency): New.
2982 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
2984 (pass_data_remove_partial_avx_dependency): New.
2985 (pass_remove_partial_avx_dependency): Likewise.
2986 (make_pass_remove_partial_avx_dependency): Likewise.
2987 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
2988 (*extendsfdf2): Add avx_partial_xmm_update.
2989 (truncdfsf2): Likewise.
2990 (*float<SWI48:mode><MODEF:mode>2): Likewise.
2991 (SF/DF conversion splitters): Disabled for TARGET_AVX.
2993 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
2996 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
2999 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
3002 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
3003 (PTA_SKYLAKE): Add PTA_AES.
3004 (PTA_GOLDMONT): Likewise.
3006 2019-02-22 Sudakshina Das <sudi.das@arm.com>
3008 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
3009 instruction if enabled.
3010 (aarch64_override_options): Remove reference to return address key.
3012 2019-02-22 Richard Biener <rguenther@suse.de>
3014 PR tree-optimization/89440
3015 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
3016 not necessary assert.
3018 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
3021 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
3022 (oacc_replace_fn_attrib_attr): ... this new function.
3023 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
3024 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
3026 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3028 * config/arm/arm-cpus.in (ares): Rename to...
3029 (neoverse-n1): ... This. Add ares as alias.
3030 * config/arm/arm-tables.opt: Regenerate.
3031 * config/arm/arm-tune.md: Likewise.
3032 * doc/invoke.txt (ARM Options): Document neoverse-n1.
3034 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3036 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
3037 * config/aarch64/aarch64-tune.md: Regenerate.
3038 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
3040 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3042 * config/aarch64/aarch64.c (ares_tunings): Rename to...
3043 (neoversen1_tunings): ... This.
3044 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
3045 (neoverse-n1): New CPU.
3046 * config/aarch64/aarch64-tune.md: Regenerate.
3047 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
3049 2019-02-22 Richard Biener <rguenther@suse.de>
3052 * cfghooks.h (dependence_hash): New typedef.
3053 (struct copy_bb_data): New type.
3054 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
3055 (duplicate_block): Likewise.
3056 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
3057 (copy_bbs): Create and pass down copy_bb_data.
3058 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
3059 (rtl_duplicate_bb): Likewise.
3060 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
3061 remap dependence info.
3063 2019-02-22 Richard Biener <rguenther@suse.de>
3065 PR tree-optimization/87609
3066 * tree-core.h (tree_base): Document special clique values.
3067 * tree-inline.c (remap_dependence_clique): Do not use the
3068 special clique value of one.
3069 (maybe_set_dependence_info): Use clique one.
3070 (clear_dependence_clique): New callback.
3071 (compute_dependence_clique): Clear clique one from all refs
3072 before assigning it (again).
3074 2019-02-21 Martin Sebor <msebor@redhat.com>
3076 * doc/extend.texi (__clear_cache): Correct signature.
3078 2019-02-21 Ian Lance Taylor <iant@golang.org>
3081 * varasm.c (decode_addr_const): Call lookup_constant_def rather
3082 than output_constant_def.
3083 (add_constant_to_table): New static function.
3084 (output_constant_def): Call add_constant_to_table.
3085 (tree_output_constant_def): Likewise.
3087 2019-02-21 Jakub Jelinek <jakub@redhat.com>
3090 * builtins.c (fold_builtin_arith_overflow): If first two args are
3091 INTEGER_CSTs, set intres and ovfres to constants rather than calls
3094 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
3097 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
3098 error for -mindirect-branch/-mfunction-return with incompatible
3101 2019-02-21 Jakub Jelinek <jakub@redhat.com>
3104 * constraints.md (q): Remove.
3105 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
3108 2019-02-21 Martin Jambor <mjambor@suse.cz>
3111 * omp-general.c (omp_extract_for_data): Removed a duplicate call
3112 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
3113 (omp_adjust_for_condition): ...here. Added necessary parameters.
3114 * omp-general.h (omp_adjust_for_condition): Updated declaration.
3115 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
3116 proper values to new parameters of omp_adjust_for_condition.
3118 2019-02-20 Jakub Jelinek <jakub@redhat.com>
3121 * expr.c (expand_assignment): If result is a MEM, use change_address
3122 instead of simplify_gen_subreg.
3124 2019-02-20 Jakub Jelinek <jakub@redhat.com>
3125 David Malcolm <dmalcolm@redhat.com>
3128 * fold-const.c (decode_field_reference): Return NULL_TREE if
3129 lang_hooks.types.type_for_size returns NULL. Check it before
3130 overwriting *exp_. Use return NULL_TREE instead of return 0.
3132 2019-02-20 Jakub Jelinek <jakub@redhat.com>
3136 * toplev.c (do_compile): Double the emin/emax exponents to workaround
3139 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
3142 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
3143 TARGET_SSE in addition to TARGET_SSE_MATH.
3145 (ix86_excess_precision): Ditto.
3146 (ix86_float_exceptions_rounding_supported_p): Ditto.
3147 (use_rsqrt_p): Ditto.
3148 * config/i386/sse.md (rsqrt<mode>2): Ditto.
3150 2019-02-20 David Malcolm <dmalcolm@redhat.com>
3153 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
3154 linenum_arith_t when determining if two adjacent line spans are
3155 close enough to merge.
3156 (diagnostic_show_locus): Use linenum_arith_t when iterating over
3157 lines within each line_span.
3159 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
3162 * lra-constraints.c(uses_hard_regs_p): Fix handling of
3163 paradoxical SUBREGS.
3165 2019-02-20 Li Jia He <helijia@linux.ibm.com>
3168 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
3169 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
3170 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
3173 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
3175 * config/gcn/gcn.c (print_operand): Fix typo.
3177 2019-02-19 Richard Biener <rguenther@suse.de>
3180 * toplev.c (do_compile): Initialize mpfr's exponent range
3181 based on available float modes.
3183 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
3185 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
3186 as long as the epilogue isn't completed.
3188 2019-02-18 Martin Sebor <msebor@redhat.com>
3190 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
3191 __has_cpp_attribute, and __has_include.
3193 2019-02-18 Martin Sebor <msebor@redhat.com>
3195 * doc/invoke.texi (-Wreturn-type): Correct and expand.
3197 2019-02-18 Martin Sebor <msebor@redhat.com>
3200 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
3202 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
3204 2019-02-18 Richard Biener <rguenther@suse.de>
3206 PR tree-optimization/89296
3207 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
3208 of no-warning flag to cases that might emit the bogus warning.
3210 2019-02-18 Jakub Jelinek <jakub@redhat.com>
3213 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
3215 * config/arm/vfp.md (*movdi_vfp): Likewise.
3216 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
3217 "q" constraint for operands[0].
3220 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
3221 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
3222 pattern in a temporary buffer.
3223 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
3224 than 64-operands[2].
3227 * config/s390/s390.c (s390_indirect_branch_attrvalue,
3228 s390_indirect_branch_settings): Define unconditionally.
3229 (s390_set_current_function): Likewise, but guard the whole body except
3230 the s390_indirect_branch_settings call with
3231 #if S390_USE_TARGET_ATTRIBUTE.
3232 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
3234 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
3235 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
3236 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
3237 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
3238 HOST_WIDE_INT_1U instead of 1ULL.
3239 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
3240 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
3241 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
3242 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
3244 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
3247 2019-02-18 Martin Jambor <mjambor@suse.cz>
3249 PR tree-optimization/89209
3250 * tree-sra.c (create_access_replacement): New optional parameter
3251 reg_tree. Use it as a type if non-NULL and access type is not of
3253 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
3254 to create_access_replacement.
3255 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
3256 Check lacc is non-NULL before attempting to re-create it on the RHS.
3258 2019-02-18 Martin Liska <mliska@suse.cz>
3261 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
3263 (symbol_table::free_edge): Recycle m_summary_id.
3264 * cgraph.h (get_summary_id): New.
3265 (symbol_table::release_symbol): Set m_summary_id to -1
3267 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
3268 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
3269 function_summary to fast_function_summary.
3270 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
3271 * ipa-pure-const.c (class funct_state_summary_t):
3272 Switch from function_summary to fast_function_summary.
3273 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
3274 (class ipa_ref_opt_summary_t): Switch from function_summary
3275 to fast_function_summary.
3276 * symbol-summary.h (class function_summary_base): New class
3277 that is created from base of former function_summary.
3278 (function_summary_base::unregister_hooks): New.
3279 (class function_summary): Inherit from function_summary_base.
3280 (class call_summary_base): New class
3281 that is created from base of former call_summary.
3282 (class call_summary): Inherit from call_summary_base.
3283 (struct is_same): New.
3284 (class fast_function_summary): New summary class.
3285 (class fast_call_summary): New summary class.
3286 * vec.h (vec_safe_grow_cleared): New function.
3288 2019-02-18 Martin Liska <mliska@suse.cz>
3290 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
3291 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
3292 * doc/tm.texi: Document new target hook.
3293 * doc/tm.texi.in: Likewise.
3294 * target.def: Add new target macro.
3295 * gcc.c (find_fortran_preinclude_file): Do not search multilib
3298 2019-02-17 Alan Modra <amodra@gmail.com>
3301 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
3302 output reg on add insn.
3303 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
3305 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
3308 * config/i386/sse.md (ssedoublemode): Remove V4HI.
3309 (PMULHRSW): Likewise.
3310 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
3312 (ssse3_pmulhrswv4hi3): New expander.
3314 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
3316 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
3317 MMX. Add isa attribute.
3319 2019-02-16 Jakub Jelinek <jakub@redhat.com>
3321 PR rtl-optimization/66152
3322 * builtins.h (c_readstr): Declare.
3323 * builtins.c (c_readstr): Remove forward declaration. Add
3324 null_terminated_p argument, if false, read all bytes from the
3325 string instead of stopping after '\0'.
3326 * expr.c (string_cst_read_str): New function.
3327 (store_expr): Use string_cst_read_str instead of
3328 builtin_strncpy_read_str. Try to store by pieces the whole
3329 exp_len first, and only if that fails, split it up into
3330 store by pieces followed by clear_storage. Formatting fix.
3332 * config/i386/i386.md (*movqi_internal): Remove static from
3333 buf variable. Use output_asm_insn (buf, operands); return "";
3334 instead of return buf;.
3335 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
3336 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
3337 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
3339 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
3341 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
3342 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
3343 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
3344 (CC1_SPEC): Likewise.
3345 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
3347 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
3349 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
3350 the base address on 64-bit strict-alignment platforms.
3352 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
3354 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
3356 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
3358 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
3360 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
3362 PR rtl-optimization/88308
3363 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
3364 on copied instruction.
3366 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
3368 * final.c (insn_current_reference_address): Replace test on JUMP_P
3369 with test on jump_to_label_p.
3370 * config/visium/visium-passes.def: New file.
3371 * config/visium/t-visium (PASSES_EXTRA): Define.
3372 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
3373 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
3374 (TRAMPOLINE_ALIGNMENT): Define.
3375 * config/visium/visium.c (visium_option_override): Do not register
3376 the machine-specific reorg pass here.
3377 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
3379 (output_branch): Adjust threshold for long branch instruction.
3380 * config/visium/visium.md (cpu): Move around.
3381 (length): Adjust for the GR6.
3383 2019-02-15 Richard Biener <rguenther@suse.de>
3384 Jakub Jelinek <jakub@redhat.com>
3386 PR tree-optimization/89278
3387 * tree-loop-distribution.c: Include tree-eh.h.
3388 (generate_memset_builtin, generate_memcpy_builtin): Call
3389 rewrite_to_non_trapping_overflow on builtin->size before passing it
3390 to force_gimple_operand_gsi.
3392 2019-02-15 Jakub Jelinek <jakub@redhat.com>
3395 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
3397 * opth-gen.awk: Likewise.
3399 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
3401 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
3402 Enable MMX, SSE and SSE2 by default.
3403 * config/i386/i386.c (ix86_option_override_internal): Do not
3404 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
3406 2019-02-14 Jakub Jelinek <jakub@redhat.com>
3408 PR rtl-optimization/89354
3409 * combine.c (make_extraction): Punt if extraction_mode is narrower
3412 2019-02-14 Maya Rashish <coypu@sdf.org>
3414 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
3415 * config/netbsd-d.c: New file.
3416 * config/t-netbsd: Add netbsd-d.o
3418 2018-02-14 Steve Ellcey <sellcey@marvell.com>
3420 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
3421 affects_type_identity to true for aarch64_vector_pcs.
3422 (aarch64_comp_type_attributes): New function.
3423 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
3425 2019-02-14 Tamar Christina <tamar.christina@arm.com>
3428 * config/arm/iterators.md (ANY64): Add V4HF.
3430 2019-02-14 Martin Liska <mliska@suse.cz>
3432 PR rtl-optimization/89242
3433 * dce.c (delete_unmarked_insns): Call free_dominance_info we
3434 process a transformation.
3436 2019-02-14 Jakub Jelinek <jakub@redhat.com>
3438 PR tree-optimization/89314
3439 * fold-const.c (fold_binary_loc): Cast strlen argument to
3440 const char * before dereferencing it. Formatting fixes.
3443 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
3445 2019-02-13 Ian Lance Taylor <iant@golang.org>
3447 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
3448 and set current index for other optimizations.
3450 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
3452 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
3453 nonimmediate_operand as operand 2 predicate.
3454 (vec_set<VF2_512_256:mode>_0): Ditto.
3455 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
3456 (*vec_concatv2si): Remove alternative 2.
3457 (*vec_concatv4si_0): Use vm constraint for alternative 0.
3458 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
3459 (vec_concatv2di): Split alternatives 4,5,6 to ...
3460 (*vec_concatv2di_0) ... new pattern.
3462 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
3465 * config/arm/arm.c (ldm_stm_operation_p) Set
3466 addr_reg_in_reglist correctly for first register.
3467 (load_multiple_sequence): Remove dead base check.
3468 (gen_ldm_seq): Correctly set write_back for Thumb-1.
3470 2019-02-13 Tamar Christina <tamar.christina@arm.com>
3473 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
3474 Expose as @aarch64_pred_mov.
3475 * config/aarch64/aarch64.c (aarch64_classify_address):
3476 Use expand_insn which legitimizes operands.
3478 2019-02-13 Martin Liska <mliska@suse.cz>
3480 * builtins.h (expand_builtin_with_bounds): Remove declaration.
3481 * calls.c (struct arg_data): Remove special_slot, pointer_arg
3482 and pointer_offset fields.
3483 (initialize_argument_information): Remove usage of dead
3485 * cgraph.h (struct cgraph_thunk_info): Remove
3486 add_pointer_bounds_args.
3487 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
3489 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
3491 * config/i386/i386.c (ix86_function_arg_advance): Remove
3493 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
3494 (def_builtin): Remove usage of dead
3496 (ix86_add_new_builtins): Likewise.
3497 * ipa-fnsummary.c (compute_fn_summary): Likewise.
3498 * ipa-icf.c (sem_function::equals_wpa): Likewise.
3499 (sem_function::init): Likewise.
3500 (sem_variable::merge): Likewise.
3501 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3502 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3503 * lto-cgraph.c (lto_output_node): Likewise.
3504 (lto_output_varpool_node): Likewise.
3505 (input_node): Likewise.
3506 (input_varpool_node): Likewise.
3507 * lto-streamer-out.c (lto_output): Likewise.
3508 * tree-inline.c (expand_call_inline): Remove usage of
3510 * tree-inline.h (struct copy_body_data): Likewise.
3511 * varpool.c (varpool_node::dump): Likewise.
3513 2019-02-13 Jakub Jelinek <jakub@redhat.com>
3516 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
3517 into pt->vars_contains_escaped_heap instead of setting
3518 pt->vars_contains_escaped_heap to it.
3521 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
3522 INTVAL (size), compare it to GET_MODE_MASK instead of
3523 1 << GET_MODE_BITSIZE.
3526 * config/i386/predicates.md (x86_64_immediate_operand): Allow
3527 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
3530 2019-02-13 Martin Liska <mliska@suse.cz>
3533 * cfgrtl.c (remove_barriers_from_footer): New function.
3534 (try_redirect_by_replacing_jump): Use it.
3535 (cfg_layout_redirect_edge_and_branch): Likewise.
3537 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
3539 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
3540 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
3541 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
3542 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
3543 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
3544 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
3546 * config/rs6000/rs6000.c (builtin_function_type)
3547 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
3548 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
3549 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
3550 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
3551 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
3553 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
3555 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
3556 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
3558 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
3561 * config/i386/i386.md (*movoi_internal_avx): Revert revision
3562 268678 and revision 268657.
3563 (*movti_internal): Likewise.
3565 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
3568 * config/s390/s390.c (s390_decompose_address): Update comment.
3569 (s390_check_qrst_address): Reject invalid address forms after
3572 2019-02-12 Martin Liska <mliska@suse.cz>
3575 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
3576 we need default values of funct_state for a function that
3579 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
3581 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
3582 the object to pick the size of stores on strict-alignment platforms.
3584 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
3585 (*movdi_insn_sp32): Likewise.
3586 (*movdi_insn_sp64): Likewise.
3588 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
3591 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
3592 types that needs constructiong.
3593 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
3595 2019-02-12 Richard Biener <rguenther@suse.de>
3597 PR tree-optimization/89253
3598 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
3601 2019-02-11 David Malcolm <dmalcolm@redhat.com>
3604 * input.c (selftest::test_line_offset_overflow): New selftest.
3605 (selftest::input_c_tests): Call it.
3607 2019-02-11 Martin Sebor <msebor@redhat.com>
3609 PR tree-optimization/88771
3610 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
3611 when -Wstringop-overflow is set.
3612 (builtin_memref::builtin_memref): Adjust excessive upper bound
3613 only when lower bound is not excessive.
3614 (maybe_diag_overlap): Detect and diagnose excessive bounds via
3615 -Wstringop-ovefflow.
3616 (maybe_diag_offset_bounds): Rename...
3617 (maybe_diag_access_bounds): ...to this.
3618 (check_bounds_or_overlap): Adjust for name change above.
3620 2019-02-11 Martin Sebor <msebor@redhat.com>
3623 * builtins.c (max_object_size): Move from here...
3624 * builtins.h (max_object_size): ...and here...
3625 * tree.c (max_object_size): ...to here...
3626 * tree.h (max_object_size): ...and here.
3628 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
3630 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
3631 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
3632 for correct semantics.
3634 2019-02-11 Alan Modra <amodra@gmail.com>
3636 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
3637 -mlongcall and -mpltseq.
3638 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
3639 (RS/6000 and PowerPC Options <-mpltseq>): Document.
3640 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
3641 * config/rs6000/sysv4.opt (mpltseq): New option.
3642 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
3643 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
3644 support is lacking. Don't allow -mpltseq with -mbss-plt.
3645 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
3646 -mpltseq given for ELFv1.
3647 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
3648 Only use UNSPEC_PLTSEQ for inline PLT calls.
3649 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
3650 use UNSPEC_PLTSEQ for inline PLT calls.
3651 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
3652 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
3653 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
3654 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
3655 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
3656 (pltseq_mtctr_<mode>): Likewise.
3658 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3660 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
3662 * configure: Regenerate.
3664 2019-02-11 Jakub Jelinek <jakub@redhat.com>
3667 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
3670 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
3672 * function.c (assign_parm_setup_block): Use the stored
3673 size, not the passed size, when allocating stack-space,
3674 also for a parameter with alignment larger than
3675 MAX_SUPPORTED_STACK_ALIGNMENT.
3677 2019-02-11 Martin Liska <mliska@suse.cz>
3680 * ipa-cp.c (build_toporder_info): Remove usage of a param.
3681 * ipa-inline.c (inline_small_functions): Likewise.
3682 * ipa-pure-const.c (propagate_pure_const): Likewise.
3683 (propagate_nothrow): Likewise.
3684 * ipa-reference.c (propagate): Likewise.
3685 * ipa-utils.c (struct searchc_env): Remove unused field.
3686 (searchc): Always search across AVAIL_INTERPOSABLE.
3687 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
3688 the only called IPA pure const can properly not propagate
3689 across interposable boundary.
3690 * ipa-utils.h (ipa_reduced_postorder): Remove param.
3692 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
3694 * config/nds32/nds32.md (call_internal, call_value_internal,
3695 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
3697 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
3699 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
3702 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
3704 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
3707 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
3709 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
3711 2019-02-10 Jakub Jelinek <jakub@redhat.com>
3713 PR tree-optimization/89268
3714 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
3715 if preds is non-NULL.
3717 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3720 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
3723 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3725 * config/nds32/nds32.md (trap): New pattern.
3727 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3729 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
3732 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
3734 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
3737 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3739 * ipa-visibility.c (localize_node): Also do not localize
3740 LDPR_PREVAILING_DEF_IRONLY_EXP.
3742 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3745 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
3746 instead of type_with_linkage.
3748 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3751 * params.def (uninlined-function-insns, uninlined-function-time,
3752 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
3753 bound so we don't get overflows.
3755 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
3757 * config/rs6000/rs6000-string.c (expand_compare_loop,
3758 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
3761 2019-02-09 Jakub Jelinek <jakub@redhat.com>
3764 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3765 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
3766 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
3768 2019-02-09 Alan Modra <amodra@gmail.com>
3771 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
3772 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
3775 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
3778 * lra-constraints.c (process_alt_operands): Don't increase reject
3779 for memory when offset memory is required.
3781 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
3783 * config/s390/vector.md: Implement vector copysign.
3785 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3787 * expr.c (expand_constructor): Correct indentations.
3789 2019-02-08 Richard Biener <rguenther@suse.de>
3791 PR tree-optimization/89247
3792 * tree-if-conv.c: Include tree-cfgcleanup.h.
3793 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
3794 (tree_if_conversion): Pass through predicate vector.
3795 (pass_if_conversion::execute): Do CFG cleanup and SSA update
3796 inline, see if any if-converted loops we refrece in
3797 LOOP_VECTORIZED calls vanished and fixup.
3798 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
3800 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
3802 * config/s390/constraints.md (jdd): New constraint.
3804 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3807 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
3808 upper 16 vector registers without TARGET_AVX512VL.
3809 (*movti_internal): Likewise.
3811 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3813 PR rtl-optimization/89234
3814 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
3815 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
3816 (copy_reg_eh_region_note_backward): Likewise.
3818 2019-02-08 Richard Biener <rguenther@suse.de>
3821 * tree-data-ref.c (initialize_matrix_A): Fail if constant
3823 (analyze_subscript_affine_affine): Handle failure from
3824 initialize_matrix_A.
3826 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3828 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
3831 2019-02-07 David Malcolm <dmalcolm@redhat.com>
3833 PR tree-optimization/86637
3834 PR tree-optimization/89235
3835 * tree-vect-loop.c (optimize_mask_stores): Add an
3836 auto_purge_vect_location sentinel to ensure that vect_location is
3839 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
3840 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
3841 to ensure that vect_location is purged on exit.
3842 (pass_slp_vectorize::execute): Likewise, replacing the manual
3844 * tree-vectorizer.h (class auto_purge_vect_location): New class.
3846 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3848 * config/aarch64/iterators.md (max_opp): New code_attr.
3849 (USMAX): New code iterator.
3850 * config/aarch64/predicates.md (aarch64_smin): New predicate.
3851 (aarch64_smax): Likewise.
3852 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
3853 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
3856 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
3859 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
3860 for TARGET_AVX512VL.
3861 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
3863 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
3865 * config/s390/s390-builtin-types.def: Add new types.
3866 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
3867 (s390_vec_xlw4): Make the memory operand into a const pointer.
3868 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
3870 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
3871 a new vector type with the alignment of the scalar memory operand.
3873 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
3874 Jakub Jelinek <jakub@redhat.com>
3877 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
3878 arm_count_ldrdstrd_insns): New declarations.
3879 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
3881 (valid_operands_ldrd_strd): New function.
3882 (arm_count_ldrdstrd_insns): New function.
3883 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
3884 sets instead of single DImode set and define new insns to match this.
3886 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3888 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
3889 Make it a C initializer.
3891 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3894 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
3896 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3898 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
3899 Use neon_dot<q> for type.
3900 (neon_<sup>dot_lane<vsi2qi>): Likewise.
3902 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3904 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
3905 Use neon_dot<q> for type.
3906 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
3907 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
3909 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
3911 PR rtl-optimization/89225
3912 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
3915 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
3917 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
3918 after restoring registers saved to allocate the frame on Windows.
3920 2019-02-06 Richard Biener <rguenther@suse.de>
3922 PR tree-optimization/89182
3923 * graphite.h (cached_scalar_evolution_in_region): Declare.
3924 * graphite.c (struct seir_cache_key): New.
3925 (struct sese_scev_hash): Likewise.
3926 (seir_cache): New global.
3927 (cached_scalar_evolution_in_region): New function.
3928 (graphite_transform_loops): Allocate and release seir_cache.
3929 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
3930 cached_scalar_evolution_in_region.
3931 * graphite-scop-detection.c (scop_detection::can_represent_loop):
3933 (scop_detection::graphite_can_represent_expr: Use
3934 cached_scalar_evolution_in_region.
3935 (scop_detection::stmt_simple_for_scop_p): Likewise.
3936 (find_params_in_bb): Likewise.
3937 (gather_bbs::before_dom_children): Likewise.
3938 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
3939 (add_loop_constraints): Likewise.
3941 2019-02-06 Jakub Jelinek <jakub@redhat.com>
3944 * fold-const-call.c (fold_const_vec_convert): Pass true as last
3945 operand to new_unary_operation only if both element types are integral
3946 and it isn't a widening conversion. Return NULL_TREE if
3947 new_unary_operation failed.
3949 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
3952 * config/s390/s390.md: Remove load and test FP splitter.
3954 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3957 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
3958 expand_compare_loop, expand_block_compare_gpr,
3959 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
3960 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
3961 #include "profile-count.h" and "predict.h" for types and functions
3962 needed to work with REG_BR_PROB notes.
3964 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3967 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
3968 for the long branch case.
3970 2019-02-05 Jakub Jelinek <jakub@redhat.com>
3973 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
3974 can throw, non-call exceptions are enabled and we can't delete
3975 dead exceptions or alter cfg. Set must_clean if
3976 delete_insn_and_edges returns true, don't set it blindly for calls.
3977 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
3979 PR rtl-optimization/89195
3980 * combine.c (make_extraction): For MEMs, don't extract bytes outside
3981 of the original MEM.
3983 2019-02-05 Martin Liska <mliska@suse.cz>
3985 PR gcov-profile/89000
3986 * gcov.c (function_summary): Remove argument.
3987 (file_summary): New function.
3988 (print_usage): Replace tabs with spaces.
3989 (generate_results): Use new function file_summary.
3991 2019-02-05 Jakub Jelinek <jakub@redhat.com>
3994 * optabs.c (prepare_cmp_insn): Pass x and y to
3995 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
3997 2019-02-05 Richard Biener <rguenther@suse.de>
4000 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
4001 (struct bitmap_element): Drop chain_prev so we properly recurse on
4002 the prev member, supporting tree views.
4003 (struct bitmap_head): GTY skip the obstack member.
4005 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
4008 * doc/extend.texi (Vector Extensions): Add an example of using vector
4009 types together with x86 intrinsics.
4011 2019-02-04 Alan Modra <amodra@gmail.com>
4013 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
4014 str[] size to 160, and comment.
4016 2019-02-04 Alan Modra <amodra@gmail.com>
4018 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
4019 (rs6000_pltseq_template): Guard output of TLS markers with
4021 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
4022 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
4023 to use inline PLT sequences.
4024 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
4025 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
4026 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
4028 2019-02-04 Martin Liska <mliska@suse.cz>
4031 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
4032 out when ipa_fn_summaries does not contain entry for callee.
4034 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
4036 * config/sparc/sparc.h: Remove superfluous blank lines.
4037 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
4038 (got_register_rtx): ...this.
4039 (sparc_got): Adjust to above renaming.
4040 (sparc_tls_got): Likewise.
4041 (sparc_delegitimize_address): Likewise.
4042 (sparc_output_mi_thunk): Likewise.
4043 (sparc_init_pic_reg): Likewise.
4044 (save_local_or_in_reg_p): Fix test on the GOT register.
4045 (USE_HIDDEN_LINKONCE): Move around.
4046 (get_pc_thunk_name): Likewise.
4047 (gen_load_pcrel_sym): Likewise.
4048 (load_got_register): Likewise.
4050 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
4052 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
4053 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
4055 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
4057 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
4060 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
4062 * config.gcc (with_nds32_lib, glibc):
4063 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
4064 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
4065 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
4067 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
4070 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
4071 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
4072 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
4073 (*rcpsf2_sse): Ditto.
4074 (*rsqrtsf2_sse): Ditto.
4075 (sse4_1_round<mode<2): Ditto.
4077 2019-02-03 Richard Biener <rguenther@suse.de>
4080 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
4083 2019-02-02 Jakub Jelinek <jakub@redhat.com>
4086 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4087 Punt with warning on aggregate return or argument types. Ignore
4088 type/mode checking for uniform arguments.
4090 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
4092 * combine.c (try_combine): Do not print "Can't combine" messages unless
4093 printing failed combination attempts.
4095 2019-02-01 Martin Jambor <mjambor@suse.cz>
4098 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
4099 segment and global segment variables before making them static.
4101 2019-02-01 Martin Jambor <mjambor@suse.cz>
4103 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
4104 missed optimization dump with dump_enabled_p.
4106 2019-02-01 Richard Biener <rguenther@suse.de>
4109 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
4110 the instantiate cache.
4111 (instantiate_scev_binary): Elide second operand procesing
4112 if equal to the first.
4113 * tree-chrec.c (chrec_contains_symbols): Add visited set.
4114 (chrec_contains_undetermined): Likewise.
4115 (tree_contains_chrecs): Likewise.
4117 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
4119 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
4121 2019-02-01 Jakub Jelinek <jakub@redhat.com>
4123 PR tree-optimization/89143
4124 * wide-int-range.h (wide_int_range_absu): Declare.
4125 * wide-int-range.cc (wide_int_range_absu): New function.
4126 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
4128 PR tree-optimization/88107
4129 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
4130 instead of assertion that eh_region_outermost is non-NULL, if it
4131 is NULL, set *ALL to true and return NULL.
4132 (move_sese_region_to_fn): Adjust caller, if all is set, call
4133 duplicate_eh_regions with NULL region.
4135 2019-02-01 Richard Biener <rguenth@suse.de>
4137 PR rtl-optimization/88593
4138 * mode-switching.c (optimize_mode_switching): Free dominators before
4139 calling cleanup_cfg.
4141 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
4143 PR tree-optimization/88932
4144 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
4146 2019-01-31 Jakub Jelinek <jakub@redhat.com>
4149 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
4150 bogus clang warning.
4152 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
4155 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
4156 alternative to avoid partial SSE register stall for TARGET_AVX.
4157 (truncdfsf2): Ditto.
4158 (sse4_1_round<mode>2): Ditto.
4160 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
4162 PR tree-optimization/89008
4163 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
4164 process anything of the form X * 0.
4166 2019-01-31 Richard Biener <rguenther@suse.de>
4168 PR tree-optimization/89135
4169 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
4170 with abnormal preds.
4172 2019-01-31 Jakub Jelinek <jakub@redhat.com>
4175 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
4176 always_inline callees into no_sanitize_address callers.
4178 2019-01-31 Richard Biener <rguenther@suse.de>
4180 PR rtl-optimization/89115
4181 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
4183 2019-01-30 Martin Sebor <msebor@redhat.com>
4186 * doc/extend.texi (cast to a union): Correct and expand.
4188 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
4190 PR rtl-optimization/87246
4191 * lra-constraints.c (simplify_operand_subreg): Reload memory
4192 in subreg if the address became invalid.
4194 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
4197 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
4198 Disable for little-endian.
4200 2019-01-30 Richard Biener <rguenther@suse.de>
4202 PR rtl-optimization/89115
4203 * opts.c (default_options_optimization): Reduce
4204 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
4205 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
4208 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
4210 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
4211 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
4212 type of vector element when vec_extract is implemented by direct
4215 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
4217 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
4219 2019-01-30 Richard Biener <rguenther@suse.de>
4221 PR tree-optimization/89111
4222 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
4223 canonicalization to appropriately sized access types.
4225 2019-01-30 Jakub Jelinek <jakub@redhat.com>
4228 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
4229 for arguments to functions that are TU-local and shouldn't be
4230 referenced by assembly.
4232 2019-01-30 Ulrich Drepper <drepper@redhat.com>
4234 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
4237 2019-01-29 Martin Sebor <msebor@redhat.com>
4240 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
4242 2019-01-29 Jakub Jelinek <jakub@redhat.com>
4246 * omp-simd-clone.c (simd_clone_clauses_extract)
4247 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
4248 OMP_CLAUSE_ALIGNED_ALIGNMENT.
4250 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
4252 * config.gcc: Force .init_array for ARC.
4254 2019-01-29 Richard Biener <rguenther@suse.de>
4257 * dwarf2out.c (collect_skeleton_dies): New helper.
4258 (copy_decls_for_unworthy_types): Call it.
4259 (build_abbrev_table): Assert we do not try to replace
4260 DW_AT_signature refs with local refs.
4262 2019-01-28 Jakub Jelinek <jakub@redhat.com>
4265 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
4266 for lastprivate/linear IV, push gimplify context around gimplify_assign
4267 and, if it needed any temporaries, pop it into a gimple bind around the
4270 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
4272 * common.opt (-Wattribute-alias): Remove "no-" from name.
4273 Make -Wattribute-alias command line option and
4274 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
4276 2019-01-28 Jakub Jelinek <jakub@redhat.com>
4279 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
4280 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
4282 (bmi2): Add missing @opindex.
4283 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
4284 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
4285 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
4286 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
4287 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
4288 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
4289 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
4290 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
4291 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
4292 xsavec, xsaveopt and xsaves options.
4294 2019-01-28 Richard Biener <rguenther@suse.de>
4297 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
4300 2019-01-28 Richard Biener <rguenther@suse.de>
4302 PR tree-optimization/88739
4303 * tree-cfg.c (verify_types_in_gimple_reference): Verify
4304 BIT_FIELD_REFs only are applied to mode-precision operands
4305 when they are integral.
4306 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
4307 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
4308 BIT_FIELD_REFs of non-mode-precision integral operands.
4310 2019-01-27 Jakub Jelinek <jakub@redhat.com>
4313 * config/i386/sse.md
4314 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
4315 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
4316 first constants in pairs are multiples of 2. Formatting fixes.
4317 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
4318 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
4319 first constants in each quadruple are multiples of 4. Formatting fixes.
4321 2019-01-26 Martin Jambor <mjambor@suse.cz>
4324 * tree-inline.c: Include tree-cfgcleanup.h.
4325 (delete_unreachable_blocks_update_callgraph): Move...
4326 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
4327 ...here, make externally visible, make second argument bool, adjust
4329 * tree-cfgcleanup.c: Include cgraph.h.
4330 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
4332 * ipa-prop.c: Include tree-cfgcleanup.h.
4333 (ipcp_transform_function): Call
4334 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
4336 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
4338 PR rtl-optimization/88846
4339 * ira.c (process_set_for_memref_referenced_p): New.
4340 (memref_referenced_p): Add new param. Use
4341 process_set_for_memref_referenced_p. Add new switch cases.
4342 (memref_used_between_p): Pass new arg to memref_referenced_p.
4344 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
4347 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
4348 argument ABI_BREAK. Set to true if the calculated alignment has
4349 changed in gcc-9. Check bit-fields for their base type alignment.
4350 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
4351 (aarch64_function_arg_boundary): Likewise.
4352 (aarch64_gimplify_va_arg_expr): Likewise.
4354 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
4357 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
4358 instead of accessing TREE_INT_CST_ELT directly.
4360 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
4362 * doc/sourcebuild.texi (Environment attributes): Add fenv and
4363 fenv_exceptions description.
4365 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
4367 PR rtl-optimization/87763
4368 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
4369 Allow SUBREG when matching CC_NZmode compare.
4371 2019-01-25 Richard Biener <rguenther@suse.de>
4373 PR tree-optimization/89049
4374 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4375 Look at the pattern stmt to determine if the stmt is vectorized.
4377 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
4379 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
4380 (pred_mov<mode>): Handle all-register forms using both a new
4381 alternative and a split.
4383 2019-01-25 Richard Biener <rguenther@suse.de>
4385 PR tree-optimization/86865
4386 * graphite-scop-detection.c (scop_detection::can_represent_loop):
4387 Reject non-do-while loops.
4389 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
4391 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
4392 * config/rs6000/constraints.md (Q constraint): Use REG_P.
4393 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
4394 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
4395 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
4396 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4397 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
4398 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
4399 vlogical_operand, gpc_reg_operand, int_reg_operand,
4400 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
4401 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
4402 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
4403 (save_world_operation, restore_world_operation, lmw_operation,
4404 stmw_operation): Use MEM_P and REG_P.
4405 (tie_operand): Use MEM_P.
4406 (vrsave_operation, crsave_operation): Use REG_P.
4407 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
4408 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
4409 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
4410 (call_operand): Use HARD_REGISTER_P.
4411 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
4413 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
4414 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
4415 quad_aligned_load_p, replace_swapped_aligned_store,
4416 recombine_lvx_pattern, replace_swapped_aligned_load,
4417 recombine_stvx_pattern): Use MEM_P.
4418 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
4419 Use MEM_P and SYMBOL_REF_P.
4420 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
4421 (insn_is_swappable_p): Use REG_P and MEM_P.
4422 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
4423 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
4425 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
4427 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
4429 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
4430 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
4431 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
4432 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
4434 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
4435 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
4436 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
4437 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
4438 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
4439 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
4440 rs6000_split_logical_di): Use CONST_INT_P.
4441 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
4442 REG_P and SYMBOL_REF_P.
4443 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
4444 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
4445 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
4446 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
4447 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
4448 (small_data_operand, print_operand_address): Use CONST_INT_P and
4450 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
4451 (rs6000_init_hard_regno_mode_ok, direct_move_p):
4452 Use HARD_REGISTER_NUM_P.
4453 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
4454 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
4455 SUBREG_P and SYMBOL_REF_P.
4456 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
4457 and HARD_REGISTER_NUM_P.
4458 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
4460 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
4461 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
4463 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
4464 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
4465 find_addr_reg): Use REG_P.
4466 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
4467 (rs6000_emit_le_vsx_move): Use SUBREG_P.
4468 (offsettable_ok_by_alignment, constant_pool_expr_p,
4469 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
4470 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
4471 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
4472 rs6000_assemble_integer, create_TOC_reference,
4473 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
4474 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
4475 (rs6000_split_vec_extract_var): Use reg_or_subregno.
4476 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
4477 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
4478 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4479 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4480 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
4481 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
4482 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
4483 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
4484 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
4485 and cbranch<mode>4): Use CONST_INT_P.
4486 (multiple define_splits): Use REG_P and SUBREG_P.
4487 (define_expands call, call_value): Use MEM_P.
4488 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
4489 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
4490 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
4491 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
4492 and HARD_REGISTER_NUM_P.
4493 (multiple define_splits): Use HARD_REGISTER_NUM_P.
4495 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
4497 PR rtl-optimization/88948
4498 * rtl.h (prepare_copy_insn): New prototype.
4499 * gcse.c (prepare_copy_insn): New function, split out from
4500 process_insert_insn.
4501 (process_insert_insn): Use prepare_copy_insn.
4502 * store-motion.c (replace_store_insn): Use prepare_copy_insn
4503 instead of gen_move_insn.
4505 2019-01-24 Jakub Jelinek <jakub@redhat.com>
4508 * config/i386/i386.c (ix86_pic_register_p): Return true for
4511 PR tree-optimization/88964
4512 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
4513 punt if HONOR_SNANS (chrec).
4516 * tree-nested.c (convert_nonlocal_reference_stmt,
4517 convert_local_reference_stmt, convert_tramp_reference_stmt,
4518 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
4519 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
4522 PR tree-optimization/89027
4523 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
4524 for "omp simd array" variables.
4526 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
4529 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
4530 force the alignment of m_val.
4532 2019-01-24 Richard Biener <rguenther@suse.de>
4535 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
4536 When in "legacy" debug mode make sure to reset self-origins.
4538 2019-01-24 Martin Liska <mliska@suse.cz>
4540 PR gcov-profile/88994
4541 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
4542 result will be always smaller or equal to the original.
4543 * gcov.c (mangle_name): Fix else branch where we should
4544 also copy to PTR and shift the pointer.
4546 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
4548 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
4549 * vr-values.c (find_case_label_ranges): Fix a comment typo.
4551 2019-01-23 Bin Cheng <bin.cheng@arm.com>
4552 Steve Ellcey <sellcey@marvell.com>
4555 * recog.c (address_operand): Return false on wrong mode for address.
4556 (constrain_operands): Check for mode with 'p' constraint.
4558 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
4561 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
4562 Disparage MMX alternative.
4563 (sse2_cvtpd2pi): Ditto.
4564 (sse2_cvttpd2pi): Ditto.
4566 2019-01-23 David Malcolm <dmalcolm@redhat.com>
4569 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
4570 use-after-free of the result of
4571 aarch64_get_extension_string_for_isa_flags.
4573 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4576 * doc/extend.texi: Document break and continue behavior in
4577 statement expressions.
4579 2019-01-23 Richard Biener <rguenther@suse.de>
4581 PR tree-optimization/89008
4582 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
4583 not leave another stray operand.
4585 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4587 * BASE-VER: Bump to 9.0.1.
4589 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
4591 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
4592 thunk that returns by reference, use the type of the return object
4593 of the thunk instead of that of the alias to build the dereference.
4595 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
4597 * config/arc/atomic.md: Add operand to DMB instruction.
4599 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4601 PR tree-optimization/88964
4602 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
4603 build_zero_cst instead of build_int_cst. Return false for loop
4604 invariants which honor signed zeros.
4606 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
4608 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
4610 2019-01-22 Jakub Jelinek <jakub@redhat.com>
4613 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
4614 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
4615 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
4618 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
4619 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
4622 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
4623 Disable for little endian.
4625 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
4628 * config/arm/arm.c (arm_needs_double_word_align): Check
4629 DECL_BIT_FIELD_TYPE.
4631 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
4632 H.J. Lu <hongjiu.lu@intel.com>
4635 * config/i386/i386-builtin.def: Add mask2 to all builtin
4636 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
4638 * config/i386/i386.c (BDESC): Add mask2 to the definition.
4639 (BDESC_FIRST): Likewise.
4640 (define_builtin): Add an argument for mask2. Updated to handle
4641 both ix86_isa_flags and ix86_isa_flags2.
4642 (define_builtin_const): Likewise.
4643 (define_builtin_pure): Likewise.
4644 (define_builtin2): Deleted.
4645 (define_builtin_const2): Likewise.
4646 (builtin_description): Add a member, mask2.
4647 (bdesc_*): Add mask2 to builtin initializations.
4648 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
4649 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
4651 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
4653 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
4656 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
4659 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
4662 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
4663 alignment is dominated by a bitfield with 64-bit aligned base type.
4664 (arm_function_arg): Emit a warning if the alignment has changed since
4665 earlier GCC releases.
4666 (arm_function_arg_boundary): Likewise.
4667 (arm_setup_incoming_varargs): Likewise.
4669 2019-01-22 Richard Biener <rguenther@suse.de>
4671 PR tree-optimization/88862
4672 * graphite-scop-detection.c
4673 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
4675 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
4677 * doc/extend.tex (AMD GCN Function Attributes): New section.
4678 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
4679 * doc/invoke.texi (AMD GCN Options): New section.
4680 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
4682 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
4684 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
4685 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
4687 2019-01-22 Jakub Jelinek <jakub@redhat.com>
4689 PR tree-optimization/88044
4690 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
4691 is false in the first iteration, but !every_iteration, return false
4692 instead of true with niter->niter zero.
4694 PR rtl-optimization/88904
4695 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
4696 any nonequal registers before processing BB_END (b).
4699 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
4701 (expand_binop_directly, expand_doubleword_clz,
4702 expand_doubleword_popcount, expand_ctz, expand_ffs,
4703 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
4705 PR rtl-optimization/49429
4707 PR rtl-optimization/86334
4709 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
4710 addressable from here...
4711 (emit_block_op_via_libcall): ... to here.
4713 2019-01-22 Richard Biener <rguenther@suse.de>
4715 * tree-vect-loop.c (vect_analyze_loop_operations): Use
4716 auto_vec for cost vector to fix memleak.
4717 (vectorize_fold_left_reduction): Properly gather SLP defs.
4718 (vectorizable_comparison): Do not swap operands to properly
4721 2019-01-22 Alan Modra <amodra@gmail.com>
4724 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
4725 stays a reg. Allow a const_int.
4726 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
4727 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
4728 (IS_NOMARK_TLSGETADDR): Define.
4729 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
4730 (rs6000_output_tlsargs): New function.
4731 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
4732 __tls_get_addr call takes an arg.
4733 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
4734 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
4736 (call_value_nonlocal_sysv): ..or here, delete split.
4737 (tls_gdld_nomark): Delete.
4738 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
4739 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
4740 (call_value_nonlocal_sysv): Likewise.
4741 (call_value_nonlocal_sysv_secure): Likewise.
4742 (call_value_nonlocal_aix): Likewise.
4743 (call_value_indirect_aix): Likewise.
4744 (call_value_indirect_elfv2): Likewise.
4745 (call_value_local32, call_value_local64): Disable for no-mark tls.
4746 (call_value_local_aix): Likewise.
4748 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
4751 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
4752 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
4754 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
4756 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
4757 string contents as hash_map keys.
4759 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4762 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
4763 for rvalue context. Handle rvalues correctly. Use min_align_of_type
4764 instead of TYPE_ALIGN.
4765 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
4766 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
4767 pointer from TYPE_STUB_DECL.
4769 2019-01-21 Richard Biener <rguenther@suse.de>
4771 PR tree-optimization/88934
4772 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
4773 at the possibly non-constant operand.
4774 (vect_get_constant_vectors): Adjust.
4776 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4779 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
4780 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
4781 instead of _X86INTRIN_H_INCLUDED.
4782 * onfig/i386/clwbintrin.h: Likewise.
4783 * config/i386/pkuintrin.h: Likewise.
4784 * config/i386/prfchwintrin.h: Likewise.
4785 * config/i386/rdseedintrin.h: Likewise.
4786 * config/i386/wbnoinvdintrin.h: Likewise.
4787 * config/i386/xsavecintrin.h: Likewise.
4788 * config/i386/xsavesintrin.h: Likewise.
4789 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
4790 * config/i386/xsaveintrin.h: Likewise.
4791 * config/i386/xsaveoptintrin.h: Likewise.
4792 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
4793 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
4794 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
4795 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
4796 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
4797 * config/i386/immintrin.h: Here.
4799 2019-01-20 Martin Jambor <mjambor@suse.cz>
4802 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
4803 with aa_walk_budget.
4804 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
4805 aa_walk_budget_p parameter.
4806 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
4807 walk. Updated all callers.
4808 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
4809 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
4811 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
4812 parameter info. Extract info from fbi. Pass fbi to recursive calls
4813 and to unmodified_parm.
4814 (phi_result_unknown_predicate): New parameter fbi, removed parameter
4815 info, updated call to will_be_nonconstant_expr_predicate.
4816 (param_change_prob): New parameter fbi, limit AA walking.
4817 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
4818 calls to various above functions.
4819 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
4820 parameter. Use it to limit AA walking.
4821 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
4823 (detect_type_change): New parameter fbi, pass it on to
4824 detect_type_change_from_memory_writes.
4825 (detect_type_change_ssa): Likewise.
4826 (aa_overwalked): Removed.
4827 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
4828 accordingly, adjust to the neew AA limiting scheme.
4829 (parm_ref_data_preserved_p): Likewise.
4830 (ipa_compute_jump_functions_for_edge): Adjust call to
4832 (ipa_analyze_call_uses): Likewise.
4833 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
4834 (ipa_analyze_node): Initialize aa_walk_budget.
4835 (ipcp_transform_function): Likewise.
4836 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
4837 to get_dynamic_type.
4839 2019-01-19 Jakub Jelinek <jakub@redhat.com>
4841 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
4842 outside of #if CHECKING_P code.
4844 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
4846 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
4847 New function, split out from...
4848 (loop_versioning::analyze_stride): ...here.
4849 (loop_versioning::find_per_loop_multiplication): Use gassign.
4850 (loop_versioning::analyze_term_using_scevs): Return a success code.
4851 (loop_versioning::analyze_arbitrary_term): New function.
4852 (loop_versioning::analyze_address_fragment): Use
4853 analyze_arbitrary_term if all else fails.
4855 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
4858 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
4861 2019-01-18 Richard Biener <rguenther@suse.de>
4863 PR tree-optimization/88903
4864 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
4865 scalar stmts a SLP shift amount is composed of when detecting
4868 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
4871 * config/arm/arm-cpus.in (mp): New feature.
4873 (fgroup ARMv7ve): Add mp and sec features.
4874 (arch armv7-a): Add options to allow mp and sec extensions.
4875 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
4876 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
4877 extenstions to the base architecture.
4878 (cpu cortex-a8): Add sec extension to the base architecture.
4879 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
4880 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
4881 variants down to the base v7-a varaint.
4882 * config/arm/t-multilib (v7_a_arch_variants): New variable.
4883 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
4884 of permitted extensions for -march=armv7-a and for
4885 -mcpu=generic-armv7-a.
4887 2019-01-18 Martin Liska <mliska@suse.cz>
4889 * params.def: Fix comment.
4890 * tree-profile.c (gimple_init_gcov_profiler): Bump function
4892 (gimple_gen_ic_func_profiler): Likewise.
4894 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4896 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
4897 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
4898 and put in error checks for stack protector guard options.
4899 (aarch64_stack_protect_guard): New.
4900 (TARGET_STACK_PROTECT_GUARD): Define.
4901 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
4902 (reg_stack_protect_address<mode>): New.
4903 (stack_protect_set): Adjust for SSP_GLOBAL.
4904 (stack_protect_test): Likewise.
4905 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
4906 (-mstack-protector-guard): Likewise.
4907 (-mstack-protector-guard-offset): Likewise.
4909 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4911 PR tree-optimization/86214
4912 * tree-inline.h (struct copy_body_data): Add
4913 add_clobbers_to_eh_landing_pads member.
4914 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
4915 (copy_edges_for_bb): Call it if EH edge destination is <
4916 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
4917 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
4918 if flag_stack_reuse != SR_NONE and clear it afterwards.
4920 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
4923 * doc/install.texi (with-multilib-list): Document for aarch64.
4925 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4928 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
4929 (("..."))) with ("...").
4931 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
4933 * doc/extend.texi (Built-in Functions for Memory Model Aware
4934 Atomic Operations): Document atomic fetch and nand.
4936 2019-01-18 Martin Liska <mliska@suse.cz>
4937 Richard Biener <rguenther@suse.de>
4940 * cgraph.h (create_version_clone_with_body): Add new argument
4942 * cgraphclones.c (cgraph_node::create_version_clone): Add
4943 DECL_ATTRIBUTES to a newly created decl. And call
4944 valid_attribute_p so that proper cl_target_optimization_node
4945 is set for the newly created declaration.
4946 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
4948 (expand_target_clones): Do not call valid_attribute_p, it must
4950 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
4953 2019-01-17 Jakub Jelinek <jakub@redhat.com>
4956 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
4957 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
4958 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
4960 2019-01-17 Martin Sebor <msebor@redhat.com>
4963 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
4964 Handle anti-ranges the same as no range at all.
4966 2018-01-17 Steve Ellcey <sellcey@cavium.com>
4968 * config/aarch64/aarch64.c (cgraph.h): New include.
4969 (intl.h): New include.
4970 (supported_simd_type): New function.
4971 (currently_supported_simd_type): Ditto.
4972 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
4973 (aarch64_simd_clone_adjust): Ditto.
4974 (aarch64_simd_clone_usable): Ditto.
4975 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
4976 (TARGET_SIMD_CLONE_ADJUST): Ditto.
4977 (TARGET_SIMD_CLONE_USABLE): Ditto.
4978 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
4979 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
4982 2019-01-17 Martin Sebor <msebor@redhat.com>
4984 PR tree-optimization/88800
4985 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
4986 NO_WARNING bit here. Avoid folding out-of-bounds calls.
4987 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
4988 redundant argument. Add new argument and issue diagnostics under
4989 its control. Detect out-of-bounds access even with warnings
4991 (check_bounds_or_overlap): Change return type. Add argument.
4992 (wrestrict_dom_walker::check_call): Adjust.
4993 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
4994 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
4995 check_bounds_or_overlap's return value.
4996 (handle_builtin_stxncpy): Same.
4997 (handle_builtin_strcat): Same.
4999 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
5000 Kwok Cheung Yeung <kcy@codesourcery.com>
5001 Julian Brown <julian@codesourcery.com>
5002 Tom de Vries <tom@codesourcery.com>
5004 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
5006 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
5008 * doc/sourcebuild.texi: Document dg-require-effective-target
5009 llvm_binutils and offload_gcn.
5011 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
5012 Kwok Cheung Yeung <kcy@codesourcery.com>
5013 Julian Brown <julian@codesourcery.com>
5014 Tom de Vries <tom@codesourcery.com>
5016 * doc/sourcebuild.texi: Document dg-required-effective-target
5019 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
5020 Kwok Cheung Yeung <kcy@codesourcery.com>
5021 Julian Brown <julian@codesourcery.com>
5022 Tom de Vries <tom@codesourcery.com>
5023 Jan Hubicka <hubicka@ucw.cz>
5024 Martin Jambor <mjambor@suse.cz>
5026 * config.gcc: Add amdgcn*-*-amdhsa configuration.
5027 * configure.ac: Check for dlopen.
5028 * configure: Regenerate.
5030 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
5031 Kwok Cheung Yeung <kcy@codesourcery.com>
5032 Julian Brown <julian@codesourcery.com>
5033 Tom de Vries <tom@codesourcery.com>
5034 Jan Hubicka <hubicka@ucw.cz>
5035 Martin Jambor <mjambor@suse.cz>
5037 * common/config/gcn/gcn-common.c: New file.
5038 * config/gcn/driver-gcn.c: New file.
5039 * config/gcn/gcn-builtins.def: New file.
5040 * config/gcn/gcn-hsa.h: New file.
5041 * config/gcn/gcn-modes.def: New file.
5042 * config/gcn/gcn-opts.h: New file.
5043 * config/gcn/gcn-passes.def: New file.
5044 * config/gcn/gcn-protos.h: New file.
5045 * config/gcn/gcn-run.c: New file.
5046 * config/gcn/gcn-tree.c: New file.
5047 * config/gcn/gcn.c: New file.
5048 * config/gcn/gcn.h: New file.
5049 * config/gcn/gcn.opt: New file.
5050 * config/gcn/t-gcn-hsa: New file.
5052 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
5053 Kwok Cheung Yeung <kcy@codesourcery.com>
5054 Julian Brown <julian@codesourcery.com>
5055 Tom de Vries <tom@codesourcery.com>
5056 Jan Hubicka <hubicka@ucw.cz>
5057 Martin Jambor <mjambor@suse.cz>
5059 * config/gcn/constraints.md: New file.
5060 * config/gcn/gcn-valu.md: New file.
5061 * config/gcn/gcn.md: New file.
5062 * config/gcn/predicates.md: New file.
5064 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
5066 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
5067 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
5068 (stmt_uses_0_or_null_in_undefined_way): Likewise.
5069 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
5071 2019-01-17 Tamar Christina <tamar.christina@arm.com>
5074 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
5075 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
5076 it and document registers.
5078 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5080 * config/aarch64/aarch64.c (ares_tunings): Define.
5081 * config/aarch64/aarch64-cores.def (ares): Use the above.
5083 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
5087 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
5089 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
5090 (_mm512_fixupimm_round_pd): Update parameters and builtin.
5091 (_mm512_maskz_fixupimm_round_pd): Ditto.
5092 (_mm512_fixupimm_round_ps): Ditto.
5093 (_mm512_maskz_fixupimm_round_ps): Ditto.
5094 (_mm_fixupimm_round_sd): Ditto.
5095 (_mm_maskz_fixupimm_round_sd): Ditto.
5096 (_mm_fixupimm_round_ss): Ditto.
5097 (_mm_maskz_fixupimm_round_ss): Ditto.
5098 (_mm512_fixupimm_pd): Ditto.
5099 (_mm512_maskz_fixupimm_pd): Ditto.
5100 (_mm512_fixupimm_ps): Ditto.
5101 (_mm512_maskz_fixupimm_ps): Ditto.
5102 (_mm_fixupimm_sd): Ditto.
5103 (_mm_maskz_fixupimm_sd): Ditto.
5104 (_mm_fixupimm_ss): Ditto.
5105 (_mm_maskz_fixupimm_ss): Ditto.
5106 (_mm512_mask_fixupimm_round_pd): Update builtin.
5107 (_mm512_mask_fixupimm_round_ps): Ditto.
5108 (_mm_mask_fixupimm_round_sd): Ditto.
5109 (_mm_mask_fixupimm_round_ss): Ditto.
5110 (_mm512_mask_fixupimm_pd): Ditto.
5111 (_mm512_mask_fixupimm_ps): Ditto.
5112 (_mm_mask_fixupimm_sd): Ditto.
5113 (_mm_mask_fixupimm_ss): Ditto.
5114 * config/i386/avx512vlintrin.h:
5115 (_mm256_fixupimm_pd): Update parameters and builtin.
5116 (_mm256_maskz_fixupimm_pd): Ditto.
5117 (_mm256_fixupimm_ps): Ditto.
5118 (_mm256_maskz_fixupimm_ps): Ditto.
5119 (_mm_fixupimm_pd): Ditto.
5120 (_mm_maskz_fixupimm_pd): Ditto.
5121 (_mm_fixupimm_ps): Ditto.
5122 (_mm_maskz_fixupimm_ps): Ditto.
5123 (_mm256_mask_fixupimm_pd): Update builtin.
5124 (_mm256_mask_fixupimm_ps): Ditto.
5125 (_mm_mask_fixupimm_pd): Ditto.
5126 (_mm_mask_fixupimm_ps): Ditto.
5127 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
5128 * config/i386/i386-builtin.def: Update builtin definitions.
5129 * config/i386/i386.c: Handle new builtin types and remove useless ones.
5130 * config/i386/sse.md: Update VFIXUPIMM* patterns.
5131 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
5132 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
5133 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
5134 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
5135 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
5136 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
5137 * config/i386/subst.md:
5138 (round_saeonly_sd_mask_operand4): Add new subst_attr.
5139 (round_saeonly_sd_mask_op4): Ditto.
5140 (round_saeonly_expand_operand5): Ditto.
5141 (round_saeonly_expand): Update.
5143 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
5147 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
5149 * config/i386/sse.md: Combine VFIXUPIMM* patterns
5150 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
5151 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
5152 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
5153 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
5154 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
5155 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
5157 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
5161 2018-12-15 Jakub Jelinek <jakub@redhat.com>
5164 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
5165 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
5166 instead of UNSPEC_FIXUPIMM.
5168 2019-01-17 Richard Biener <rguenther@suse.de>
5171 * dwarf2out.c (want_pubnames): Never generate pubnames sections
5172 and friends for the LTO part of debug info.
5174 2019-01-17 Jakub Jelinek <jakub@redhat.com>
5176 PR tree-optimization/86214
5177 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
5180 PR rtl-optimization/88870
5181 * dce.c (deletable_insn_p): Never delete const/pure calls that can
5182 throw if we can't alter the cfg or delete dead exceptions.
5183 (mark_insn): Don't call find_call_stack_args for such calls.
5185 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
5187 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
5188 prototypes for vec_st.
5189 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
5190 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
5191 mainly on signed/unsigned long long and double.
5193 2019-01-16 David Malcolm <dmalcolm@redhat.com>
5196 * combine.c (delete_noop_moves): Convert to "bool" return,
5197 returning true if any edges are eliminated.
5198 (combine_instructions): Also return true if delete_noop_moves
5201 2019-01-16 Tamar Christina <tamar.christina@arm.com>
5203 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
5204 correct max nunits for endian swap.
5205 (aarch64_expand_fcmla_builtin): Correct subreg code.
5206 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
5207 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
5210 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
5212 * config/alpha/alpha.c (alpha_gimplify_va_arg):
5213 Handle split indirect COMPLEX_TYPE arguments.
5215 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
5218 * config/aarch64/aarch64-modes.def: Add comment about how the carry
5219 bit is set by add and compare.
5220 (CC_ADC): New CC_MODE.
5221 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
5222 to cache the code and mode of X. Adjust the shape of a CC_Cmode
5223 comparison. Add detection for CC_ADCmode.
5224 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
5226 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
5227 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
5228 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
5229 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
5230 to eliminate the need for zero-extending the operands.
5231 (add<mode>3_compareC_imm): Delete. Merge into ...
5232 (add<mode>3_compareC): ... this. Restructure the comparison to
5233 eliminate the need for zero-extending the operands.
5234 (add<mode>3_carryin): Use LTU for the overflow detection.
5235 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
5236 Reexpress comparison for overflow.
5237 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
5238 (add<mode>3_carryinC): Likewise.
5239 (add<mode>3_carryinV): Use LTU for carry between partials.
5240 * config/aarch64/predicates.md (aarch64_carry_operation): Update
5241 handling of CC_Cmode and add CC_ADCmode.
5242 (aarch64_borrow_operation): Likewise.
5244 2019-01-16 Tamar Christina <tamar.christina@arm.com>
5246 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
5247 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
5248 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
5249 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
5251 2019-01-16 Martin Liska <mliska@suse.cz>
5253 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
5255 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
5257 * gcc.c (add_sysrooted_hdrs_prefix): New function.
5258 (path_prefix_reset): Move up in the source file.
5259 (find_fortran_preinclude_file): Make complex search for the
5260 fortran header files.
5262 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
5264 * godump.c (go_output_typedef): When outputting a typedef, refer
5265 to the underlying type by its name and not its structure.
5267 2019-01-15 David Malcolm <dmalcolm@redhat.com>
5270 * tree.c (build_function_type): Assert that arg_types is not
5273 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
5276 * doc/extend.texi: Document that listing the stack pointer in the
5277 clobber list of an asm is a deprecated feature.
5278 * common.opt (Wdeprecated): Moved from c-family/c.opt.
5279 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
5280 warning instead of an error for clobbers of the stack pointer.
5281 Add a note explaining why.
5283 2019-01-15 Richard Biener <rguenther@suse.de>
5286 * dwarf2out.c (gen_member_die): Do not generate inheritance
5289 2019-01-15 Richard Biener <rguenther@suse.de>
5291 PR tree-optimization/88855
5292 * tree-if-conv.c (combine_blocks): Collect
5293 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
5295 2019-01-15 Tom de Vries <tdevries@suse.de>
5298 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
5299 lhs == NULL_TREE for gang-level reduction.
5301 2019-01-15 Richard Biener <rguenther@suse.de>
5302 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5305 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
5306 return true if SSA_NAME is already marked in visited bitmap.
5307 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
5309 2019-01-15 Jakub Jelinek <jakub@redhat.com>
5311 PR tree-optimization/88775
5312 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
5313 equal == 0 equality pointer comparisons some more if compared in
5314 integral types and either one points to an automatic var and the
5315 other to a global, or we can prove at least one points to the middle
5316 or both point to start or both point to end.
5318 2019-01-14 Andi Kleen <ak@linux.intel.com>
5320 * Makefile.in: Lower autofdo sampling rate by 10x.
5321 * Makefile.tpl: Dito.
5323 2019-01-14 Tom Honermann <tom@honermann.net>
5325 * defaults.h: Define CHAR8_TYPE.
5327 2019-01-14 Martin Sebor <msebor@redhat.com>
5330 * doc/extend.texi (Darwin Format Checks): Clarify.
5332 2019-01-14 Richard Biener <rguenther@suse.de>
5334 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
5335 whether we are in (simplify ...) or (match ...) context.
5337 2019-01-14 Jakub Jelinek <jakub@redhat.com>
5339 PR rtl-optimization/88796
5340 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
5341 * cfgexpand.c (stack_protect_prologue): Initialize
5342 crtl->stack_protect_guard_decl.
5343 * function.c (stack_protect_epilogue): Use it instead of calling
5344 targetm.stack_protect_guard again.
5345 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
5346 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
5347 crtl->stack_protect_guard_decl.
5348 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
5349 on the returned MEM_EXPR.
5351 2019-01-12 Tom de Vries <tdevries@suse.de>
5353 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
5354 vector length using -fopenacc-dim.
5356 2019-01-12 Tom de Vries <tdevries@suse.de>
5358 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
5359 lengths into account.
5361 2019-01-12 Svante Signell <svante.signell@gmail.com>
5363 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
5364 (TARGET_CAN_SPLIT_STACK): Define.
5365 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5367 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5369 * params.def (inline-unit-growth): Set to 40.
5371 2019-01-12 Jakub Jelinek <jakub@redhat.com>
5373 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
5375 2019-01-12 Tom de Vries <tdevries@suse.de>
5377 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
5378 region calling vector-partitionable routine, set default_vector_length
5381 2019-01-12 Tom de Vries <tdevries@suse.de>
5383 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
5384 variable default_vector_length.
5386 2019-01-12 Tom de Vries <tdevries@suse.de>
5389 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
5390 from oacc_default_dims, as oacc_validate_dims would do it, and apply
5393 2019-01-12 Tom de Vries <tdevries@suse.de>
5395 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
5396 (nvptx_goacc_validate_dims): Add used parameter.
5397 * doc/tm.texi: Regenerate.
5398 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
5399 argument to call to targetm.goacc.validate_dims.
5400 (default_goacc_validate_dims): Add used
5402 * target.def (validate_dims): Add used parameter in DEFHOOK.
5403 * targhooks.h (default_goacc_validate_dims): Add used parameter.
5405 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5409 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
5411 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
5412 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
5413 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
5414 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
5416 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
5418 PR rtl-optimization/87305
5420 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
5421 for little endian pseudos used as paradoxical subreg.
5423 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5425 PR tree-optimization/88693
5426 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
5427 for STRING_CSTs that don't contain any NUL characters in the first
5428 TREE_STRING_LENGTH bytes.
5430 2019-01-11 Alan Modra <amodra@gmail.com>
5434 * genattrtab.c (min_fn): Don't translate values.
5435 (min_attr_value): Return INT_MAX when the value can't be calculated.
5436 Return minimum among any values that can be calculated.
5437 (max_attr_value): Adjust.
5439 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5441 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
5443 2019-01-11 Steve Ellcey <sellcey@marvell.com>
5445 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
5446 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
5447 (aarch64_return_call_with_max_clobbers): New function.
5448 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
5449 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
5451 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
5452 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
5453 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
5454 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
5455 * cselib.c (cselib_process_insn): Add argument to
5456 targetm.hard_regno_call_part_clobbered call.
5457 * ira-conflicts.c (ira_build_conflicts): Ditto.
5458 * ira-costs.c (ira_tune_allocno_costs): Ditto.
5459 * lra-constraints.c (inherit_reload_reg): Ditto.
5460 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
5461 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
5462 argument. Call targetm.return_call_with_max_clobbers.
5463 Add argument to targetm.hard_regno_call_part_clobbered call.
5464 (calls_have_same_clobbers_p): New function.
5465 (process_bb_lives): Add call_insn and last_call_insn variables.
5466 Pass call_insn to check_pseudos_live_through_calls.
5467 Modify if stmt to check targetm.return_call_with_max_clobbers.
5468 Update setting of flush variable.
5469 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
5471 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
5472 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
5473 targetm.hard_regno_call_part_clobbered call.
5474 * reginfo.c (choose_hard_reg_mode): Ditto.
5475 * regrename.c (check_new_reg_p): Ditto.
5476 * reload.c (find_equiv_reg): Ditto.
5477 * reload1.c (emit_reload_insns): Ditto.
5478 * sched-deps.c (deps_analyze_insn): Ditto.
5479 * sel-sched.c (init_regs_for_mode): Ditto.
5480 (mark_unavailable_hard_regs): Ditto.
5481 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
5482 * target.def (hard_regno_call_part_clobbered): Add insn argument.
5483 (return_call_with_max_clobbers): New target function.
5484 * doc/tm.texi: Regenerate.
5485 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
5486 * hooks.c (hook_bool_uint_mode_false): Change to
5487 hook_bool_insn_uint_mode_false.
5488 * hooks.h (hook_bool_uint_mode_false): Ditto.
5490 2019-01-11 Steve Ellcey <sellcey@marvell.com>
5492 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
5493 (aarch64_remove_extra_call_preserved_regs): New function.
5494 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
5495 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
5496 * doc/tm.texi: Regenerate.
5497 * final.c (get_call_reg_set_usage): Call new hook.
5498 * target.def (remove_extra_call_preserved_regs): New hook.
5499 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
5500 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
5502 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5505 * passes.c (finish_optimization_passes): Call print_combine_total_stats
5506 inside of pass_combine_1 dump rather than pass_profile_1.
5508 2019-01-11 Tom de Vries <tdevries@suse.de>
5510 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
5511 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
5512 (PTX_NUM_PER_WORKER_BARRIERS): Define.
5513 (nvptx_apply_dim_limits): Prevent vector_length 64 and
5516 2019-01-11 Tom de Vries <tdevries@suse.de>
5518 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
5520 2019-01-11 Jan Beulich <jbeulich@suse.com>
5522 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
5523 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
5524 sse2_cvtsi2sd): Add {l}.
5525 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
5528 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5531 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
5533 (*float<floatunssuffix>v2div2sf2): New define_insn.
5534 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
5535 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
5536 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
5537 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
5538 match_operands with "const0_operand" "C".
5540 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5542 * config/aarch64/aarch64-builtins.c
5543 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
5544 (aarch64_init_simd_builtins): ...Here
5546 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
5548 PR rtl-optimization/87305
5550 (setup_live_pseudos_and_spill_after_risky_transforms): Check
5551 allocation for big endian pseudos used as paradoxical subregs and
5552 spill them if it is wrong.
5553 * lra-constraints.c (lra_constraints): Add a comment.
5555 2019-01-10 Richard Biener <rguenther@suse.de>
5557 PR tree-optimization/88792
5558 * tree-ssa-pre.c (get_representative_for): Do not return a
5561 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5565 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
5566 (assign_parm_setup_block): Do the argument slot realignment here
5569 2019-01-10 Stefan Agner <stefan@agner.ch>
5572 * config/arm/arm.c (arm_option_override_internal): Force
5573 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
5575 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5578 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
5581 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5583 * config/arm/arm-builtins.c
5584 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
5585 (MAC_LANE_PAIR_QUALIFIERS): New.
5586 (arm_expand_builtin_args): Use it.
5587 (arm_expand_builtin_1): Likewise.
5588 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
5589 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
5590 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
5591 * config/arm/arm_neon.h:
5592 (vcadd_rot90_f16): New.
5593 (vcaddq_rot90_f16): New.
5594 (vcadd_rot270_f16): New.
5595 (vcaddq_rot270_f16): New.
5598 (vcmla_lane_f16): New.
5599 (vcmla_laneq_f16): New.
5600 (vcmlaq_lane_f16): New.
5601 (vcmlaq_laneq_f16): New.
5602 (vcmla_rot90_f16): New.
5603 (vcmlaq_rot90_f16): New.
5604 (vcmla_rot90_lane_f16): New.
5605 (vcmla_rot90_laneq_f16): New.
5606 (vcmlaq_rot90_lane_f16): New.
5607 (vcmlaq_rot90_laneq_f16): New.
5608 (vcmla_rot180_f16): New.
5609 (vcmlaq_rot180_f16): New.
5610 (vcmla_rot180_lane_f16): New.
5611 (vcmla_rot180_laneq_f16): New.
5612 (vcmlaq_rot180_lane_f16): New.
5613 (vcmlaq_rot180_laneq_f16): New.
5614 (vcmla_rot270_f16): New.
5615 (vcmlaq_rot270_f16): New.
5616 (vcmla_rot270_lane_f16): New.
5617 (vcmla_rot270_laneq_f16): New.
5618 (vcmlaq_rot270_lane_f16): New.
5619 (vcmlaq_rot270_laneq_f16): New.
5620 (vcadd_rot90_f32): New.
5621 (vcaddq_rot90_f32): New.
5622 (vcadd_rot270_f32): New.
5623 (vcaddq_rot270_f32): New.
5626 (vcmla_lane_f32): New.
5627 (vcmla_laneq_f32): New.
5628 (vcmlaq_lane_f32): New.
5629 (vcmlaq_laneq_f32): New.
5630 (vcmla_rot90_f32): New.
5631 (vcmlaq_rot90_f32): New.
5632 (vcmla_rot90_lane_f32): New.
5633 (vcmla_rot90_laneq_f32): New.
5634 (vcmlaq_rot90_lane_f32): New.
5635 (vcmlaq_rot90_laneq_f32): New.
5636 (vcmla_rot180_f32): New.
5637 (vcmlaq_rot180_f32): New.
5638 (vcmla_rot180_lane_f32): New.
5639 (vcmla_rot180_laneq_f32): New.
5640 (vcmlaq_rot180_lane_f32): New.
5641 (vcmlaq_rot180_laneq_f32): New.
5642 (vcmla_rot270_f32): New.
5643 (vcmlaq_rot270_f32): New.
5644 (vcmla_rot270_lane_f32): New.
5645 (vcmla_rot270_laneq_f32): New.
5646 (vcmlaq_rot270_lane_f32): New.
5647 (vcmlaq_rot270_laneq_f32): New.
5648 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
5649 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
5650 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
5651 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
5652 vcmlaq_lane270): New.
5653 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
5654 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
5655 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
5656 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
5657 (arm_option_reconfigure_globals): Use them.
5658 * config/arm/iterators.md (VDF, VQ_HSF): New.
5659 (VCADD, VCMLA): New.
5660 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
5661 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
5663 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
5664 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
5666 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5668 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
5669 Add qualifier_lane_pair_index.
5670 (emit-rtl.h): Include.
5671 (TYPES_QUADOP_LANE_PAIR): New.
5672 (aarch64_simd_expand_args): Use it.
5673 (aarch64_simd_expand_builtin): Likewise.
5674 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
5676 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
5677 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
5678 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
5679 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
5680 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
5681 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
5682 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
5683 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
5684 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
5685 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
5686 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
5687 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
5688 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
5689 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
5690 Add __ARM_FEATURE_COMPLEX.
5691 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
5692 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
5693 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
5694 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
5695 fcmlaq_lane270): New.
5696 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
5697 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
5698 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
5699 * config/aarch64/arm_neon.h:
5700 (vcadd_rot90_f16): New.
5701 (vcaddq_rot90_f16): New.
5702 (vcadd_rot270_f16): New.
5703 (vcaddq_rot270_f16): New.
5706 (vcmla_lane_f16): New.
5707 (vcmla_laneq_f16): New.
5708 (vcmlaq_lane_f16): New.
5709 (vcmlaq_rot90_lane_f16): New.
5710 (vcmla_rot90_laneq_f16): New.
5711 (vcmla_rot90_lane_f16): New.
5712 (vcmlaq_rot90_f16): New.
5713 (vcmla_rot90_f16): New.
5714 (vcmlaq_laneq_f16): New.
5715 (vcmla_rot180_laneq_f16): New.
5716 (vcmla_rot180_lane_f16): New.
5717 (vcmlaq_rot180_f16): New.
5718 (vcmla_rot180_f16): New.
5719 (vcmlaq_rot90_laneq_f16): New.
5720 (vcmlaq_rot270_laneq_f16): New.
5721 (vcmlaq_rot270_lane_f16): New.
5722 (vcmla_rot270_laneq_f16): New.
5723 (vcmlaq_rot270_f16): New.
5724 (vcmla_rot270_f16): New.
5725 (vcmlaq_rot180_laneq_f16): New.
5726 (vcmlaq_rot180_lane_f16): New.
5727 (vcmla_rot270_lane_f16): New.
5728 (vcadd_rot90_f32): New.
5729 (vcaddq_rot90_f32): New.
5730 (vcaddq_rot90_f64): New.
5731 (vcadd_rot270_f32): New.
5732 (vcaddq_rot270_f32): New.
5733 (vcaddq_rot270_f64): New.
5737 (vcmla_lane_f32): New.
5738 (vcmla_laneq_f32): New.
5739 (vcmlaq_lane_f32): New.
5740 (vcmlaq_laneq_f32): New.
5741 (vcmla_rot90_f32): New.
5742 (vcmlaq_rot90_f32): New.
5743 (vcmlaq_rot90_f64): New.
5744 (vcmla_rot90_lane_f32): New.
5745 (vcmla_rot90_laneq_f32): New.
5746 (vcmlaq_rot90_lane_f32): New.
5747 (vcmlaq_rot90_laneq_f32): New.
5748 (vcmla_rot180_f32): New.
5749 (vcmlaq_rot180_f32): New.
5750 (vcmlaq_rot180_f64): New.
5751 (vcmla_rot180_lane_f32): New.
5752 (vcmla_rot180_laneq_f32): New.
5753 (vcmlaq_rot180_lane_f32): New.
5754 (vcmlaq_rot180_laneq_f32): New.
5755 (vcmla_rot270_f32): New.
5756 (vcmlaq_rot270_f32): New.
5757 (vcmlaq_rot270_f64): New.
5758 (vcmla_rot270_lane_f32): New.
5759 (vcmla_rot270_laneq_f32): New.
5760 (vcmlaq_rot270_lane_f32): New.
5761 (vcmlaq_rot270_laneq_f32): New.
5762 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
5763 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
5764 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
5765 (FCADD, FCMLA): New.
5767 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
5769 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5773 * config/pa/pa.c: Change "can not" to "cannot".
5774 * gimple-ssa-evrp-analyze.c: Likewise.
5775 * ipa-icf.c: Likewise.
5776 * ipa-polymorphic-call.c: Likewise.
5777 * ipa-pure-const.c: Likewise.
5778 * lra-constraints.c: Likewise.
5779 * lra-remat.c: Likewise.
5780 * reload1.c: Likewise.
5781 * reorg.c: Likewise.
5782 * tree-ssa-uninit.c: Likewise.
5784 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5788 * Makefile.in: Mechanically replace "can not" with "cannot".
5789 * alias.c: Likewise.
5790 * builtins.c: Likewise.
5791 * calls.c: Likewise.
5792 * cgraph.c: Likewise.
5793 * cgraph.h: Likewise.
5794 * cgraphclones.c: Likewise.
5795 * cgraphunit.c: Likewise.
5796 * combine-stack-adj.c: Likewise.
5797 * combine.c: Likewise.
5798 * common/config/i386/i386-common.c: Likewise.
5799 * config/aarch64/aarch64.c: Likewise.
5800 * config/alpha/sync.md: Likewise.
5801 * config/arc/arc.c: Likewise.
5802 * config/arc/predicates.md: Likewise.
5803 * config/arm/arm-c.c: Likewise.
5804 * config/arm/arm.c: Likewise.
5805 * config/arm/arm.h: Likewise.
5806 * config/arm/arm.md: Likewise.
5807 * config/arm/cortex-r4f.md: Likewise.
5808 * config/csky/csky.c: Likewise.
5809 * config/csky/csky.h: Likewise.
5810 * config/darwin-f.c: Likewise.
5811 * config/epiphany/epiphany.md: Likewise.
5812 * config/i386/i386.c: Likewise.
5813 * config/i386/sol2.h: Likewise.
5814 * config/m68k/m68k.c: Likewise.
5815 * config/mcore/mcore.h: Likewise.
5816 * config/microblaze/microblaze.md: Likewise.
5817 * config/mips/20kc.md: Likewise.
5818 * config/mips/sb1.md: Likewise.
5819 * config/nds32/nds32.c: Likewise.
5820 * config/nds32/predicates.md: Likewise.
5821 * config/pa/pa.c: Likewise.
5822 * config/rs6000/e300c2c3.md: Likewise.
5823 * config/rs6000/rs6000.c: Likewise.
5824 * config/s390/s390.h: Likewise.
5825 * config/sh/sh.c: Likewise.
5826 * config/sh/sh.md: Likewise.
5827 * config/spu/vmx2spu.h: Likewise.
5828 * cprop.c: Likewise.
5829 * dbxout.c: Likewise.
5830 * df-scan.c: Likewise.
5831 * doc/cfg.texi: Likewise.
5832 * doc/extend.texi: Likewise.
5833 * doc/fragments.texi: Likewise.
5834 * doc/gty.texi: Likewise.
5835 * doc/invoke.texi: Likewise.
5836 * doc/lto.texi: Likewise.
5837 * doc/md.texi: Likewise.
5838 * doc/objc.texi: Likewise.
5839 * doc/rtl.texi: Likewise.
5840 * doc/tm.texi: Likewise.
5842 * emit-rtl.c: Likewise.
5843 * emit-rtl.h: Likewise.
5844 * except.c: Likewise.
5845 * expmed.c: Likewise.
5847 * fold-const.c: Likewise.
5848 * genautomata.c: Likewise.
5849 * gimple-fold.c: Likewise.
5850 * hard-reg-set.h: Likewise.
5851 * ifcvt.c: Likewise.
5852 * ipa-comdats.c: Likewise.
5853 * ipa-cp.c: Likewise.
5854 * ipa-devirt.c: Likewise.
5855 * ipa-fnsummary.c: Likewise.
5856 * ipa-icf.c: Likewise.
5857 * ipa-inline-transform.c: Likewise.
5858 * ipa-inline.c: Likewise.
5859 * ipa-polymorphic-call.c: Likewise.
5860 * ipa-profile.c: Likewise.
5861 * ipa-prop.c: Likewise.
5862 * ipa-pure-const.c: Likewise.
5863 * ipa-reference.c: Likewise.
5864 * ipa-split.c: Likewise.
5865 * ipa-visibility.c: Likewise.
5867 * ira-build.c: Likewise.
5868 * ira-color.c: Likewise.
5869 * ira-conflicts.c: Likewise.
5870 * ira-costs.c: Likewise.
5871 * ira-int.h: Likewise.
5872 * ira-lives.c: Likewise.
5875 * loop-invariant.c: Likewise.
5876 * loop-unroll.c: Likewise.
5877 * lower-subreg.c: Likewise.
5878 * lra-assigns.c: Likewise.
5879 * lra-constraints.c: Likewise.
5880 * lra-eliminations.c: Likewise.
5881 * lra-lives.c: Likewise.
5882 * lra-remat.c: Likewise.
5883 * lra-spills.c: Likewise.
5885 * lto-cgraph.c: Likewise.
5886 * lto-streamer-out.c: Likewise.
5887 * postreload-gcse.c: Likewise.
5888 * predict.c: Likewise.
5889 * profile-count.h: Likewise.
5890 * profile.c: Likewise.
5891 * recog.c: Likewise.
5893 * reload.c: Likewise.
5894 * reload1.c: Likewise.
5895 * reorg.c: Likewise.
5896 * resource.c: Likewise.
5897 * rtl.def: Likewise.
5899 * rtlanal.c: Likewise.
5900 * sched-deps.c: Likewise.
5901 * sched-ebb.c: Likewise.
5902 * sched-rgn.c: Likewise.
5903 * sel-sched-ir.c: Likewise.
5904 * sel-sched.c: Likewise.
5905 * shrink-wrap.c: Likewise.
5906 * simplify-rtx.c: Likewise.
5907 * symtab.c: Likewise.
5908 * target.def: Likewise.
5909 * toplev.c: Likewise.
5910 * tree-call-cdce.c: Likewise.
5911 * tree-cfg.c: Likewise.
5912 * tree-complex.c: Likewise.
5913 * tree-core.h: Likewise.
5914 * tree-eh.c: Likewise.
5915 * tree-inline.c: Likewise.
5916 * tree-loop-distribution.c: Likewise.
5917 * tree-nrv.c: Likewise.
5918 * tree-profile.c: Likewise.
5919 * tree-sra.c: Likewise.
5920 * tree-ssa-alias.c: Likewise.
5921 * tree-ssa-dce.c: Likewise.
5922 * tree-ssa-dom.c: Likewise.
5923 * tree-ssa-forwprop.c: Likewise.
5924 * tree-ssa-loop-im.c: Likewise.
5925 * tree-ssa-loop-ivcanon.c: Likewise.
5926 * tree-ssa-loop-ivopts.c: Likewise.
5927 * tree-ssa-loop-niter.c: Likewise.
5928 * tree-ssa-phionlycprop.c: Likewise.
5929 * tree-ssa-phiopt.c: Likewise.
5930 * tree-ssa-propagate.c: Likewise.
5931 * tree-ssa-threadedge.c: Likewise.
5932 * tree-ssa-threadupdate.c: Likewise.
5933 * tree-ssa-uninit.c: Likewise.
5934 * tree-ssanames.c: Likewise.
5935 * tree-streamer-out.c: Likewise.
5938 * vr-values.c: Likewise.
5940 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
5942 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
5943 (ix86_split_xorsign): Ditto.
5944 * config/i386/i386.c (ix86_expand_xorsign): New function.
5945 (ix86_split_xorsign): Ditto.
5946 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
5947 (xorsign<mode>3): New expander.
5948 (xorsign<mode>3_1): New insn_and_split pattern.
5949 * config/i386/sse.md (xorsign<mode>3): New expander.
5951 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5953 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
5954 (*tablejump_sp64): Likewise.
5955 (*tablejump<P:mode>): ...this.
5956 (*call_address_sp32): Merge into...
5957 (*call_address_sp64): Likewise.
5958 (*call_address<P:mode>): ...this.
5959 (*call_symbolic_sp32): Merge into...
5960 (*call_symbolic_sp64): Likewise.
5961 (*call_symbolic<P:mode>): ...this.
5962 (call_value): Remove constraint and add predicate.
5963 (*call_value_address_sp32): Merge into...
5964 (*call_value_address_sp64): Likewise.
5965 (*call_value_address<P:mode>): ...this.
5966 (*call_value_symbolic_sp32): Merge into...
5967 (*call_value_symbolic_sp64): Likewise.
5968 (*call_value_symbolic<P:mode>): ...this.
5969 (*sibcall_symbolic_sp32): Merge into...
5970 (*sibcall_symbolic_sp64): Likewise.
5971 (*sibcall_symbolic<P:mode>): ...this.
5972 (sibcall_value): Remove constraint and add predicate.
5973 (*sibcall_value_symbolic_sp32): Merge into...
5974 (*sibcall_value_symbolic_sp64): Likewise.
5975 (*sibcall_value_symbolic<P:mode>): ...this.
5976 (window_save): Minor tweak.
5977 (*branch_sp32): Merge into...
5978 (*branch_sp64): Likewise.
5979 (*branch<P:mode>): ...this.
5981 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5982 James Clarke <jrtc27@jrtc27.com>
5985 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
5986 consistently in TLS address generation and adjust code to the renaming
5987 of patterns. Mark calls to __tls_get_addr as const.
5988 * config/sparc/sparc.md (tgd_hi22): Turn into...
5989 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
5990 (tgd_lo10): Turn into...
5991 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
5992 (tgd_add32): Merge into...
5993 (tgd_add64): Likewise.
5994 (tgd_add<P:mode>): ...this and use Pmode throughout.
5995 (tldm_hi22): Turn into...
5996 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
5997 (tldm_lo10): Turn into...
5998 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
5999 (tldm_add32): Merge into...
6000 (tldm_add64): Likewise.
6001 (tldm_add<P:mode>): ...this and use Pmode throughout.
6002 (tldm_call32): Merge into...
6003 (tldm_call64): Likewise.
6004 (tldm_call<P:mode>): ...this and use Pmode throughout.
6005 (tldo_hix22): Turn into...
6006 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
6007 (tldo_lox10): Turn into...
6008 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
6009 (tldo_add32): Merge into...
6010 (tldo_add64): Likewise.
6011 (tldo_add<P:mode>): ...this and use Pmode throughout.
6012 (tie_hi22): Turn into...
6013 (tie_hi22<P:mode>): ...this and use Pmode throughout.
6014 (tie_lo10): Turn into...
6015 (tie_lo10<P:mode>): ...this and use Pmode throughout.
6016 (tie_ld64): Use DImode throughout.
6017 (tie_add32): Merge into...
6018 (tie_add64): Likewise.
6019 (tie_add<P:mode>): ...this and use Pmode throughout.
6020 (tle_hix22_sp32): Merge into...
6021 (tle_hix22_sp64): Likewise.
6022 (tle_hix22<P:mode>): ...this and use Pmode throughout.
6023 (tle_lox22_sp32): Merge into...
6024 (tle_lox22_sp64): Likewise.
6025 (tle_lox22<P:mode>): ...this and use Pmode throughout.
6026 (*tldo_ldub_sp32): Merge into...
6027 (*tldo_ldub_sp64): Likewise.
6028 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
6029 (*tldo_ldub1_sp32): Merge into...
6030 (*tldo_ldub1_sp64): Likewise.
6031 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
6032 (*tldo_ldub2_sp32): Merge into...
6033 (*tldo_ldub2_sp64): Likewise.
6034 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
6035 (*tldo_ldsb1_sp32): Merge into...
6036 (*tldo_ldsb1_sp64): Likewise.
6037 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
6038 (*tldo_ldsb2_sp32): Merge into...
6039 (*tldo_ldsb2_sp64): Likewise.
6040 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
6041 (*tldo_ldub3_sp64): Use DImode throughout.
6042 (*tldo_ldsb3_sp64): Likewise.
6043 (*tldo_lduh_sp32): Merge into...
6044 (*tldo_lduh_sp64): Likewise.
6045 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
6046 (*tldo_lduh1_sp32): Merge into...
6047 (*tldo_lduh1_sp64): Likewise.
6048 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
6049 (*tldo_ldsh1_sp32): Merge into...
6050 (*tldo_ldsh1_sp64): Likewise.
6051 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
6052 (*tldo_lduh2_sp64): Use DImode throughout.
6053 (*tldo_ldsh2_sp64): Likewise.
6054 (*tldo_lduw_sp32): Merge into...
6055 (*tldo_lduw_sp64): Likewise.
6056 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
6057 (*tldo_lduw1_sp64): Use DImode throughout.
6058 (*tldo_ldsw1_sp64): Likewise.
6059 (*tldo_ldx_sp64): Likewise.
6060 (*tldo_stb_sp32): Merge into...
6061 (*tldo_stb_sp64): Likewise.
6062 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
6063 (*tldo_sth_sp32): Merge into...
6064 (*tldo_sth_sp64): Likewise.
6065 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
6066 (*tldo_stw_sp32): Merge into...
6067 (*tldo_stw_sp64): Likewise.
6068 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
6069 (*tldo_stx_sp64): Use DImode throughout.
6071 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6073 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
6074 check configure option to set BTI and Return Address Signing.
6075 * configure.ac: Add --enable-standard-branch-protection and
6076 --disable-standard-branch-protection.
6077 * configure: Regenerated.
6078 * doc/install.texi: Document the same.
6080 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6081 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6083 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
6084 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
6085 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
6087 * config/aarch64/aarch64-bti-insert.c: New file.
6088 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
6090 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
6092 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
6093 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
6094 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
6095 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
6097 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6099 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
6100 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
6101 Disable bti for -mbranch-protection=none.
6102 (aarch64_handle_standard_branch_protection): Enable bti for
6103 -mbranch-protection=standard.
6104 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
6105 -mbranch-protection.
6106 (aarch64_bti_enabled): Check if bti is enabled.
6107 * config/aarch64/aarch64.opt: Declare target variable.
6108 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
6110 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6112 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
6113 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
6114 (aarch64_expand_epilogue): Likewise.
6115 (aarch64_output_mi_thunk): Likewise
6116 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
6117 TAILCALL_ADDR_REGS to x16 and x17.
6118 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
6120 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6122 * config/aarch64/aarch64-option-extensions.def: Define
6123 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
6124 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
6125 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
6126 (AARCH64_FL_PREDRES): New.
6127 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
6128 AARCH64_FL_PREDRES by default.
6129 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
6131 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6133 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
6135 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
6136 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
6137 * doc/invoke.texi: Document ARMv8.5-A.
6139 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
6141 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
6142 (xorsign<mode>3): Likewise.
6144 2019-01-09 Jelinek <jakub@redhat.com>
6147 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
6148 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
6150 PR rtl-optimization/88331
6151 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
6152 not currently_expanding_to_rtl.
6154 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
6156 * doc/invoke.texi (-Os): Remove trailing spaces.
6157 (-finline-functions): Remove reference to -O2.
6159 2019-01-08 Jakub Jelinek <jakub@redhat.com>
6161 PR rtl-optimization/79593
6162 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
6164 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
6165 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
6167 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
6170 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
6174 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
6175 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
6177 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
6180 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
6181 ix86_avx_u128_mode_entry.
6183 2019-01-08 Martin Liska <mliska@suse.cz>
6185 PR tree-optimization/88753
6186 * tree-switch-conversion.c (switch_conversion::build_one_array):
6187 Come up with local variable constructor. Convert first to
6188 type of constructor values.
6190 2019-01-08 Richard Biener <rguenther@suse.de>
6192 PR tree-optimization/86554
6193 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
6194 rpo_avail): Move earlier.
6195 (visit_nary_op): When value-numbering to expressions
6196 with different overflow behavior make sure there's an
6197 available expression on the path.
6199 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
6201 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
6202 aarch64_parse_branch_protection,
6203 struct aarch64_branch_protect_type,
6204 aarch64_handle_no_branch_protection,
6205 aarch64_handle_standard_branch_protection,
6206 aarch64_validate_mbranch_protection,
6207 aarch64_handle_pac_ret_protection,
6208 aarch64_handle_attr_branch_protection,
6209 accepted_branch_protection_string,
6210 aarch64_pac_ret_subtypes,
6211 aarch64_branch_protect_types,
6212 aarch64_handle_pac_ret_leaf): Define.
6213 (aarch64_override_options_after_change_1, aarch64_override_options):
6214 Add check for accepted_branch_protection_string.
6215 (aarch64_option_save): Save accepted_branch_protection_string.
6216 (aarch64_option_restore): Save accepted_branch_protection_string.
6217 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
6218 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
6219 msign-return-address.
6220 * doc/invoke.texi: Add mbranch-protection.
6222 2019-01-08 Alan Modra <amodra@gmail.com>
6225 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
6226 Delete "unknownp" parameter. Adjust callers. Handle
6227 CONST_INT, PLUS, MINUS, and MULT.
6228 (attr_value_aligned): Renamed from or_attr_value.
6229 (min_attr_value): Return INT_MIN for unhandled rtl case..
6230 (min_fn): ..and translate to INT_MAX here.
6231 (write_length_unit_log): Modify to cope without "unknown".
6232 (write_attr_value): Handle IF_THEN_ELSE.
6234 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6236 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
6237 optimization for masked stores.
6239 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6242 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
6243 output vector directly to duplicate_and_interleave instead of
6244 going through a temporary. Postpone insertion of ctor_seq to
6245 the end of the loop.
6247 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
6250 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
6251 unsigned_p. Handle signed and unsigned overflow correction as
6253 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
6255 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
6257 (add<mode>3_compareV_imm): Make this callable for expanding.
6258 (subv<GPI:mode>4): Use register_operand for operand 1. Use
6259 aarch64_plus_operand for operand 2.
6260 (subv<GPI:mode>_insn): New insn pattern.
6261 (subv<GPI:mode>_imm): Likewise.
6262 (negv<GPI:mode>3): New expand pattern.
6263 (negv<GPI:mode>_insn): New insn pattern.
6264 (negv<GPI:mode>_cmp_only): Likewise.
6265 (cmpv<GPI:mode>_insn): Likewise.
6266 (subvti4): Use register_operand for operand 1. Update call to
6267 aarch64_expand_subvti.
6268 (usubvti4): Likewise.
6269 (negvti3): New expand pattern.
6270 (negdi_carryout): New insn pattern.
6271 (negvdi_carryinV): New insn pattern.
6272 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
6273 version the named version.
6274 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
6276 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
6278 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
6280 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
6281 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
6282 (sub<mode>3_carryinCV): Delete.
6283 (sub<GPI:mode>3_carryinV): New expand pattern.
6284 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
6286 2019-01-07 Richard Biener <rguenther@suse.de>
6288 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
6289 of tree_operand_hash.
6291 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6293 PR tree-optimization/88598
6294 * tree.h (single_nonzero_element): Declare.
6295 * tree.c (single_nonzero_element): New function.
6296 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
6297 if I is the only nonzero element of CST.
6299 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6301 PR tree-optimization/88598
6302 * tree.h (initializer_each_zero_or_onep): Declare.
6303 * tree.c (initializer_each_zero_or_onep): New function.
6304 (signed_or_unsigned_type_for): Handle float types too.
6305 (unsigned_type_for, signed_type_for): Update comments accordingly.
6306 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
6307 x & { 0 or -1, 0 or -1, ... }.
6309 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
6311 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
6312 with x86_64-pc-linux-gnu.
6314 2019-01-07 Tom de Vries <tdevries@suse.de>
6317 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
6319 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
6322 2019-01-07 Jakub Jelinek <jakub@redhat.com>
6324 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
6325 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
6326 TARGET_AVX512F as condition.
6329 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
6330 const_not_ok_for_debug_p target hook.
6331 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
6332 on UNSPEC and subexpressions thereof if all subexpressions of the
6333 UNSPEC are CONSTANT_P.
6335 PR tree-optimization/88676
6336 * tree-ssa-phiopt.c (two_value_replacement): New function.
6337 (tree_ssa_phiopt_worker): Call it.
6340 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
6341 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
6344 * tree-vect-generic.c: Include insn-config.h and recog.h.
6345 (expand_vector_piecewise): Add defaulted ret_type argument,
6346 if non-NULL, use that in preference to type for the result type.
6347 (expand_vector_parallel): Formatting fix.
6348 (do_vec_conversion, do_vec_narrowing_conversion,
6349 expand_vector_conversion): New functions.
6350 (expand_vector_operations_1): Call expand_vector_conversion
6351 for VEC_CONVERT ifn calls.
6352 * internal-fn.def (VEC_CONVERT): New internal function.
6353 * internal-fn.c (expand_VEC_CONVERT): New function.
6354 * fold-const-call.c (fold_const_vec_convert): New function.
6355 (fold_const_call): Use it for CFN_VEC_CONVERT.
6356 * doc/extend.texi (__builtin_convertvector): Document.
6358 2019-01-07 Tom de Vries <tdevries@suse.de>
6360 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
6361 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
6362 vector_red_partition, vector_red_sym): New global variables.
6363 (nvptx_option_override): Initialize vector_red_sym.
6364 (nvptx_declare_function_name): Restore red_partition register.
6365 (nvptx_file_end): Emit code to declare the vector reduction variables.
6366 (nvptx_output_red_partition): New function.
6367 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
6368 large vector reductions.
6369 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
6370 (nvptx_init_builtins): Add VECTOR_ADDR.
6371 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
6372 Handle nvptx_expand_shared_addr.
6373 (nvptx_get_shared_red_addr): Add vector argument and handle large
6375 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
6377 (nvptx_goacc_reduction_init): Likewise.
6378 (nvptx_goacc_reduction_fini): Likewise.
6379 (nvptx_goacc_reduction_teardown): Likewise.
6380 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
6381 init,fini,teardown}.
6382 (nvptx_init_axis_predicate): Initialize vector_red_partition.
6383 (nvptx_set_current_function): Init vector_red_partition.
6384 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
6385 (nvptx_red_partition): New insn.
6386 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
6388 2019-01-07 Tom de Vries <tdevries@suse.de>
6391 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
6394 2019-01-07 Tom de Vries <tdevries@suse.de>
6396 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
6397 (nvptx_option_override): Init oacc_bcast_partition.
6398 (nvptx_init_oacc_workers): New function.
6399 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
6400 (nvptx_needs_shared_bcast): New function.
6401 (nvptx_find_par): Generalize to enable vectors to use shared-memory
6403 (nvptx_shared_propagate): Initialize vector bcast partition and
6404 synchronization state.
6405 (nvptx_single): Generalize to enable vectors to use shared-memory
6407 (nvptx_process_pars): Likewise.
6408 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
6409 * config/nvptx/nvptx.h (struct machine_function): Add
6410 bcast_partition and sync_bar members.
6412 2019-01-07 Tom de Vries <tdevries@suse.de>
6414 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
6415 (nvptx_apply_dim_limits): New function.
6416 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
6419 2019-01-07 Tom de Vries <tdevries@suse.de>
6421 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
6422 as late as possible.
6424 2019-01-07 Tom de Vries <tdevries@suse.de>
6426 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
6427 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
6428 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
6429 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
6430 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
6432 2019-01-07 Tom de Vries <tdevries@suse.de>
6434 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
6436 2019-01-07 Tom de Vries <tdevries@suse.de>
6438 * omp-offload.c (oacc_get_min_dim): New function.
6439 * omp-offload.h (oacc_get_min_dim): Declare.
6441 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
6444 * config/i386/i386.c (function_value_ms_64): Return small sturct in
6445 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
6447 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6451 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
6453 * ipa-inline.c (edge_badness): Use inlined_time instead of
6454 inline_summaries->get.
6456 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6458 * opts.c (enable_fdo_optimizations): Enable
6459 version-loops-for-strides, loop-interchange, unrol-and-jam
6460 and tree-loop-distribution.
6461 * invoke.texi: Document newly enabled options.
6463 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6465 * doc/invoke.texi (max-inline-insns-small): New parameters.
6466 * ipa-inline.c (want_early_inline_function_p): simplify.
6467 (want_inline_small_function_p): Fix pasto from previous patch;
6468 use max-inline-insns-small bound.
6469 * params.def (max-inline-insns-small): New param.
6470 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
6471 variables correctly.
6473 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6475 * doc/invoke.texi: Document max-inline-insns-size,
6476 uninlined-function-insns, uninlined-function-time,
6477 uninlined-thunk-insns and uninlined-thunk-time.
6478 * params.def: Add max-inline-insns-size,
6479 uninlined-function-insns, uninlined-function-time,
6480 uninlined-thunk-insns and uninlined-thunk-time.
6481 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
6483 * ipa-inline.c (can_inline_edge_by_limits_p,
6484 want_inline_small_function_p): Use new parameters.
6486 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6488 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
6490 2019-01-05 Jakub Jelinek <jakub@redhat.com>
6494 * expr.c (expand_assignment): For calls returning VLA structures
6495 if to_rtx is not a MEM, force it into a stack temporary.
6498 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
6499 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
6500 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
6501 subexpressions of both operands.
6502 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
6503 subrtxes are CONSTANT_P.
6504 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
6507 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
6509 * params.def (hot-bb-count-ws-permille): Set to 990.
6511 2019-01-04 Martin Sebor <msebor@redhat.com>
6514 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
6517 2019-01-04 Martin Sebor <msebor@redhat.com>
6520 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
6522 2019-01-04 Jakub Jelinek <jakub@redhat.com>
6524 * gdbinit.in: Turn off pagination for the skip commands, restore
6525 it to previous state afterwards.
6527 2019-01-04 Jakub Jelinek <jakub@redhat.com>
6530 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
6531 of GET_MODE (opN) as modes of the libcall arguments.
6533 2019-01-04 Jan Beulich <jbeulich@suse.com>
6535 * config/i386/sse.md
6536 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
6537 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
6538 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
6539 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
6540 avx512f_vmcmp<mode>3<round_saeonly_name>,
6541 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
6542 avx512f_maskcmp<mode>3,
6543 <avx512>_cvt<ssemodesuffix>2mask<mode>,
6544 <avx512>_cvt<ssemodesuffix>2mask<mode>,
6545 *<avx512>_cvtmask2<ssemodesuffix><mode>,
6546 *<avx512>_cvtmask2<ssemodesuffix><mode>,
6547 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
6548 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
6549 <avx512>_gt<mode>3<mask_scalar_merge_name>,
6550 <avx512>_gt<mode>3<mask_scalar_merge_name>,
6551 <avx512>_testm<mode>3<mask_scalar_merge_name>,
6552 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
6553 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
6554 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
6555 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
6556 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
6557 avx512cd_maskb_vec_dup<mode>,
6558 avx512cd_maskw_vec_dup<mode>,
6559 avx512dq_fpclass<mode><mask_scalar_merge_name>,
6560 avx512dq_vmfpclass<mode>,
6561 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
6564 2019-01-03 Martin Sebor <msebor@redhat.com>
6566 PR tree-optimization/88659
6567 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
6569 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
6571 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
6572 unaligned vsx and avoid lxvd2x/stxvd2x.
6573 (gen_lvx_v4si_move): New function.
6575 2019-01-03 Tom de Vries <tdevries@suse.de>
6577 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
6578 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
6580 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
6582 2019-01-03 Tom de Vries <tdevries@suse.de>
6584 * config/nvptx/nvptx.c (struct offload_attrs): New.
6585 (populate_offload_attrs): New function. Factor mask extraction out of
6586 nvptx_reorg. Add extraction of dimensions.
6587 (nvptx_reorg): Use populate_offload_attrs.
6589 2019-01-03 Tom de Vries <tdevries@suse.de>
6591 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
6592 cases for oacc_min_dims_p and routine_p. Add asserts for
6593 oacc_default_dims_p and offload_region_p.
6595 2019-01-03 Tom de Vries <tdevries@suse.de>
6597 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
6599 (nvptx_goacc_validate_dims): ... here.
6601 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
6603 PR tree-optimization/85574
6604 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
6606 (struct ssa_equip_hash_traits): Declare.
6607 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
6609 2019-01-03 Jakub Jelinek <jakub@redhat.com>
6612 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
6613 change it to qualified_type.
6615 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
6617 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
6618 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
6620 2019-01-02 Martin Sebor <msebor@redhat.com>
6621 Jeff Law <law@redhat.com>
6623 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
6624 (get_range_strlen_tree): Update appropriately.
6626 * gimple-fold.h (get_range_strlen): Drop unused last argument.
6628 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
6629 rather than set_range_info.
6630 * tree-ssa-strlen.c (set_strlen_range): Extracted from
6631 maybe_set_strlen_range. Handle potentially boundary crossing
6632 cases more conservatively.
6633 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
6634 Call set_strlen_range.
6635 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
6638 * gimple-fold.c (get_range_strlen): Update prototype to no longer
6639 need the flexp argument.
6640 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
6641 from calls to get_range_strlen. Update comments. Just update
6642 VAL for an unterminated const char array and let the reset of the
6643 code handle it normally. No longer try to set *flexp. Adjust
6645 (get_range_strlen): Update for the new get_range_strlen API.
6646 (get_maxval_strlen): Similarly.
6647 (gimple_fold_builtin_strlen): Handle update meaning of return value
6648 from get_range_strlen.
6649 * gimple-ssa-sprintf.c (get_string_length): Update for the new
6650 get_range_strlen API.
6652 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
6655 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
6656 false at WPA time when body was removed.
6658 2019-01-02 Martin Liska <mliska@suse.cz>
6660 PR tree-optimization/88650
6661 * predict.c (set_even_probabilities): Calculate probability
6662 remainer only when really used.
6664 2019-01-02 Richard Biener <rguenther@suse.de>
6667 * tree-data-ref.c (analyze_subscript_affine_affine): Use
6668 widest_ints when mangling max_stmt_execution results.
6670 2019-01-02 Richard Biener <rguenther@suse.de>
6672 PR tree-optimization/88621
6673 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
6674 bitfields when canoncalizing.
6676 2019-01-02 Richard Biener <rguenther@suse.de>
6679 * config/i386/x86-tune-costs.h (intel_cost): Adjust
6680 cost of cheap SSE instruction.
6682 2019-01-02 Richard Biener <rguenther@suse.de>
6685 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
6686 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
6688 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
6689 set after UIDs before splitting them.
6691 2019-01-01 Martin Sebor <msebor@redhat.com>
6692 Jeff Law <law@redhat.com>
6694 * gimple-fold.c (get_range_strlen_tree): Record if the computed
6695 length is optimistic. If it is, then arrange to compute the
6696 conservative length as well.
6698 * gimple-fold.h (get_range_strlen): Update prototype.
6699 * builtins.c (check_access): Update call to get_range_strlen to use
6700 c_strlen_data pointer. Change various variable accesses to instead
6701 pull data from the c_strlen_data structure.
6702 (check_strncat_sizes, expand_builtin_strncat): Likewise.
6703 * calls.c (maybe_warn_nonstring_arg): Likewise.
6704 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
6705 minimum length if maximum lengh is unknown.
6706 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
6707 that used c_strlen, it's no longer needed. Restructure slightly.
6708 (format_string): Set unlikely range appropriately.
6709 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
6711 (get_range_strlen): Accept c_strlen_data pointer for external
6712 call sites as well. Pass through to call to internal get_range_strlen.
6713 Adjust minlen, maxlen and maxbound as needed.
6714 (get_maxval_strlen): Update comments.
6715 (gimple_fold_builtin_strlen): Update call to get_range_strlen
6716 to use c_strlen_data pointer. Change variable accesses to instead
6717 use c_strlen_data data members.
6719 * gimple-fold.c (get_range_strlen): Update prototype.
6720 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
6721 local variables. Use pdata to return information to caller.
6722 Update calls to get_range_strlen. Update pdata->maxbound.
6723 (get_range_strlen -- static version): Similarly.
6724 (get_range_strlen -- extern version): Update for internal
6725 get_range_strlen API change. Convert to external data format.
6726 (get_maxval_strlen): Similarly.
6728 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
6730 * coverage.c (get_coverage_counts): Use current_function_decl.
6731 * profile.c (read_thunk_profile): New function.
6732 (branch_prob): Add THUNK parameter.
6733 * tree-profile.c (tree_profiling): Handle thunks.
6734 * value-prof.c (init_node_map): Handle thunks.
6735 * value-prof.h (branch_prob): Upate prototype.
6736 (read_thunk_profile): Declare.
6738 2019-01-01 Jakub Jelinek <jakub@redhat.com>
6740 Update copyright years.
6742 * gcc.c (process_command): Update copyright notice dates.
6743 * gcov-dump.c (print_version): Ditto.
6744 * gcov.c (print_version): Ditto.
6745 * gcov-tool.c (print_version): Ditto.
6746 * gengtype.c (create_file): Ditto.
6747 * doc/cpp.texi: Bump @copying's copyright year.
6748 * doc/cppinternals.texi: Ditto.
6749 * doc/gcc.texi: Ditto.
6750 * doc/gccint.texi: Ditto.
6751 * doc/gcov.texi: Ditto.
6752 * doc/install.texi: Ditto.
6753 * doc/invoke.texi: Ditto.
6755 Copyright (C) 2019 Free Software Foundation, Inc.
6757 Copying and distribution of this file, with or without modification,
6758 are permitted in any medium without royalty provided the copyright
6759 notice and this notice are preserved.