1 2019-04-18 Richard Biener <rguenther@suse.de>
3 * tree.c (get_qualified_type): Put found type variants at the
4 head of the variant list.
6 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
8 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
10 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
13 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
14 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
15 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
16 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
17 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
19 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
21 * ira-conflicts.c (print_allocno_conflicts): Always print something,
22 even for allocno's with no conflicts.
23 (print_conflicts): Print an extra newline.
25 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
27 * auto-inc-dec.c (attempt_change): Set the alignment of the
28 temporary memory to that of the original.
30 2019-04-17 Joao Moreira <jmoreira@suse.de>
32 * targhooks.c (default_print_patchable_function_entry): Emit
33 __patchable_function_entries section with writable flags to allow
34 relocation resolution.
36 2019-04-17 Jonny Grant <jg@jguk.org>
38 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
40 2019-04-17 Jakub Jelinek <jakub@redhat.com>
43 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
46 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
48 * config/arc/arc.c (arc_init): Format diagnostic string.
49 (arc_override_options): Likewise.
50 (check_if_valid_regno_const): Likewise.
51 (arc_reorg): Likewise.
53 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
56 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
58 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
60 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
61 (*movdi_update1): Use Pmode.
62 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
63 (movdi_<mode>_update_stack): Rename to ...
64 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
66 (*movsi_update1): Use Pmode.
67 (*movsi_update2): Use Pmode.
68 (movsi_update): Rename to ...
69 (movsi_<mode>_update): ... this. Use Pmode.
70 (movsi_update_stack): Fix condition.
71 (*movhi_update1): Use Pmode. Fix argument to
72 avoiding_indexed_address_p.
73 (*movhi_update2): Ditto.
74 (*movhi_update3): Ditto.
75 (*movhi_update4): Ditto.
76 (*movqi_update1): Ditto.
77 (*movqi_update2): Ditto.
78 (*movqi_update3): Ditto.
79 (*movsf_update1, *movdf_update1): Merge, rename to...
80 (*mov<mode>_update1): This. Use Pmode. Fix argument to
81 avoiding_indexed_address_p. Add "size" attribute.
82 (*movsf_update2, *movdf_update2): Merge, rename to...
83 (*mov<mode>_update2): This. Ditto.
84 (*movsf_update3): Use Pmode. Fix argument to
85 avoiding_indexed_address_p.
86 (*movsf_update4): Ditto.
87 (allocate_stack): Simplify condition. Adjust pattern names.
89 2019-04-17 Jakub Jelinek <jakub@redhat.com>
92 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
93 whitespace at the start of target attribute string.
95 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
98 * config/rs6000/power9.md: Add store forwarding bypass.
100 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
103 * valtrack.c (dead_debug_insert_temp): Reset debug references
104 to the return value of a call being removed.
106 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
108 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
109 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
110 implement target hook.
111 (arc_memory_move_cost): New function.
112 (TARGET_REGISTER_MOVE_COST): Define.
113 (TARGET_MEMORY_MOVE_COST): Likewise.
114 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
115 (MEMORY_MOVE_COST): Likewise.
117 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
119 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
120 (sibcall_value_insn): Likewise.
121 * config/arc/constraints.md (Rs5): Remove.
123 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
125 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
126 for last two fake registers.
127 (arc_conditional_register_usage): Make sure fake frame and arg
128 pointer regs are in general regs class.
129 (FRAME_POINTER_MASK): Remove.
130 (RETURN_ADDR_MASK): Remove.
131 (arc_must_save_register): Use hard frame regnum.
132 (frame_restore_reg): Use hard_frame_pointer_rtx.
133 (arc_save_callee_saves): Likewise.
134 (arc_restore_callee_saves): Likewise.
135 (arc_save_callee_enter): Likewise.
136 (arc_restore_callee_leave): Likewise.
137 (arc_save_callee_milli): Likewise.
138 (arc_eh_return_address_location): Likewise.
139 (arc_check_multi): Use hard frame regnum.
140 (arc_can_eliminate): Likewise.
141 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
142 for register allocator.
143 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
144 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
145 (FRAME_POINTER_REGNUM): Change it to a fake register.
146 (HARD_FRAME_POINTER_REGNUM): Defined.
147 (ARG_POINTER_REGNUM): Change it to a new fake register.
148 (ELIMINABLE_REGS): Update.
149 (REGISTER_NAMES): Update names.
150 * config/arc/arc.md (LP_START): Remove.
152 (shift_si3_loop): Update pattern.
154 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
156 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
157 to avoid delay slot scheduling.
158 (arc_must_save_register): Don't save SP.
159 * config/arc/arc.md (stack_tie): Remove.
160 (UNSPEC_ARC_STKTIE): Likewise.
162 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
163 Shiva Chen <shiva0217@gmail.com>
165 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
166 code gen with large shift amount.
168 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
170 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
173 2019-04-16 Jakub Jelinek <jakub@redhat.com>
176 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
177 print -m64/-mx32/-m32 if it is true.
178 (ix86_debug_options, ix86_function_specific_print): Pass true as
179 ADD_ABI_P to ix86_target_string.
180 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
181 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
182 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
184 PR rtl-optimization/90082
185 * dce.c (can_delete_call): New function.
186 (deletable_insn_p, mark_insn): Use it.
188 PR tree-optimization/90090
189 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
191 (is_division_by_square): Likewise. Formatting fix.
193 2019-04-16 Richard Biener <rguenther@suse.de>
195 PR tree-optimization/56049
196 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
197 equality check if alias-set zero will prevail.
199 2019-04-15 Jeff Law <law@redhat.com>
201 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
202 size and alignment as unsigned.
204 2019-04-15 Richard Biener <rguenther@suse.de>
207 * tree-loop-distribution.c (destroy_loop): Preserve correct
210 2019-04-15 Richard Biener <rguenther@suse.de>
212 PR tree-optimization/90071
213 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
214 abnormal operands from def stmts.
216 2019-04-15 Richard Biener <rguenther@suse.de>
219 * tree.h (auto_var_p): Declare.
220 * tree.c (auto_var_p): New function, split out from ...
221 (auto_var_in_fn_p): ... here.
222 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
224 (new_var_info): Initialize it.
225 (set_uids_in_ptset): Also set the shadow variable uid if required.
226 (ipa_pta_execute): Postprocess points-to solutions assigning
227 shadow variable uids for locals that may reach their containing
228 function recursively.
229 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
230 assert but instead check whether the points-to solution is
233 2019-04-15 Martin Jambor <mjambor@suse.cz>
236 * cgraph.c (clone_of_p): Loop over clone chain for each step in
239 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
241 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
243 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
244 Kito Cheng <kito.cheng@gmail.com>
245 Shiva Chen <shiva0217@gmail.com>
247 * config/nds32/nds32-md-auxiliary.c
248 (nds32_legitimize_pic_address): Use new PIC pattern.
249 (nds32_legitimize_tls_address): Use new TLS pattern.
250 (nds32_output_symrel): New.
251 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
252 (nds32_alloc_relax_group_id): Ditto.
253 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
254 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
256 (nds32_group_tls_insn): Ditto.
257 (nds32_group_float_insns): Ditto.
258 * config/nds32/nds32.md (tls_le): New.
261 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
263 * configure: Add nds32 target for dwarf2 debug_line checking.
264 * configure.ac: Regenerated.
266 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
269 * ipa-devirt.c (skip_in_fields_list_p): New.
270 (odr_types_equivalent_p): Use it.
272 2019-04-13 Jakub Jelinek <jakub@redhat.com>
275 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
276 instead of strncmp when checking for thumb and arm. Formatting fixes.
278 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
280 * doc/install.texi: Document --with-target-system-zlib.
282 2019-04-12 Martin Sebor <msebor@redhat.com>
288 * targhooks.c (default_vector_alignment): Avoid assuming
289 argument fits in SHWI.
290 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
292 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
294 2019-04-12 Jakub Jelinek <jakub@redhat.com>
296 PR rtl-optimization/89965
297 * dce.c: Include rtl-iter.h.
298 (struct check_argument_load_data): New type.
299 (check_argument_load): New function.
300 (find_call_stack_args): Check for loads from stack slots still tracked
301 in sp_bytes and punt if any is found.
303 * config/mips/loongson-mmiintrin.h: Fix up #error message.
305 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
307 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
308 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
310 2019-04-12 Martin Liska <mliska@suse.cz>
313 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
315 (separate_attrs): Handle multiple 'default's.
316 (expand_target_clones): Rework error handling code.
318 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
321 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
322 mode of vector rather than mode of destination for move instruction.
323 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
324 Use QI inner mode with V16QI vector mode.
326 2019-04-12 Jakub Jelinek <jakub@redhat.com>
329 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
330 "invalid %%t operand" in output_operand_lossage message.
332 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
334 * config/s390/predicates.md (permute_pattern_operand): New
336 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
337 operand for the permute pattern.
338 ("*vec_perm<mode>"): New insn definition.
339 ("bswap<mode>"): Generate the permute pattern operand in the
340 expander and perform the operand reloads for pre arch13 level
342 ("*bswap<mode>_emu"): Rename to ...
343 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
344 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
345 Add the USE operand for the permute pattern.
346 ("*vec_set_bswap_vec<mode>"): Likewise.
348 2019-04-12 Jakub Jelinek <jakub@redhat.com>
351 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
352 and gcc_unreachable if it fails, just call tree_to_uhwi which
353 verifies that too. Test TREE_CHAIN instead of list_length > 1.
354 Start warning message with a lower-case letter. Formatting fixes.
356 PR rtl-optimization/90026
357 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
358 successors, look for BARRIERs inside of the whole BB_FOOTER chain
359 rather than just at the start of it. If e->src BB_FOOTER is not NULL
360 in cfglayout mode, use emit_barrier_after_bb.
362 2018-04-11 Steve Ellcey <sellcey@marvell.com>
364 PR rtl-optimization/87763
365 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
368 2019-04-11 Tom de Vries <tdevries@suse.de>
370 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
371 max macro using statement expression.
373 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
375 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
376 * xcoffout.c (xcoff_private_rodata_section_name): Define.
377 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
378 read_only_private_data_section using xcoff_private_rodata_section_name.
379 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
381 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
384 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
386 2019-04-11 Jakub Jelinek <jakub@redhat.com>
388 PR rtl-optimization/89965
389 * dce.c (sp_based_mem_offset): New function.
390 (find_call_stack_args): Use sp_based_mem_offset.
392 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
394 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
396 2019-04-11 Richard Biener <rguenther@suse.de>
398 PR tree-optimization/90020
399 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
400 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
401 * tree-ssa-pre.c (compute_avail): Use it to not put
402 possibly trapping references after a call that might not
404 * gcse.c (compute_hash_table_work): Do not elide
405 marking a block containing a call if the call might not
408 2019-04-11 Richard Biener <rguenther@suse.de>
410 PR tree-optimization/90018
411 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
412 Test both SLP and interleaving variants.
414 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
416 * config/s390/8561.md: New file.
417 * config/s390/driver-native.c (s390_host_detect_local_cpu):
418 Add arch13 cpu model.
419 * config/s390/s390-opts.h (enum processor_type): Likewise.
420 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
421 (s390_get_unit_mask): Likewise.
422 (s390_is_fpd): Likewise.
423 (s390_is_fxd): Likewise.
424 * config/s390/s390.h (s390_tune_attr): Likewise.
425 * config/s390/s390.md: Include arch13 pipeline description.
426 * config/s390/s390.opt: Add arch13.
428 2018-04-10 Steve Ellcey <sellcey@marvell.com>
430 PR rtl-optimization/87763
431 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
433 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
435 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
437 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
438 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
439 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
440 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
442 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
444 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
445 "Although" in -fipa-icf documentation.
447 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
448 of using multiple -g options.
450 2019-04-10 Martin Liska <mliska@suse.cz>
452 PR gcov-profile/89959
453 * doc/gcov.texi: Make documentation of -x option
456 2019-04-10 Richard Biener <rguenther@suse.de>
458 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
460 (DR_GROUP_SAME_DR_STMT): Remove.
461 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
462 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
464 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
465 (vect_record_grouped_load_vectors): Remove unreachable code.
467 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
470 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
471 obsolete reference to N.
473 2019-04-10 Jakub Jelinek <jakub@redhat.com>
476 * expr.c (store_expr): Set properly size on the MEM passed to
480 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
481 with strlen in between hostsz-3 and hostsz-1 inclusive when no
482 translation is needed, and when translation is needed, only append
483 ... if the string length is hostsz or more bytes long. Avoid using
486 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
489 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
490 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
492 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
493 differences directly.
494 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
496 2019-04-09 Jakub Jelinek <jakub@redhat.com>
499 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
501 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
503 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
504 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
505 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
506 trailing space from -gsplit-dwarf diagnostics.
508 PR tree-optimization/89998
509 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
510 instead of integer_type_node if possible, don't add ranges if return
511 type is not compatible with int.
512 * gimple-fold.c (gimple_fold_builtin_sprintf,
513 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
516 2019-04-09 Martin Liska <mliska@suse.cz>
518 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
519 * doc/install.texi: Document the new config.
521 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
523 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
524 use gimple_expr_type for load and store calls. Skip over the
525 condition argument in a conditional internal function.
526 Protect use of TREE_INT_CST_LOW.
528 2019-04-09 Jakub Jelinek <jakub@redhat.com>
531 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
532 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
533 trailing period from it too.
535 2019-04-08 wu yuan <wuyuan5@huawei.com>
537 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
538 * config/aarch64/aarch64.md : Add "tsv110.md"
539 * config/aarch64/tsv110.md: New file.
541 2019-04-08 Richard Biener <rguenther@suse.de>
543 PR tree-optimization/90006
544 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
547 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
550 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
552 (fma_root_node): Likewise.
553 (func_fma_steering): Likewise.
555 2019-04-08 Jakub Jelinek <jakub@redhat.com>
557 PR rtl-optimization/89865
558 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
560 PR rtl-optimization/89865
561 * config/i386/i386.md
562 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
563 numbers not to clash with the additional operands[4].
564 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
565 with extra register copy in the middle.
567 2019-04-08 Martin Liska <mliska@suse.cz>
569 PR gcov-profile/89961
570 * doc/gcov.texi: Document data_file.
571 * gcov.c (generate_results): Add data_info into JSON output.
573 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
575 PR tree-optimization/89725
576 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
577 loop's chrec as invariant symbol.
578 * tree-chrec.h (chrec_contains_symbols): New parameter.
579 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
580 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
581 function of loops not in DDR's loop_nest.
582 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
584 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
587 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
590 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
593 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
594 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
596 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
598 * sched-deps.c (sched_macro_fuse_insns): Check return value of
599 targetm.fixed_condition_code_regs.
601 2019-04-05 Richard Biener <rguenther@suse.de>
605 * tree-cfgcleanup.c (remove_forwarder_block): Always move
606 debug bind stmts but reset them if they are not valid at the
609 2019-04-05 Martin Liska <mliska@suse.cz>
612 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
613 order to wrap keywords or arguments.
614 * collect2.c (main): Likewise.
615 (scan_prog_file): Likewise.
616 (scan_libraries): Likewise.
617 * common/config/riscv/riscv-common.c
618 (riscv_subset_list::parsing_subset_version): Likewise.
619 (riscv_subset_list::parse_std_ext): Likewise.
620 * config/aarch64/aarch64.c (aarch64_override_options_internal):
622 * config/arm/arm.c (arm_option_override): Likewise.
623 * config/cris/cris.c (cris_print_operand): Likewise.
624 * config/darwin-c.c (darwin_pragma_options): Likewise.
625 (darwin_pragma_unused): Likewise.
626 (darwin_pragma_ms_struct): Likewise.
627 * config/ft32/ft32.c (ft32_print_operand): Likewise.
628 * config/i386/i386.c (print_reg): Likewise.
629 (ix86_print_operand): Likewise.
630 * config/i386/xm-djgpp.h: Likewise.
631 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
632 * config/m32c/m32c.c (m32c_option_override): Likewise.
633 * config/msp430/msp430.c (msp430_option_override): Likewise.
634 * config/nds32/nds32.c (nds32_option_override): Likewise.
635 * config/nvptx/mkoffload.c (main): Likewise.
636 * config/rx/rx.c (rx_print_operand): Likewise.
637 (valid_psw_flag): Likewise.
638 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
639 (vms_pragma_nomember_alignment): Likewise.
640 (vms_pragma_extern_model): Likewise.
641 * lto-wrapper.c (compile_offload_image): Likewise.
642 * omp-offload.c (oacc_parse_default_dims): Likewise.
643 * symtab.c (symtab_node::verify_base): Likewise.
644 * tlink.c (recompile_files): Likewise.
645 (start_tweaking): Likewise.
646 * tree-profile.c (parse_profile_filter): Likewise.
648 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
650 PR tree-optimization/89956
651 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
652 multiple negates of the same value.
654 2019-04-04 Martin Sebor <msebor@redhat.com>
658 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
659 have the same precision since the function crashes otherwise.
660 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
661 has non-zero arguments.
663 2019-04-04 Martin Sebor <msebor@redhat.com>
666 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
667 out if the number of arguments is less than expected.
669 2019-04-04 Jeff Law <law@redhat.com>
671 PR rtl-optimization/89399
672 * ree.c (combine_set_extension): Use single_set rather than
673 digging into PATTERN for items on the candidate list.
674 (combine_reaching_defs): Likewise.
676 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
678 PR rtl-optimization/46590
679 * loop-invariant.c (find_defs): Move df_remove_problem and
680 df_process_deferred_rescans to move_invariants.
681 Move df_live_add_problem and df_live_set_all_dirty calls
683 (move_invariants): Likewise.
684 (move_loop_invariants): Likewise, making the df_live calls
685 conditional on -O. Remove the problem again if we added it
688 2019-04-03 qing zhao <qing.zhao@oracle.com>
690 PR tree-optimization/89730
691 * ipa-inline.c (can_inline_edge_p): Delete the checking for
692 -flive-patching=inline-only-static.
693 (can_inline_edge_by_limits_p): Add the checking for
694 -flive-patching=inline-only-static and grant always_inline
695 even when -flive-patching=inline-only-static is specified.
697 2019-04-03 Jeff Law <law@redhat.com>
699 PR rtl-optimization/81025
700 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
702 2019-04-03 Richard Biener <rguenther@suse.de>
704 PR tree-optimization/84101
705 * tree-vect-stmts.c: Include explow.h for hard_function_value,
706 regs.h for hard_regno_nregs.
707 (cfun_returns): New helper.
708 (vect_model_store_cost): When vectorizing a store to a decl
709 we return and the function ABI returns in a multi-reg location
710 account for the possible spilling that will happen.
712 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
714 * config/s390/s390.c (s390_legitimate_address_p): Reject long
715 displacement addresses for vector mode operands.
717 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
719 * config/arc/arc.c (GMASK_LEN): Define.
720 (arc_restore_callee_saves): Restore first blink when
723 2019-04-03 Sudakshina Das <sudi.das@arm.com>
725 * doc/extend.texi: Add deprecated comment on sign-return-address
726 function attribute and add mbranch-protection.
727 * doc/invoke.texi: Add bti to the options for mbranch-protection.
729 2019-04-03 Richard Biener <rguenther@suse.de>
732 * lto-wrapper.c (run_gcc): Avoid implicit rules making
733 the all target phony.
735 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
739 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
740 Return false for variable DImode shifts.
741 (dimode_scalar_chain::compute_convert_gain): Do not handle
742 register count operand in variable DImode shifts.
743 (dimode_scalar_chain::make_vector_copies): Remove support to copy
744 count argument of a variable shift instruction to a vector register.
745 (dimode_scalar_chain::convert_reg): Remove support to convert
746 count argument of a variable shift instruction.
748 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
750 PR rtl-optimization/84206
751 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
752 iterating over loop headers.
754 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
756 PR rtl-optimization/85876
757 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
758 beyond the original fence.
760 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
762 * config.gcc: Mark spu* targets as deprecated/obsolete.
764 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
766 * config/s390/s390-builtin-types.def: New builtin function type
767 definitions. Remove unused types.
768 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
769 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
770 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
772 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
773 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
774 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
775 (vec_double, vec_signed, vec_unsigned): Define to use the new
777 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
780 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
782 * config/s390/s390-builtin-types.def: New builtin function type
784 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
785 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
786 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
787 (s390_vstrszh, s390_vstrszf): New low-level builtins.
788 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
789 constant definitions.
790 * config/s390/vecintrin.h (vec_search_string_cc)
791 (vec_search_string_until_zero_cc): New builtin name definitions.
792 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
794 ("vec_vstrs<mode>"): New insn definition.
796 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
798 * config/s390/s390-builtin-types.def: Add new builtin function
800 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
801 New overloaded builtins.
802 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
804 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
805 (UNSPEC_VEC_SLDBYTE): ... this.
806 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
807 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
809 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
810 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
811 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
813 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
815 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
817 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
818 * config/s390/vector.md (V_HW_HSD): ... here.
820 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
822 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
823 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
824 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
825 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
826 New insn definitions.
828 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
830 * config/s390/s390-builtin-types.def: Add new builtin function type.
831 * config/s390/s390-builtins.def: Add overloaded builtin
832 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
833 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
834 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
835 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
836 ("eltswap<mode>"): New expander.
837 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
840 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
842 * config/s390/s390-builtin-types.def: Add new builtin function types.
843 * config/s390/s390-builtins.def: Add overloaded builtin
844 s390_vec_revb. Add low-level builtins for vlbr and vstbr
846 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
847 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
848 ("bswap<mode>"): New expander.
849 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
851 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
853 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
854 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
855 vector builtin version number in __VEC__.
857 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
859 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
861 (SFSI): New mode attribute.
862 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
863 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
865 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
866 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
867 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
868 ("floatsi<mode>2"): Add wcefb instruction.
870 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
872 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
873 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
875 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
876 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
877 support 32 bit fp-int conversions. Rename to ...
878 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
879 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
880 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
881 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
884 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
886 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
887 if-then-else constructs if we can use the select instruction.
888 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
890 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
892 * config/s390/s390.md ("*popcountdi_arch13_cc")
893 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
895 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
896 Append _z196 to make it ...
897 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
898 ("popcounthi2_z196"): ... this.
899 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
900 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
902 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
904 * config/s390/s390.c (s390_canonicalize_comparison): Convert
905 certain compares for arch13 in order to make use of the condition
906 code result produced by the new instructions.
907 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
908 nxrk, and nxgrk instruction patterns.
909 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
910 (inv_no): Add new code iterator together with some attributes.
911 ("*andc_split_<mode>"): Disable splitter for arch13.
912 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
913 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
914 ("*<ANDOR:bitops_name>c<GPR:mode>")
915 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
916 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
917 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
918 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
920 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
922 * common/config/s390/s390-common.c (processor_flags_table): New
924 * config.gcc: Support arch13 with the --with-arch= configure flag.
925 * config/s390/driver-native.c (s390_host_detect_local_cpu):
926 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
927 * config/s390/s390.c (s390_get_sched_attrmask)
928 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
929 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
930 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
931 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
932 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
934 * config/s390/s390.opt: Support arch13 as processor type in
935 command line options.
937 2019-04-02 Martin Liska <mliska@suse.cz>
940 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
941 Fix param description of graphite-max-arrays-per-scop.
943 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
945 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
946 (ASAN_CC1_SPEC): Use it in 64-bit mode.
947 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
949 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
951 PR rtl-optimization/85412
952 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
953 sel_sched_region_1, not after.
955 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
957 PR rtl-optimization/86928
958 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
959 compute_live if necessary.
960 (sel_redirect_edge_and_branch): Likewise.
962 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
964 PR rtl-optimization/89865
965 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
966 register if it is a part of small class.
968 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
970 PR rtl-optimization/87273
971 * sel-sched-ir.c (merge_fences): Remove assert.
973 2019-04-01 Richard Biener <rguenther@suse.de>
975 PR tree-optimization/46590
976 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
977 (dom_walker::m_reachability): Add in place of...
978 (dom_walker::m_skip_unreachable_blocks): ...this.
979 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
980 Move complex initialization ...
981 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
982 lazily and initialize edge flags on each invocation.
983 (dom_walker::bb_reachable): Use m_reachability.
985 2019-04-01 Martin Liska <mliska@suse.cz>
988 * opt-suggestions.c (option_proposer::build_option_suggestions):
989 Add variant without any argument in order to provide better
992 2019-04-01 Richard Biener <rguenther@suse.de>
995 * gimple.c: Include langhooks.h.
996 (gimple_get_alias_set): Treat enumeral types as the underlying
999 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
1000 Eric Botcazou <ebotcazou@adacore.com>
1002 PR rtl-optimization/89862
1003 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
1004 that operates on the full registers for WORD_REGISTER_OPERATIONS
1007 2019-03-29 Jim Wilson <jimw@sifive.com>
1009 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
1010 Clear MASK_RVC and then set if C subset supported.
1012 2019-03-29 Jakub Jelinek <jakub@redhat.com>
1015 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
1016 non-addressable complit into its initializer if it is volatile.
1018 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
1020 * opts-common.c (integral_argument): Set errno properly in one case.
1022 2019-03-29 Martin Liska <mliska@suse.cz>
1024 * doc/invoke.texi: Remove -Wchkp from documentation.
1026 2019-03-29 Martin Liska <mliska@suse.cz>
1028 * dbgcnt.c (print_limit_reach): New function.
1031 2019-03-29 Martin Liska <mliska@suse.cz>
1033 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
1034 (dbg_cnt_process_opt): Parse first tokens aas
1035 dbg_cnt_process_single_pair is also using strtok.
1037 2019-03-29 Jakub Jelinek <jakub@redhat.com>
1039 PR rtl-optimization/87485
1040 * function.c (expand_function_end): Move stack_protect_epilogue
1041 before loading of return value into hard register(s).
1043 2019-03-28 Jakub Jelinek <jakub@redhat.com>
1046 * tree-inline.h (struct copy_body_data): Add
1047 dont_remap_vla_if_no_change flag.
1048 * tree-inline.c (remap_type_3, remap_type_2): New functions.
1049 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
1050 and remap_type_2 returns false.
1051 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
1052 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
1053 only from where it is copied to nested contexts.
1055 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
1058 * config/i386/i386.md (RMW operation with LEA peephole):
1059 Use LEAMODE mode attribute instead of SWI mode iterator for
1062 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
1065 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
1066 Also process XEXP (src, 0) of a shift insn.
1068 2019-03-28 David Malcolm <dmalcolm@redhat.com>
1071 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
1072 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
1074 2019-03-28 Jakub Jelinek <jakub@redhat.com>
1076 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
1078 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
1079 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
1080 immediately after first one with df_analyze in between, but rather
1081 process all bbs, queueing ones that need second pass in a worklist,
1082 df_analyze, process queued debug insn changes and if second pass is
1083 needed, process bbs from worklist, df_analyze, process queued debug
1086 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
1087 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
1088 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
1090 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
1093 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
1096 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
1099 * config/i386/i386.c (ix86_function_value_1): Call the newly added
1100 function for 32-bit MS_ABI.
1101 (function_value_ms_32): New function.
1103 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
1105 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
1106 (movdi): Call gen_movdi_symbol_save_scc.
1107 (gen_movdi_symbol_save_scc): New insn and split.
1109 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
1111 PR rtl-optimization/89313
1112 * function.c (matching_constraint_num): New static function.
1113 (match_asm_constraints_1): Use it. Fixup white space and comment.
1114 Don't replace inputs with non-matching constraints which conflict
1115 with early clobber outputs.
1117 2019-03-27 Jeff Law <law@redhat.com>
1120 PR rtl-optimization/87761
1121 PR rtl-optimization/89826
1122 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
1124 (pass_cprop_hardreg::execute): Call df_analyze after adding the
1125 note problem to get REG_DEAD/REG_UNUSED notes updated.
1127 2019-03-27 Richard Biener <rguenther@suse.de>
1129 PR tree-optimization/89463
1130 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
1131 queue edges to remove.
1132 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
1133 dead stmts. Delay edge removal until PHIs are removed to
1134 make debug-stmt creation not confused by seemingly degenerate
1137 2019-03-27 Alan Modra <amodra@gmail.com>
1139 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
1141 * config/rs6000/darwin.h: Likewise.
1142 * config/rs6000/rs6000.c: Likewise.
1144 2019-03-27 Alan Modra <amodra@gmail.com>
1146 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
1147 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
1149 2019-03-26 Andrew Waterman <andrew@sifive.com>
1150 Jim Wilson <jimw@sifive.com>
1152 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
1153 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
1154 (generic_idivdi, generic_fmul_single, generic_fmul_double)
1155 (generic_fdiv, generic_fsqrt): Add check for generic tune.
1156 (generic_alu): Add auipc to type list.
1157 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
1158 (riscv_microarchitecture): Declare.
1159 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
1160 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
1162 (riscv_microarchitecture): New.
1163 (sifive_7_tune_info): New.
1164 (riscv_cpu_info_table): Add microarchitecture value for rocket and
1165 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
1167 (riscv_store_data_bypass_p): New.
1168 (riscv_option_override): Set riscv_microarchitecture from
1169 cpu->microarchitecture.
1170 * config/riscv/riscv.md: Include sifive-7.md.
1173 (auipc<mode>): Change type to auipc.
1174 (restore_stack_nonlocal): New.
1175 * config/riscv/sifive-7.md: New.
1176 * doc/invoke.texi (RISC-V Options): Update mtune docs.
1178 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
1181 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
1182 Also process XEXP (src, 0) of a shift insn.
1184 2019-03-26 Richard Biener <rguenther@suse.de>
1186 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
1187 (copy_debug_stmt): Likewise.
1188 (expand_call_inline): Likewise.
1189 (copy_bb): Avoid redundant lookup & set of gimple_block.
1190 * gimple-low.c (lower_gimple_return): Likewise.
1191 (lower_builtin_setjmp): Likewise.
1193 2019-03-26 Jakub Jelinek <jakub@redhat.com>
1195 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
1196 is constant 0, turn into static const data member initialized to false.
1197 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
1198 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
1200 2019-03-26 Jason Merrill <jason@redhat.com>
1201 Jakub Jelinek <jakub@redhat.com>
1203 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
1205 (mem_alloc_description::release_object_overhead): Fix comment typos.
1206 * hash-table.h (hash_table::~hash_table): Call
1207 release_instance_overhead only if m_entries is non-NULL, otherwise
1208 call unregister_descriptor.
1210 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
1212 PR tree-optimization/81740
1213 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1214 In case of outer loop vectorization, check for backward dependence
1215 at the inner loop if outer loop dependence is reversed.
1217 2019-03-26 Alan Modra <amodra@gmail.com>
1219 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
1220 rs6000_vector_mem init. Correct wI and wJ comment.
1222 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
1224 PR rtl-optimization/88347
1225 PR rtl-optimization/88423
1226 * sched-deps.c (sched_analyze_insn): Take into account that for
1227 tablejumps the barrier appears after a label and a jump_table_data.
1229 2019-03-25 Martin Sebor <msebor@redhat.com>
1232 * c-common.c (check_user_alignment): Rename local. Correct maximum
1233 alignment in diagnostic. Avoid assuming argument fits in SHWI,
1234 convert it to UHWI when it fits.
1236 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
1239 * dwarf2out.c (premark_used_variables): New function.
1240 (prune_unused_types_walk): Do not mark not premarked external
1242 (prune_unused_types): Call premark_used_variables.
1244 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
1246 PR rtl-optimization/89676
1247 * lra-constraints.c (curr_insn_transform): Do match reload for
1248 early clobbers when the match was successful only for different
1251 2019-03-25 Martin Sebor <msebor@redhat.com>
1253 * doc/extend.texi (Common Type Attributes): Document vector_size.
1254 (Common Variable Attributes): Mention size constraint. Correct
1256 (Vector Extensions): Use @dfn when defining bas type. Clarify
1257 base type and size constraints.
1259 2019-03-25 Richard Biener <rguenther@suse.de>
1261 PR tree-optimization/89789
1262 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
1263 changes from non-undefined back to undefined.
1265 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
1267 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
1268 heap string and a gc string, but since this variable is unknown to
1269 ggc the gc string might get reused and corrupted. Fixed by always
1270 using a heap string.
1272 2019-03-25 Richard Biener <rguenther@suse.de>
1274 PR tree-optimization/89779
1275 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
1276 to remove IV defs, delay actual removal.
1277 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
1278 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
1279 very end, properly also reset loop control IV information.
1281 2019-03-25 Richard Biener <rguenther@suse.de>
1283 PR tree-optimization/89802
1284 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
1285 move EH data to folded stmt.
1287 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
1289 * config/s390/s390-builtin-types.def: Remove few unused types and
1290 fix sort order for others.
1292 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
1294 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
1295 expected and found types with -mdebug during builtin matching.
1297 2019-03-25 Richard Biener <rguenther@suse.de>
1300 * fold-const.c (operand_equal_p): Revert last change with
1303 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
1305 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
1306 notes for the result of the __tls_get_addr calls.
1307 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
1309 2019-03-24 Jeff Law <law@redhat.com>
1311 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
1313 PR rtl-optimization/87761
1314 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
1315 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
1317 (pass_cprop_hardreg::execute): Add df note problem and defer insn
1318 rescans. Reprocess blocks as needed, calling df_analyze before
1319 reprocessing. Always call df_analyze before fixing up debug bind
1322 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
1324 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
1327 2019-03-22 Andrew Pinski <apinski@marvell.com>
1329 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
1330 attrribute for uxtw.
1332 2019-03-26 Jeff Law <law@redhat.com>
1334 PR rtl-optimization/87761
1335 * config/mips/mips-protos.h (mips_split_move): Add new argument.
1336 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
1337 (mips_split_move): Accept new INSN argument. Try to forward SRC
1338 into the next instruction.
1339 (mips_split_move_insn): Pass INSN through to mips_split_move.
1341 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
1343 PR rtl-optimization/89676
1344 * lra-constraints.c (curr_insn_transform): Do match reload for
1345 early clobbers even if the match was successful.
1347 2019-03-22 Jakub Jelinek <jakub@redhat.com>
1350 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
1352 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
1354 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
1356 2019-03-22 Jakub Jelinek <jakub@redhat.com>
1358 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
1359 <avx512>_fmsub_<mode>_mask3<round_name>,
1360 <avx512>_fnmadd_<mode>_mask3<round_name>,
1361 <avx512>_fnmsub_<mode>_mask3<round_name>,
1362 avx512f_vmfmadd_<mode>_mask3<round_name>,
1363 avx512f_vmfmsub_<mode>_mask3<round_name>,
1364 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
1365 instead of register_operand and %v instead of v for match_operand 1.
1366 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
1367 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
1368 <round_nimm_predicate> instead of register_operand and %v instead of v
1369 for match_operand 1.
1371 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
1372 <avx512>_fmadd_<mode>_mask3<round_name>,
1373 <avx512>_fmsub_<mode>_mask<round_name>,
1374 <avx512>_fmsub_<mode>_mask3<round_name>,
1375 <avx512>_fnmadd_<mode>_mask<round_name>,
1376 <avx512>_fnmadd_<mode>_mask3<round_name>,
1377 <avx512>_fnmsub_<mode>_mask<round_name>,
1378 <avx512>_fnmsub_<mode>_mask3<round_name>,
1379 <avx512>_fmaddsub_<mode>_mask<round_name>,
1380 <avx512>_fmaddsub_<mode>_mask3<round_name>,
1381 <avx512>_fmsubadd_<mode>_mask<round_name>,
1382 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
1383 <round_nimm_predicate> instead of nonimmediate_operand.
1384 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
1385 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
1386 Use register_operand instead of <round_nimm_predicate> for the
1387 operand that needs to match output.
1388 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
1389 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
1390 Likewise. Formatting fixes.
1393 * config/i386/i386.c (enum ix86_builtins): Remove
1394 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
1395 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
1396 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
1397 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
1398 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
1399 __builtin_ia32_vfmsubss3_mask3): New builtins.
1400 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
1401 avx512f_vmfmadd_<mode>_mask3<round_name>,
1402 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
1403 *avx512f_vmfmsub_<mode>_mask<round_name>,
1404 avx512f_vmfmsub_<mode>_mask3<round_name>,
1405 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
1406 *avx512f_vmfnmadd_<mode>_mask<round_name>,
1407 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
1408 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
1409 *avx512f_vmfnmsub_<mode>_mask<round_name>,
1410 avx512f_vmfnmsub_<mode>_mask3<round_name>,
1411 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
1412 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
1413 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
1414 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
1415 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
1416 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
1417 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
1418 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
1419 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
1420 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
1421 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
1422 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
1423 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
1424 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
1425 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
1426 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
1427 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
1428 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
1429 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
1430 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
1431 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
1432 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
1434 2019-03-21 Martin Sebor <msebor@redhat.com>
1436 PR tree-optimization/89350
1437 * builtins.c (compute_objsize): Also ignore offsets whose upper
1439 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
1440 (builtin_memref::builtin_memref): Initialize new member.
1441 Allow EXPR to be null.
1442 (builtin_memref::extend_offset_range): Replace local with a member.
1443 Avoid assuming pointer offsets are unsigned.
1444 (builtin_memref::set_base_and_offset): Determine base object
1445 before computing offset range.
1446 (builtin_access::builtin_access): Handle memset.
1447 (builtin_access::generic_overlap): Replace local with a member.
1448 (builtin_access::strcat_overlap): Same.
1449 (builtin_access::overlap): Same.
1450 (maybe_diag_overlap): Same.
1451 (maybe_diag_access_bounds): Same.
1452 (wrestrict_dom_walker::check_call): Handle memset.
1453 (check_bounds_or_overlap): Same.
1455 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
1456 Jakub Jelinek <jakub@redhat.com>
1459 * tree.c (fld_type_variant, fld_incomplete_type_of,
1460 fld_process_array_type): Call fld->pset.add and don't call
1461 add_tree_to_fld_list if it returns true.
1462 (free_lang_data_in_type): Similarly with self-recursive call. Purge
1463 non-marked types from TYPE_NEXT_VARIANT list.
1464 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
1466 2019-03-21 Jakub Jelinek <jakub@redhat.com>
1468 * hash-table.h (hash_table): Add Lazy template parameter defaulted
1469 to false, if true, don't alloc_entries during construction, but defer
1470 it to the first method that needs m_entries allocated.
1471 (hash_table::hash_table, hash_table::~hash_table,
1472 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
1473 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
1474 hash_table::clear_slot, hash_table::traverse_noresize,
1475 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
1476 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
1478 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
1479 NO_INSERT instead of find_with_hash.
1480 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
1481 hash_set::m_table): Add Lazy to template params of hash_table.
1482 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
1483 * attribs.c (test_attribute_exclusions): Likewise.
1484 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
1485 hash_set. Add tests for hash_set with Lazy = true.
1487 2019-03-21 Richard Biener <rguenther@suse.de>
1489 PR tree-optimization/89779
1490 * tree.c (tree_nop_conversion): Consolidate and fix defensive
1491 checks with respect to released SSA names now having error_mark_node
1493 * fold-const.c (operand_equal_p): Likewise.
1495 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
1498 * config/s390/s390.c (global_not_special_regno_p): Move to make it
1500 (s390_optimize_register_info): Use global_not_special_regno_p to
1501 check for global regs.
1503 2019-03-20 Jakub Jelinek <jakub@redhat.com>
1506 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
1507 update this_alternative nor this_alternative_set.
1509 2019-03-19 Jim Wilson <jimw@sifive.com>
1512 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
1513 align, size, offset. Use them to handle a BLKmode reference. Update
1515 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
1517 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1519 PR rtl-optimization/89768
1520 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
1522 (unroll_loop_runtime_iterations): Likewise.
1524 2019-03-19 Martin Sebor <msebor@redhat.com>
1526 PR tree-optimization/89644
1527 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
1528 rather than endptr as an indicator of nul-termination.
1530 PR tree-optimization/89644
1531 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
1532 arrays in determining sequence sizes in strncpy and stpncpy.
1534 2019-03-19 Martin Liska <mliska@suse.cz>
1537 * predict.c (combine_predictions_for_bb): Empty likely_edges and
1538 unlikely_edges if there's an edge that belongs to both these sets.
1540 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
1543 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
1544 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
1545 go via a stack temporary.
1547 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1550 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
1551 instead of gen_rtx_SUBREG.
1552 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
1554 2019-03-19 Richard Biener <rguenther@suse.de>
1557 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
1559 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
1563 * tree.c (free_lang_data_in_decl): Do not free context of C++
1566 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1569 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
1570 subs for the first alternative except when operands[3] is 1.
1573 * gimplify.c (gimplify_asm_expr): For output argument with
1574 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
1577 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
1579 PR rtl-optimization/89753
1580 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
1581 explicit unrolling factor even more robust.
1583 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1586 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
1587 compensation use x2 += 1 instead of x2 -= -1 and when honoring
1588 signed zeros, do another copysign after the compensation.
1590 2019-03-18 Martin Sebor <msebor@redhat.com>
1592 PR tree-optimization/89720
1593 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
1594 more conservatively, the same as anti-range.
1596 2019-03-18 Richard Biener <rguenther@suse.de>
1599 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
1600 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
1601 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
1602 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
1604 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
1606 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
1607 Extend queue to 1024 entries.
1608 Add "consumed" field.
1609 (gomp_print_output): Remove print_index parameter.
1610 Add final parameter.
1611 Change limit to unsigned.
1612 Use consumed field to implement circular buffer.
1613 Detect interrupted print in final pass.
1614 Flush output at the end.
1615 (run): Update gomp_print_output usage.
1616 (main): Initialize kernargs->output_data.consumed.
1618 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
1620 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
1621 calculation of the minimum number of scalar iterations for
1622 fully-predicated loops.
1624 2019-03-18 Martin Jambor <mjambor@suse.cz>
1626 PR tree-optimization/89546
1627 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
1628 any propagation to its children took place.
1630 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1633 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
1634 parameter, and make use of it.
1635 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
1637 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1639 * config/arc/arc.opt (mcode-density-frame): Get the inital value
1640 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
1641 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
1642 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
1643 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
1644 match what the ops is doing.
1645 (push_multi_fp_blink): Likewise.
1646 * config/arc/arc.c (arc_override_options): Enable enter/leave when
1647 compiling for size and elf target.
1648 (arc_save_callee_enter): Adjust note to match what enter/leave
1651 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1653 * config/arc/arc.md (tst_movb): Fix constraint.
1655 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1657 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
1659 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1661 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
1662 * config/arc/arc.c (arc_conditional_register_usage): Remove all
1663 reg_alloc_order references.
1664 (size_alloc_order): Define.
1665 (arc_adjust_reg_alloc_order): New function.
1666 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
1668 (ADJUST_REG_ALLOC_ORDER): Define.
1669 (HONOR_REG_ALLOC_ORDER): Likewise.
1671 2019-03-18 Richard Biener <rguenther@suse.de>
1674 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
1675 loads and stores a bit more.
1677 2019-03-18 Richard Biener <rguenther@suse.de>
1680 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
1681 load pessimization to stores as well.
1683 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
1686 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
1687 successor, use NULL as its av set.
1689 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
1691 PR rtl-optimization/89721
1692 * lra-constraints (invariant_p): Return false if side_effects_p holds.
1694 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
1697 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1698 When handling vec_extract, use modular arithmetic to allow
1699 constant selectors greater than vector length.
1700 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
1701 V1TImode vectors to have constant selector values greater than 0.
1702 Use modular arithmetic to compute vector index.
1703 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
1704 index for in-memory vectors. Correct code generation for
1705 in-register vectors.
1706 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
1709 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
1713 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
1716 2019-03-15 Jakub Jelinek <jakub@redhat.com>
1719 * tree.c (inchash::add_expr): Strip any location wrappers.
1720 * fold-const.c (operand_equal_p): Move stripping of location wrapper
1721 after hash verification.
1724 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
1725 SIGN_EXTEND and ZERO_EXTEND.
1727 2019-03-14 Jason Merrill <jason@redhat.com>
1728 Jakub Jelinek <jakub@redhat.com>
1730 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
1731 than if is_empty (*slot).
1732 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
1733 existing elt and for elt removal.
1734 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
1735 of already removed elt.
1737 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1740 * config/i386/i386.c (remove_partial_avx_dependency): Handle
1743 2019-03-14 Martin Liska <mliska@suse.cz>
1746 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
1748 2019-03-14 Richard Biener <rguenther@suse.de>
1751 * config/i386/i386.c (make_resolver_func): Properly set
1752 DECL_CONTEXT on the RESULT_DECL.
1753 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
1755 2019-03-14 Richard Biener <rguenther@suse.de>
1757 * gimple-pretty-print.c: Include cfgloop.h.
1758 (dump_gimple_phi): Adjust.
1759 (dump_gimple_bb_header): Dump loop header for GIMPLE.
1760 (pp_cfg_jump): Adjust.
1761 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
1762 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
1763 (lower_phi_internal_fn): Remove.
1764 (verify_gimple_call): Remove IFN_PHI special-casing.
1765 (dump_function_to_file): Dump IL state.
1766 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
1767 done to deal with PHI nodes being present in non-SSA state.
1769 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1772 * multiple_target.c (create_dispatcher_calls): Change
1773 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
1774 In the node->iterate_referring loop, push *ref rather than ref, call
1775 ref->remove_reference () and always pass 0 to iterate_referring.
1777 PR rtl-optimization/89679
1778 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
1779 would contain a paradoxical SUBREG.
1781 2019-03-14 Richard Biener <rguenther@suse.de>
1783 PR tree-optimization/89710
1784 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
1787 2019-03-14 Martin Liska <mliska@suse.cz>
1789 * coverage.c (coverage_begin_function): Stream also
1791 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
1792 documentation about function declaration location.
1793 * gcov-dump.c (tag_function): Print whole range
1794 of function declaration.
1795 * gcov.c (struct function_info): Add end_column field.
1796 (function_info::function_info): Initialize it.
1797 (output_json_intermediate_file): Output {start,end}_column
1799 (read_graph_file): Read end_column.
1801 2019-03-14 Richard Biener <rguenther@suse.de>
1804 * fold-const.c (operand_equal_p): For INDIRECT_REF check
1805 that the access types are similar.
1807 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1809 PR tree-optimization/89703
1810 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
1811 aren't compatible also with builtin_decl_explicit. Check pure
1812 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
1813 and BUILT_IN_STPNCPY{,_CHK}.
1815 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
1818 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
1819 addr32 prefix to VSIB address for X32.
1820 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
1822 (*avx512pf_gatherpf<mode>df_mask): Likewise.
1823 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
1824 (*avx512pf_scatterpf<mode>df_mask): Likewise.
1825 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
1826 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
1827 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
1828 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
1829 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
1830 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
1831 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
1832 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
1833 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
1834 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
1835 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
1836 (*avx512f_scatterdi<mode>): Likewise.
1838 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
1841 * lra-constraints.c (inherit_in_ebb): Update
1842 potential_reload_hard_regs along with live_hard_regs.
1844 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1847 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
1849 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
1851 2019-03-13 Martin Sebor <msebor@redhat.com>
1853 PR tree-optimization/89662
1854 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
1857 2019-03-13 Richard Biener <rguenther@suse.de>
1860 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
1861 throw FP expressions at tree-affine.
1863 2019-03-14 Richard Biener <rguenther@suse.de>
1865 * tree-pretty-print.c (dump_generic_node): For -gimple properly
1866 dump negative integer constants using _Literal (type) -num.
1868 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1870 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
1871 nonlocal_value member.
1874 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
1875 (ipa_simd_modify_function_body): Handle PHIs.
1877 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1879 * config/s390/s390.c (s390_option_override_internal): Use more
1880 aggressive inlining parameters.
1882 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1884 * config/s390/3906.md: New file.
1885 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1886 (LONGRUNNING_THRESHOLD): Remove.
1887 (MAX_SCHED_MIX_SCORE): Decrease.
1888 (MAX_SCHED_MIX_DISTANCE): Decrease.
1889 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
1890 (struct s390_sched_state): New struct to hold scheduling state.
1891 (S390_SCHED_STATE_NORMAL): Remove.
1892 (S390_SCHED_STATE_CRACKED): Remove.
1893 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
1894 (s390_get_sched_attrmask): Use new attribute.
1895 (s390_get_unit_mask): Use new units.
1896 (s390_is_fpd): New function.
1897 (s390_is_fxd): New function.
1898 (s390_is_longrunning): New function.
1899 (s390_sched_score): Use new functions.
1900 (s390_sched_reorder): Likewise.
1901 (s390_sched_variable_issue): Rework and use new functions.
1902 (s390_sched_init): Use new functions.
1903 * config/s390/s390.h (s390_tune_attr): Add z14.
1904 * config/s390/s390.md: Add z14.
1906 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1908 * config/s390/2964.md: Update pipeline description.
1909 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1910 (LONGRUNNING_THRESHOLD): Remove.
1911 (LATENCY_FACTOR): Remove.
1912 (s390_get_unit_mask): Add unit.
1913 (s390_sched_score): Use fxd/fpd.
1914 (s390_sched_variable_issue): Use fxd/fpd.
1916 2019-03-12 Martin Liska <mliska@suse.cz>
1918 * config/i386/i386.c: Reword an error message.
1920 2019-03-12 Martin Jambor <mjambor@suse.cz>
1922 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
1923 terminate with newline.
1925 2019-03-12 Jakub Jelinek <jakub@redhat.com>
1928 * config/s390/s390.md (tabort): Use %wd instead of
1929 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
1930 letters and periods.
1931 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
1932 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
1936 * builtins.c (expand_builtin_int_roundingfn,
1937 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
1938 gcc_unreachable if validate_arglist fails.
1940 2019-03-12 Richard Biener <rguenther@suse.de>
1942 PR tree-optimization/89664
1943 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
1944 free the occurance tree after the early out.
1946 2019-03-11 Jakub Jelinek <jakub@redhat.com>
1950 * vr-values.c (vr_values::update_value_range): If
1951 old_vr->varying_p (), don't update it, make new_vr also VARYING
1954 2019-03-11 Martin Liska <mliska@suse.cz>
1956 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1957 Fix double string quoting.
1959 2019-03-11 Martin Liska <mliska@suse.cz>
1961 * collect-utils.c (collect_wait): Wrap apostrophes
1962 in gcc internal format with %'.
1963 * collect2.c (main): Likewise.
1964 (scan_prog_file): Likewise.
1965 (scan_libraries): Likewise.
1966 * config/i386/i386.c (ix86_expand_call): Likewise.
1967 (ix86_handle_interrupt_attribute): Likewise.
1968 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
1969 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
1970 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
1971 * lto-wrapper.c (find_crtoffloadtable): Likewise.
1972 * symtab.c (symtab_node::verify_base): Likewise.
1973 * tree-cfg.c (verify_gimple_label): Likewise.
1974 * tree.c (verify_type_variant): Likewise.
1976 2019-03-11 Martin Liska <mliska@suse.cz>
1978 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
1979 in a string format message and fix GNU coding style.
1980 (expand_builtin_set_thread_pointer): Likewise.
1981 * common/config/aarch64/aarch64-common.c
1982 (aarch64_rewrite_selected_cpu): Likewise.
1983 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
1984 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
1985 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
1986 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
1987 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
1988 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
1989 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
1990 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
1991 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
1992 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
1994 * common/config/riscv/riscv-common.c
1995 (riscv_subset_list::parsing_subset_version): Likewise.
1996 (riscv_subset_list::parse_std_ext): Likewise.
1997 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1998 (riscv_subset_list::parse): Likewise.
1999 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
2000 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
2001 (aarch64_override_options_internal): Likewise.
2002 (aarch64_validate_mcpu): Likewise.
2003 (aarch64_validate_march): Likewise.
2004 (aarch64_validate_mtune): Likewise.
2005 (aarch64_override_options): Likewise.
2006 * config/alpha/alpha.c (alpha_option_override): Likewise.
2007 * config/arc/arc.c (arc_init): Likewise.
2008 (parse_mrgf_banked_regs_option): Likewise.
2009 (arc_override_options): Likewise.
2010 (arc_expand_builtin_aligned): Likewise.
2011 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
2012 (arm_expand_builtin): Likewise.
2013 * config/arm/arm.c (arm_option_check_internal): Likewise.
2014 (arm_configure_build_target): Likewise.
2015 (arm_option_override): Likewise.
2016 (arm_options_perform_arch_sanity_checks): Likewise.
2017 (arm_handle_cmse_nonsecure_entry): Likewise.
2018 (arm_handle_cmse_nonsecure_call): Likewise.
2019 (arm_tls_referenced_p): Likewise.
2020 (thumb1_expand_prologue): Likewise.
2021 * config/avr/avr.c (avr_option_override): Likewise.
2022 * config/bfin/bfin.c (bfin_option_override): Likewise.
2023 * config/c6x/c6x.c (c6x_option_override): Likewise.
2024 * config/cr16/cr16.c (cr16_override_options): Likewise.
2025 * config/cris/cris.c (cris_option_override): Likewise.
2026 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
2027 * config/darwin-c.c (macosx_version_as_macro): Likewise.
2028 * config/darwin.c (darwin_override_options): Likewise.
2029 * config/frv/frv.c (frv_expand_builtin): Likewise.
2030 * config/h8300/h8300.c (h8300_option_override): Likewise.
2031 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
2032 (ix86_option_override_internal): Likewise.
2033 (warn_once_call_ms2sysv_xlogues): Likewise.
2034 (ix86_expand_prologue): Likewise.
2035 (split_stack_prologue_scratch_regno): Likewise.
2036 (ix86_warn_parameter_passing_abi): Likewise.
2037 * config/ia64/ia64.c (fix_range): Likewise.
2038 * config/m68k/m68k.c (m68k_option_override): Likewise.
2039 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
2040 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
2041 (mips_set_compression_mode): Likewise.
2042 * config/mmix/mmix.c (mmix_option_override): Likewise.
2043 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
2044 * config/msp430/msp430.c (msp430_option_override): Likewise.
2045 * config/nds32/nds32.c (nds32_option_override): Likewise.
2046 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
2047 (nios2_option_override): Likewise.
2048 (nios2_expand_custom_builtin): Likewise.
2049 * config/nvptx/mkoffload.c (main): Likewise.
2050 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
2051 * config/pa/pa.c (fix_range): Likewise.
2052 (pa_option_override): Likewise.
2053 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
2054 (riscv_option_override): Likewise.
2055 * config/rl78/rl78.c (rl78_option_override): Likewise.
2056 * config/rs6000/aix61.h: Likewise.
2057 * config/rs6000/aix71.h: Likewise.
2058 * config/rs6000/aix72.h: Likewise.
2059 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
2060 * config/rs6000/freebsd64.h: Likewise.
2061 * config/rs6000/linux64.h: Likewise.
2062 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
2063 (rs6000_expand_zeroop_builtin): Likewise.
2064 (rs6000_expand_mtfsb_builtin): Likewise.
2065 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
2066 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
2067 (rs6000_invalid_builtin): Likewise.
2068 (rs6000_expand_split_stack_prologue): Likewise.
2069 * config/rs6000/rtems.h: Likewise.
2070 * config/rx/rx.c (valid_psw_flag): Likewise.
2071 (rx_expand_builtin): Likewise.
2072 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
2073 * config/s390/s390.c (s390_expand_builtin): Likewise.
2074 (s390_function_profiler): Likewise.
2075 (s390_option_override_internal): Likewise.
2076 (s390_option_override): Likewise.
2077 * config/sh/sh.c (sh_option_override): Likewise.
2078 (sh_builtin_saveregs): Likewise.
2079 (sh_fix_range): Likewise.
2080 * config/sh/vxworks.h: Likewise.
2081 * config/sparc/sparc.c (sparc_option_override): Likewise.
2082 * config/spu/spu.c (spu_option_override): Likewise.
2083 (fix_range): Likewise.
2084 * config/visium/visium.c (visium_option_override): Likewise.
2085 (visium_handle_interrupt_attr): Likewise.
2086 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
2087 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
2088 (dbg_cnt_process_opt): Likewise.
2089 * dwarf2out.c (output_dwarf_version): Likewise.
2090 * except.c (expand_eh_return): Likewise.
2091 * gcc.c (defined): Likewise.
2092 (driver_handle_option): Likewise.
2093 (process_command): Likewise.
2094 (compare_files): Likewise.
2095 (driver::prepare_infiles): Likewise.
2096 (driver::do_spec_on_infiles): Likewise.
2097 (driver::maybe_run_linker): Likewise.
2098 * omp-offload.c (oacc_parse_default_dims): Likewise.
2099 * opts-global.c (handle_common_deferred_options): Likewise.
2100 * opts.c (parse_sanitizer_options): Likewise.
2101 (common_handle_option): Likewise.
2102 (enable_warning_as_error): Likewise.
2103 * passes.c (enable_disable_pass): Likewise.
2104 * plugin.c (parse_plugin_arg_opt): Likewise.
2105 (default_plugin_dir_name): Likewise.
2106 * targhooks.c (default_expand_builtin_saveregs): Likewise.
2107 (default_pch_valid_p): Likewise.
2108 * toplev.c (init_asm_output): Likewise.
2109 (process_options): Likewise.
2110 (toplev::run_self_tests): Likewise.
2111 * tree-cfg.c (verify_gimple_call): Likewise.
2112 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
2113 (tree_inlinable_function_p): Likewise.
2114 * var-tracking.c (vt_find_locations): Likewise.
2116 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
2118 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
2119 only on the else branch.
2121 2019-03-11 Martin Liska <mliska@suse.cz>
2123 * gcov.c (output_intermediate_json_line): Print function
2125 (output_json_intermediate_file): Add new argument.
2126 * doc/gcov.texi: Document the change.
2128 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
2130 PR rtl-optimization/89588
2131 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
2132 explicit unrolling factor more robust.
2134 2019-03-11 Richard Biener <rguenther@suse.de>
2136 PR tree-optimization/89649
2137 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
2138 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
2139 on the prolog and epilog loops.
2140 (vect_loop_versioning): Return copy of loop.
2141 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
2142 on the non-vectorized version of the loop.
2144 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
2147 * config/i386/sse.md (*vec_extractv2di_0_sse):
2148 Add (=r,x) alternative and corresponding splitter.
2150 2019-03-10 Martin Jambor <mjambor@suse.cz>
2152 PR tree-optimization/85762
2153 PR tree-optimization/87008
2154 PR tree-optimization/85459
2155 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
2156 it points to if there is a type changing MEM_REF. Adjust all callers.
2157 (build_accesses_from_assign): Disable total scalarization if
2158 contains_vce_or_bfcref_p returns true through the new parameter, for
2161 2019-03-09 Jakub Jelinek <jakub@redhat.com>
2164 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
2165 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
2168 * common.opt (fdiagnostics-show-labels,
2169 fdiagnostics-show-line-numbers, fdiagnostics-format=,
2170 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
2171 gas-locview-support, ginline-points, ginternal-reset-location-views):
2172 Terminate description text with a dot.
2173 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
2174 * config/mcore/mcore.opt (m210, m340): Likewise.
2175 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
2176 mnops=): Start description text with a capital letter.
2177 * config/arc/arc.opt (msize-level=): Likewise.
2178 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
2179 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
2181 * config/ft32/ft32.opt (msim): Likewise.
2182 (mft32b, mcompress): Likewise. Terminate description text with a dot.
2183 (mnodiv, mnopm): Terminate description text with a dot.
2184 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
2186 * config/i386/i386.opt (prefer_vector_width, instrument_return):
2188 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
2191 PR rtl-optimization/89634
2192 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
2193 are modified in BB_END (e->src) instruction.
2195 2019-03-08 David Malcolm <dmalcolm@redhat.com>
2198 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
2199 messages more amenable to translation, and improve wording.
2201 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
2203 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
2204 ud- and du-chains between phases.
2206 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
2209 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
2210 instead of POLY_INT_CST.
2212 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2214 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
2217 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
2222 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
2223 (_mm_storeu_si64): Ditto.
2225 2019-03-08 Martin Liska <mliska@suse.cz>
2228 * config/i386/i386.c (ix86_option_override_internal): Disable
2229 jump tables when retpolines are used.
2231 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
2234 * ipa-split.c (execute_split_functions): Do not split
2235 'noinline' or 'section' function.
2237 2019-03-08 Jakub Jelinek <jakub@redhat.com>
2240 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
2241 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
2242 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
2245 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
2246 from diagnostics. Formatting fixes.
2249 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
2250 warn_odr diagnostics.
2253 * lra-constraints.c (process_alt_operands): Avoid one space before
2254 " at the end of line and another after " on another line in a string
2256 * attribs.c (handle_dll_attribute): Likewise.
2257 * config/avr/avr-devices.c (avr_texinfo): Likewise.
2259 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
2260 warning_at or inform messages in G_() if there is no ?:.
2262 PR tree-optimization/89550
2263 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
2264 returned true. Formatting fixes.
2265 (expand_builtin_strnlen): Formatting fixes.
2266 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
2267 if warning_at returned true.
2268 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
2270 2019-03-08 Richard Biener <rguenther@suse.de>
2273 * cfgloop.h (struct loop): Add owned_clique field.
2274 * cfgloopmanip.c (copy_loop_info): Copy it.
2275 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
2277 * tree-inline.c (copy_loops): Remap owned_clique.
2278 * lto-streamer-in.c (input_cfg): Stream owned_clique.
2279 * lto-streamer-out.c (output_cfg): Likewise.
2281 2019-03-08 Jakub Jelinek <jakub@redhat.com>
2284 * config/darwin.c: Include intl.h.
2285 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
2286 composing the message out of two separate parts.
2288 2019-03-07 Jakub Jelinek <jakub@redhat.com>
2291 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
2292 doesn't start with a capital letter and doesn't end with a dot.
2293 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
2294 with a capital letter.
2295 (ix86_mangle_function_version_assembler_name): Likewise.
2296 (ix86_generate_version_dispatcher_body): Likewise.
2297 (fold_builtin_cpu): Likewise.
2298 (get_builtin_code_for_version): Likewise. Remove extraneous space.
2299 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
2300 translators, wrap full type name in %qs.
2302 PR translation/79999
2303 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
2304 depend clause with source (or sink) modifier.
2305 * omp-expand.c (expand_omp_ordered_sink): Likewise.
2308 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
2309 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
2310 (avx512f_load<mode>_mask): New define_expand.
2311 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
2312 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
2313 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
2314 __builtin_ia32_movess_mask): New builtins.
2315 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
2316 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
2317 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
2318 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
2320 2019-03-07 Martin Jambor <mjambor@suse.cz>
2323 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
2324 for extern inline functions.
2326 2019-03-07 Martin Jambor <mjambor@suse.cz>
2329 * cgraph.h (cgraph_node): New inline method former_thunk_p.
2330 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
2331 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
2332 have multiple callees. At the end check if declarations match as
2333 opposed to cgraph_nodes.
2335 2019-03-07 Martin Liska <mliska@suse.cz>
2337 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
2338 which is equivalent to searching for this in clones chain.
2339 * symtab.c (symtab_node::verify_base): Similarly compare ASM
2340 names with a neighbour and special case first node in a chain.
2342 2019-01-25 Jason Merrill <jason@redhat.com>
2344 PR c++/80916 - spurious "static but not defined" warning.
2345 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
2346 for an internal symbol with DECL_EXTERNAL.
2348 2019-04-07 Richard Biener <rguenther@suse.de>
2351 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
2352 * tree-inline.c (copy_loops): Simplify.
2354 2019-03-07 Martin Liska <mliska@suse.cz>
2356 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
2358 2019-03-07 Richard Biener <rguenther@suse.de>
2360 PR tree-optimization/89595
2361 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
2362 stmt iterator as reference, take boolean output parameter to
2363 indicate whether the stmt was removed and thus the iterator
2365 (dom_opt_dom_walker::before_dom_children): Re-iterate over
2366 stmts created by folding.
2368 2019-03-07 Jakub Jelinek <jakub@redhat.com>
2371 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
2374 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
2376 PR rtl-optimization/88845
2377 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
2379 * lra.c (remove_scratches_1): New function.
2380 (remove_scratches): Use it.
2381 (lra_emit_move): Likewise.
2383 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
2385 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
2386 unaligned_access variable.
2387 * config/arc/arc.c (arc_override_options): Set unaligned access
2388 default on for HS CPUs.
2389 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
2391 2019-03-06 Martin Liska <mliska@suse.cz>
2393 PR gcov-profile/89577
2394 * doc/gcov.texi: Prefer to use --coverage.
2395 * doc/sourcebuild.texi: Likewise.
2397 2019-03-02 Jason Merrill <jason@redhat.com>
2399 PR c++/86485 - -Wmaybe-unused with empty class ?:
2400 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
2402 2019-03-05 Jakub Jelinek <jakub@redhat.com>
2405 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
2409 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
2410 exactly one argument.
2412 2019-03-05 Jakub Jelinek <jakub@redhat.com>
2413 Richard Sandiford <richard.sandiford@arm.com>
2415 PR tree-optimization/89570
2416 * match.pd (vec_cond into cond_op simplification): Don't use
2417 get_conditional_internal_fn, use as_internal_fn (cond_op).
2419 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
2422 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
2423 to decide when to split off a non-zero offset from a symbol.
2424 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
2425 in function symbols.
2427 2019-03-05 Richard Biener <rguenther@suse.de>
2429 PR tree-optimization/89594
2430 * tree-if-conv.c (pass_if_conversion::execute): Handle
2431 case where .LOOP_VECTORIZED_FUNCTION was removed.
2433 2019-03-05 Jakub Jelinek <jakub@redhat.com>
2436 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
2437 instead alloca it only when needed with the needed size.
2439 PR tree-optimization/89570
2440 * match.pd (vec_cond into cond_op simplification): Guard with
2441 vectorized_internal_fn_supported_p test and #if GIMPLE.
2443 PR tree-optimization/89566
2444 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
2445 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
2446 Punt if get_user_idx_format succeeds, but idx_format argument is
2447 not provided or doesn't have pointer type, or if idx_args is above
2448 number of provided arguments.
2450 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
2452 PR tree-optimization/89437
2453 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
2455 2019-03-04 Richard Biener <rguenther@suse.de>
2458 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
2461 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
2463 PR tree-optimization/89487
2464 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
2465 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
2466 (distribute_loop): Don't do runtime alias check if there is non-
2467 addressable data reference.
2468 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
2469 is a register variable.
2471 2019-03-02 Jakub Jelinek <jakub@redhat.com>
2474 * config/arm/arm.md (cmpsi2_addneg): Use
2475 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
2476 If operands[2] is 0 or INT_MIN, force use of subs.
2477 (*compare_scc splitter): Use gen_int_mode.
2478 (*negscc): Likewise.
2479 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
2481 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
2482 Monk Chiang <sh.chiang04@gmail.com>
2484 * common/config/riscv/riscv-common.c: Include sstream.
2485 (riscv_subset_list::to_string): New.
2486 (riscv_arch_str): Likewise.
2487 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
2489 * config/riscv/riscv-protos.h (riscv_arch_str): New.
2490 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
2491 (riscv_emit_attribute): New.
2492 (riscv_file_start): Emit attribute if needed.
2493 (riscv_option_override): Init riscv_emit_attribute_p.
2494 * config/riscv/riscv.opt (mriscv-attribute): New option.
2495 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
2497 * doc/install.texi: Document --with-riscv-attribute.
2498 * doc/invoke.texi: Document -mriscv-attribute.
2500 * common/config/riscv/riscv-common.c:
2501 Include config/riscv/riscv-protos.h.
2502 (INCLUDE_STRING): Defined.
2503 (RISCV_DONT_CARE_VERSION): Defined.
2504 (riscv_subset_t): Declare.
2505 (riscv_subset_t::riscv_subset_t): New.
2506 (riscv_subset_list): Declare.
2507 (riscv_subset_list::riscv_subset_list): New.
2508 (riscv_subset_list::~riscv_subset_list): Likewise.
2509 (riscv_subset_list::parsing_subset_version): Likewise.
2510 (riscv_subset_list::parse_std_ext): Likewise.
2511 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
2512 (riscv_subset_list::add): Likewise.
2513 (riscv_subset_list::lookup): Likewise.
2514 (riscv_subset_list::xlen): Likewise.
2515 (riscv_subset_list::parse): Likewise.
2516 (riscv_supported_std_ext): Likewise.
2517 (current_subset_list): Likewise.
2518 (riscv_parse_arch_string): Using riscv_subset_list::parse to
2521 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
2523 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
2524 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
2525 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
2527 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
2529 PR rtl-optimization/85899
2530 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
2531 fallthru edges leading to the exit block.
2533 2019-03-01 Tamar Christina <tamar.christina@arm.com>
2536 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
2537 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
2539 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
2541 PR tree-optimization/89535
2542 * tree-vect-stmts.c (vectorizable_call): Record the vector types
2543 for each operand. Calculate the fallback choice for mask operands
2544 and pass it to vect_get_vec_def_for_operand.
2546 2019-03-01 Richard Biener <rguenther@suse.de>
2549 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
2550 get virtual operands.
2551 (get_expr_operands): Handle CONST_DECL like other decls.
2553 2019-03-01 Jakub Jelinek <jakub@redhat.com>
2556 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
2557 on DECL_P and EXPR_P.
2559 2019-03-01 Richard Biener <rguenther@suse.de>
2562 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
2563 argument, defaulted to zero.
2564 * passes.c (execute_function_todo): Pass down SSA update flags
2565 to cleanup_tree_cfg.
2566 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
2567 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
2569 (cleanup_tree_cfg): Get and pass down SSA update flags.
2571 2019-03-01 Jakub Jelinek <jakub@redhat.com>
2574 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
2575 early_lto_debug argument.
2577 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
2579 PR tree-optimization/89536
2580 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
2581 only whether bit #0 of the value is 0 instead of the entire value.
2583 2019-02-28 Marek Polacek <polacek@redhat.com>
2585 PR c++/87068 - missing diagnostic with fallthrough statement.
2586 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
2587 at the end of a seq, save its location to walk_stmt_info.
2588 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
2591 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
2594 * tree.c (find_atomic_core_type): Move ahead in file.
2595 (check_base_type): Correctly compare alignments of atomic types.
2597 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
2600 * config/i386/i386.c (get_builtin_code_for_version): Identify
2601 Westmere from PCLMUL, instead of AES.
2603 2019-02-28 Jakub Jelinek <jakub@redhat.com>
2606 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
2607 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
2610 2019-02-28 Tamar Christina <tamar.christina@arm.com>
2613 * config/aarch64/aarch64-option-extensions.def: Document it.
2614 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
2617 2019-02-28 Jakub Jelinek <jakub@redhat.com>
2620 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
2621 builtins if they don't have a single scalar floating point argument.
2624 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2626 PR rtl-optimization/89490
2627 * varasm.c (get_block_for_section): Bail out for mergeable sections.
2628 (default_use_anchors_for_symbol_p, output_object_block): Assert the
2629 block section is not mergeable.
2631 2019-02-27 Jakub Jelinek <jakub@redhat.com>
2634 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
2635 old define_insn to ...
2636 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
2637 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
2638 Rename old define_insn to ...
2639 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
2640 (thumb2_casesi_internal_pic): New define_expand. Rename old
2642 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
2643 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
2644 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
2646 2019-02-27 Richard Biener <rguenther@suse.de>
2649 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
2651 2019-02-27 Richard Biener <rguenther@suse.de>
2653 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
2656 2019-02-27 Richard Biener <rguenther@suse.de>
2659 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
2660 parameter, prefix section name with .gnu.debuglto_ if true.
2661 (dwarf2out_finish): Pass false to output_comdat_type_unit.
2662 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
2664 2019-02-27 Richard Biener <rguenther@suse.de>
2667 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
2668 rather than on use_debug_types, doing what output_die does.
2669 (value_format): Likewise.
2671 2019-02-27 Martin Jambor <mjambor@suse.cz>
2672 Martin Sebor <msebor@redhat.com>
2674 * doc/invoke.texi (Warning Options): Reword description of
2675 -Wno-absolute-value.
2677 2019-02-27 Jakub Jelinek <jakub@redhat.com>
2679 PR tree-optimization/89280
2680 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
2681 builtin_setjmp_setup_bb): New functions.
2682 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
2683 When visiting __builtin_setjmp_setup block, queue in special
2684 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
2685 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
2686 from visited after the loop if they don't have any visited successor
2689 2018-02-26 Steve Ellcey <sellcey@marvell.com>
2691 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
2693 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
2695 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2698 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
2699 with types other than sizetype/ssizetype.
2701 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
2703 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
2704 (enum sparc_processor_type): ...this.
2705 (enum sparc_code_model_type): New enumeration type.
2706 (enum sparc_memory_model_type): Tweak comments.
2707 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
2709 (mcmodel): Use sparc_code_model enumeration and variable.
2710 (sparc_code_model): New enumeration.
2711 (mdebug): Add Undocumented marker.
2712 * config/sparc/sparc.h (enum cmodel): Delete.
2713 (sparc_cmodel): Likewise.
2714 (TARGET_CM_MEDLOW): Adjust to above renaming.
2715 (TARGET_CM_MEDMID): Likewise.
2716 (TARGET_CM_MEDANY): Likewise.
2717 (TARGET_CM_EMBMEDANY): Likewise.
2718 * config/sparc/sparc.c (sparc_cmodel): Delete.
2719 (sparc_option_override): Remove string/value mapping support for the
2720 code model. Move code and memory model support to after the handling
2721 of target flags. Do private machine setup last.
2722 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
2723 (sparc_legitimize_reload_address): Likewise.
2724 (sparc_output_mi_thunk): Likewise.
2725 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
2727 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2729 PR tree-optimization/89500
2730 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
2731 (handle_builtin_strlen): Remove noncst_bound variable. Always
2732 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
2733 cst if the first cst bytes starting at x are known to be non-zero,
2734 even if the string is not zero terminated. Don't try to modify
2735 *si for strnlen. Update strlen_to_stridx only for strlen or if
2736 we can prove strnlen returns the same value as strlen would.
2738 2019-02-26 Martin Liska <mliska@suse.cz>
2740 * alloc-pool.h (struct pool_usage): Remove extra
2742 * bitmap.h (struct bitmap_usage): Likewise.
2743 * ggc-common.c (struct ggc_usage): Likewise.
2744 * mem-stats.h (struct mem_usage): Likewise.
2745 (mem_alloc_description::dump): Print dash lines
2746 here and repeat header at the end of a table report.
2747 It's then more readable.
2748 * tree-phinodes.c (phinodes_print_statistics): Make
2749 horizontal alignment.
2750 * tree-ssanames.c (ssanames_print_statistics): Likewise.
2751 * vec.c (struct vec_usage): Remove extra print_dash_line.
2752 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
2754 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
2756 * doc/extend.texi (__builtin_object_size):
2757 Use @pxref instead of @xref inside parenthesis.
2758 (__builtin_has_attribute): Add missing comma after @xref.
2759 (__builtin_object_size): Ditto.
2760 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
2761 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
2764 2019-02-26 Jeff Law <law@redhat.com>
2766 PR rtl-optimization/87761
2767 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
2768 detect obviously dead insns and delete them.
2770 2019-02-26 Richard Biener <rguenther@suse.de>
2772 PR tree-optimization/89505
2773 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
2774 to handle restrict pointed-to vars with multiple subvars
2777 2019-02-26 Richard Biener <rguenther@suse.de>
2779 PR tree-optimization/89489
2780 * tree-parloops.c (create_loop_fn): Copy over last_clique.
2782 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
2784 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
2785 and move around comment.
2786 <BIT_AND_EXPR>: Likewise.
2787 <BIT_NOT_EXPR>: Add specific handling for boolean types.
2789 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2792 * config/i386/i386.c (remove_partial_avx_dependency): Call
2793 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
2794 after changing possibly many instructions to use that pseudo. Fix up
2795 insertion of v4sf_const0 setter at the start of bb.
2797 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2800 * doc/extend.texi (Variadic Pointer Args): New section.
2802 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2803 Martin Sebor <msebor@gmail.com>
2805 * common.opt (Wattribute-alias): Likewise.
2806 * doc/invoke.texi (Option Summary): List general form of
2807 -Wattribute-alias=. List positive form of -Wmissing-attributes.
2808 (-Wmissing-attributes): Invert entry, rewrite and correct default.
2809 Add cross-references.
2810 (-Wattribute-alias): Rewrite and correct default. Mention
2811 considered attributes (same as for -Wmissing-attributes).
2813 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
2815 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
2816 (_mm_cvtpd_ps): Likewise.
2817 (_mm_cvttpd_epi32): Likewise.
2820 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
2821 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
2824 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
2826 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2829 * common/config/aarch64/aarch64-common.c
2830 (struct aarch64_option_extension): Add is_synthetic.
2831 (all_extensions): Use it.
2832 (TARGET_OPTION_INIT_STRUCT): Define hook.
2833 (struct gcc_targetm_common): Moved to end.
2834 (all_extensions_by_on): New.
2835 (opt_ext_cmp, typedef opt_ext): New.
2836 (aarch64_option_init_struct): New.
2837 (aarch64_contains_opt): New.
2838 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
2839 * config/aarch64/aarch64-option-extensions.def
2840 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
2841 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
2842 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
2843 Set is_synthetic to false.
2844 (crypto): Set is_synthetic to true.
2845 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
2848 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2850 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2851 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
2852 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2853 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
2854 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
2855 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
2856 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
2857 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
2859 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
2860 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2861 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
2862 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
2863 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
2864 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
2865 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
2866 vfmlsl_laneq_high_f16): ... To this.
2867 * config/arm/neon.md: Update comments.
2869 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2871 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2872 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
2873 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2874 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
2875 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
2876 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
2877 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
2878 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
2880 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
2881 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2882 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
2883 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
2884 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
2885 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
2886 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
2887 vfmlslq_laneq_high_f16): ... To this.
2889 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
2891 PR rtl-optimization/86096
2892 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
2893 comparing mw_order values.
2895 2019-02-25 Jakub Jelinek <jakub@redhat.com>
2898 * config/arm/arm.md (*subsi3_carryin_const): Use
2899 arm_neg_immediate_operand predicate instead of
2900 arm_not_immediate_operand, "L" constraint instead of "K" and
2901 print it using %n2 instead of %B2.
2902 (*subsi3_carryin_const0): New define_insn.
2903 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
2904 instead of arm_not_operand and "I" constraint instead of "K" and
2905 print it using %n3 instead of %B2. Instead of using match_dup 2 add
2906 another match_operand and in the condition check that it is negation
2908 (*subsi3_carryin_compare_const0): New define_ins.
2909 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
2910 *subsi3_carryin_const.
2911 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
2912 split into *subsi3_carryin_compare_const0 if the highpart is zero.
2915 * config/arm.vfp.md (*negdf2_vfp): Use
2916 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
2917 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
2919 2019-02-24 Jakub Jelinek <jakub@redhat.com>
2921 PR rtl-optimization/89445
2922 * simplify-rtx.c (simplify_ternary_operation): Don't use
2923 simplify_merge_mask on operands that may trap.
2924 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
2925 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
2926 second operand is CONST_VECTOR, check if any element could be zero.
2927 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
2928 their operands can trap.
2930 2019-02-23 Martin Sebor <msebor@redhat.com>
2932 * gimple-ssa-sprintf.c (target_strtol): Rename...
2933 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
2934 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
2935 check for range error.
2937 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
2940 * opts-common.c (prune_options): Also prune joined switches
2941 with Negative and RejectNegative.
2942 * config/i386/i386.opt (march=): Add Negative(march=).
2943 (mtune=): Add Negative(mtune=).
2944 * doc/options.texi: Document Negative used together with Joined
2947 2019-02-22 Martin Sebor <msebor@redhat.com>
2949 * doc/extend.texi (Other Builtins): Add
2950 __builtin_is_constant_evaluated.
2952 2019-02-22 Richard Biener <rguenther@suse.de>
2954 PR tree-optimization/87609
2955 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
2957 2019-02-22 Jeff Law <law@redhat.com>
2959 PR rtl-optimization/87761
2960 * config/mips/mips.md: Add new combiner pattern to recognize
2961 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
2963 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
2966 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
2967 destination register in peepholes generating patterns for ADDS/SUBS.
2968 (add<mode>3_compare0,
2969 *addsi3_compare0_uxtw, add<mode>3_compareC,
2970 add<mode>3_compareV_imm, add<mode>3_compareV,
2971 *adds_<optab><ALLX:mode>_<GPI:mode>,
2972 *subs_<optab><ALLX:mode>_<GPI:mode>,
2973 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
2974 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
2975 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
2976 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
2977 sub<mode>3_compare1): Allow stack pointer for source register.
2978 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
2980 2019-02-22 Martin Sebor <msebor@redhat.com>
2982 PR tree-optimization/88993
2983 PR tree-optimization/88853
2984 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
2986 (sprintf_dom_walker::call_info::is_string_func): New helper.
2987 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
2988 for formatted string functions.
2989 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
2991 2019-02-22 Martin Sebor <msebor@redhat.com>
2994 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
2995 unreachable subexpressions.
2997 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
2998 Hongtao Liu <hongtao.liu@intel.com>
2999 Sunil K Pandey <sunil.k.pandey@intel.com>
3002 * config/i386/i386-passes.def: Add
3003 pass_remove_partial_avx_dependency.
3004 * config/i386/i386-protos.h
3005 (make_pass_remove_partial_avx_dependency): New.
3006 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
3008 (pass_data_remove_partial_avx_dependency): New.
3009 (pass_remove_partial_avx_dependency): Likewise.
3010 (make_pass_remove_partial_avx_dependency): Likewise.
3011 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
3012 (*extendsfdf2): Add avx_partial_xmm_update.
3013 (truncdfsf2): Likewise.
3014 (*float<SWI48:mode><MODEF:mode>2): Likewise.
3015 (SF/DF conversion splitters): Disabled for TARGET_AVX.
3017 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
3020 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
3023 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
3026 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
3027 (PTA_SKYLAKE): Add PTA_AES.
3028 (PTA_GOLDMONT): Likewise.
3030 2019-02-22 Sudakshina Das <sudi.das@arm.com>
3032 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
3033 instruction if enabled.
3034 (aarch64_override_options): Remove reference to return address key.
3036 2019-02-22 Richard Biener <rguenther@suse.de>
3038 PR tree-optimization/89440
3039 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
3040 not necessary assert.
3042 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
3045 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
3046 (oacc_replace_fn_attrib_attr): ... this new function.
3047 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
3048 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
3050 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3052 * config/arm/arm-cpus.in (ares): Rename to...
3053 (neoverse-n1): ... This. Add ares as alias.
3054 * config/arm/arm-tables.opt: Regenerate.
3055 * config/arm/arm-tune.md: Likewise.
3056 * doc/invoke.txt (ARM Options): Document neoverse-n1.
3058 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3060 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
3061 * config/aarch64/aarch64-tune.md: Regenerate.
3062 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
3064 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3066 * config/aarch64/aarch64.c (ares_tunings): Rename to...
3067 (neoversen1_tunings): ... This.
3068 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
3069 (neoverse-n1): New CPU.
3070 * config/aarch64/aarch64-tune.md: Regenerate.
3071 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
3073 2019-02-22 Richard Biener <rguenther@suse.de>
3076 * cfghooks.h (dependence_hash): New typedef.
3077 (struct copy_bb_data): New type.
3078 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
3079 (duplicate_block): Likewise.
3080 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
3081 (copy_bbs): Create and pass down copy_bb_data.
3082 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
3083 (rtl_duplicate_bb): Likewise.
3084 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
3085 remap dependence info.
3087 2019-02-22 Richard Biener <rguenther@suse.de>
3089 PR tree-optimization/87609
3090 * tree-core.h (tree_base): Document special clique values.
3091 * tree-inline.c (remap_dependence_clique): Do not use the
3092 special clique value of one.
3093 (maybe_set_dependence_info): Use clique one.
3094 (clear_dependence_clique): New callback.
3095 (compute_dependence_clique): Clear clique one from all refs
3096 before assigning it (again).
3098 2019-02-21 Martin Sebor <msebor@redhat.com>
3100 * doc/extend.texi (__clear_cache): Correct signature.
3102 2019-02-21 Ian Lance Taylor <iant@golang.org>
3105 * varasm.c (decode_addr_const): Call lookup_constant_def rather
3106 than output_constant_def.
3107 (add_constant_to_table): New static function.
3108 (output_constant_def): Call add_constant_to_table.
3109 (tree_output_constant_def): Likewise.
3111 2019-02-21 Jakub Jelinek <jakub@redhat.com>
3114 * builtins.c (fold_builtin_arith_overflow): If first two args are
3115 INTEGER_CSTs, set intres and ovfres to constants rather than calls
3118 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
3121 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
3122 error for -mindirect-branch/-mfunction-return with incompatible
3125 2019-02-21 Jakub Jelinek <jakub@redhat.com>
3128 * constraints.md (q): Remove.
3129 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
3132 2019-02-21 Martin Jambor <mjambor@suse.cz>
3135 * omp-general.c (omp_extract_for_data): Removed a duplicate call
3136 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
3137 (omp_adjust_for_condition): ...here. Added necessary parameters.
3138 * omp-general.h (omp_adjust_for_condition): Updated declaration.
3139 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
3140 proper values to new parameters of omp_adjust_for_condition.
3142 2019-02-20 Jakub Jelinek <jakub@redhat.com>
3145 * expr.c (expand_assignment): If result is a MEM, use change_address
3146 instead of simplify_gen_subreg.
3148 2019-02-20 Jakub Jelinek <jakub@redhat.com>
3149 David Malcolm <dmalcolm@redhat.com>
3152 * fold-const.c (decode_field_reference): Return NULL_TREE if
3153 lang_hooks.types.type_for_size returns NULL. Check it before
3154 overwriting *exp_. Use return NULL_TREE instead of return 0.
3156 2019-02-20 Jakub Jelinek <jakub@redhat.com>
3160 * toplev.c (do_compile): Double the emin/emax exponents to workaround
3163 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
3166 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
3167 TARGET_SSE in addition to TARGET_SSE_MATH.
3169 (ix86_excess_precision): Ditto.
3170 (ix86_float_exceptions_rounding_supported_p): Ditto.
3171 (use_rsqrt_p): Ditto.
3172 * config/i386/sse.md (rsqrt<mode>2): Ditto.
3174 2019-02-20 David Malcolm <dmalcolm@redhat.com>
3177 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
3178 linenum_arith_t when determining if two adjacent line spans are
3179 close enough to merge.
3180 (diagnostic_show_locus): Use linenum_arith_t when iterating over
3181 lines within each line_span.
3183 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
3186 * lra-constraints.c(uses_hard_regs_p): Fix handling of
3187 paradoxical SUBREGS.
3189 2019-02-20 Li Jia He <helijia@linux.ibm.com>
3192 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
3193 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
3194 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
3197 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
3199 * config/gcn/gcn.c (print_operand): Fix typo.
3201 2019-02-19 Richard Biener <rguenther@suse.de>
3204 * toplev.c (do_compile): Initialize mpfr's exponent range
3205 based on available float modes.
3207 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
3209 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
3210 as long as the epilogue isn't completed.
3212 2019-02-18 Martin Sebor <msebor@redhat.com>
3214 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
3215 __has_cpp_attribute, and __has_include.
3217 2019-02-18 Martin Sebor <msebor@redhat.com>
3219 * doc/invoke.texi (-Wreturn-type): Correct and expand.
3221 2019-02-18 Martin Sebor <msebor@redhat.com>
3224 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
3226 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
3228 2019-02-18 Richard Biener <rguenther@suse.de>
3230 PR tree-optimization/89296
3231 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
3232 of no-warning flag to cases that might emit the bogus warning.
3234 2019-02-18 Jakub Jelinek <jakub@redhat.com>
3237 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
3239 * config/arm/vfp.md (*movdi_vfp): Likewise.
3240 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
3241 "q" constraint for operands[0].
3244 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
3245 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
3246 pattern in a temporary buffer.
3247 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
3248 than 64-operands[2].
3251 * config/s390/s390.c (s390_indirect_branch_attrvalue,
3252 s390_indirect_branch_settings): Define unconditionally.
3253 (s390_set_current_function): Likewise, but guard the whole body except
3254 the s390_indirect_branch_settings call with
3255 #if S390_USE_TARGET_ATTRIBUTE.
3256 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
3258 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
3259 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
3260 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
3261 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
3262 HOST_WIDE_INT_1U instead of 1ULL.
3263 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
3264 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
3265 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
3266 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
3268 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
3271 2019-02-18 Martin Jambor <mjambor@suse.cz>
3273 PR tree-optimization/89209
3274 * tree-sra.c (create_access_replacement): New optional parameter
3275 reg_tree. Use it as a type if non-NULL and access type is not of
3277 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
3278 to create_access_replacement.
3279 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
3280 Check lacc is non-NULL before attempting to re-create it on the RHS.
3282 2019-02-18 Martin Liska <mliska@suse.cz>
3285 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
3287 (symbol_table::free_edge): Recycle m_summary_id.
3288 * cgraph.h (get_summary_id): New.
3289 (symbol_table::release_symbol): Set m_summary_id to -1
3291 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
3292 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
3293 function_summary to fast_function_summary.
3294 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
3295 * ipa-pure-const.c (class funct_state_summary_t):
3296 Switch from function_summary to fast_function_summary.
3297 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
3298 (class ipa_ref_opt_summary_t): Switch from function_summary
3299 to fast_function_summary.
3300 * symbol-summary.h (class function_summary_base): New class
3301 that is created from base of former function_summary.
3302 (function_summary_base::unregister_hooks): New.
3303 (class function_summary): Inherit from function_summary_base.
3304 (class call_summary_base): New class
3305 that is created from base of former call_summary.
3306 (class call_summary): Inherit from call_summary_base.
3307 (struct is_same): New.
3308 (class fast_function_summary): New summary class.
3309 (class fast_call_summary): New summary class.
3310 * vec.h (vec_safe_grow_cleared): New function.
3312 2019-02-18 Martin Liska <mliska@suse.cz>
3314 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
3315 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
3316 * doc/tm.texi: Document new target hook.
3317 * doc/tm.texi.in: Likewise.
3318 * target.def: Add new target macro.
3319 * gcc.c (find_fortran_preinclude_file): Do not search multilib
3322 2019-02-17 Alan Modra <amodra@gmail.com>
3325 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
3326 output reg on add insn.
3327 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
3329 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
3332 * config/i386/sse.md (ssedoublemode): Remove V4HI.
3333 (PMULHRSW): Likewise.
3334 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
3336 (ssse3_pmulhrswv4hi3): New expander.
3338 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
3340 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
3341 MMX. Add isa attribute.
3343 2019-02-16 Jakub Jelinek <jakub@redhat.com>
3345 PR rtl-optimization/66152
3346 * builtins.h (c_readstr): Declare.
3347 * builtins.c (c_readstr): Remove forward declaration. Add
3348 null_terminated_p argument, if false, read all bytes from the
3349 string instead of stopping after '\0'.
3350 * expr.c (string_cst_read_str): New function.
3351 (store_expr): Use string_cst_read_str instead of
3352 builtin_strncpy_read_str. Try to store by pieces the whole
3353 exp_len first, and only if that fails, split it up into
3354 store by pieces followed by clear_storage. Formatting fix.
3356 * config/i386/i386.md (*movqi_internal): Remove static from
3357 buf variable. Use output_asm_insn (buf, operands); return "";
3358 instead of return buf;.
3359 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
3360 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
3361 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
3363 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
3365 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
3366 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
3367 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
3368 (CC1_SPEC): Likewise.
3369 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
3371 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
3373 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
3374 the base address on 64-bit strict-alignment platforms.
3376 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
3378 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
3380 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
3382 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
3384 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
3386 PR rtl-optimization/88308
3387 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
3388 on copied instruction.
3390 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
3392 * final.c (insn_current_reference_address): Replace test on JUMP_P
3393 with test on jump_to_label_p.
3394 * config/visium/visium-passes.def: New file.
3395 * config/visium/t-visium (PASSES_EXTRA): Define.
3396 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
3397 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
3398 (TRAMPOLINE_ALIGNMENT): Define.
3399 * config/visium/visium.c (visium_option_override): Do not register
3400 the machine-specific reorg pass here.
3401 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
3403 (output_branch): Adjust threshold for long branch instruction.
3404 * config/visium/visium.md (cpu): Move around.
3405 (length): Adjust for the GR6.
3407 2019-02-15 Richard Biener <rguenther@suse.de>
3408 Jakub Jelinek <jakub@redhat.com>
3410 PR tree-optimization/89278
3411 * tree-loop-distribution.c: Include tree-eh.h.
3412 (generate_memset_builtin, generate_memcpy_builtin): Call
3413 rewrite_to_non_trapping_overflow on builtin->size before passing it
3414 to force_gimple_operand_gsi.
3416 2019-02-15 Jakub Jelinek <jakub@redhat.com>
3419 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
3421 * opth-gen.awk: Likewise.
3423 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
3425 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
3426 Enable MMX, SSE and SSE2 by default.
3427 * config/i386/i386.c (ix86_option_override_internal): Do not
3428 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
3430 2019-02-14 Jakub Jelinek <jakub@redhat.com>
3432 PR rtl-optimization/89354
3433 * combine.c (make_extraction): Punt if extraction_mode is narrower
3436 2019-02-14 Maya Rashish <coypu@sdf.org>
3438 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
3439 * config/netbsd-d.c: New file.
3440 * config/t-netbsd: Add netbsd-d.o
3442 2018-02-14 Steve Ellcey <sellcey@marvell.com>
3444 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
3445 affects_type_identity to true for aarch64_vector_pcs.
3446 (aarch64_comp_type_attributes): New function.
3447 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
3449 2019-02-14 Tamar Christina <tamar.christina@arm.com>
3452 * config/arm/iterators.md (ANY64): Add V4HF.
3454 2019-02-14 Martin Liska <mliska@suse.cz>
3456 PR rtl-optimization/89242
3457 * dce.c (delete_unmarked_insns): Call free_dominance_info we
3458 process a transformation.
3460 2019-02-14 Jakub Jelinek <jakub@redhat.com>
3462 PR tree-optimization/89314
3463 * fold-const.c (fold_binary_loc): Cast strlen argument to
3464 const char * before dereferencing it. Formatting fixes.
3467 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
3469 2019-02-13 Ian Lance Taylor <iant@golang.org>
3471 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
3472 and set current index for other optimizations.
3474 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
3476 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
3477 nonimmediate_operand as operand 2 predicate.
3478 (vec_set<VF2_512_256:mode>_0): Ditto.
3479 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
3480 (*vec_concatv2si): Remove alternative 2.
3481 (*vec_concatv4si_0): Use vm constraint for alternative 0.
3482 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
3483 (vec_concatv2di): Split alternatives 4,5,6 to ...
3484 (*vec_concatv2di_0) ... new pattern.
3486 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
3489 * config/arm/arm.c (ldm_stm_operation_p) Set
3490 addr_reg_in_reglist correctly for first register.
3491 (load_multiple_sequence): Remove dead base check.
3492 (gen_ldm_seq): Correctly set write_back for Thumb-1.
3494 2019-02-13 Tamar Christina <tamar.christina@arm.com>
3497 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
3498 Expose as @aarch64_pred_mov.
3499 * config/aarch64/aarch64.c (aarch64_classify_address):
3500 Use expand_insn which legitimizes operands.
3502 2019-02-13 Martin Liska <mliska@suse.cz>
3504 * builtins.h (expand_builtin_with_bounds): Remove declaration.
3505 * calls.c (struct arg_data): Remove special_slot, pointer_arg
3506 and pointer_offset fields.
3507 (initialize_argument_information): Remove usage of dead
3509 * cgraph.h (struct cgraph_thunk_info): Remove
3510 add_pointer_bounds_args.
3511 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
3513 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
3515 * config/i386/i386.c (ix86_function_arg_advance): Remove
3517 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
3518 (def_builtin): Remove usage of dead
3520 (ix86_add_new_builtins): Likewise.
3521 * ipa-fnsummary.c (compute_fn_summary): Likewise.
3522 * ipa-icf.c (sem_function::equals_wpa): Likewise.
3523 (sem_function::init): Likewise.
3524 (sem_variable::merge): Likewise.
3525 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3526 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3527 * lto-cgraph.c (lto_output_node): Likewise.
3528 (lto_output_varpool_node): Likewise.
3529 (input_node): Likewise.
3530 (input_varpool_node): Likewise.
3531 * lto-streamer-out.c (lto_output): Likewise.
3532 * tree-inline.c (expand_call_inline): Remove usage of
3534 * tree-inline.h (struct copy_body_data): Likewise.
3535 * varpool.c (varpool_node::dump): Likewise.
3537 2019-02-13 Jakub Jelinek <jakub@redhat.com>
3540 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
3541 into pt->vars_contains_escaped_heap instead of setting
3542 pt->vars_contains_escaped_heap to it.
3545 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
3546 INTVAL (size), compare it to GET_MODE_MASK instead of
3547 1 << GET_MODE_BITSIZE.
3550 * config/i386/predicates.md (x86_64_immediate_operand): Allow
3551 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
3554 2019-02-13 Martin Liska <mliska@suse.cz>
3557 * cfgrtl.c (remove_barriers_from_footer): New function.
3558 (try_redirect_by_replacing_jump): Use it.
3559 (cfg_layout_redirect_edge_and_branch): Likewise.
3561 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
3563 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
3564 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
3565 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
3566 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
3567 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
3568 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
3570 * config/rs6000/rs6000.c (builtin_function_type)
3571 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
3572 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
3573 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
3574 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
3575 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
3577 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
3579 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
3580 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
3582 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
3585 * config/i386/i386.md (*movoi_internal_avx): Revert revision
3586 268678 and revision 268657.
3587 (*movti_internal): Likewise.
3589 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
3592 * config/s390/s390.c (s390_decompose_address): Update comment.
3593 (s390_check_qrst_address): Reject invalid address forms after
3596 2019-02-12 Martin Liska <mliska@suse.cz>
3599 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
3600 we need default values of funct_state for a function that
3603 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
3605 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
3606 the object to pick the size of stores on strict-alignment platforms.
3608 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
3609 (*movdi_insn_sp32): Likewise.
3610 (*movdi_insn_sp64): Likewise.
3612 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
3615 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
3616 types that needs constructiong.
3617 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
3619 2019-02-12 Richard Biener <rguenther@suse.de>
3621 PR tree-optimization/89253
3622 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
3625 2019-02-11 David Malcolm <dmalcolm@redhat.com>
3628 * input.c (selftest::test_line_offset_overflow): New selftest.
3629 (selftest::input_c_tests): Call it.
3631 2019-02-11 Martin Sebor <msebor@redhat.com>
3633 PR tree-optimization/88771
3634 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
3635 when -Wstringop-overflow is set.
3636 (builtin_memref::builtin_memref): Adjust excessive upper bound
3637 only when lower bound is not excessive.
3638 (maybe_diag_overlap): Detect and diagnose excessive bounds via
3639 -Wstringop-ovefflow.
3640 (maybe_diag_offset_bounds): Rename...
3641 (maybe_diag_access_bounds): ...to this.
3642 (check_bounds_or_overlap): Adjust for name change above.
3644 2019-02-11 Martin Sebor <msebor@redhat.com>
3647 * builtins.c (max_object_size): Move from here...
3648 * builtins.h (max_object_size): ...and here...
3649 * tree.c (max_object_size): ...to here...
3650 * tree.h (max_object_size): ...and here.
3652 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
3654 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
3655 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
3656 for correct semantics.
3658 2019-02-11 Alan Modra <amodra@gmail.com>
3660 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
3661 -mlongcall and -mpltseq.
3662 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
3663 (RS/6000 and PowerPC Options <-mpltseq>): Document.
3664 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
3665 * config/rs6000/sysv4.opt (mpltseq): New option.
3666 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
3667 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
3668 support is lacking. Don't allow -mpltseq with -mbss-plt.
3669 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
3670 -mpltseq given for ELFv1.
3671 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
3672 Only use UNSPEC_PLTSEQ for inline PLT calls.
3673 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
3674 use UNSPEC_PLTSEQ for inline PLT calls.
3675 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
3676 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
3677 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
3678 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
3679 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
3680 (pltseq_mtctr_<mode>): Likewise.
3682 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3684 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
3686 * configure: Regenerate.
3688 2019-02-11 Jakub Jelinek <jakub@redhat.com>
3691 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
3694 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
3696 * function.c (assign_parm_setup_block): Use the stored
3697 size, not the passed size, when allocating stack-space,
3698 also for a parameter with alignment larger than
3699 MAX_SUPPORTED_STACK_ALIGNMENT.
3701 2019-02-11 Martin Liska <mliska@suse.cz>
3704 * ipa-cp.c (build_toporder_info): Remove usage of a param.
3705 * ipa-inline.c (inline_small_functions): Likewise.
3706 * ipa-pure-const.c (propagate_pure_const): Likewise.
3707 (propagate_nothrow): Likewise.
3708 * ipa-reference.c (propagate): Likewise.
3709 * ipa-utils.c (struct searchc_env): Remove unused field.
3710 (searchc): Always search across AVAIL_INTERPOSABLE.
3711 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
3712 the only called IPA pure const can properly not propagate
3713 across interposable boundary.
3714 * ipa-utils.h (ipa_reduced_postorder): Remove param.
3716 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
3718 * config/nds32/nds32.md (call_internal, call_value_internal,
3719 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
3721 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
3723 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
3726 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
3728 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
3731 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
3733 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
3735 2019-02-10 Jakub Jelinek <jakub@redhat.com>
3737 PR tree-optimization/89268
3738 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
3739 if preds is non-NULL.
3741 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3744 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
3747 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3749 * config/nds32/nds32.md (trap): New pattern.
3751 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3753 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
3756 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
3758 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
3761 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3763 * ipa-visibility.c (localize_node): Also do not localize
3764 LDPR_PREVAILING_DEF_IRONLY_EXP.
3766 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3769 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
3770 instead of type_with_linkage.
3772 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3775 * params.def (uninlined-function-insns, uninlined-function-time,
3776 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
3777 bound so we don't get overflows.
3779 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
3781 * config/rs6000/rs6000-string.c (expand_compare_loop,
3782 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
3785 2019-02-09 Jakub Jelinek <jakub@redhat.com>
3788 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3789 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
3790 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
3792 2019-02-09 Alan Modra <amodra@gmail.com>
3795 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
3796 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
3799 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
3802 * lra-constraints.c (process_alt_operands): Don't increase reject
3803 for memory when offset memory is required.
3805 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
3807 * config/s390/vector.md: Implement vector copysign.
3809 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3811 * expr.c (expand_constructor): Correct indentations.
3813 2019-02-08 Richard Biener <rguenther@suse.de>
3815 PR tree-optimization/89247
3816 * tree-if-conv.c: Include tree-cfgcleanup.h.
3817 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
3818 (tree_if_conversion): Pass through predicate vector.
3819 (pass_if_conversion::execute): Do CFG cleanup and SSA update
3820 inline, see if any if-converted loops we refrece in
3821 LOOP_VECTORIZED calls vanished and fixup.
3822 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
3824 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
3826 * config/s390/constraints.md (jdd): New constraint.
3828 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3831 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
3832 upper 16 vector registers without TARGET_AVX512VL.
3833 (*movti_internal): Likewise.
3835 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3837 PR rtl-optimization/89234
3838 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
3839 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
3840 (copy_reg_eh_region_note_backward): Likewise.
3842 2019-02-08 Richard Biener <rguenther@suse.de>
3845 * tree-data-ref.c (initialize_matrix_A): Fail if constant
3847 (analyze_subscript_affine_affine): Handle failure from
3848 initialize_matrix_A.
3850 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3852 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
3855 2019-02-07 David Malcolm <dmalcolm@redhat.com>
3857 PR tree-optimization/86637
3858 PR tree-optimization/89235
3859 * tree-vect-loop.c (optimize_mask_stores): Add an
3860 auto_purge_vect_location sentinel to ensure that vect_location is
3863 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
3864 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
3865 to ensure that vect_location is purged on exit.
3866 (pass_slp_vectorize::execute): Likewise, replacing the manual
3868 * tree-vectorizer.h (class auto_purge_vect_location): New class.
3870 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3872 * config/aarch64/iterators.md (max_opp): New code_attr.
3873 (USMAX): New code iterator.
3874 * config/aarch64/predicates.md (aarch64_smin): New predicate.
3875 (aarch64_smax): Likewise.
3876 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
3877 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
3880 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
3883 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
3884 for TARGET_AVX512VL.
3885 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
3887 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
3889 * config/s390/s390-builtin-types.def: Add new types.
3890 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
3891 (s390_vec_xlw4): Make the memory operand into a const pointer.
3892 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
3894 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
3895 a new vector type with the alignment of the scalar memory operand.
3897 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
3898 Jakub Jelinek <jakub@redhat.com>
3901 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
3902 arm_count_ldrdstrd_insns): New declarations.
3903 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
3905 (valid_operands_ldrd_strd): New function.
3906 (arm_count_ldrdstrd_insns): New function.
3907 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
3908 sets instead of single DImode set and define new insns to match this.
3910 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3912 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
3913 Make it a C initializer.
3915 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3918 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
3920 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3922 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
3923 Use neon_dot<q> for type.
3924 (neon_<sup>dot_lane<vsi2qi>): Likewise.
3926 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3928 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
3929 Use neon_dot<q> for type.
3930 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
3931 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
3933 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
3935 PR rtl-optimization/89225
3936 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
3939 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
3941 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
3942 after restoring registers saved to allocate the frame on Windows.
3944 2019-02-06 Richard Biener <rguenther@suse.de>
3946 PR tree-optimization/89182
3947 * graphite.h (cached_scalar_evolution_in_region): Declare.
3948 * graphite.c (struct seir_cache_key): New.
3949 (struct sese_scev_hash): Likewise.
3950 (seir_cache): New global.
3951 (cached_scalar_evolution_in_region): New function.
3952 (graphite_transform_loops): Allocate and release seir_cache.
3953 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
3954 cached_scalar_evolution_in_region.
3955 * graphite-scop-detection.c (scop_detection::can_represent_loop):
3957 (scop_detection::graphite_can_represent_expr: Use
3958 cached_scalar_evolution_in_region.
3959 (scop_detection::stmt_simple_for_scop_p): Likewise.
3960 (find_params_in_bb): Likewise.
3961 (gather_bbs::before_dom_children): Likewise.
3962 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
3963 (add_loop_constraints): Likewise.
3965 2019-02-06 Jakub Jelinek <jakub@redhat.com>
3968 * fold-const-call.c (fold_const_vec_convert): Pass true as last
3969 operand to new_unary_operation only if both element types are integral
3970 and it isn't a widening conversion. Return NULL_TREE if
3971 new_unary_operation failed.
3973 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
3976 * config/s390/s390.md: Remove load and test FP splitter.
3978 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3981 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
3982 expand_compare_loop, expand_block_compare_gpr,
3983 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
3984 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
3985 #include "profile-count.h" and "predict.h" for types and functions
3986 needed to work with REG_BR_PROB notes.
3988 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3991 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
3992 for the long branch case.
3994 2019-02-05 Jakub Jelinek <jakub@redhat.com>
3997 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
3998 can throw, non-call exceptions are enabled and we can't delete
3999 dead exceptions or alter cfg. Set must_clean if
4000 delete_insn_and_edges returns true, don't set it blindly for calls.
4001 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
4003 PR rtl-optimization/89195
4004 * combine.c (make_extraction): For MEMs, don't extract bytes outside
4005 of the original MEM.
4007 2019-02-05 Martin Liska <mliska@suse.cz>
4009 PR gcov-profile/89000
4010 * gcov.c (function_summary): Remove argument.
4011 (file_summary): New function.
4012 (print_usage): Replace tabs with spaces.
4013 (generate_results): Use new function file_summary.
4015 2019-02-05 Jakub Jelinek <jakub@redhat.com>
4018 * optabs.c (prepare_cmp_insn): Pass x and y to
4019 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
4021 2019-02-05 Richard Biener <rguenther@suse.de>
4024 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
4025 (struct bitmap_element): Drop chain_prev so we properly recurse on
4026 the prev member, supporting tree views.
4027 (struct bitmap_head): GTY skip the obstack member.
4029 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
4032 * doc/extend.texi (Vector Extensions): Add an example of using vector
4033 types together with x86 intrinsics.
4035 2019-02-04 Alan Modra <amodra@gmail.com>
4037 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
4038 str[] size to 160, and comment.
4040 2019-02-04 Alan Modra <amodra@gmail.com>
4042 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
4043 (rs6000_pltseq_template): Guard output of TLS markers with
4045 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
4046 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
4047 to use inline PLT sequences.
4048 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
4049 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
4050 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
4052 2019-02-04 Martin Liska <mliska@suse.cz>
4055 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
4056 out when ipa_fn_summaries does not contain entry for callee.
4058 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
4060 * config/sparc/sparc.h: Remove superfluous blank lines.
4061 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
4062 (got_register_rtx): ...this.
4063 (sparc_got): Adjust to above renaming.
4064 (sparc_tls_got): Likewise.
4065 (sparc_delegitimize_address): Likewise.
4066 (sparc_output_mi_thunk): Likewise.
4067 (sparc_init_pic_reg): Likewise.
4068 (save_local_or_in_reg_p): Fix test on the GOT register.
4069 (USE_HIDDEN_LINKONCE): Move around.
4070 (get_pc_thunk_name): Likewise.
4071 (gen_load_pcrel_sym): Likewise.
4072 (load_got_register): Likewise.
4074 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
4076 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
4077 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
4079 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
4081 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
4084 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
4086 * config.gcc (with_nds32_lib, glibc):
4087 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
4088 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
4089 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
4091 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
4094 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
4095 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
4096 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
4097 (*rcpsf2_sse): Ditto.
4098 (*rsqrtsf2_sse): Ditto.
4099 (sse4_1_round<mode<2): Ditto.
4101 2019-02-03 Richard Biener <rguenther@suse.de>
4104 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
4107 2019-02-02 Jakub Jelinek <jakub@redhat.com>
4110 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4111 Punt with warning on aggregate return or argument types. Ignore
4112 type/mode checking for uniform arguments.
4114 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
4116 * combine.c (try_combine): Do not print "Can't combine" messages unless
4117 printing failed combination attempts.
4119 2019-02-01 Martin Jambor <mjambor@suse.cz>
4122 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
4123 segment and global segment variables before making them static.
4125 2019-02-01 Martin Jambor <mjambor@suse.cz>
4127 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
4128 missed optimization dump with dump_enabled_p.
4130 2019-02-01 Richard Biener <rguenther@suse.de>
4133 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
4134 the instantiate cache.
4135 (instantiate_scev_binary): Elide second operand procesing
4136 if equal to the first.
4137 * tree-chrec.c (chrec_contains_symbols): Add visited set.
4138 (chrec_contains_undetermined): Likewise.
4139 (tree_contains_chrecs): Likewise.
4141 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
4143 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
4145 2019-02-01 Jakub Jelinek <jakub@redhat.com>
4147 PR tree-optimization/89143
4148 * wide-int-range.h (wide_int_range_absu): Declare.
4149 * wide-int-range.cc (wide_int_range_absu): New function.
4150 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
4152 PR tree-optimization/88107
4153 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
4154 instead of assertion that eh_region_outermost is non-NULL, if it
4155 is NULL, set *ALL to true and return NULL.
4156 (move_sese_region_to_fn): Adjust caller, if all is set, call
4157 duplicate_eh_regions with NULL region.
4159 2019-02-01 Richard Biener <rguenth@suse.de>
4161 PR rtl-optimization/88593
4162 * mode-switching.c (optimize_mode_switching): Free dominators before
4163 calling cleanup_cfg.
4165 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
4167 PR tree-optimization/88932
4168 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
4170 2019-01-31 Jakub Jelinek <jakub@redhat.com>
4173 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
4174 bogus clang warning.
4176 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
4179 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
4180 alternative to avoid partial SSE register stall for TARGET_AVX.
4181 (truncdfsf2): Ditto.
4182 (sse4_1_round<mode>2): Ditto.
4184 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
4186 PR tree-optimization/89008
4187 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
4188 process anything of the form X * 0.
4190 2019-01-31 Richard Biener <rguenther@suse.de>
4192 PR tree-optimization/89135
4193 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
4194 with abnormal preds.
4196 2019-01-31 Jakub Jelinek <jakub@redhat.com>
4199 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
4200 always_inline callees into no_sanitize_address callers.
4202 2019-01-31 Richard Biener <rguenther@suse.de>
4204 PR rtl-optimization/89115
4205 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
4207 2019-01-30 Martin Sebor <msebor@redhat.com>
4210 * doc/extend.texi (cast to a union): Correct and expand.
4212 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
4214 PR rtl-optimization/87246
4215 * lra-constraints.c (simplify_operand_subreg): Reload memory
4216 in subreg if the address became invalid.
4218 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
4221 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
4222 Disable for little-endian.
4224 2019-01-30 Richard Biener <rguenther@suse.de>
4226 PR rtl-optimization/89115
4227 * opts.c (default_options_optimization): Reduce
4228 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
4229 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
4232 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
4234 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
4235 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
4236 type of vector element when vec_extract is implemented by direct
4239 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
4241 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
4243 2019-01-30 Richard Biener <rguenther@suse.de>
4245 PR tree-optimization/89111
4246 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
4247 canonicalization to appropriately sized access types.
4249 2019-01-30 Jakub Jelinek <jakub@redhat.com>
4252 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
4253 for arguments to functions that are TU-local and shouldn't be
4254 referenced by assembly.
4256 2019-01-30 Ulrich Drepper <drepper@redhat.com>
4258 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
4261 2019-01-29 Martin Sebor <msebor@redhat.com>
4264 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
4266 2019-01-29 Jakub Jelinek <jakub@redhat.com>
4270 * omp-simd-clone.c (simd_clone_clauses_extract)
4271 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
4272 OMP_CLAUSE_ALIGNED_ALIGNMENT.
4274 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
4276 * config.gcc: Force .init_array for ARC.
4278 2019-01-29 Richard Biener <rguenther@suse.de>
4281 * dwarf2out.c (collect_skeleton_dies): New helper.
4282 (copy_decls_for_unworthy_types): Call it.
4283 (build_abbrev_table): Assert we do not try to replace
4284 DW_AT_signature refs with local refs.
4286 2019-01-28 Jakub Jelinek <jakub@redhat.com>
4289 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
4290 for lastprivate/linear IV, push gimplify context around gimplify_assign
4291 and, if it needed any temporaries, pop it into a gimple bind around the
4294 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
4296 * common.opt (-Wattribute-alias): Remove "no-" from name.
4297 Make -Wattribute-alias command line option and
4298 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
4300 2019-01-28 Jakub Jelinek <jakub@redhat.com>
4303 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
4304 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
4306 (bmi2): Add missing @opindex.
4307 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
4308 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
4309 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
4310 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
4311 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
4312 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
4313 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
4314 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
4315 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
4316 xsavec, xsaveopt and xsaves options.
4318 2019-01-28 Richard Biener <rguenther@suse.de>
4321 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
4324 2019-01-28 Richard Biener <rguenther@suse.de>
4326 PR tree-optimization/88739
4327 * tree-cfg.c (verify_types_in_gimple_reference): Verify
4328 BIT_FIELD_REFs only are applied to mode-precision operands
4329 when they are integral.
4330 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
4331 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
4332 BIT_FIELD_REFs of non-mode-precision integral operands.
4334 2019-01-27 Jakub Jelinek <jakub@redhat.com>
4337 * config/i386/sse.md
4338 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
4339 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
4340 first constants in pairs are multiples of 2. Formatting fixes.
4341 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
4342 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
4343 first constants in each quadruple are multiples of 4. Formatting fixes.
4345 2019-01-26 Martin Jambor <mjambor@suse.cz>
4348 * tree-inline.c: Include tree-cfgcleanup.h.
4349 (delete_unreachable_blocks_update_callgraph): Move...
4350 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
4351 ...here, make externally visible, make second argument bool, adjust
4353 * tree-cfgcleanup.c: Include cgraph.h.
4354 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
4356 * ipa-prop.c: Include tree-cfgcleanup.h.
4357 (ipcp_transform_function): Call
4358 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
4360 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
4362 PR rtl-optimization/88846
4363 * ira.c (process_set_for_memref_referenced_p): New.
4364 (memref_referenced_p): Add new param. Use
4365 process_set_for_memref_referenced_p. Add new switch cases.
4366 (memref_used_between_p): Pass new arg to memref_referenced_p.
4368 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
4371 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
4372 argument ABI_BREAK. Set to true if the calculated alignment has
4373 changed in gcc-9. Check bit-fields for their base type alignment.
4374 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
4375 (aarch64_function_arg_boundary): Likewise.
4376 (aarch64_gimplify_va_arg_expr): Likewise.
4378 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
4381 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
4382 instead of accessing TREE_INT_CST_ELT directly.
4384 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
4386 * doc/sourcebuild.texi (Environment attributes): Add fenv and
4387 fenv_exceptions description.
4389 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
4391 PR rtl-optimization/87763
4392 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
4393 Allow SUBREG when matching CC_NZmode compare.
4395 2019-01-25 Richard Biener <rguenther@suse.de>
4397 PR tree-optimization/89049
4398 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4399 Look at the pattern stmt to determine if the stmt is vectorized.
4401 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
4403 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
4404 (pred_mov<mode>): Handle all-register forms using both a new
4405 alternative and a split.
4407 2019-01-25 Richard Biener <rguenther@suse.de>
4409 PR tree-optimization/86865
4410 * graphite-scop-detection.c (scop_detection::can_represent_loop):
4411 Reject non-do-while loops.
4413 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
4415 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
4416 * config/rs6000/constraints.md (Q constraint): Use REG_P.
4417 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
4418 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
4419 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
4420 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4421 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
4422 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
4423 vlogical_operand, gpc_reg_operand, int_reg_operand,
4424 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
4425 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
4426 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
4427 (save_world_operation, restore_world_operation, lmw_operation,
4428 stmw_operation): Use MEM_P and REG_P.
4429 (tie_operand): Use MEM_P.
4430 (vrsave_operation, crsave_operation): Use REG_P.
4431 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
4432 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
4433 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
4434 (call_operand): Use HARD_REGISTER_P.
4435 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
4437 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
4438 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
4439 quad_aligned_load_p, replace_swapped_aligned_store,
4440 recombine_lvx_pattern, replace_swapped_aligned_load,
4441 recombine_stvx_pattern): Use MEM_P.
4442 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
4443 Use MEM_P and SYMBOL_REF_P.
4444 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
4445 (insn_is_swappable_p): Use REG_P and MEM_P.
4446 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
4447 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
4449 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
4451 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
4453 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
4454 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
4455 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
4456 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
4458 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
4459 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
4460 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
4461 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
4462 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
4463 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
4464 rs6000_split_logical_di): Use CONST_INT_P.
4465 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
4466 REG_P and SYMBOL_REF_P.
4467 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
4468 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
4469 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
4470 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
4471 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
4472 (small_data_operand, print_operand_address): Use CONST_INT_P and
4474 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
4475 (rs6000_init_hard_regno_mode_ok, direct_move_p):
4476 Use HARD_REGISTER_NUM_P.
4477 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
4478 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
4479 SUBREG_P and SYMBOL_REF_P.
4480 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
4481 and HARD_REGISTER_NUM_P.
4482 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
4484 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
4485 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
4487 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
4488 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
4489 find_addr_reg): Use REG_P.
4490 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
4491 (rs6000_emit_le_vsx_move): Use SUBREG_P.
4492 (offsettable_ok_by_alignment, constant_pool_expr_p,
4493 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
4494 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
4495 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
4496 rs6000_assemble_integer, create_TOC_reference,
4497 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
4498 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
4499 (rs6000_split_vec_extract_var): Use reg_or_subregno.
4500 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
4501 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
4502 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4503 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4504 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
4505 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
4506 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
4507 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
4508 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
4509 and cbranch<mode>4): Use CONST_INT_P.
4510 (multiple define_splits): Use REG_P and SUBREG_P.
4511 (define_expands call, call_value): Use MEM_P.
4512 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
4513 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
4514 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
4515 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
4516 and HARD_REGISTER_NUM_P.
4517 (multiple define_splits): Use HARD_REGISTER_NUM_P.
4519 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
4521 PR rtl-optimization/88948
4522 * rtl.h (prepare_copy_insn): New prototype.
4523 * gcse.c (prepare_copy_insn): New function, split out from
4524 process_insert_insn.
4525 (process_insert_insn): Use prepare_copy_insn.
4526 * store-motion.c (replace_store_insn): Use prepare_copy_insn
4527 instead of gen_move_insn.
4529 2019-01-24 Jakub Jelinek <jakub@redhat.com>
4532 * config/i386/i386.c (ix86_pic_register_p): Return true for
4535 PR tree-optimization/88964
4536 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
4537 punt if HONOR_SNANS (chrec).
4540 * tree-nested.c (convert_nonlocal_reference_stmt,
4541 convert_local_reference_stmt, convert_tramp_reference_stmt,
4542 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
4543 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
4546 PR tree-optimization/89027
4547 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
4548 for "omp simd array" variables.
4550 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
4553 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
4554 force the alignment of m_val.
4556 2019-01-24 Richard Biener <rguenther@suse.de>
4559 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
4560 When in "legacy" debug mode make sure to reset self-origins.
4562 2019-01-24 Martin Liska <mliska@suse.cz>
4564 PR gcov-profile/88994
4565 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
4566 result will be always smaller or equal to the original.
4567 * gcov.c (mangle_name): Fix else branch where we should
4568 also copy to PTR and shift the pointer.
4570 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
4572 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
4573 * vr-values.c (find_case_label_ranges): Fix a comment typo.
4575 2019-01-23 Bin Cheng <bin.cheng@arm.com>
4576 Steve Ellcey <sellcey@marvell.com>
4579 * recog.c (address_operand): Return false on wrong mode for address.
4580 (constrain_operands): Check for mode with 'p' constraint.
4582 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
4585 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
4586 Disparage MMX alternative.
4587 (sse2_cvtpd2pi): Ditto.
4588 (sse2_cvttpd2pi): Ditto.
4590 2019-01-23 David Malcolm <dmalcolm@redhat.com>
4593 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
4594 use-after-free of the result of
4595 aarch64_get_extension_string_for_isa_flags.
4597 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4600 * doc/extend.texi: Document break and continue behavior in
4601 statement expressions.
4603 2019-01-23 Richard Biener <rguenther@suse.de>
4605 PR tree-optimization/89008
4606 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
4607 not leave another stray operand.
4609 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4611 * BASE-VER: Bump to 9.0.1.
4613 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
4615 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
4616 thunk that returns by reference, use the type of the return object
4617 of the thunk instead of that of the alias to build the dereference.
4619 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
4621 * config/arc/atomic.md: Add operand to DMB instruction.
4623 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4625 PR tree-optimization/88964
4626 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
4627 build_zero_cst instead of build_int_cst. Return false for loop
4628 invariants which honor signed zeros.
4630 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
4632 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
4634 2019-01-22 Jakub Jelinek <jakub@redhat.com>
4637 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
4638 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
4639 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
4642 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
4643 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
4646 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
4647 Disable for little endian.
4649 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
4652 * config/arm/arm.c (arm_needs_double_word_align): Check
4653 DECL_BIT_FIELD_TYPE.
4655 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
4656 H.J. Lu <hongjiu.lu@intel.com>
4659 * config/i386/i386-builtin.def: Add mask2 to all builtin
4660 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
4662 * config/i386/i386.c (BDESC): Add mask2 to the definition.
4663 (BDESC_FIRST): Likewise.
4664 (define_builtin): Add an argument for mask2. Updated to handle
4665 both ix86_isa_flags and ix86_isa_flags2.
4666 (define_builtin_const): Likewise.
4667 (define_builtin_pure): Likewise.
4668 (define_builtin2): Deleted.
4669 (define_builtin_const2): Likewise.
4670 (builtin_description): Add a member, mask2.
4671 (bdesc_*): Add mask2 to builtin initializations.
4672 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
4673 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
4675 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
4677 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
4680 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
4683 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
4686 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
4687 alignment is dominated by a bitfield with 64-bit aligned base type.
4688 (arm_function_arg): Emit a warning if the alignment has changed since
4689 earlier GCC releases.
4690 (arm_function_arg_boundary): Likewise.
4691 (arm_setup_incoming_varargs): Likewise.
4693 2019-01-22 Richard Biener <rguenther@suse.de>
4695 PR tree-optimization/88862
4696 * graphite-scop-detection.c
4697 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
4699 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
4701 * doc/extend.tex (AMD GCN Function Attributes): New section.
4702 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
4703 * doc/invoke.texi (AMD GCN Options): New section.
4704 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
4706 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
4708 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
4709 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
4711 2019-01-22 Jakub Jelinek <jakub@redhat.com>
4713 PR tree-optimization/88044
4714 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
4715 is false in the first iteration, but !every_iteration, return false
4716 instead of true with niter->niter zero.
4718 PR rtl-optimization/88904
4719 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
4720 any nonequal registers before processing BB_END (b).
4723 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
4725 (expand_binop_directly, expand_doubleword_clz,
4726 expand_doubleword_popcount, expand_ctz, expand_ffs,
4727 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
4729 PR rtl-optimization/49429
4731 PR rtl-optimization/86334
4733 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
4734 addressable from here...
4735 (emit_block_op_via_libcall): ... to here.
4737 2019-01-22 Richard Biener <rguenther@suse.de>
4739 * tree-vect-loop.c (vect_analyze_loop_operations): Use
4740 auto_vec for cost vector to fix memleak.
4741 (vectorize_fold_left_reduction): Properly gather SLP defs.
4742 (vectorizable_comparison): Do not swap operands to properly
4745 2019-01-22 Alan Modra <amodra@gmail.com>
4748 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
4749 stays a reg. Allow a const_int.
4750 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
4751 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
4752 (IS_NOMARK_TLSGETADDR): Define.
4753 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
4754 (rs6000_output_tlsargs): New function.
4755 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
4756 __tls_get_addr call takes an arg.
4757 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
4758 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
4760 (call_value_nonlocal_sysv): ..or here, delete split.
4761 (tls_gdld_nomark): Delete.
4762 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
4763 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
4764 (call_value_nonlocal_sysv): Likewise.
4765 (call_value_nonlocal_sysv_secure): Likewise.
4766 (call_value_nonlocal_aix): Likewise.
4767 (call_value_indirect_aix): Likewise.
4768 (call_value_indirect_elfv2): Likewise.
4769 (call_value_local32, call_value_local64): Disable for no-mark tls.
4770 (call_value_local_aix): Likewise.
4772 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
4775 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
4776 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
4778 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
4780 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
4781 string contents as hash_map keys.
4783 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4786 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
4787 for rvalue context. Handle rvalues correctly. Use min_align_of_type
4788 instead of TYPE_ALIGN.
4789 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
4790 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
4791 pointer from TYPE_STUB_DECL.
4793 2019-01-21 Richard Biener <rguenther@suse.de>
4795 PR tree-optimization/88934
4796 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
4797 at the possibly non-constant operand.
4798 (vect_get_constant_vectors): Adjust.
4800 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4803 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
4804 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
4805 instead of _X86INTRIN_H_INCLUDED.
4806 * onfig/i386/clwbintrin.h: Likewise.
4807 * config/i386/pkuintrin.h: Likewise.
4808 * config/i386/prfchwintrin.h: Likewise.
4809 * config/i386/rdseedintrin.h: Likewise.
4810 * config/i386/wbnoinvdintrin.h: Likewise.
4811 * config/i386/xsavecintrin.h: Likewise.
4812 * config/i386/xsavesintrin.h: Likewise.
4813 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
4814 * config/i386/xsaveintrin.h: Likewise.
4815 * config/i386/xsaveoptintrin.h: Likewise.
4816 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
4817 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
4818 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
4819 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
4820 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
4821 * config/i386/immintrin.h: Here.
4823 2019-01-20 Martin Jambor <mjambor@suse.cz>
4826 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
4827 with aa_walk_budget.
4828 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
4829 aa_walk_budget_p parameter.
4830 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
4831 walk. Updated all callers.
4832 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
4833 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
4835 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
4836 parameter info. Extract info from fbi. Pass fbi to recursive calls
4837 and to unmodified_parm.
4838 (phi_result_unknown_predicate): New parameter fbi, removed parameter
4839 info, updated call to will_be_nonconstant_expr_predicate.
4840 (param_change_prob): New parameter fbi, limit AA walking.
4841 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
4842 calls to various above functions.
4843 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
4844 parameter. Use it to limit AA walking.
4845 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
4847 (detect_type_change): New parameter fbi, pass it on to
4848 detect_type_change_from_memory_writes.
4849 (detect_type_change_ssa): Likewise.
4850 (aa_overwalked): Removed.
4851 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
4852 accordingly, adjust to the neew AA limiting scheme.
4853 (parm_ref_data_preserved_p): Likewise.
4854 (ipa_compute_jump_functions_for_edge): Adjust call to
4856 (ipa_analyze_call_uses): Likewise.
4857 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
4858 (ipa_analyze_node): Initialize aa_walk_budget.
4859 (ipcp_transform_function): Likewise.
4860 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
4861 to get_dynamic_type.
4863 2019-01-19 Jakub Jelinek <jakub@redhat.com>
4865 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
4866 outside of #if CHECKING_P code.
4868 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
4870 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
4871 New function, split out from...
4872 (loop_versioning::analyze_stride): ...here.
4873 (loop_versioning::find_per_loop_multiplication): Use gassign.
4874 (loop_versioning::analyze_term_using_scevs): Return a success code.
4875 (loop_versioning::analyze_arbitrary_term): New function.
4876 (loop_versioning::analyze_address_fragment): Use
4877 analyze_arbitrary_term if all else fails.
4879 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
4882 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
4885 2019-01-18 Richard Biener <rguenther@suse.de>
4887 PR tree-optimization/88903
4888 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
4889 scalar stmts a SLP shift amount is composed of when detecting
4892 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
4895 * config/arm/arm-cpus.in (mp): New feature.
4897 (fgroup ARMv7ve): Add mp and sec features.
4898 (arch armv7-a): Add options to allow mp and sec extensions.
4899 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
4900 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
4901 extenstions to the base architecture.
4902 (cpu cortex-a8): Add sec extension to the base architecture.
4903 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
4904 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
4905 variants down to the base v7-a varaint.
4906 * config/arm/t-multilib (v7_a_arch_variants): New variable.
4907 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
4908 of permitted extensions for -march=armv7-a and for
4909 -mcpu=generic-armv7-a.
4911 2019-01-18 Martin Liska <mliska@suse.cz>
4913 * params.def: Fix comment.
4914 * tree-profile.c (gimple_init_gcov_profiler): Bump function
4916 (gimple_gen_ic_func_profiler): Likewise.
4918 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4920 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
4921 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
4922 and put in error checks for stack protector guard options.
4923 (aarch64_stack_protect_guard): New.
4924 (TARGET_STACK_PROTECT_GUARD): Define.
4925 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
4926 (reg_stack_protect_address<mode>): New.
4927 (stack_protect_set): Adjust for SSP_GLOBAL.
4928 (stack_protect_test): Likewise.
4929 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
4930 (-mstack-protector-guard): Likewise.
4931 (-mstack-protector-guard-offset): Likewise.
4933 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4935 PR tree-optimization/86214
4936 * tree-inline.h (struct copy_body_data): Add
4937 add_clobbers_to_eh_landing_pads member.
4938 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
4939 (copy_edges_for_bb): Call it if EH edge destination is <
4940 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
4941 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
4942 if flag_stack_reuse != SR_NONE and clear it afterwards.
4944 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
4947 * doc/install.texi (with-multilib-list): Document for aarch64.
4949 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4952 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
4953 (("..."))) with ("...").
4955 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
4957 * doc/extend.texi (Built-in Functions for Memory Model Aware
4958 Atomic Operations): Document atomic fetch and nand.
4960 2019-01-18 Martin Liska <mliska@suse.cz>
4961 Richard Biener <rguenther@suse.de>
4964 * cgraph.h (create_version_clone_with_body): Add new argument
4966 * cgraphclones.c (cgraph_node::create_version_clone): Add
4967 DECL_ATTRIBUTES to a newly created decl. And call
4968 valid_attribute_p so that proper cl_target_optimization_node
4969 is set for the newly created declaration.
4970 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
4972 (expand_target_clones): Do not call valid_attribute_p, it must
4974 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
4977 2019-01-17 Jakub Jelinek <jakub@redhat.com>
4980 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
4981 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
4982 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
4984 2019-01-17 Martin Sebor <msebor@redhat.com>
4987 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
4988 Handle anti-ranges the same as no range at all.
4990 2018-01-17 Steve Ellcey <sellcey@cavium.com>
4992 * config/aarch64/aarch64.c (cgraph.h): New include.
4993 (intl.h): New include.
4994 (supported_simd_type): New function.
4995 (currently_supported_simd_type): Ditto.
4996 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
4997 (aarch64_simd_clone_adjust): Ditto.
4998 (aarch64_simd_clone_usable): Ditto.
4999 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
5000 (TARGET_SIMD_CLONE_ADJUST): Ditto.
5001 (TARGET_SIMD_CLONE_USABLE): Ditto.
5002 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
5003 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
5006 2019-01-17 Martin Sebor <msebor@redhat.com>
5008 PR tree-optimization/88800
5009 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
5010 NO_WARNING bit here. Avoid folding out-of-bounds calls.
5011 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
5012 redundant argument. Add new argument and issue diagnostics under
5013 its control. Detect out-of-bounds access even with warnings
5015 (check_bounds_or_overlap): Change return type. Add argument.
5016 (wrestrict_dom_walker::check_call): Adjust.
5017 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
5018 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
5019 check_bounds_or_overlap's return value.
5020 (handle_builtin_stxncpy): Same.
5021 (handle_builtin_strcat): Same.
5023 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
5024 Kwok Cheung Yeung <kcy@codesourcery.com>
5025 Julian Brown <julian@codesourcery.com>
5026 Tom de Vries <tom@codesourcery.com>
5028 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
5030 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
5032 * doc/sourcebuild.texi: Document dg-require-effective-target
5033 llvm_binutils and offload_gcn.
5035 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
5036 Kwok Cheung Yeung <kcy@codesourcery.com>
5037 Julian Brown <julian@codesourcery.com>
5038 Tom de Vries <tom@codesourcery.com>
5040 * doc/sourcebuild.texi: Document dg-required-effective-target
5043 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
5044 Kwok Cheung Yeung <kcy@codesourcery.com>
5045 Julian Brown <julian@codesourcery.com>
5046 Tom de Vries <tom@codesourcery.com>
5047 Jan Hubicka <hubicka@ucw.cz>
5048 Martin Jambor <mjambor@suse.cz>
5050 * config.gcc: Add amdgcn*-*-amdhsa configuration.
5051 * configure.ac: Check for dlopen.
5052 * configure: Regenerate.
5054 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
5055 Kwok Cheung Yeung <kcy@codesourcery.com>
5056 Julian Brown <julian@codesourcery.com>
5057 Tom de Vries <tom@codesourcery.com>
5058 Jan Hubicka <hubicka@ucw.cz>
5059 Martin Jambor <mjambor@suse.cz>
5061 * common/config/gcn/gcn-common.c: New file.
5062 * config/gcn/driver-gcn.c: New file.
5063 * config/gcn/gcn-builtins.def: New file.
5064 * config/gcn/gcn-hsa.h: New file.
5065 * config/gcn/gcn-modes.def: New file.
5066 * config/gcn/gcn-opts.h: New file.
5067 * config/gcn/gcn-passes.def: New file.
5068 * config/gcn/gcn-protos.h: New file.
5069 * config/gcn/gcn-run.c: New file.
5070 * config/gcn/gcn-tree.c: New file.
5071 * config/gcn/gcn.c: New file.
5072 * config/gcn/gcn.h: New file.
5073 * config/gcn/gcn.opt: New file.
5074 * config/gcn/t-gcn-hsa: New file.
5076 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
5077 Kwok Cheung Yeung <kcy@codesourcery.com>
5078 Julian Brown <julian@codesourcery.com>
5079 Tom de Vries <tom@codesourcery.com>
5080 Jan Hubicka <hubicka@ucw.cz>
5081 Martin Jambor <mjambor@suse.cz>
5083 * config/gcn/constraints.md: New file.
5084 * config/gcn/gcn-valu.md: New file.
5085 * config/gcn/gcn.md: New file.
5086 * config/gcn/predicates.md: New file.
5088 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
5090 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
5091 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
5092 (stmt_uses_0_or_null_in_undefined_way): Likewise.
5093 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
5095 2019-01-17 Tamar Christina <tamar.christina@arm.com>
5098 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
5099 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
5100 it and document registers.
5102 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5104 * config/aarch64/aarch64.c (ares_tunings): Define.
5105 * config/aarch64/aarch64-cores.def (ares): Use the above.
5107 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
5111 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
5113 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
5114 (_mm512_fixupimm_round_pd): Update parameters and builtin.
5115 (_mm512_maskz_fixupimm_round_pd): Ditto.
5116 (_mm512_fixupimm_round_ps): Ditto.
5117 (_mm512_maskz_fixupimm_round_ps): Ditto.
5118 (_mm_fixupimm_round_sd): Ditto.
5119 (_mm_maskz_fixupimm_round_sd): Ditto.
5120 (_mm_fixupimm_round_ss): Ditto.
5121 (_mm_maskz_fixupimm_round_ss): Ditto.
5122 (_mm512_fixupimm_pd): Ditto.
5123 (_mm512_maskz_fixupimm_pd): Ditto.
5124 (_mm512_fixupimm_ps): Ditto.
5125 (_mm512_maskz_fixupimm_ps): Ditto.
5126 (_mm_fixupimm_sd): Ditto.
5127 (_mm_maskz_fixupimm_sd): Ditto.
5128 (_mm_fixupimm_ss): Ditto.
5129 (_mm_maskz_fixupimm_ss): Ditto.
5130 (_mm512_mask_fixupimm_round_pd): Update builtin.
5131 (_mm512_mask_fixupimm_round_ps): Ditto.
5132 (_mm_mask_fixupimm_round_sd): Ditto.
5133 (_mm_mask_fixupimm_round_ss): Ditto.
5134 (_mm512_mask_fixupimm_pd): Ditto.
5135 (_mm512_mask_fixupimm_ps): Ditto.
5136 (_mm_mask_fixupimm_sd): Ditto.
5137 (_mm_mask_fixupimm_ss): Ditto.
5138 * config/i386/avx512vlintrin.h:
5139 (_mm256_fixupimm_pd): Update parameters and builtin.
5140 (_mm256_maskz_fixupimm_pd): Ditto.
5141 (_mm256_fixupimm_ps): Ditto.
5142 (_mm256_maskz_fixupimm_ps): Ditto.
5143 (_mm_fixupimm_pd): Ditto.
5144 (_mm_maskz_fixupimm_pd): Ditto.
5145 (_mm_fixupimm_ps): Ditto.
5146 (_mm_maskz_fixupimm_ps): Ditto.
5147 (_mm256_mask_fixupimm_pd): Update builtin.
5148 (_mm256_mask_fixupimm_ps): Ditto.
5149 (_mm_mask_fixupimm_pd): Ditto.
5150 (_mm_mask_fixupimm_ps): Ditto.
5151 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
5152 * config/i386/i386-builtin.def: Update builtin definitions.
5153 * config/i386/i386.c: Handle new builtin types and remove useless ones.
5154 * config/i386/sse.md: Update VFIXUPIMM* patterns.
5155 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
5156 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
5157 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
5158 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
5159 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
5160 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
5161 * config/i386/subst.md:
5162 (round_saeonly_sd_mask_operand4): Add new subst_attr.
5163 (round_saeonly_sd_mask_op4): Ditto.
5164 (round_saeonly_expand_operand5): Ditto.
5165 (round_saeonly_expand): Update.
5167 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
5171 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
5173 * config/i386/sse.md: Combine VFIXUPIMM* patterns
5174 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
5175 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
5176 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
5177 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
5178 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
5179 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
5181 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
5185 2018-12-15 Jakub Jelinek <jakub@redhat.com>
5188 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
5189 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
5190 instead of UNSPEC_FIXUPIMM.
5192 2019-01-17 Richard Biener <rguenther@suse.de>
5195 * dwarf2out.c (want_pubnames): Never generate pubnames sections
5196 and friends for the LTO part of debug info.
5198 2019-01-17 Jakub Jelinek <jakub@redhat.com>
5200 PR tree-optimization/86214
5201 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
5204 PR rtl-optimization/88870
5205 * dce.c (deletable_insn_p): Never delete const/pure calls that can
5206 throw if we can't alter the cfg or delete dead exceptions.
5207 (mark_insn): Don't call find_call_stack_args for such calls.
5209 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
5211 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
5212 prototypes for vec_st.
5213 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
5214 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
5215 mainly on signed/unsigned long long and double.
5217 2019-01-16 David Malcolm <dmalcolm@redhat.com>
5220 * combine.c (delete_noop_moves): Convert to "bool" return,
5221 returning true if any edges are eliminated.
5222 (combine_instructions): Also return true if delete_noop_moves
5225 2019-01-16 Tamar Christina <tamar.christina@arm.com>
5227 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
5228 correct max nunits for endian swap.
5229 (aarch64_expand_fcmla_builtin): Correct subreg code.
5230 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
5231 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
5234 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
5236 * config/alpha/alpha.c (alpha_gimplify_va_arg):
5237 Handle split indirect COMPLEX_TYPE arguments.
5239 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
5242 * config/aarch64/aarch64-modes.def: Add comment about how the carry
5243 bit is set by add and compare.
5244 (CC_ADC): New CC_MODE.
5245 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
5246 to cache the code and mode of X. Adjust the shape of a CC_Cmode
5247 comparison. Add detection for CC_ADCmode.
5248 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
5250 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
5251 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
5252 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
5253 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
5254 to eliminate the need for zero-extending the operands.
5255 (add<mode>3_compareC_imm): Delete. Merge into ...
5256 (add<mode>3_compareC): ... this. Restructure the comparison to
5257 eliminate the need for zero-extending the operands.
5258 (add<mode>3_carryin): Use LTU for the overflow detection.
5259 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
5260 Reexpress comparison for overflow.
5261 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
5262 (add<mode>3_carryinC): Likewise.
5263 (add<mode>3_carryinV): Use LTU for carry between partials.
5264 * config/aarch64/predicates.md (aarch64_carry_operation): Update
5265 handling of CC_Cmode and add CC_ADCmode.
5266 (aarch64_borrow_operation): Likewise.
5268 2019-01-16 Tamar Christina <tamar.christina@arm.com>
5270 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
5271 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
5272 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
5273 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
5275 2019-01-16 Martin Liska <mliska@suse.cz>
5277 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
5279 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
5281 * gcc.c (add_sysrooted_hdrs_prefix): New function.
5282 (path_prefix_reset): Move up in the source file.
5283 (find_fortran_preinclude_file): Make complex search for the
5284 fortran header files.
5286 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
5288 * godump.c (go_output_typedef): When outputting a typedef, refer
5289 to the underlying type by its name and not its structure.
5291 2019-01-15 David Malcolm <dmalcolm@redhat.com>
5294 * tree.c (build_function_type): Assert that arg_types is not
5297 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
5300 * doc/extend.texi: Document that listing the stack pointer in the
5301 clobber list of an asm is a deprecated feature.
5302 * common.opt (Wdeprecated): Moved from c-family/c.opt.
5303 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
5304 warning instead of an error for clobbers of the stack pointer.
5305 Add a note explaining why.
5307 2019-01-15 Richard Biener <rguenther@suse.de>
5310 * dwarf2out.c (gen_member_die): Do not generate inheritance
5313 2019-01-15 Richard Biener <rguenther@suse.de>
5315 PR tree-optimization/88855
5316 * tree-if-conv.c (combine_blocks): Collect
5317 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
5319 2019-01-15 Tom de Vries <tdevries@suse.de>
5322 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
5323 lhs == NULL_TREE for gang-level reduction.
5325 2019-01-15 Richard Biener <rguenther@suse.de>
5326 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5329 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
5330 return true if SSA_NAME is already marked in visited bitmap.
5331 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
5333 2019-01-15 Jakub Jelinek <jakub@redhat.com>
5335 PR tree-optimization/88775
5336 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
5337 equal == 0 equality pointer comparisons some more if compared in
5338 integral types and either one points to an automatic var and the
5339 other to a global, or we can prove at least one points to the middle
5340 or both point to start or both point to end.
5342 2019-01-14 Andi Kleen <ak@linux.intel.com>
5344 * Makefile.in: Lower autofdo sampling rate by 10x.
5345 * Makefile.tpl: Dito.
5347 2019-01-14 Tom Honermann <tom@honermann.net>
5349 * defaults.h: Define CHAR8_TYPE.
5351 2019-01-14 Martin Sebor <msebor@redhat.com>
5354 * doc/extend.texi (Darwin Format Checks): Clarify.
5356 2019-01-14 Richard Biener <rguenther@suse.de>
5358 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
5359 whether we are in (simplify ...) or (match ...) context.
5361 2019-01-14 Jakub Jelinek <jakub@redhat.com>
5363 PR rtl-optimization/88796
5364 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
5365 * cfgexpand.c (stack_protect_prologue): Initialize
5366 crtl->stack_protect_guard_decl.
5367 * function.c (stack_protect_epilogue): Use it instead of calling
5368 targetm.stack_protect_guard again.
5369 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
5370 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
5371 crtl->stack_protect_guard_decl.
5372 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
5373 on the returned MEM_EXPR.
5375 2019-01-12 Tom de Vries <tdevries@suse.de>
5377 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
5378 vector length using -fopenacc-dim.
5380 2019-01-12 Tom de Vries <tdevries@suse.de>
5382 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
5383 lengths into account.
5385 2019-01-12 Svante Signell <svante.signell@gmail.com>
5387 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
5388 (TARGET_CAN_SPLIT_STACK): Define.
5389 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5391 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5393 * params.def (inline-unit-growth): Set to 40.
5395 2019-01-12 Jakub Jelinek <jakub@redhat.com>
5397 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
5399 2019-01-12 Tom de Vries <tdevries@suse.de>
5401 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
5402 region calling vector-partitionable routine, set default_vector_length
5405 2019-01-12 Tom de Vries <tdevries@suse.de>
5407 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
5408 variable default_vector_length.
5410 2019-01-12 Tom de Vries <tdevries@suse.de>
5413 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
5414 from oacc_default_dims, as oacc_validate_dims would do it, and apply
5417 2019-01-12 Tom de Vries <tdevries@suse.de>
5419 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
5420 (nvptx_goacc_validate_dims): Add used parameter.
5421 * doc/tm.texi: Regenerate.
5422 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
5423 argument to call to targetm.goacc.validate_dims.
5424 (default_goacc_validate_dims): Add used
5426 * target.def (validate_dims): Add used parameter in DEFHOOK.
5427 * targhooks.h (default_goacc_validate_dims): Add used parameter.
5429 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5433 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
5435 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
5436 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
5437 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
5438 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
5440 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
5442 PR rtl-optimization/87305
5444 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
5445 for little endian pseudos used as paradoxical subreg.
5447 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5449 PR tree-optimization/88693
5450 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
5451 for STRING_CSTs that don't contain any NUL characters in the first
5452 TREE_STRING_LENGTH bytes.
5454 2019-01-11 Alan Modra <amodra@gmail.com>
5458 * genattrtab.c (min_fn): Don't translate values.
5459 (min_attr_value): Return INT_MAX when the value can't be calculated.
5460 Return minimum among any values that can be calculated.
5461 (max_attr_value): Adjust.
5463 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5465 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
5467 2019-01-11 Steve Ellcey <sellcey@marvell.com>
5469 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
5470 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
5471 (aarch64_return_call_with_max_clobbers): New function.
5472 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
5473 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
5475 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
5476 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
5477 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
5478 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
5479 * cselib.c (cselib_process_insn): Add argument to
5480 targetm.hard_regno_call_part_clobbered call.
5481 * ira-conflicts.c (ira_build_conflicts): Ditto.
5482 * ira-costs.c (ira_tune_allocno_costs): Ditto.
5483 * lra-constraints.c (inherit_reload_reg): Ditto.
5484 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
5485 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
5486 argument. Call targetm.return_call_with_max_clobbers.
5487 Add argument to targetm.hard_regno_call_part_clobbered call.
5488 (calls_have_same_clobbers_p): New function.
5489 (process_bb_lives): Add call_insn and last_call_insn variables.
5490 Pass call_insn to check_pseudos_live_through_calls.
5491 Modify if stmt to check targetm.return_call_with_max_clobbers.
5492 Update setting of flush variable.
5493 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
5495 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
5496 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
5497 targetm.hard_regno_call_part_clobbered call.
5498 * reginfo.c (choose_hard_reg_mode): Ditto.
5499 * regrename.c (check_new_reg_p): Ditto.
5500 * reload.c (find_equiv_reg): Ditto.
5501 * reload1.c (emit_reload_insns): Ditto.
5502 * sched-deps.c (deps_analyze_insn): Ditto.
5503 * sel-sched.c (init_regs_for_mode): Ditto.
5504 (mark_unavailable_hard_regs): Ditto.
5505 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
5506 * target.def (hard_regno_call_part_clobbered): Add insn argument.
5507 (return_call_with_max_clobbers): New target function.
5508 * doc/tm.texi: Regenerate.
5509 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
5510 * hooks.c (hook_bool_uint_mode_false): Change to
5511 hook_bool_insn_uint_mode_false.
5512 * hooks.h (hook_bool_uint_mode_false): Ditto.
5514 2019-01-11 Steve Ellcey <sellcey@marvell.com>
5516 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
5517 (aarch64_remove_extra_call_preserved_regs): New function.
5518 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
5519 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
5520 * doc/tm.texi: Regenerate.
5521 * final.c (get_call_reg_set_usage): Call new hook.
5522 * target.def (remove_extra_call_preserved_regs): New hook.
5523 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
5524 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
5526 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5529 * passes.c (finish_optimization_passes): Call print_combine_total_stats
5530 inside of pass_combine_1 dump rather than pass_profile_1.
5532 2019-01-11 Tom de Vries <tdevries@suse.de>
5534 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
5535 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
5536 (PTX_NUM_PER_WORKER_BARRIERS): Define.
5537 (nvptx_apply_dim_limits): Prevent vector_length 64 and
5540 2019-01-11 Tom de Vries <tdevries@suse.de>
5542 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
5544 2019-01-11 Jan Beulich <jbeulich@suse.com>
5546 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
5547 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
5548 sse2_cvtsi2sd): Add {l}.
5549 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
5552 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5555 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
5557 (*float<floatunssuffix>v2div2sf2): New define_insn.
5558 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
5559 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
5560 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
5561 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
5562 match_operands with "const0_operand" "C".
5564 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5566 * config/aarch64/aarch64-builtins.c
5567 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
5568 (aarch64_init_simd_builtins): ...Here
5570 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
5572 PR rtl-optimization/87305
5574 (setup_live_pseudos_and_spill_after_risky_transforms): Check
5575 allocation for big endian pseudos used as paradoxical subregs and
5576 spill them if it is wrong.
5577 * lra-constraints.c (lra_constraints): Add a comment.
5579 2019-01-10 Richard Biener <rguenther@suse.de>
5581 PR tree-optimization/88792
5582 * tree-ssa-pre.c (get_representative_for): Do not return a
5585 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5589 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
5590 (assign_parm_setup_block): Do the argument slot realignment here
5593 2019-01-10 Stefan Agner <stefan@agner.ch>
5596 * config/arm/arm.c (arm_option_override_internal): Force
5597 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
5599 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5602 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
5605 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5607 * config/arm/arm-builtins.c
5608 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
5609 (MAC_LANE_PAIR_QUALIFIERS): New.
5610 (arm_expand_builtin_args): Use it.
5611 (arm_expand_builtin_1): Likewise.
5612 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
5613 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
5614 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
5615 * config/arm/arm_neon.h:
5616 (vcadd_rot90_f16): New.
5617 (vcaddq_rot90_f16): New.
5618 (vcadd_rot270_f16): New.
5619 (vcaddq_rot270_f16): New.
5622 (vcmla_lane_f16): New.
5623 (vcmla_laneq_f16): New.
5624 (vcmlaq_lane_f16): New.
5625 (vcmlaq_laneq_f16): New.
5626 (vcmla_rot90_f16): New.
5627 (vcmlaq_rot90_f16): New.
5628 (vcmla_rot90_lane_f16): New.
5629 (vcmla_rot90_laneq_f16): New.
5630 (vcmlaq_rot90_lane_f16): New.
5631 (vcmlaq_rot90_laneq_f16): New.
5632 (vcmla_rot180_f16): New.
5633 (vcmlaq_rot180_f16): New.
5634 (vcmla_rot180_lane_f16): New.
5635 (vcmla_rot180_laneq_f16): New.
5636 (vcmlaq_rot180_lane_f16): New.
5637 (vcmlaq_rot180_laneq_f16): New.
5638 (vcmla_rot270_f16): New.
5639 (vcmlaq_rot270_f16): New.
5640 (vcmla_rot270_lane_f16): New.
5641 (vcmla_rot270_laneq_f16): New.
5642 (vcmlaq_rot270_lane_f16): New.
5643 (vcmlaq_rot270_laneq_f16): New.
5644 (vcadd_rot90_f32): New.
5645 (vcaddq_rot90_f32): New.
5646 (vcadd_rot270_f32): New.
5647 (vcaddq_rot270_f32): New.
5650 (vcmla_lane_f32): New.
5651 (vcmla_laneq_f32): New.
5652 (vcmlaq_lane_f32): New.
5653 (vcmlaq_laneq_f32): New.
5654 (vcmla_rot90_f32): New.
5655 (vcmlaq_rot90_f32): New.
5656 (vcmla_rot90_lane_f32): New.
5657 (vcmla_rot90_laneq_f32): New.
5658 (vcmlaq_rot90_lane_f32): New.
5659 (vcmlaq_rot90_laneq_f32): New.
5660 (vcmla_rot180_f32): New.
5661 (vcmlaq_rot180_f32): New.
5662 (vcmla_rot180_lane_f32): New.
5663 (vcmla_rot180_laneq_f32): New.
5664 (vcmlaq_rot180_lane_f32): New.
5665 (vcmlaq_rot180_laneq_f32): New.
5666 (vcmla_rot270_f32): New.
5667 (vcmlaq_rot270_f32): New.
5668 (vcmla_rot270_lane_f32): New.
5669 (vcmla_rot270_laneq_f32): New.
5670 (vcmlaq_rot270_lane_f32): New.
5671 (vcmlaq_rot270_laneq_f32): New.
5672 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
5673 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
5674 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
5675 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
5676 vcmlaq_lane270): New.
5677 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
5678 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
5679 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
5680 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
5681 (arm_option_reconfigure_globals): Use them.
5682 * config/arm/iterators.md (VDF, VQ_HSF): New.
5683 (VCADD, VCMLA): New.
5684 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
5685 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
5687 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
5688 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
5690 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5692 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
5693 Add qualifier_lane_pair_index.
5694 (emit-rtl.h): Include.
5695 (TYPES_QUADOP_LANE_PAIR): New.
5696 (aarch64_simd_expand_args): Use it.
5697 (aarch64_simd_expand_builtin): Likewise.
5698 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
5700 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
5701 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
5702 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
5703 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
5704 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
5705 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
5706 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
5707 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
5708 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
5709 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
5710 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
5711 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
5712 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
5713 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
5714 Add __ARM_FEATURE_COMPLEX.
5715 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
5716 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
5717 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
5718 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
5719 fcmlaq_lane270): New.
5720 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
5721 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
5722 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
5723 * config/aarch64/arm_neon.h:
5724 (vcadd_rot90_f16): New.
5725 (vcaddq_rot90_f16): New.
5726 (vcadd_rot270_f16): New.
5727 (vcaddq_rot270_f16): New.
5730 (vcmla_lane_f16): New.
5731 (vcmla_laneq_f16): New.
5732 (vcmlaq_lane_f16): New.
5733 (vcmlaq_rot90_lane_f16): New.
5734 (vcmla_rot90_laneq_f16): New.
5735 (vcmla_rot90_lane_f16): New.
5736 (vcmlaq_rot90_f16): New.
5737 (vcmla_rot90_f16): New.
5738 (vcmlaq_laneq_f16): New.
5739 (vcmla_rot180_laneq_f16): New.
5740 (vcmla_rot180_lane_f16): New.
5741 (vcmlaq_rot180_f16): New.
5742 (vcmla_rot180_f16): New.
5743 (vcmlaq_rot90_laneq_f16): New.
5744 (vcmlaq_rot270_laneq_f16): New.
5745 (vcmlaq_rot270_lane_f16): New.
5746 (vcmla_rot270_laneq_f16): New.
5747 (vcmlaq_rot270_f16): New.
5748 (vcmla_rot270_f16): New.
5749 (vcmlaq_rot180_laneq_f16): New.
5750 (vcmlaq_rot180_lane_f16): New.
5751 (vcmla_rot270_lane_f16): New.
5752 (vcadd_rot90_f32): New.
5753 (vcaddq_rot90_f32): New.
5754 (vcaddq_rot90_f64): New.
5755 (vcadd_rot270_f32): New.
5756 (vcaddq_rot270_f32): New.
5757 (vcaddq_rot270_f64): New.
5761 (vcmla_lane_f32): New.
5762 (vcmla_laneq_f32): New.
5763 (vcmlaq_lane_f32): New.
5764 (vcmlaq_laneq_f32): New.
5765 (vcmla_rot90_f32): New.
5766 (vcmlaq_rot90_f32): New.
5767 (vcmlaq_rot90_f64): New.
5768 (vcmla_rot90_lane_f32): New.
5769 (vcmla_rot90_laneq_f32): New.
5770 (vcmlaq_rot90_lane_f32): New.
5771 (vcmlaq_rot90_laneq_f32): New.
5772 (vcmla_rot180_f32): New.
5773 (vcmlaq_rot180_f32): New.
5774 (vcmlaq_rot180_f64): New.
5775 (vcmla_rot180_lane_f32): New.
5776 (vcmla_rot180_laneq_f32): New.
5777 (vcmlaq_rot180_lane_f32): New.
5778 (vcmlaq_rot180_laneq_f32): New.
5779 (vcmla_rot270_f32): New.
5780 (vcmlaq_rot270_f32): New.
5781 (vcmlaq_rot270_f64): New.
5782 (vcmla_rot270_lane_f32): New.
5783 (vcmla_rot270_laneq_f32): New.
5784 (vcmlaq_rot270_lane_f32): New.
5785 (vcmlaq_rot270_laneq_f32): New.
5786 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
5787 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
5788 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
5789 (FCADD, FCMLA): New.
5791 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
5793 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5797 * config/pa/pa.c: Change "can not" to "cannot".
5798 * gimple-ssa-evrp-analyze.c: Likewise.
5799 * ipa-icf.c: Likewise.
5800 * ipa-polymorphic-call.c: Likewise.
5801 * ipa-pure-const.c: Likewise.
5802 * lra-constraints.c: Likewise.
5803 * lra-remat.c: Likewise.
5804 * reload1.c: Likewise.
5805 * reorg.c: Likewise.
5806 * tree-ssa-uninit.c: Likewise.
5808 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5812 * Makefile.in: Mechanically replace "can not" with "cannot".
5813 * alias.c: Likewise.
5814 * builtins.c: Likewise.
5815 * calls.c: Likewise.
5816 * cgraph.c: Likewise.
5817 * cgraph.h: Likewise.
5818 * cgraphclones.c: Likewise.
5819 * cgraphunit.c: Likewise.
5820 * combine-stack-adj.c: Likewise.
5821 * combine.c: Likewise.
5822 * common/config/i386/i386-common.c: Likewise.
5823 * config/aarch64/aarch64.c: Likewise.
5824 * config/alpha/sync.md: Likewise.
5825 * config/arc/arc.c: Likewise.
5826 * config/arc/predicates.md: Likewise.
5827 * config/arm/arm-c.c: Likewise.
5828 * config/arm/arm.c: Likewise.
5829 * config/arm/arm.h: Likewise.
5830 * config/arm/arm.md: Likewise.
5831 * config/arm/cortex-r4f.md: Likewise.
5832 * config/csky/csky.c: Likewise.
5833 * config/csky/csky.h: Likewise.
5834 * config/darwin-f.c: Likewise.
5835 * config/epiphany/epiphany.md: Likewise.
5836 * config/i386/i386.c: Likewise.
5837 * config/i386/sol2.h: Likewise.
5838 * config/m68k/m68k.c: Likewise.
5839 * config/mcore/mcore.h: Likewise.
5840 * config/microblaze/microblaze.md: Likewise.
5841 * config/mips/20kc.md: Likewise.
5842 * config/mips/sb1.md: Likewise.
5843 * config/nds32/nds32.c: Likewise.
5844 * config/nds32/predicates.md: Likewise.
5845 * config/pa/pa.c: Likewise.
5846 * config/rs6000/e300c2c3.md: Likewise.
5847 * config/rs6000/rs6000.c: Likewise.
5848 * config/s390/s390.h: Likewise.
5849 * config/sh/sh.c: Likewise.
5850 * config/sh/sh.md: Likewise.
5851 * config/spu/vmx2spu.h: Likewise.
5852 * cprop.c: Likewise.
5853 * dbxout.c: Likewise.
5854 * df-scan.c: Likewise.
5855 * doc/cfg.texi: Likewise.
5856 * doc/extend.texi: Likewise.
5857 * doc/fragments.texi: Likewise.
5858 * doc/gty.texi: Likewise.
5859 * doc/invoke.texi: Likewise.
5860 * doc/lto.texi: Likewise.
5861 * doc/md.texi: Likewise.
5862 * doc/objc.texi: Likewise.
5863 * doc/rtl.texi: Likewise.
5864 * doc/tm.texi: Likewise.
5866 * emit-rtl.c: Likewise.
5867 * emit-rtl.h: Likewise.
5868 * except.c: Likewise.
5869 * expmed.c: Likewise.
5871 * fold-const.c: Likewise.
5872 * genautomata.c: Likewise.
5873 * gimple-fold.c: Likewise.
5874 * hard-reg-set.h: Likewise.
5875 * ifcvt.c: Likewise.
5876 * ipa-comdats.c: Likewise.
5877 * ipa-cp.c: Likewise.
5878 * ipa-devirt.c: Likewise.
5879 * ipa-fnsummary.c: Likewise.
5880 * ipa-icf.c: Likewise.
5881 * ipa-inline-transform.c: Likewise.
5882 * ipa-inline.c: Likewise.
5883 * ipa-polymorphic-call.c: Likewise.
5884 * ipa-profile.c: Likewise.
5885 * ipa-prop.c: Likewise.
5886 * ipa-pure-const.c: Likewise.
5887 * ipa-reference.c: Likewise.
5888 * ipa-split.c: Likewise.
5889 * ipa-visibility.c: Likewise.
5891 * ira-build.c: Likewise.
5892 * ira-color.c: Likewise.
5893 * ira-conflicts.c: Likewise.
5894 * ira-costs.c: Likewise.
5895 * ira-int.h: Likewise.
5896 * ira-lives.c: Likewise.
5899 * loop-invariant.c: Likewise.
5900 * loop-unroll.c: Likewise.
5901 * lower-subreg.c: Likewise.
5902 * lra-assigns.c: Likewise.
5903 * lra-constraints.c: Likewise.
5904 * lra-eliminations.c: Likewise.
5905 * lra-lives.c: Likewise.
5906 * lra-remat.c: Likewise.
5907 * lra-spills.c: Likewise.
5909 * lto-cgraph.c: Likewise.
5910 * lto-streamer-out.c: Likewise.
5911 * postreload-gcse.c: Likewise.
5912 * predict.c: Likewise.
5913 * profile-count.h: Likewise.
5914 * profile.c: Likewise.
5915 * recog.c: Likewise.
5917 * reload.c: Likewise.
5918 * reload1.c: Likewise.
5919 * reorg.c: Likewise.
5920 * resource.c: Likewise.
5921 * rtl.def: Likewise.
5923 * rtlanal.c: Likewise.
5924 * sched-deps.c: Likewise.
5925 * sched-ebb.c: Likewise.
5926 * sched-rgn.c: Likewise.
5927 * sel-sched-ir.c: Likewise.
5928 * sel-sched.c: Likewise.
5929 * shrink-wrap.c: Likewise.
5930 * simplify-rtx.c: Likewise.
5931 * symtab.c: Likewise.
5932 * target.def: Likewise.
5933 * toplev.c: Likewise.
5934 * tree-call-cdce.c: Likewise.
5935 * tree-cfg.c: Likewise.
5936 * tree-complex.c: Likewise.
5937 * tree-core.h: Likewise.
5938 * tree-eh.c: Likewise.
5939 * tree-inline.c: Likewise.
5940 * tree-loop-distribution.c: Likewise.
5941 * tree-nrv.c: Likewise.
5942 * tree-profile.c: Likewise.
5943 * tree-sra.c: Likewise.
5944 * tree-ssa-alias.c: Likewise.
5945 * tree-ssa-dce.c: Likewise.
5946 * tree-ssa-dom.c: Likewise.
5947 * tree-ssa-forwprop.c: Likewise.
5948 * tree-ssa-loop-im.c: Likewise.
5949 * tree-ssa-loop-ivcanon.c: Likewise.
5950 * tree-ssa-loop-ivopts.c: Likewise.
5951 * tree-ssa-loop-niter.c: Likewise.
5952 * tree-ssa-phionlycprop.c: Likewise.
5953 * tree-ssa-phiopt.c: Likewise.
5954 * tree-ssa-propagate.c: Likewise.
5955 * tree-ssa-threadedge.c: Likewise.
5956 * tree-ssa-threadupdate.c: Likewise.
5957 * tree-ssa-uninit.c: Likewise.
5958 * tree-ssanames.c: Likewise.
5959 * tree-streamer-out.c: Likewise.
5962 * vr-values.c: Likewise.
5964 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
5966 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
5967 (ix86_split_xorsign): Ditto.
5968 * config/i386/i386.c (ix86_expand_xorsign): New function.
5969 (ix86_split_xorsign): Ditto.
5970 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
5971 (xorsign<mode>3): New expander.
5972 (xorsign<mode>3_1): New insn_and_split pattern.
5973 * config/i386/sse.md (xorsign<mode>3): New expander.
5975 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5977 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
5978 (*tablejump_sp64): Likewise.
5979 (*tablejump<P:mode>): ...this.
5980 (*call_address_sp32): Merge into...
5981 (*call_address_sp64): Likewise.
5982 (*call_address<P:mode>): ...this.
5983 (*call_symbolic_sp32): Merge into...
5984 (*call_symbolic_sp64): Likewise.
5985 (*call_symbolic<P:mode>): ...this.
5986 (call_value): Remove constraint and add predicate.
5987 (*call_value_address_sp32): Merge into...
5988 (*call_value_address_sp64): Likewise.
5989 (*call_value_address<P:mode>): ...this.
5990 (*call_value_symbolic_sp32): Merge into...
5991 (*call_value_symbolic_sp64): Likewise.
5992 (*call_value_symbolic<P:mode>): ...this.
5993 (*sibcall_symbolic_sp32): Merge into...
5994 (*sibcall_symbolic_sp64): Likewise.
5995 (*sibcall_symbolic<P:mode>): ...this.
5996 (sibcall_value): Remove constraint and add predicate.
5997 (*sibcall_value_symbolic_sp32): Merge into...
5998 (*sibcall_value_symbolic_sp64): Likewise.
5999 (*sibcall_value_symbolic<P:mode>): ...this.
6000 (window_save): Minor tweak.
6001 (*branch_sp32): Merge into...
6002 (*branch_sp64): Likewise.
6003 (*branch<P:mode>): ...this.
6005 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
6006 James Clarke <jrtc27@jrtc27.com>
6009 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
6010 consistently in TLS address generation and adjust code to the renaming
6011 of patterns. Mark calls to __tls_get_addr as const.
6012 * config/sparc/sparc.md (tgd_hi22): Turn into...
6013 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
6014 (tgd_lo10): Turn into...
6015 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
6016 (tgd_add32): Merge into...
6017 (tgd_add64): Likewise.
6018 (tgd_add<P:mode>): ...this and use Pmode throughout.
6019 (tldm_hi22): Turn into...
6020 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
6021 (tldm_lo10): Turn into...
6022 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
6023 (tldm_add32): Merge into...
6024 (tldm_add64): Likewise.
6025 (tldm_add<P:mode>): ...this and use Pmode throughout.
6026 (tldm_call32): Merge into...
6027 (tldm_call64): Likewise.
6028 (tldm_call<P:mode>): ...this and use Pmode throughout.
6029 (tldo_hix22): Turn into...
6030 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
6031 (tldo_lox10): Turn into...
6032 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
6033 (tldo_add32): Merge into...
6034 (tldo_add64): Likewise.
6035 (tldo_add<P:mode>): ...this and use Pmode throughout.
6036 (tie_hi22): Turn into...
6037 (tie_hi22<P:mode>): ...this and use Pmode throughout.
6038 (tie_lo10): Turn into...
6039 (tie_lo10<P:mode>): ...this and use Pmode throughout.
6040 (tie_ld64): Use DImode throughout.
6041 (tie_add32): Merge into...
6042 (tie_add64): Likewise.
6043 (tie_add<P:mode>): ...this and use Pmode throughout.
6044 (tle_hix22_sp32): Merge into...
6045 (tle_hix22_sp64): Likewise.
6046 (tle_hix22<P:mode>): ...this and use Pmode throughout.
6047 (tle_lox22_sp32): Merge into...
6048 (tle_lox22_sp64): Likewise.
6049 (tle_lox22<P:mode>): ...this and use Pmode throughout.
6050 (*tldo_ldub_sp32): Merge into...
6051 (*tldo_ldub_sp64): Likewise.
6052 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
6053 (*tldo_ldub1_sp32): Merge into...
6054 (*tldo_ldub1_sp64): Likewise.
6055 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
6056 (*tldo_ldub2_sp32): Merge into...
6057 (*tldo_ldub2_sp64): Likewise.
6058 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
6059 (*tldo_ldsb1_sp32): Merge into...
6060 (*tldo_ldsb1_sp64): Likewise.
6061 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
6062 (*tldo_ldsb2_sp32): Merge into...
6063 (*tldo_ldsb2_sp64): Likewise.
6064 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
6065 (*tldo_ldub3_sp64): Use DImode throughout.
6066 (*tldo_ldsb3_sp64): Likewise.
6067 (*tldo_lduh_sp32): Merge into...
6068 (*tldo_lduh_sp64): Likewise.
6069 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
6070 (*tldo_lduh1_sp32): Merge into...
6071 (*tldo_lduh1_sp64): Likewise.
6072 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
6073 (*tldo_ldsh1_sp32): Merge into...
6074 (*tldo_ldsh1_sp64): Likewise.
6075 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
6076 (*tldo_lduh2_sp64): Use DImode throughout.
6077 (*tldo_ldsh2_sp64): Likewise.
6078 (*tldo_lduw_sp32): Merge into...
6079 (*tldo_lduw_sp64): Likewise.
6080 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
6081 (*tldo_lduw1_sp64): Use DImode throughout.
6082 (*tldo_ldsw1_sp64): Likewise.
6083 (*tldo_ldx_sp64): Likewise.
6084 (*tldo_stb_sp32): Merge into...
6085 (*tldo_stb_sp64): Likewise.
6086 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
6087 (*tldo_sth_sp32): Merge into...
6088 (*tldo_sth_sp64): Likewise.
6089 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
6090 (*tldo_stw_sp32): Merge into...
6091 (*tldo_stw_sp64): Likewise.
6092 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
6093 (*tldo_stx_sp64): Use DImode throughout.
6095 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6097 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
6098 check configure option to set BTI and Return Address Signing.
6099 * configure.ac: Add --enable-standard-branch-protection and
6100 --disable-standard-branch-protection.
6101 * configure: Regenerated.
6102 * doc/install.texi: Document the same.
6104 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6105 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6107 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
6108 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
6109 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
6111 * config/aarch64/aarch64-bti-insert.c: New file.
6112 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
6114 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
6116 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
6117 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
6118 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
6119 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
6121 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6123 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
6124 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
6125 Disable bti for -mbranch-protection=none.
6126 (aarch64_handle_standard_branch_protection): Enable bti for
6127 -mbranch-protection=standard.
6128 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
6129 -mbranch-protection.
6130 (aarch64_bti_enabled): Check if bti is enabled.
6131 * config/aarch64/aarch64.opt: Declare target variable.
6132 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
6134 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6136 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
6137 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
6138 (aarch64_expand_epilogue): Likewise.
6139 (aarch64_output_mi_thunk): Likewise
6140 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
6141 TAILCALL_ADDR_REGS to x16 and x17.
6142 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
6144 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6146 * config/aarch64/aarch64-option-extensions.def: Define
6147 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
6148 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
6149 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
6150 (AARCH64_FL_PREDRES): New.
6151 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
6152 AARCH64_FL_PREDRES by default.
6153 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
6155 2018-01-09 Sudakshina Das <sudi.das@arm.com>
6157 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
6159 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
6160 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
6161 * doc/invoke.texi: Document ARMv8.5-A.
6163 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
6165 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
6166 (xorsign<mode>3): Likewise.
6168 2019-01-09 Jelinek <jakub@redhat.com>
6171 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
6172 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
6174 PR rtl-optimization/88331
6175 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
6176 not currently_expanding_to_rtl.
6178 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
6180 * doc/invoke.texi (-Os): Remove trailing spaces.
6181 (-finline-functions): Remove reference to -O2.
6183 2019-01-08 Jakub Jelinek <jakub@redhat.com>
6185 PR rtl-optimization/79593
6186 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
6188 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
6189 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
6191 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
6194 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
6198 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
6199 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
6201 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
6204 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
6205 ix86_avx_u128_mode_entry.
6207 2019-01-08 Martin Liska <mliska@suse.cz>
6209 PR tree-optimization/88753
6210 * tree-switch-conversion.c (switch_conversion::build_one_array):
6211 Come up with local variable constructor. Convert first to
6212 type of constructor values.
6214 2019-01-08 Richard Biener <rguenther@suse.de>
6216 PR tree-optimization/86554
6217 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
6218 rpo_avail): Move earlier.
6219 (visit_nary_op): When value-numbering to expressions
6220 with different overflow behavior make sure there's an
6221 available expression on the path.
6223 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
6225 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
6226 aarch64_parse_branch_protection,
6227 struct aarch64_branch_protect_type,
6228 aarch64_handle_no_branch_protection,
6229 aarch64_handle_standard_branch_protection,
6230 aarch64_validate_mbranch_protection,
6231 aarch64_handle_pac_ret_protection,
6232 aarch64_handle_attr_branch_protection,
6233 accepted_branch_protection_string,
6234 aarch64_pac_ret_subtypes,
6235 aarch64_branch_protect_types,
6236 aarch64_handle_pac_ret_leaf): Define.
6237 (aarch64_override_options_after_change_1, aarch64_override_options):
6238 Add check for accepted_branch_protection_string.
6239 (aarch64_option_save): Save accepted_branch_protection_string.
6240 (aarch64_option_restore): Save accepted_branch_protection_string.
6241 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
6242 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
6243 msign-return-address.
6244 * doc/invoke.texi: Add mbranch-protection.
6246 2019-01-08 Alan Modra <amodra@gmail.com>
6249 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
6250 Delete "unknownp" parameter. Adjust callers. Handle
6251 CONST_INT, PLUS, MINUS, and MULT.
6252 (attr_value_aligned): Renamed from or_attr_value.
6253 (min_attr_value): Return INT_MIN for unhandled rtl case..
6254 (min_fn): ..and translate to INT_MAX here.
6255 (write_length_unit_log): Modify to cope without "unknown".
6256 (write_attr_value): Handle IF_THEN_ELSE.
6258 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6260 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
6261 optimization for masked stores.
6263 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6266 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
6267 output vector directly to duplicate_and_interleave instead of
6268 going through a temporary. Postpone insertion of ctor_seq to
6269 the end of the loop.
6271 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
6274 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
6275 unsigned_p. Handle signed and unsigned overflow correction as
6277 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
6279 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
6281 (add<mode>3_compareV_imm): Make this callable for expanding.
6282 (subv<GPI:mode>4): Use register_operand for operand 1. Use
6283 aarch64_plus_operand for operand 2.
6284 (subv<GPI:mode>_insn): New insn pattern.
6285 (subv<GPI:mode>_imm): Likewise.
6286 (negv<GPI:mode>3): New expand pattern.
6287 (negv<GPI:mode>_insn): New insn pattern.
6288 (negv<GPI:mode>_cmp_only): Likewise.
6289 (cmpv<GPI:mode>_insn): Likewise.
6290 (subvti4): Use register_operand for operand 1. Update call to
6291 aarch64_expand_subvti.
6292 (usubvti4): Likewise.
6293 (negvti3): New expand pattern.
6294 (negdi_carryout): New insn pattern.
6295 (negvdi_carryinV): New insn pattern.
6296 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
6297 version the named version.
6298 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
6300 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
6302 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
6304 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
6305 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
6306 (sub<mode>3_carryinCV): Delete.
6307 (sub<GPI:mode>3_carryinV): New expand pattern.
6308 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
6310 2019-01-07 Richard Biener <rguenther@suse.de>
6312 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
6313 of tree_operand_hash.
6315 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6317 PR tree-optimization/88598
6318 * tree.h (single_nonzero_element): Declare.
6319 * tree.c (single_nonzero_element): New function.
6320 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
6321 if I is the only nonzero element of CST.
6323 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6325 PR tree-optimization/88598
6326 * tree.h (initializer_each_zero_or_onep): Declare.
6327 * tree.c (initializer_each_zero_or_onep): New function.
6328 (signed_or_unsigned_type_for): Handle float types too.
6329 (unsigned_type_for, signed_type_for): Update comments accordingly.
6330 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
6331 x & { 0 or -1, 0 or -1, ... }.
6333 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
6335 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
6336 with x86_64-pc-linux-gnu.
6338 2019-01-07 Tom de Vries <tdevries@suse.de>
6341 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
6343 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
6346 2019-01-07 Jakub Jelinek <jakub@redhat.com>
6348 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
6349 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
6350 TARGET_AVX512F as condition.
6353 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
6354 const_not_ok_for_debug_p target hook.
6355 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
6356 on UNSPEC and subexpressions thereof if all subexpressions of the
6357 UNSPEC are CONSTANT_P.
6359 PR tree-optimization/88676
6360 * tree-ssa-phiopt.c (two_value_replacement): New function.
6361 (tree_ssa_phiopt_worker): Call it.
6364 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
6365 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
6368 * tree-vect-generic.c: Include insn-config.h and recog.h.
6369 (expand_vector_piecewise): Add defaulted ret_type argument,
6370 if non-NULL, use that in preference to type for the result type.
6371 (expand_vector_parallel): Formatting fix.
6372 (do_vec_conversion, do_vec_narrowing_conversion,
6373 expand_vector_conversion): New functions.
6374 (expand_vector_operations_1): Call expand_vector_conversion
6375 for VEC_CONVERT ifn calls.
6376 * internal-fn.def (VEC_CONVERT): New internal function.
6377 * internal-fn.c (expand_VEC_CONVERT): New function.
6378 * fold-const-call.c (fold_const_vec_convert): New function.
6379 (fold_const_call): Use it for CFN_VEC_CONVERT.
6380 * doc/extend.texi (__builtin_convertvector): Document.
6382 2019-01-07 Tom de Vries <tdevries@suse.de>
6384 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
6385 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
6386 vector_red_partition, vector_red_sym): New global variables.
6387 (nvptx_option_override): Initialize vector_red_sym.
6388 (nvptx_declare_function_name): Restore red_partition register.
6389 (nvptx_file_end): Emit code to declare the vector reduction variables.
6390 (nvptx_output_red_partition): New function.
6391 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
6392 large vector reductions.
6393 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
6394 (nvptx_init_builtins): Add VECTOR_ADDR.
6395 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
6396 Handle nvptx_expand_shared_addr.
6397 (nvptx_get_shared_red_addr): Add vector argument and handle large
6399 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
6401 (nvptx_goacc_reduction_init): Likewise.
6402 (nvptx_goacc_reduction_fini): Likewise.
6403 (nvptx_goacc_reduction_teardown): Likewise.
6404 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
6405 init,fini,teardown}.
6406 (nvptx_init_axis_predicate): Initialize vector_red_partition.
6407 (nvptx_set_current_function): Init vector_red_partition.
6408 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
6409 (nvptx_red_partition): New insn.
6410 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
6412 2019-01-07 Tom de Vries <tdevries@suse.de>
6415 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
6418 2019-01-07 Tom de Vries <tdevries@suse.de>
6420 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
6421 (nvptx_option_override): Init oacc_bcast_partition.
6422 (nvptx_init_oacc_workers): New function.
6423 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
6424 (nvptx_needs_shared_bcast): New function.
6425 (nvptx_find_par): Generalize to enable vectors to use shared-memory
6427 (nvptx_shared_propagate): Initialize vector bcast partition and
6428 synchronization state.
6429 (nvptx_single): Generalize to enable vectors to use shared-memory
6431 (nvptx_process_pars): Likewise.
6432 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
6433 * config/nvptx/nvptx.h (struct machine_function): Add
6434 bcast_partition and sync_bar members.
6436 2019-01-07 Tom de Vries <tdevries@suse.de>
6438 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
6439 (nvptx_apply_dim_limits): New function.
6440 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
6443 2019-01-07 Tom de Vries <tdevries@suse.de>
6445 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
6446 as late as possible.
6448 2019-01-07 Tom de Vries <tdevries@suse.de>
6450 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
6451 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
6452 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
6453 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
6454 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
6456 2019-01-07 Tom de Vries <tdevries@suse.de>
6458 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
6460 2019-01-07 Tom de Vries <tdevries@suse.de>
6462 * omp-offload.c (oacc_get_min_dim): New function.
6463 * omp-offload.h (oacc_get_min_dim): Declare.
6465 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
6468 * config/i386/i386.c (function_value_ms_64): Return small sturct in
6469 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
6471 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6475 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
6477 * ipa-inline.c (edge_badness): Use inlined_time instead of
6478 inline_summaries->get.
6480 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6482 * opts.c (enable_fdo_optimizations): Enable
6483 version-loops-for-strides, loop-interchange, unrol-and-jam
6484 and tree-loop-distribution.
6485 * invoke.texi: Document newly enabled options.
6487 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6489 * doc/invoke.texi (max-inline-insns-small): New parameters.
6490 * ipa-inline.c (want_early_inline_function_p): simplify.
6491 (want_inline_small_function_p): Fix pasto from previous patch;
6492 use max-inline-insns-small bound.
6493 * params.def (max-inline-insns-small): New param.
6494 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
6495 variables correctly.
6497 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6499 * doc/invoke.texi: Document max-inline-insns-size,
6500 uninlined-function-insns, uninlined-function-time,
6501 uninlined-thunk-insns and uninlined-thunk-time.
6502 * params.def: Add max-inline-insns-size,
6503 uninlined-function-insns, uninlined-function-time,
6504 uninlined-thunk-insns and uninlined-thunk-time.
6505 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
6507 * ipa-inline.c (can_inline_edge_by_limits_p,
6508 want_inline_small_function_p): Use new parameters.
6510 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6512 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
6514 2019-01-05 Jakub Jelinek <jakub@redhat.com>
6518 * expr.c (expand_assignment): For calls returning VLA structures
6519 if to_rtx is not a MEM, force it into a stack temporary.
6522 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
6523 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
6524 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
6525 subexpressions of both operands.
6526 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
6527 subrtxes are CONSTANT_P.
6528 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
6531 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
6533 * params.def (hot-bb-count-ws-permille): Set to 990.
6535 2019-01-04 Martin Sebor <msebor@redhat.com>
6538 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
6541 2019-01-04 Martin Sebor <msebor@redhat.com>
6544 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
6546 2019-01-04 Jakub Jelinek <jakub@redhat.com>
6548 * gdbinit.in: Turn off pagination for the skip commands, restore
6549 it to previous state afterwards.
6551 2019-01-04 Jakub Jelinek <jakub@redhat.com>
6554 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
6555 of GET_MODE (opN) as modes of the libcall arguments.
6557 2019-01-04 Jan Beulich <jbeulich@suse.com>
6559 * config/i386/sse.md
6560 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
6561 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
6562 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
6563 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
6564 avx512f_vmcmp<mode>3<round_saeonly_name>,
6565 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
6566 avx512f_maskcmp<mode>3,
6567 <avx512>_cvt<ssemodesuffix>2mask<mode>,
6568 <avx512>_cvt<ssemodesuffix>2mask<mode>,
6569 *<avx512>_cvtmask2<ssemodesuffix><mode>,
6570 *<avx512>_cvtmask2<ssemodesuffix><mode>,
6571 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
6572 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
6573 <avx512>_gt<mode>3<mask_scalar_merge_name>,
6574 <avx512>_gt<mode>3<mask_scalar_merge_name>,
6575 <avx512>_testm<mode>3<mask_scalar_merge_name>,
6576 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
6577 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
6578 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
6579 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
6580 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
6581 avx512cd_maskb_vec_dup<mode>,
6582 avx512cd_maskw_vec_dup<mode>,
6583 avx512dq_fpclass<mode><mask_scalar_merge_name>,
6584 avx512dq_vmfpclass<mode>,
6585 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
6588 2019-01-03 Martin Sebor <msebor@redhat.com>
6590 PR tree-optimization/88659
6591 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
6593 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
6595 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
6596 unaligned vsx and avoid lxvd2x/stxvd2x.
6597 (gen_lvx_v4si_move): New function.
6599 2019-01-03 Tom de Vries <tdevries@suse.de>
6601 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
6602 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
6604 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
6606 2019-01-03 Tom de Vries <tdevries@suse.de>
6608 * config/nvptx/nvptx.c (struct offload_attrs): New.
6609 (populate_offload_attrs): New function. Factor mask extraction out of
6610 nvptx_reorg. Add extraction of dimensions.
6611 (nvptx_reorg): Use populate_offload_attrs.
6613 2019-01-03 Tom de Vries <tdevries@suse.de>
6615 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
6616 cases for oacc_min_dims_p and routine_p. Add asserts for
6617 oacc_default_dims_p and offload_region_p.
6619 2019-01-03 Tom de Vries <tdevries@suse.de>
6621 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
6623 (nvptx_goacc_validate_dims): ... here.
6625 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
6627 PR tree-optimization/85574
6628 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
6630 (struct ssa_equip_hash_traits): Declare.
6631 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
6633 2019-01-03 Jakub Jelinek <jakub@redhat.com>
6636 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
6637 change it to qualified_type.
6639 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
6641 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
6642 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
6644 2019-01-02 Martin Sebor <msebor@redhat.com>
6645 Jeff Law <law@redhat.com>
6647 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
6648 (get_range_strlen_tree): Update appropriately.
6650 * gimple-fold.h (get_range_strlen): Drop unused last argument.
6652 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
6653 rather than set_range_info.
6654 * tree-ssa-strlen.c (set_strlen_range): Extracted from
6655 maybe_set_strlen_range. Handle potentially boundary crossing
6656 cases more conservatively.
6657 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
6658 Call set_strlen_range.
6659 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
6662 * gimple-fold.c (get_range_strlen): Update prototype to no longer
6663 need the flexp argument.
6664 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
6665 from calls to get_range_strlen. Update comments. Just update
6666 VAL for an unterminated const char array and let the reset of the
6667 code handle it normally. No longer try to set *flexp. Adjust
6669 (get_range_strlen): Update for the new get_range_strlen API.
6670 (get_maxval_strlen): Similarly.
6671 (gimple_fold_builtin_strlen): Handle update meaning of return value
6672 from get_range_strlen.
6673 * gimple-ssa-sprintf.c (get_string_length): Update for the new
6674 get_range_strlen API.
6676 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
6679 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
6680 false at WPA time when body was removed.
6682 2019-01-02 Martin Liska <mliska@suse.cz>
6684 PR tree-optimization/88650
6685 * predict.c (set_even_probabilities): Calculate probability
6686 remainer only when really used.
6688 2019-01-02 Richard Biener <rguenther@suse.de>
6691 * tree-data-ref.c (analyze_subscript_affine_affine): Use
6692 widest_ints when mangling max_stmt_execution results.
6694 2019-01-02 Richard Biener <rguenther@suse.de>
6696 PR tree-optimization/88621
6697 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
6698 bitfields when canoncalizing.
6700 2019-01-02 Richard Biener <rguenther@suse.de>
6703 * config/i386/x86-tune-costs.h (intel_cost): Adjust
6704 cost of cheap SSE instruction.
6706 2019-01-02 Richard Biener <rguenther@suse.de>
6709 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
6710 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
6712 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
6713 set after UIDs before splitting them.
6715 2019-01-01 Martin Sebor <msebor@redhat.com>
6716 Jeff Law <law@redhat.com>
6718 * gimple-fold.c (get_range_strlen_tree): Record if the computed
6719 length is optimistic. If it is, then arrange to compute the
6720 conservative length as well.
6722 * gimple-fold.h (get_range_strlen): Update prototype.
6723 * builtins.c (check_access): Update call to get_range_strlen to use
6724 c_strlen_data pointer. Change various variable accesses to instead
6725 pull data from the c_strlen_data structure.
6726 (check_strncat_sizes, expand_builtin_strncat): Likewise.
6727 * calls.c (maybe_warn_nonstring_arg): Likewise.
6728 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
6729 minimum length if maximum lengh is unknown.
6730 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
6731 that used c_strlen, it's no longer needed. Restructure slightly.
6732 (format_string): Set unlikely range appropriately.
6733 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
6735 (get_range_strlen): Accept c_strlen_data pointer for external
6736 call sites as well. Pass through to call to internal get_range_strlen.
6737 Adjust minlen, maxlen and maxbound as needed.
6738 (get_maxval_strlen): Update comments.
6739 (gimple_fold_builtin_strlen): Update call to get_range_strlen
6740 to use c_strlen_data pointer. Change variable accesses to instead
6741 use c_strlen_data data members.
6743 * gimple-fold.c (get_range_strlen): Update prototype.
6744 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
6745 local variables. Use pdata to return information to caller.
6746 Update calls to get_range_strlen. Update pdata->maxbound.
6747 (get_range_strlen -- static version): Similarly.
6748 (get_range_strlen -- extern version): Update for internal
6749 get_range_strlen API change. Convert to external data format.
6750 (get_maxval_strlen): Similarly.
6752 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
6754 * coverage.c (get_coverage_counts): Use current_function_decl.
6755 * profile.c (read_thunk_profile): New function.
6756 (branch_prob): Add THUNK parameter.
6757 * tree-profile.c (tree_profiling): Handle thunks.
6758 * value-prof.c (init_node_map): Handle thunks.
6759 * value-prof.h (branch_prob): Upate prototype.
6760 (read_thunk_profile): Declare.
6762 2019-01-01 Jakub Jelinek <jakub@redhat.com>
6764 Update copyright years.
6766 * gcc.c (process_command): Update copyright notice dates.
6767 * gcov-dump.c (print_version): Ditto.
6768 * gcov.c (print_version): Ditto.
6769 * gcov-tool.c (print_version): Ditto.
6770 * gengtype.c (create_file): Ditto.
6771 * doc/cpp.texi: Bump @copying's copyright year.
6772 * doc/cppinternals.texi: Ditto.
6773 * doc/gcc.texi: Ditto.
6774 * doc/gccint.texi: Ditto.
6775 * doc/gcov.texi: Ditto.
6776 * doc/install.texi: Ditto.
6777 * doc/invoke.texi: Ditto.
6779 Copyright (C) 2019 Free Software Foundation, Inc.
6781 Copying and distribution of this file, with or without modification,
6782 are permitted in any medium without royalty provided the copyright
6783 notice and this notice are preserved.