1 2019-04-16 Richard Biener <rguenther@suse.de>
3 PR tree-optimization/56049
4 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
5 equality check if alias-set zero will prevail.
7 2019-04-15 Jeff Law <law@redhat.com>
9 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
10 size and alignment as unsigned.
12 2019-04-15 Richard Biener <rguenther@suse.de>
15 * tree-loop-distribution.c (destroy_loop): Preserve correct
18 2019-04-15 Richard Biener <rguenther@suse.de>
20 PR tree-optimization/90071
21 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
22 abnormal operands from def stmts.
24 2019-04-15 Richard Biener <rguenther@suse.de>
27 * tree.h (auto_var_p): Declare.
28 * tree.c (auto_var_p): New function, split out from ...
29 (auto_var_in_fn_p): ... here.
30 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
32 (new_var_info): Initialize it.
33 (set_uids_in_ptset): Also set the shadow variable uid if required.
34 (ipa_pta_execute): Postprocess points-to solutions assigning
35 shadow variable uids for locals that may reach their containing
37 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
38 assert but instead check whether the points-to solution is
41 2019-04-15 Martin Jambor <mjambor@suse.cz>
44 * cgraph.c (clone_of_p): Loop over clone chain for each step in
47 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
49 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
51 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
52 Kito Cheng <kito.cheng@gmail.com>
53 Shiva Chen <shiva0217@gmail.com>
55 * config/nds32/nds32-md-auxiliary.c
56 (nds32_legitimize_pic_address): Use new PIC pattern.
57 (nds32_legitimize_tls_address): Use new TLS pattern.
58 (nds32_output_symrel): New.
59 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
60 (nds32_alloc_relax_group_id): Ditto.
61 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
62 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
64 (nds32_group_tls_insn): Ditto.
65 (nds32_group_float_insns): Ditto.
66 * config/nds32/nds32.md (tls_le): New.
69 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
71 * configure: Add nds32 target for dwarf2 debug_line checking.
72 * configure.ac: Regenerated.
74 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
77 * ipa-devirt.c (skip_in_fields_list_p): New.
78 (odr_types_equivalent_p): Use it.
80 2019-04-13 Jakub Jelinek <jakub@redhat.com>
83 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
84 instead of strncmp when checking for thumb and arm. Formatting fixes.
86 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
88 * doc/install.texi: Document --with-target-system-zlib.
90 2019-04-12 Martin Sebor <msebor@redhat.com>
96 * targhooks.c (default_vector_alignment): Avoid assuming
97 argument fits in SHWI.
98 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
100 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
102 2019-04-12 Jakub Jelinek <jakub@redhat.com>
104 PR rtl-optimization/89965
105 * dce.c: Include rtl-iter.h.
106 (struct check_argument_load_data): New type.
107 (check_argument_load): New function.
108 (find_call_stack_args): Check for loads from stack slots still tracked
109 in sp_bytes and punt if any is found.
111 * config/mips/loongson-mmiintrin.h: Fix up #error message.
113 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
115 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
116 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
118 2019-04-12 Martin Liska <mliska@suse.cz>
121 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
123 (separate_attrs): Handle multiple 'default's.
124 (expand_target_clones): Rework error handling code.
126 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
129 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
130 mode of vector rather than mode of destination for move instruction.
131 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
132 Use QI inner mode with V16QI vector mode.
134 2019-04-12 Jakub Jelinek <jakub@redhat.com>
137 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
138 "invalid %%t operand" in output_operand_lossage message.
140 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
142 * config/s390/predicates.md (permute_pattern_operand): New
144 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
145 operand for the permute pattern.
146 ("*vec_perm<mode>"): New insn definition.
147 ("bswap<mode>"): Generate the permute pattern operand in the
148 expander and perform the operand reloads for pre arch13 level
150 ("*bswap<mode>_emu"): Rename to ...
151 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
152 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
153 Add the USE operand for the permute pattern.
154 ("*vec_set_bswap_vec<mode>"): Likewise.
156 2019-04-12 Jakub Jelinek <jakub@redhat.com>
159 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
160 and gcc_unreachable if it fails, just call tree_to_uhwi which
161 verifies that too. Test TREE_CHAIN instead of list_length > 1.
162 Start warning message with a lower-case letter. Formatting fixes.
164 PR rtl-optimization/90026
165 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
166 successors, look for BARRIERs inside of the whole BB_FOOTER chain
167 rather than just at the start of it. If e->src BB_FOOTER is not NULL
168 in cfglayout mode, use emit_barrier_after_bb.
170 2018-04-11 Steve Ellcey <sellcey@marvell.com>
172 PR rtl-optimization/87763
173 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
176 2019-04-11 Tom de Vries <tdevries@suse.de>
178 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
179 max macro using statement expression.
181 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
183 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
184 * xcoffout.c (xcoff_private_rodata_section_name): Define.
185 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
186 read_only_private_data_section using xcoff_private_rodata_section_name.
187 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
189 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
192 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
194 2019-04-11 Jakub Jelinek <jakub@redhat.com>
196 PR rtl-optimization/89965
197 * dce.c (sp_based_mem_offset): New function.
198 (find_call_stack_args): Use sp_based_mem_offset.
200 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
202 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
204 2019-04-11 Richard Biener <rguenther@suse.de>
206 PR tree-optimization/90020
207 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
208 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
209 * tree-ssa-pre.c (compute_avail): Use it to not put
210 possibly trapping references after a call that might not
212 * gcse.c (compute_hash_table_work): Do not elide
213 marking a block containing a call if the call might not
216 2019-04-11 Richard Biener <rguenther@suse.de>
218 PR tree-optimization/90018
219 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
220 Test both SLP and interleaving variants.
222 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
224 * config/s390/8561.md: New file.
225 * config/s390/driver-native.c (s390_host_detect_local_cpu):
226 Add arch13 cpu model.
227 * config/s390/s390-opts.h (enum processor_type): Likewise.
228 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
229 (s390_get_unit_mask): Likewise.
230 (s390_is_fpd): Likewise.
231 (s390_is_fxd): Likewise.
232 * config/s390/s390.h (s390_tune_attr): Likewise.
233 * config/s390/s390.md: Include arch13 pipeline description.
234 * config/s390/s390.opt: Add arch13.
236 2018-04-10 Steve Ellcey <sellcey@marvell.com>
238 PR rtl-optimization/87763
239 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
241 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
243 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
245 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
246 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
247 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
248 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
250 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
252 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
253 "Although" in -fipa-icf documentation.
255 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
256 of using multiple -g options.
258 2019-04-10 Martin Liska <mliska@suse.cz>
260 PR gcov-profile/89959
261 * doc/gcov.texi: Make documentation of -x option
264 2019-04-10 Richard Biener <rguenther@suse.de>
266 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
268 (DR_GROUP_SAME_DR_STMT): Remove.
269 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
270 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
272 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
273 (vect_record_grouped_load_vectors): Remove unreachable code.
275 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
278 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
279 obsolete reference to N.
281 2019-04-10 Jakub Jelinek <jakub@redhat.com>
284 * expr.c (store_expr): Set properly size on the MEM passed to
288 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
289 with strlen in between hostsz-3 and hostsz-1 inclusive when no
290 translation is needed, and when translation is needed, only append
291 ... if the string length is hostsz or more bytes long. Avoid using
294 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
297 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
298 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
300 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
301 differences directly.
302 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
304 2019-04-09 Jakub Jelinek <jakub@redhat.com>
307 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
309 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
311 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
312 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
313 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
314 trailing space from -gsplit-dwarf diagnostics.
316 PR tree-optimization/89998
317 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
318 instead of integer_type_node if possible, don't add ranges if return
319 type is not compatible with int.
320 * gimple-fold.c (gimple_fold_builtin_sprintf,
321 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
324 2019-04-09 Martin Liska <mliska@suse.cz>
326 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
327 * doc/install.texi: Document the new config.
329 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
331 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
332 use gimple_expr_type for load and store calls. Skip over the
333 condition argument in a conditional internal function.
334 Protect use of TREE_INT_CST_LOW.
336 2019-04-09 Jakub Jelinek <jakub@redhat.com>
339 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
340 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
341 trailing period from it too.
343 2019-04-08 wu yuan <wuyuan5@huawei.com>
345 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
346 * config/aarch64/aarch64.md : Add "tsv110.md"
347 * config/aarch64/tsv110.md: New file.
349 2019-04-08 Richard Biener <rguenther@suse.de>
351 PR tree-optimization/90006
352 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
355 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
358 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
360 (fma_root_node): Likewise.
361 (func_fma_steering): Likewise.
363 2019-04-08 Jakub Jelinek <jakub@redhat.com>
365 PR rtl-optimization/89865
366 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
368 PR rtl-optimization/89865
369 * config/i386/i386.md
370 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
371 numbers not to clash with the additional operands[4].
372 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
373 with extra register copy in the middle.
375 2019-04-08 Martin Liska <mliska@suse.cz>
377 PR gcov-profile/89961
378 * doc/gcov.texi: Document data_file.
379 * gcov.c (generate_results): Add data_info into JSON output.
381 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
383 PR tree-optimization/89725
384 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
385 loop's chrec as invariant symbol.
386 * tree-chrec.h (chrec_contains_symbols): New parameter.
387 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
388 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
389 function of loops not in DDR's loop_nest.
390 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
392 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
395 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
398 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
401 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
402 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
404 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
406 * sched-deps.c (sched_macro_fuse_insns): Check return value of
407 targetm.fixed_condition_code_regs.
409 2019-04-05 Richard Biener <rguenther@suse.de>
413 * tree-cfgcleanup.c (remove_forwarder_block): Always move
414 debug bind stmts but reset them if they are not valid at the
417 2019-04-05 Martin Liska <mliska@suse.cz>
420 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
421 order to wrap keywords or arguments.
422 * collect2.c (main): Likewise.
423 (scan_prog_file): Likewise.
424 (scan_libraries): Likewise.
425 * common/config/riscv/riscv-common.c
426 (riscv_subset_list::parsing_subset_version): Likewise.
427 (riscv_subset_list::parse_std_ext): Likewise.
428 * config/aarch64/aarch64.c (aarch64_override_options_internal):
430 * config/arm/arm.c (arm_option_override): Likewise.
431 * config/cris/cris.c (cris_print_operand): Likewise.
432 * config/darwin-c.c (darwin_pragma_options): Likewise.
433 (darwin_pragma_unused): Likewise.
434 (darwin_pragma_ms_struct): Likewise.
435 * config/ft32/ft32.c (ft32_print_operand): Likewise.
436 * config/i386/i386.c (print_reg): Likewise.
437 (ix86_print_operand): Likewise.
438 * config/i386/xm-djgpp.h: Likewise.
439 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
440 * config/m32c/m32c.c (m32c_option_override): Likewise.
441 * config/msp430/msp430.c (msp430_option_override): Likewise.
442 * config/nds32/nds32.c (nds32_option_override): Likewise.
443 * config/nvptx/mkoffload.c (main): Likewise.
444 * config/rx/rx.c (rx_print_operand): Likewise.
445 (valid_psw_flag): Likewise.
446 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
447 (vms_pragma_nomember_alignment): Likewise.
448 (vms_pragma_extern_model): Likewise.
449 * lto-wrapper.c (compile_offload_image): Likewise.
450 * omp-offload.c (oacc_parse_default_dims): Likewise.
451 * symtab.c (symtab_node::verify_base): Likewise.
452 * tlink.c (recompile_files): Likewise.
453 (start_tweaking): Likewise.
454 * tree-profile.c (parse_profile_filter): Likewise.
456 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
458 PR tree-optimization/89956
459 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
460 multiple negates of the same value.
462 2019-04-04 Martin Sebor <msebor@redhat.com>
466 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
467 have the same precision since the function crashes otherwise.
468 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
469 has non-zero arguments.
471 2019-04-04 Martin Sebor <msebor@redhat.com>
474 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
475 out if the number of arguments is less than expected.
477 2019-04-04 Jeff Law <law@redhat.com>
479 PR rtl-optimization/89399
480 * ree.c (combine_set_extension): Use single_set rather than
481 digging into PATTERN for items on the candidate list.
482 (combine_reaching_defs): Likewise.
484 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
486 PR rtl-optimization/46590
487 * loop-invariant.c (find_defs): Move df_remove_problem and
488 df_process_deferred_rescans to move_invariants.
489 Move df_live_add_problem and df_live_set_all_dirty calls
491 (move_invariants): Likewise.
492 (move_loop_invariants): Likewise, making the df_live calls
493 conditional on -O. Remove the problem again if we added it
496 2019-04-03 qing zhao <qing.zhao@oracle.com>
498 PR tree-optimization/89730
499 * ipa-inline.c (can_inline_edge_p): Delete the checking for
500 -flive-patching=inline-only-static.
501 (can_inline_edge_by_limits_p): Add the checking for
502 -flive-patching=inline-only-static and grant always_inline
503 even when -flive-patching=inline-only-static is specified.
505 2019-04-03 Jeff Law <law@redhat.com>
507 PR rtl-optimization/81025
508 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
510 2019-04-03 Richard Biener <rguenther@suse.de>
512 PR tree-optimization/84101
513 * tree-vect-stmts.c: Include explow.h for hard_function_value,
514 regs.h for hard_regno_nregs.
515 (cfun_returns): New helper.
516 (vect_model_store_cost): When vectorizing a store to a decl
517 we return and the function ABI returns in a multi-reg location
518 account for the possible spilling that will happen.
520 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
522 * config/s390/s390.c (s390_legitimate_address_p): Reject long
523 displacement addresses for vector mode operands.
525 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
527 * config/arc/arc.c (GMASK_LEN): Define.
528 (arc_restore_callee_saves): Restore first blink when
531 2019-04-03 Sudakshina Das <sudi.das@arm.com>
533 * doc/extend.texi: Add deprecated comment on sign-return-address
534 function attribute and add mbranch-protection.
535 * doc/invoke.texi: Add bti to the options for mbranch-protection.
537 2019-04-03 Richard Biener <rguenther@suse.de>
540 * lto-wrapper.c (run_gcc): Avoid implicit rules making
541 the all target phony.
543 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
547 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
548 Return false for variable DImode shifts.
549 (dimode_scalar_chain::compute_convert_gain): Do not handle
550 register count operand in variable DImode shifts.
551 (dimode_scalar_chain::make_vector_copies): Remove support to copy
552 count argument of a variable shift instruction to a vector register.
553 (dimode_scalar_chain::convert_reg): Remove support to convert
554 count argument of a variable shift instruction.
556 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
558 PR rtl-optimization/84206
559 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
560 iterating over loop headers.
562 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
564 PR rtl-optimization/85876
565 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
566 beyond the original fence.
568 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
570 * config.gcc: Mark spu* targets as deprecated/obsolete.
572 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
574 * config/s390/s390-builtin-types.def: New builtin function type
575 definitions. Remove unused types.
576 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
577 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
578 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
580 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
581 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
582 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
583 (vec_double, vec_signed, vec_unsigned): Define to use the new
585 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
588 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
590 * config/s390/s390-builtin-types.def: New builtin function type
592 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
593 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
594 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
595 (s390_vstrszh, s390_vstrszf): New low-level builtins.
596 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
597 constant definitions.
598 * config/s390/vecintrin.h (vec_search_string_cc)
599 (vec_search_string_until_zero_cc): New builtin name definitions.
600 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
602 ("vec_vstrs<mode>"): New insn definition.
604 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
606 * config/s390/s390-builtin-types.def: Add new builtin function
608 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
609 New overloaded builtins.
610 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
612 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
613 (UNSPEC_VEC_SLDBYTE): ... this.
614 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
615 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
617 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
618 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
619 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
621 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
623 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
625 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
626 * config/s390/vector.md (V_HW_HSD): ... here.
628 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
630 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
631 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
632 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
633 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
634 New insn definitions.
636 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
638 * config/s390/s390-builtin-types.def: Add new builtin function type.
639 * config/s390/s390-builtins.def: Add overloaded builtin
640 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
641 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
642 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
643 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
644 ("eltswap<mode>"): New expander.
645 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
648 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
650 * config/s390/s390-builtin-types.def: Add new builtin function types.
651 * config/s390/s390-builtins.def: Add overloaded builtin
652 s390_vec_revb. Add low-level builtins for vlbr and vstbr
654 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
655 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
656 ("bswap<mode>"): New expander.
657 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
659 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
661 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
662 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
663 vector builtin version number in __VEC__.
665 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
667 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
669 (SFSI): New mode attribute.
670 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
671 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
673 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
674 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
675 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
676 ("floatsi<mode>2"): Add wcefb instruction.
678 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
680 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
681 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
683 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
684 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
685 support 32 bit fp-int conversions. Rename to ...
686 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
687 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
688 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
689 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
692 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
694 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
695 if-then-else constructs if we can use the select instruction.
696 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
698 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
700 * config/s390/s390.md ("*popcountdi_arch13_cc")
701 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
703 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
704 Append _z196 to make it ...
705 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
706 ("popcounthi2_z196"): ... this.
707 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
708 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
710 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
712 * config/s390/s390.c (s390_canonicalize_comparison): Convert
713 certain compares for arch13 in order to make use of the condition
714 code result produced by the new instructions.
715 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
716 nxrk, and nxgrk instruction patterns.
717 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
718 (inv_no): Add new code iterator together with some attributes.
719 ("*andc_split_<mode>"): Disable splitter for arch13.
720 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
721 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
722 ("*<ANDOR:bitops_name>c<GPR:mode>")
723 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
724 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
725 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
726 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
728 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
730 * common/config/s390/s390-common.c (processor_flags_table): New
732 * config.gcc: Support arch13 with the --with-arch= configure flag.
733 * config/s390/driver-native.c (s390_host_detect_local_cpu):
734 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
735 * config/s390/s390.c (s390_get_sched_attrmask)
736 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
737 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
738 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
739 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
740 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
742 * config/s390/s390.opt: Support arch13 as processor type in
743 command line options.
745 2019-04-02 Martin Liska <mliska@suse.cz>
748 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
749 Fix param description of graphite-max-arrays-per-scop.
751 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
753 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
754 (ASAN_CC1_SPEC): Use it in 64-bit mode.
755 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
757 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
759 PR rtl-optimization/85412
760 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
761 sel_sched_region_1, not after.
763 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
765 PR rtl-optimization/86928
766 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
767 compute_live if necessary.
768 (sel_redirect_edge_and_branch): Likewise.
770 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
772 PR rtl-optimization/89865
773 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
774 register if it is a part of small class.
776 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
778 PR rtl-optimization/87273
779 * sel-sched-ir.c (merge_fences): Remove assert.
781 2019-04-01 Richard Biener <rguenther@suse.de>
783 PR tree-optimization/46590
784 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
785 (dom_walker::m_reachability): Add in place of...
786 (dom_walker::m_skip_unreachable_blocks): ...this.
787 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
788 Move complex initialization ...
789 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
790 lazily and initialize edge flags on each invocation.
791 (dom_walker::bb_reachable): Use m_reachability.
793 2019-04-01 Martin Liska <mliska@suse.cz>
796 * opt-suggestions.c (option_proposer::build_option_suggestions):
797 Add variant without any argument in order to provide better
800 2019-04-01 Richard Biener <rguenther@suse.de>
803 * gimple.c: Include langhooks.h.
804 (gimple_get_alias_set): Treat enumeral types as the underlying
807 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
808 Eric Botcazou <ebotcazou@adacore.com>
810 PR rtl-optimization/89862
811 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
812 that operates on the full registers for WORD_REGISTER_OPERATIONS
815 2019-03-29 Jim Wilson <jimw@sifive.com>
817 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
818 Clear MASK_RVC and then set if C subset supported.
820 2019-03-29 Jakub Jelinek <jakub@redhat.com>
823 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
824 non-addressable complit into its initializer if it is volatile.
826 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
828 * opts-common.c (integral_argument): Set errno properly in one case.
830 2019-03-29 Martin Liska <mliska@suse.cz>
832 * doc/invoke.texi: Remove -Wchkp from documentation.
834 2019-03-29 Martin Liska <mliska@suse.cz>
836 * dbgcnt.c (print_limit_reach): New function.
839 2019-03-29 Martin Liska <mliska@suse.cz>
841 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
842 (dbg_cnt_process_opt): Parse first tokens aas
843 dbg_cnt_process_single_pair is also using strtok.
845 2019-03-29 Jakub Jelinek <jakub@redhat.com>
847 PR rtl-optimization/87485
848 * function.c (expand_function_end): Move stack_protect_epilogue
849 before loading of return value into hard register(s).
851 2019-03-28 Jakub Jelinek <jakub@redhat.com>
854 * tree-inline.h (struct copy_body_data): Add
855 dont_remap_vla_if_no_change flag.
856 * tree-inline.c (remap_type_3, remap_type_2): New functions.
857 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
858 and remap_type_2 returns false.
859 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
860 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
861 only from where it is copied to nested contexts.
863 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
866 * config/i386/i386.md (RMW operation with LEA peephole):
867 Use LEAMODE mode attribute instead of SWI mode iterator for
870 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
873 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
874 Also process XEXP (src, 0) of a shift insn.
876 2019-03-28 David Malcolm <dmalcolm@redhat.com>
879 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
880 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
882 2019-03-28 Jakub Jelinek <jakub@redhat.com>
884 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
886 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
887 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
888 immediately after first one with df_analyze in between, but rather
889 process all bbs, queueing ones that need second pass in a worklist,
890 df_analyze, process queued debug insn changes and if second pass is
891 needed, process bbs from worklist, df_analyze, process queued debug
894 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
895 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
896 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
898 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
901 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
904 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
907 * config/i386/i386.c (ix86_function_value_1): Call the newly added
908 function for 32-bit MS_ABI.
909 (function_value_ms_32): New function.
911 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
913 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
914 (movdi): Call gen_movdi_symbol_save_scc.
915 (gen_movdi_symbol_save_scc): New insn and split.
917 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
919 PR rtl-optimization/89313
920 * function.c (matching_constraint_num): New static function.
921 (match_asm_constraints_1): Use it. Fixup white space and comment.
922 Don't replace inputs with non-matching constraints which conflict
923 with early clobber outputs.
925 2019-03-27 Jeff Law <law@redhat.com>
928 PR rtl-optimization/87761
929 PR rtl-optimization/89826
930 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
932 (pass_cprop_hardreg::execute): Call df_analyze after adding the
933 note problem to get REG_DEAD/REG_UNUSED notes updated.
935 2019-03-27 Richard Biener <rguenther@suse.de>
937 PR tree-optimization/89463
938 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
939 queue edges to remove.
940 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
941 dead stmts. Delay edge removal until PHIs are removed to
942 make debug-stmt creation not confused by seemingly degenerate
945 2019-03-27 Alan Modra <amodra@gmail.com>
947 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
949 * config/rs6000/darwin.h: Likewise.
950 * config/rs6000/rs6000.c: Likewise.
952 2019-03-27 Alan Modra <amodra@gmail.com>
954 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
955 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
957 2019-03-26 Andrew Waterman <andrew@sifive.com>
958 Jim Wilson <jimw@sifive.com>
960 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
961 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
962 (generic_idivdi, generic_fmul_single, generic_fmul_double)
963 (generic_fdiv, generic_fsqrt): Add check for generic tune.
964 (generic_alu): Add auipc to type list.
965 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
966 (riscv_microarchitecture): Declare.
967 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
968 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
970 (riscv_microarchitecture): New.
971 (sifive_7_tune_info): New.
972 (riscv_cpu_info_table): Add microarchitecture value for rocket and
973 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
975 (riscv_store_data_bypass_p): New.
976 (riscv_option_override): Set riscv_microarchitecture from
977 cpu->microarchitecture.
978 * config/riscv/riscv.md: Include sifive-7.md.
981 (auipc<mode>): Change type to auipc.
982 (restore_stack_nonlocal): New.
983 * config/riscv/sifive-7.md: New.
984 * doc/invoke.texi (RISC-V Options): Update mtune docs.
986 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
989 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
990 Also process XEXP (src, 0) of a shift insn.
992 2019-03-26 Richard Biener <rguenther@suse.de>
994 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
995 (copy_debug_stmt): Likewise.
996 (expand_call_inline): Likewise.
997 (copy_bb): Avoid redundant lookup & set of gimple_block.
998 * gimple-low.c (lower_gimple_return): Likewise.
999 (lower_builtin_setjmp): Likewise.
1001 2019-03-26 Jakub Jelinek <jakub@redhat.com>
1003 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
1004 is constant 0, turn into static const data member initialized to false.
1005 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
1006 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
1008 2019-03-26 Jason Merrill <jason@redhat.com>
1009 Jakub Jelinek <jakub@redhat.com>
1011 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
1013 (mem_alloc_description::release_object_overhead): Fix comment typos.
1014 * hash-table.h (hash_table::~hash_table): Call
1015 release_instance_overhead only if m_entries is non-NULL, otherwise
1016 call unregister_descriptor.
1018 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
1020 PR tree-optimization/81740
1021 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1022 In case of outer loop vectorization, check for backward dependence
1023 at the inner loop if outer loop dependence is reversed.
1025 2019-03-26 Alan Modra <amodra@gmail.com>
1027 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
1028 rs6000_vector_mem init. Correct wI and wJ comment.
1030 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
1032 PR rtl-optimization/88347
1033 PR rtl-optimization/88423
1034 * sched-deps.c (sched_analyze_insn): Take into account that for
1035 tablejumps the barrier appears after a label and a jump_table_data.
1037 2019-03-25 Martin Sebor <msebor@redhat.com>
1040 * c-common.c (check_user_alignment): Rename local. Correct maximum
1041 alignment in diagnostic. Avoid assuming argument fits in SHWI,
1042 convert it to UHWI when it fits.
1044 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
1047 * dwarf2out.c (premark_used_variables): New function.
1048 (prune_unused_types_walk): Do not mark not premarked external
1050 (prune_unused_types): Call premark_used_variables.
1052 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
1054 PR rtl-optimization/89676
1055 * lra-constraints.c (curr_insn_transform): Do match reload for
1056 early clobbers when the match was successful only for different
1059 2019-03-25 Martin Sebor <msebor@redhat.com>
1061 * doc/extend.texi (Common Type Attributes): Document vector_size.
1062 (Common Variable Attributes): Mention size constraint. Correct
1064 (Vector Extensions): Use @dfn when defining bas type. Clarify
1065 base type and size constraints.
1067 2019-03-25 Richard Biener <rguenther@suse.de>
1069 PR tree-optimization/89789
1070 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
1071 changes from non-undefined back to undefined.
1073 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
1075 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
1076 heap string and a gc string, but since this variable is unknown to
1077 ggc the gc string might get reused and corrupted. Fixed by always
1078 using a heap string.
1080 2019-03-25 Richard Biener <rguenther@suse.de>
1082 PR tree-optimization/89779
1083 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
1084 to remove IV defs, delay actual removal.
1085 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
1086 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
1087 very end, properly also reset loop control IV information.
1089 2019-03-25 Richard Biener <rguenther@suse.de>
1091 PR tree-optimization/89802
1092 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
1093 move EH data to folded stmt.
1095 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
1097 * config/s390/s390-builtin-types.def: Remove few unused types and
1098 fix sort order for others.
1100 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
1102 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
1103 expected and found types with -mdebug during builtin matching.
1105 2019-03-25 Richard Biener <rguenther@suse.de>
1108 * fold-const.c (operand_equal_p): Revert last change with
1111 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
1113 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
1114 notes for the result of the __tls_get_addr calls.
1115 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
1117 2019-03-24 Jeff Law <law@redhat.com>
1119 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
1121 PR rtl-optimization/87761
1122 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
1123 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
1125 (pass_cprop_hardreg::execute): Add df note problem and defer insn
1126 rescans. Reprocess blocks as needed, calling df_analyze before
1127 reprocessing. Always call df_analyze before fixing up debug bind
1130 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
1132 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
1135 2019-03-22 Andrew Pinski <apinski@marvell.com>
1137 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
1138 attrribute for uxtw.
1140 2019-03-26 Jeff Law <law@redhat.com>
1142 PR rtl-optimization/87761
1143 * config/mips/mips-protos.h (mips_split_move): Add new argument.
1144 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
1145 (mips_split_move): Accept new INSN argument. Try to forward SRC
1146 into the next instruction.
1147 (mips_split_move_insn): Pass INSN through to mips_split_move.
1149 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
1151 PR rtl-optimization/89676
1152 * lra-constraints.c (curr_insn_transform): Do match reload for
1153 early clobbers even if the match was successful.
1155 2019-03-22 Jakub Jelinek <jakub@redhat.com>
1158 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
1160 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
1162 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
1164 2019-03-22 Jakub Jelinek <jakub@redhat.com>
1166 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
1167 <avx512>_fmsub_<mode>_mask3<round_name>,
1168 <avx512>_fnmadd_<mode>_mask3<round_name>,
1169 <avx512>_fnmsub_<mode>_mask3<round_name>,
1170 avx512f_vmfmadd_<mode>_mask3<round_name>,
1171 avx512f_vmfmsub_<mode>_mask3<round_name>,
1172 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
1173 instead of register_operand and %v instead of v for match_operand 1.
1174 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
1175 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
1176 <round_nimm_predicate> instead of register_operand and %v instead of v
1177 for match_operand 1.
1179 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
1180 <avx512>_fmadd_<mode>_mask3<round_name>,
1181 <avx512>_fmsub_<mode>_mask<round_name>,
1182 <avx512>_fmsub_<mode>_mask3<round_name>,
1183 <avx512>_fnmadd_<mode>_mask<round_name>,
1184 <avx512>_fnmadd_<mode>_mask3<round_name>,
1185 <avx512>_fnmsub_<mode>_mask<round_name>,
1186 <avx512>_fnmsub_<mode>_mask3<round_name>,
1187 <avx512>_fmaddsub_<mode>_mask<round_name>,
1188 <avx512>_fmaddsub_<mode>_mask3<round_name>,
1189 <avx512>_fmsubadd_<mode>_mask<round_name>,
1190 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
1191 <round_nimm_predicate> instead of nonimmediate_operand.
1192 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
1193 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
1194 Use register_operand instead of <round_nimm_predicate> for the
1195 operand that needs to match output.
1196 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
1197 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
1198 Likewise. Formatting fixes.
1201 * config/i386/i386.c (enum ix86_builtins): Remove
1202 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
1203 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
1204 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
1205 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
1206 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
1207 __builtin_ia32_vfmsubss3_mask3): New builtins.
1208 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
1209 avx512f_vmfmadd_<mode>_mask3<round_name>,
1210 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
1211 *avx512f_vmfmsub_<mode>_mask<round_name>,
1212 avx512f_vmfmsub_<mode>_mask3<round_name>,
1213 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
1214 *avx512f_vmfnmadd_<mode>_mask<round_name>,
1215 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
1216 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
1217 *avx512f_vmfnmsub_<mode>_mask<round_name>,
1218 avx512f_vmfnmsub_<mode>_mask3<round_name>,
1219 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
1220 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
1221 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
1222 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
1223 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
1224 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
1225 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
1226 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
1227 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
1228 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
1229 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
1230 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
1231 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
1232 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
1233 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
1234 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
1235 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
1236 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
1237 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
1238 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
1239 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
1240 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
1242 2019-03-21 Martin Sebor <msebor@redhat.com>
1244 PR tree-optimization/89350
1245 * builtins.c (compute_objsize): Also ignore offsets whose upper
1247 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
1248 (builtin_memref::builtin_memref): Initialize new member.
1249 Allow EXPR to be null.
1250 (builtin_memref::extend_offset_range): Replace local with a member.
1251 Avoid assuming pointer offsets are unsigned.
1252 (builtin_memref::set_base_and_offset): Determine base object
1253 before computing offset range.
1254 (builtin_access::builtin_access): Handle memset.
1255 (builtin_access::generic_overlap): Replace local with a member.
1256 (builtin_access::strcat_overlap): Same.
1257 (builtin_access::overlap): Same.
1258 (maybe_diag_overlap): Same.
1259 (maybe_diag_access_bounds): Same.
1260 (wrestrict_dom_walker::check_call): Handle memset.
1261 (check_bounds_or_overlap): Same.
1263 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
1264 Jakub Jelinek <jakub@redhat.com>
1267 * tree.c (fld_type_variant, fld_incomplete_type_of,
1268 fld_process_array_type): Call fld->pset.add and don't call
1269 add_tree_to_fld_list if it returns true.
1270 (free_lang_data_in_type): Similarly with self-recursive call. Purge
1271 non-marked types from TYPE_NEXT_VARIANT list.
1272 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
1274 2019-03-21 Jakub Jelinek <jakub@redhat.com>
1276 * hash-table.h (hash_table): Add Lazy template parameter defaulted
1277 to false, if true, don't alloc_entries during construction, but defer
1278 it to the first method that needs m_entries allocated.
1279 (hash_table::hash_table, hash_table::~hash_table,
1280 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
1281 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
1282 hash_table::clear_slot, hash_table::traverse_noresize,
1283 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
1284 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
1286 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
1287 NO_INSERT instead of find_with_hash.
1288 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
1289 hash_set::m_table): Add Lazy to template params of hash_table.
1290 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
1291 * attribs.c (test_attribute_exclusions): Likewise.
1292 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
1293 hash_set. Add tests for hash_set with Lazy = true.
1295 2019-03-21 Richard Biener <rguenther@suse.de>
1297 PR tree-optimization/89779
1298 * tree.c (tree_nop_conversion): Consolidate and fix defensive
1299 checks with respect to released SSA names now having error_mark_node
1301 * fold-const.c (operand_equal_p): Likewise.
1303 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
1306 * config/s390/s390.c (global_not_special_regno_p): Move to make it
1308 (s390_optimize_register_info): Use global_not_special_regno_p to
1309 check for global regs.
1311 2019-03-20 Jakub Jelinek <jakub@redhat.com>
1314 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
1315 update this_alternative nor this_alternative_set.
1317 2019-03-19 Jim Wilson <jimw@sifive.com>
1320 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
1321 align, size, offset. Use them to handle a BLKmode reference. Update
1323 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
1325 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1327 PR rtl-optimization/89768
1328 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
1330 (unroll_loop_runtime_iterations): Likewise.
1332 2019-03-19 Martin Sebor <msebor@redhat.com>
1334 PR tree-optimization/89644
1335 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
1336 rather than endptr as an indicator of nul-termination.
1338 PR tree-optimization/89644
1339 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
1340 arrays in determining sequence sizes in strncpy and stpncpy.
1342 2019-03-19 Martin Liska <mliska@suse.cz>
1345 * predict.c (combine_predictions_for_bb): Empty likely_edges and
1346 unlikely_edges if there's an edge that belongs to both these sets.
1348 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
1351 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
1352 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
1353 go via a stack temporary.
1355 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1358 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
1359 instead of gen_rtx_SUBREG.
1360 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
1362 2019-03-19 Richard Biener <rguenther@suse.de>
1365 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
1367 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
1371 * tree.c (free_lang_data_in_decl): Do not free context of C++
1374 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1377 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
1378 subs for the first alternative except when operands[3] is 1.
1381 * gimplify.c (gimplify_asm_expr): For output argument with
1382 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
1385 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
1387 PR rtl-optimization/89753
1388 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
1389 explicit unrolling factor even more robust.
1391 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1394 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
1395 compensation use x2 += 1 instead of x2 -= -1 and when honoring
1396 signed zeros, do another copysign after the compensation.
1398 2019-03-18 Martin Sebor <msebor@redhat.com>
1400 PR tree-optimization/89720
1401 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
1402 more conservatively, the same as anti-range.
1404 2019-03-18 Richard Biener <rguenther@suse.de>
1407 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
1408 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
1409 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
1410 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
1412 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
1414 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
1415 Extend queue to 1024 entries.
1416 Add "consumed" field.
1417 (gomp_print_output): Remove print_index parameter.
1418 Add final parameter.
1419 Change limit to unsigned.
1420 Use consumed field to implement circular buffer.
1421 Detect interrupted print in final pass.
1422 Flush output at the end.
1423 (run): Update gomp_print_output usage.
1424 (main): Initialize kernargs->output_data.consumed.
1426 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
1428 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
1429 calculation of the minimum number of scalar iterations for
1430 fully-predicated loops.
1432 2019-03-18 Martin Jambor <mjambor@suse.cz>
1434 PR tree-optimization/89546
1435 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
1436 any propagation to its children took place.
1438 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1441 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
1442 parameter, and make use of it.
1443 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
1445 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1447 * config/arc/arc.opt (mcode-density-frame): Get the inital value
1448 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
1449 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
1450 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
1451 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
1452 match what the ops is doing.
1453 (push_multi_fp_blink): Likewise.
1454 * config/arc/arc.c (arc_override_options): Enable enter/leave when
1455 compiling for size and elf target.
1456 (arc_save_callee_enter): Adjust note to match what enter/leave
1459 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1461 * config/arc/arc.md (tst_movb): Fix constraint.
1463 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1465 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
1467 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1469 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
1470 * config/arc/arc.c (arc_conditional_register_usage): Remove all
1471 reg_alloc_order references.
1472 (size_alloc_order): Define.
1473 (arc_adjust_reg_alloc_order): New function.
1474 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
1476 (ADJUST_REG_ALLOC_ORDER): Define.
1477 (HONOR_REG_ALLOC_ORDER): Likewise.
1479 2019-03-18 Richard Biener <rguenther@suse.de>
1482 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
1483 loads and stores a bit more.
1485 2019-03-18 Richard Biener <rguenther@suse.de>
1488 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
1489 load pessimization to stores as well.
1491 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
1494 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
1495 successor, use NULL as its av set.
1497 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
1499 PR rtl-optimization/89721
1500 * lra-constraints (invariant_p): Return false if side_effects_p holds.
1502 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
1505 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1506 When handling vec_extract, use modular arithmetic to allow
1507 constant selectors greater than vector length.
1508 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
1509 V1TImode vectors to have constant selector values greater than 0.
1510 Use modular arithmetic to compute vector index.
1511 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
1512 index for in-memory vectors. Correct code generation for
1513 in-register vectors.
1514 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
1517 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
1521 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
1524 2019-03-15 Jakub Jelinek <jakub@redhat.com>
1527 * tree.c (inchash::add_expr): Strip any location wrappers.
1528 * fold-const.c (operand_equal_p): Move stripping of location wrapper
1529 after hash verification.
1532 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
1533 SIGN_EXTEND and ZERO_EXTEND.
1535 2019-03-14 Jason Merrill <jason@redhat.com>
1536 Jakub Jelinek <jakub@redhat.com>
1538 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
1539 than if is_empty (*slot).
1540 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
1541 existing elt and for elt removal.
1542 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
1543 of already removed elt.
1545 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1548 * config/i386/i386.c (remove_partial_avx_dependency): Handle
1551 2019-03-14 Martin Liska <mliska@suse.cz>
1554 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
1556 2019-03-14 Richard Biener <rguenther@suse.de>
1559 * config/i386/i386.c (make_resolver_func): Properly set
1560 DECL_CONTEXT on the RESULT_DECL.
1561 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
1563 2019-03-14 Richard Biener <rguenther@suse.de>
1565 * gimple-pretty-print.c: Include cfgloop.h.
1566 (dump_gimple_phi): Adjust.
1567 (dump_gimple_bb_header): Dump loop header for GIMPLE.
1568 (pp_cfg_jump): Adjust.
1569 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
1570 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
1571 (lower_phi_internal_fn): Remove.
1572 (verify_gimple_call): Remove IFN_PHI special-casing.
1573 (dump_function_to_file): Dump IL state.
1574 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
1575 done to deal with PHI nodes being present in non-SSA state.
1577 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1580 * multiple_target.c (create_dispatcher_calls): Change
1581 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
1582 In the node->iterate_referring loop, push *ref rather than ref, call
1583 ref->remove_reference () and always pass 0 to iterate_referring.
1585 PR rtl-optimization/89679
1586 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
1587 would contain a paradoxical SUBREG.
1589 2019-03-14 Richard Biener <rguenther@suse.de>
1591 PR tree-optimization/89710
1592 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
1595 2019-03-14 Martin Liska <mliska@suse.cz>
1597 * coverage.c (coverage_begin_function): Stream also
1599 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
1600 documentation about function declaration location.
1601 * gcov-dump.c (tag_function): Print whole range
1602 of function declaration.
1603 * gcov.c (struct function_info): Add end_column field.
1604 (function_info::function_info): Initialize it.
1605 (output_json_intermediate_file): Output {start,end}_column
1607 (read_graph_file): Read end_column.
1609 2019-03-14 Richard Biener <rguenther@suse.de>
1612 * fold-const.c (operand_equal_p): For INDIRECT_REF check
1613 that the access types are similar.
1615 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1617 PR tree-optimization/89703
1618 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
1619 aren't compatible also with builtin_decl_explicit. Check pure
1620 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
1621 and BUILT_IN_STPNCPY{,_CHK}.
1623 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
1626 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
1627 addr32 prefix to VSIB address for X32.
1628 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
1630 (*avx512pf_gatherpf<mode>df_mask): Likewise.
1631 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
1632 (*avx512pf_scatterpf<mode>df_mask): Likewise.
1633 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
1634 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
1635 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
1636 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
1637 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
1638 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
1639 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
1640 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
1641 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
1642 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
1643 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
1644 (*avx512f_scatterdi<mode>): Likewise.
1646 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
1649 * lra-constraints.c (inherit_in_ebb): Update
1650 potential_reload_hard_regs along with live_hard_regs.
1652 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1655 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
1657 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
1659 2019-03-13 Martin Sebor <msebor@redhat.com>
1661 PR tree-optimization/89662
1662 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
1665 2019-03-13 Richard Biener <rguenther@suse.de>
1668 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
1669 throw FP expressions at tree-affine.
1671 2019-03-14 Richard Biener <rguenther@suse.de>
1673 * tree-pretty-print.c (dump_generic_node): For -gimple properly
1674 dump negative integer constants using _Literal (type) -num.
1676 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1678 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
1679 nonlocal_value member.
1682 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
1683 (ipa_simd_modify_function_body): Handle PHIs.
1685 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1687 * config/s390/s390.c (s390_option_override_internal): Use more
1688 aggressive inlining parameters.
1690 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1692 * config/s390/3906.md: New file.
1693 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1694 (LONGRUNNING_THRESHOLD): Remove.
1695 (MAX_SCHED_MIX_SCORE): Decrease.
1696 (MAX_SCHED_MIX_DISTANCE): Decrease.
1697 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
1698 (struct s390_sched_state): New struct to hold scheduling state.
1699 (S390_SCHED_STATE_NORMAL): Remove.
1700 (S390_SCHED_STATE_CRACKED): Remove.
1701 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
1702 (s390_get_sched_attrmask): Use new attribute.
1703 (s390_get_unit_mask): Use new units.
1704 (s390_is_fpd): New function.
1705 (s390_is_fxd): New function.
1706 (s390_is_longrunning): New function.
1707 (s390_sched_score): Use new functions.
1708 (s390_sched_reorder): Likewise.
1709 (s390_sched_variable_issue): Rework and use new functions.
1710 (s390_sched_init): Use new functions.
1711 * config/s390/s390.h (s390_tune_attr): Add z14.
1712 * config/s390/s390.md: Add z14.
1714 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1716 * config/s390/2964.md: Update pipeline description.
1717 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1718 (LONGRUNNING_THRESHOLD): Remove.
1719 (LATENCY_FACTOR): Remove.
1720 (s390_get_unit_mask): Add unit.
1721 (s390_sched_score): Use fxd/fpd.
1722 (s390_sched_variable_issue): Use fxd/fpd.
1724 2019-03-12 Martin Liska <mliska@suse.cz>
1726 * config/i386/i386.c: Reword an error message.
1728 2019-03-12 Martin Jambor <mjambor@suse.cz>
1730 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
1731 terminate with newline.
1733 2019-03-12 Jakub Jelinek <jakub@redhat.com>
1736 * config/s390/s390.md (tabort): Use %wd instead of
1737 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
1738 letters and periods.
1739 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
1740 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
1744 * builtins.c (expand_builtin_int_roundingfn,
1745 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
1746 gcc_unreachable if validate_arglist fails.
1748 2019-03-12 Richard Biener <rguenther@suse.de>
1750 PR tree-optimization/89664
1751 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
1752 free the occurance tree after the early out.
1754 2019-03-11 Jakub Jelinek <jakub@redhat.com>
1758 * vr-values.c (vr_values::update_value_range): If
1759 old_vr->varying_p (), don't update it, make new_vr also VARYING
1762 2019-03-11 Martin Liska <mliska@suse.cz>
1764 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1765 Fix double string quoting.
1767 2019-03-11 Martin Liska <mliska@suse.cz>
1769 * collect-utils.c (collect_wait): Wrap apostrophes
1770 in gcc internal format with %'.
1771 * collect2.c (main): Likewise.
1772 (scan_prog_file): Likewise.
1773 (scan_libraries): Likewise.
1774 * config/i386/i386.c (ix86_expand_call): Likewise.
1775 (ix86_handle_interrupt_attribute): Likewise.
1776 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
1777 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
1778 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
1779 * lto-wrapper.c (find_crtoffloadtable): Likewise.
1780 * symtab.c (symtab_node::verify_base): Likewise.
1781 * tree-cfg.c (verify_gimple_label): Likewise.
1782 * tree.c (verify_type_variant): Likewise.
1784 2019-03-11 Martin Liska <mliska@suse.cz>
1786 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
1787 in a string format message and fix GNU coding style.
1788 (expand_builtin_set_thread_pointer): Likewise.
1789 * common/config/aarch64/aarch64-common.c
1790 (aarch64_rewrite_selected_cpu): Likewise.
1791 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
1792 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
1793 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
1794 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
1795 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
1796 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
1797 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
1798 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
1799 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
1800 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
1802 * common/config/riscv/riscv-common.c
1803 (riscv_subset_list::parsing_subset_version): Likewise.
1804 (riscv_subset_list::parse_std_ext): Likewise.
1805 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1806 (riscv_subset_list::parse): Likewise.
1807 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
1808 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
1809 (aarch64_override_options_internal): Likewise.
1810 (aarch64_validate_mcpu): Likewise.
1811 (aarch64_validate_march): Likewise.
1812 (aarch64_validate_mtune): Likewise.
1813 (aarch64_override_options): Likewise.
1814 * config/alpha/alpha.c (alpha_option_override): Likewise.
1815 * config/arc/arc.c (arc_init): Likewise.
1816 (parse_mrgf_banked_regs_option): Likewise.
1817 (arc_override_options): Likewise.
1818 (arc_expand_builtin_aligned): Likewise.
1819 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
1820 (arm_expand_builtin): Likewise.
1821 * config/arm/arm.c (arm_option_check_internal): Likewise.
1822 (arm_configure_build_target): Likewise.
1823 (arm_option_override): Likewise.
1824 (arm_options_perform_arch_sanity_checks): Likewise.
1825 (arm_handle_cmse_nonsecure_entry): Likewise.
1826 (arm_handle_cmse_nonsecure_call): Likewise.
1827 (arm_tls_referenced_p): Likewise.
1828 (thumb1_expand_prologue): Likewise.
1829 * config/avr/avr.c (avr_option_override): Likewise.
1830 * config/bfin/bfin.c (bfin_option_override): Likewise.
1831 * config/c6x/c6x.c (c6x_option_override): Likewise.
1832 * config/cr16/cr16.c (cr16_override_options): Likewise.
1833 * config/cris/cris.c (cris_option_override): Likewise.
1834 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
1835 * config/darwin-c.c (macosx_version_as_macro): Likewise.
1836 * config/darwin.c (darwin_override_options): Likewise.
1837 * config/frv/frv.c (frv_expand_builtin): Likewise.
1838 * config/h8300/h8300.c (h8300_option_override): Likewise.
1839 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
1840 (ix86_option_override_internal): Likewise.
1841 (warn_once_call_ms2sysv_xlogues): Likewise.
1842 (ix86_expand_prologue): Likewise.
1843 (split_stack_prologue_scratch_regno): Likewise.
1844 (ix86_warn_parameter_passing_abi): Likewise.
1845 * config/ia64/ia64.c (fix_range): Likewise.
1846 * config/m68k/m68k.c (m68k_option_override): Likewise.
1847 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
1848 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
1849 (mips_set_compression_mode): Likewise.
1850 * config/mmix/mmix.c (mmix_option_override): Likewise.
1851 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
1852 * config/msp430/msp430.c (msp430_option_override): Likewise.
1853 * config/nds32/nds32.c (nds32_option_override): Likewise.
1854 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
1855 (nios2_option_override): Likewise.
1856 (nios2_expand_custom_builtin): Likewise.
1857 * config/nvptx/mkoffload.c (main): Likewise.
1858 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
1859 * config/pa/pa.c (fix_range): Likewise.
1860 (pa_option_override): Likewise.
1861 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
1862 (riscv_option_override): Likewise.
1863 * config/rl78/rl78.c (rl78_option_override): Likewise.
1864 * config/rs6000/aix61.h: Likewise.
1865 * config/rs6000/aix71.h: Likewise.
1866 * config/rs6000/aix72.h: Likewise.
1867 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
1868 * config/rs6000/freebsd64.h: Likewise.
1869 * config/rs6000/linux64.h: Likewise.
1870 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
1871 (rs6000_expand_zeroop_builtin): Likewise.
1872 (rs6000_expand_mtfsb_builtin): Likewise.
1873 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
1874 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
1875 (rs6000_invalid_builtin): Likewise.
1876 (rs6000_expand_split_stack_prologue): Likewise.
1877 * config/rs6000/rtems.h: Likewise.
1878 * config/rx/rx.c (valid_psw_flag): Likewise.
1879 (rx_expand_builtin): Likewise.
1880 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
1881 * config/s390/s390.c (s390_expand_builtin): Likewise.
1882 (s390_function_profiler): Likewise.
1883 (s390_option_override_internal): Likewise.
1884 (s390_option_override): Likewise.
1885 * config/sh/sh.c (sh_option_override): Likewise.
1886 (sh_builtin_saveregs): Likewise.
1887 (sh_fix_range): Likewise.
1888 * config/sh/vxworks.h: Likewise.
1889 * config/sparc/sparc.c (sparc_option_override): Likewise.
1890 * config/spu/spu.c (spu_option_override): Likewise.
1891 (fix_range): Likewise.
1892 * config/visium/visium.c (visium_option_override): Likewise.
1893 (visium_handle_interrupt_attr): Likewise.
1894 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
1895 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
1896 (dbg_cnt_process_opt): Likewise.
1897 * dwarf2out.c (output_dwarf_version): Likewise.
1898 * except.c (expand_eh_return): Likewise.
1899 * gcc.c (defined): Likewise.
1900 (driver_handle_option): Likewise.
1901 (process_command): Likewise.
1902 (compare_files): Likewise.
1903 (driver::prepare_infiles): Likewise.
1904 (driver::do_spec_on_infiles): Likewise.
1905 (driver::maybe_run_linker): Likewise.
1906 * omp-offload.c (oacc_parse_default_dims): Likewise.
1907 * opts-global.c (handle_common_deferred_options): Likewise.
1908 * opts.c (parse_sanitizer_options): Likewise.
1909 (common_handle_option): Likewise.
1910 (enable_warning_as_error): Likewise.
1911 * passes.c (enable_disable_pass): Likewise.
1912 * plugin.c (parse_plugin_arg_opt): Likewise.
1913 (default_plugin_dir_name): Likewise.
1914 * targhooks.c (default_expand_builtin_saveregs): Likewise.
1915 (default_pch_valid_p): Likewise.
1916 * toplev.c (init_asm_output): Likewise.
1917 (process_options): Likewise.
1918 (toplev::run_self_tests): Likewise.
1919 * tree-cfg.c (verify_gimple_call): Likewise.
1920 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
1921 (tree_inlinable_function_p): Likewise.
1922 * var-tracking.c (vt_find_locations): Likewise.
1924 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
1926 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
1927 only on the else branch.
1929 2019-03-11 Martin Liska <mliska@suse.cz>
1931 * gcov.c (output_intermediate_json_line): Print function
1933 (output_json_intermediate_file): Add new argument.
1934 * doc/gcov.texi: Document the change.
1936 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
1938 PR rtl-optimization/89588
1939 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
1940 explicit unrolling factor more robust.
1942 2019-03-11 Richard Biener <rguenther@suse.de>
1944 PR tree-optimization/89649
1945 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
1946 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
1947 on the prolog and epilog loops.
1948 (vect_loop_versioning): Return copy of loop.
1949 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
1950 on the non-vectorized version of the loop.
1952 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
1955 * config/i386/sse.md (*vec_extractv2di_0_sse):
1956 Add (=r,x) alternative and corresponding splitter.
1958 2019-03-10 Martin Jambor <mjambor@suse.cz>
1960 PR tree-optimization/85762
1961 PR tree-optimization/87008
1962 PR tree-optimization/85459
1963 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
1964 it points to if there is a type changing MEM_REF. Adjust all callers.
1965 (build_accesses_from_assign): Disable total scalarization if
1966 contains_vce_or_bfcref_p returns true through the new parameter, for
1969 2019-03-09 Jakub Jelinek <jakub@redhat.com>
1972 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
1973 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
1976 * common.opt (fdiagnostics-show-labels,
1977 fdiagnostics-show-line-numbers, fdiagnostics-format=,
1978 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
1979 gas-locview-support, ginline-points, ginternal-reset-location-views):
1980 Terminate description text with a dot.
1981 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
1982 * config/mcore/mcore.opt (m210, m340): Likewise.
1983 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
1984 mnops=): Start description text with a capital letter.
1985 * config/arc/arc.opt (msize-level=): Likewise.
1986 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
1987 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
1989 * config/ft32/ft32.opt (msim): Likewise.
1990 (mft32b, mcompress): Likewise. Terminate description text with a dot.
1991 (mnodiv, mnopm): Terminate description text with a dot.
1992 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
1994 * config/i386/i386.opt (prefer_vector_width, instrument_return):
1996 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
1999 PR rtl-optimization/89634
2000 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
2001 are modified in BB_END (e->src) instruction.
2003 2019-03-08 David Malcolm <dmalcolm@redhat.com>
2006 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
2007 messages more amenable to translation, and improve wording.
2009 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
2011 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
2012 ud- and du-chains between phases.
2014 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
2017 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
2018 instead of POLY_INT_CST.
2020 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2022 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
2025 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
2030 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
2031 (_mm_storeu_si64): Ditto.
2033 2019-03-08 Martin Liska <mliska@suse.cz>
2036 * config/i386/i386.c (ix86_option_override_internal): Disable
2037 jump tables when retpolines are used.
2039 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
2042 * ipa-split.c (execute_split_functions): Do not split
2043 'noinline' or 'section' function.
2045 2019-03-08 Jakub Jelinek <jakub@redhat.com>
2048 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
2049 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
2050 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
2053 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
2054 from diagnostics. Formatting fixes.
2057 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
2058 warn_odr diagnostics.
2061 * lra-constraints.c (process_alt_operands): Avoid one space before
2062 " at the end of line and another after " on another line in a string
2064 * attribs.c (handle_dll_attribute): Likewise.
2065 * config/avr/avr-devices.c (avr_texinfo): Likewise.
2067 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
2068 warning_at or inform messages in G_() if there is no ?:.
2070 PR tree-optimization/89550
2071 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
2072 returned true. Formatting fixes.
2073 (expand_builtin_strnlen): Formatting fixes.
2074 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
2075 if warning_at returned true.
2076 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
2078 2019-03-08 Richard Biener <rguenther@suse.de>
2081 * cfgloop.h (struct loop): Add owned_clique field.
2082 * cfgloopmanip.c (copy_loop_info): Copy it.
2083 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
2085 * tree-inline.c (copy_loops): Remap owned_clique.
2086 * lto-streamer-in.c (input_cfg): Stream owned_clique.
2087 * lto-streamer-out.c (output_cfg): Likewise.
2089 2019-03-08 Jakub Jelinek <jakub@redhat.com>
2092 * config/darwin.c: Include intl.h.
2093 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
2094 composing the message out of two separate parts.
2096 2019-03-07 Jakub Jelinek <jakub@redhat.com>
2099 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
2100 doesn't start with a capital letter and doesn't end with a dot.
2101 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
2102 with a capital letter.
2103 (ix86_mangle_function_version_assembler_name): Likewise.
2104 (ix86_generate_version_dispatcher_body): Likewise.
2105 (fold_builtin_cpu): Likewise.
2106 (get_builtin_code_for_version): Likewise. Remove extraneous space.
2107 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
2108 translators, wrap full type name in %qs.
2110 PR translation/79999
2111 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
2112 depend clause with source (or sink) modifier.
2113 * omp-expand.c (expand_omp_ordered_sink): Likewise.
2116 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
2117 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
2118 (avx512f_load<mode>_mask): New define_expand.
2119 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
2120 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
2121 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
2122 __builtin_ia32_movess_mask): New builtins.
2123 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
2124 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
2125 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
2126 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
2128 2019-03-07 Martin Jambor <mjambor@suse.cz>
2131 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
2132 for extern inline functions.
2134 2019-03-07 Martin Jambor <mjambor@suse.cz>
2137 * cgraph.h (cgraph_node): New inline method former_thunk_p.
2138 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
2139 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
2140 have multiple callees. At the end check if declarations match as
2141 opposed to cgraph_nodes.
2143 2019-03-07 Martin Liska <mliska@suse.cz>
2145 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
2146 which is equivalent to searching for this in clones chain.
2147 * symtab.c (symtab_node::verify_base): Similarly compare ASM
2148 names with a neighbour and special case first node in a chain.
2150 2019-01-25 Jason Merrill <jason@redhat.com>
2152 PR c++/80916 - spurious "static but not defined" warning.
2153 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
2154 for an internal symbol with DECL_EXTERNAL.
2156 2019-04-07 Richard Biener <rguenther@suse.de>
2159 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
2160 * tree-inline.c (copy_loops): Simplify.
2162 2019-03-07 Martin Liska <mliska@suse.cz>
2164 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
2166 2019-03-07 Richard Biener <rguenther@suse.de>
2168 PR tree-optimization/89595
2169 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
2170 stmt iterator as reference, take boolean output parameter to
2171 indicate whether the stmt was removed and thus the iterator
2173 (dom_opt_dom_walker::before_dom_children): Re-iterate over
2174 stmts created by folding.
2176 2019-03-07 Jakub Jelinek <jakub@redhat.com>
2179 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
2182 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
2184 PR rtl-optimization/88845
2185 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
2187 * lra.c (remove_scratches_1): New function.
2188 (remove_scratches): Use it.
2189 (lra_emit_move): Likewise.
2191 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
2193 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
2194 unaligned_access variable.
2195 * config/arc/arc.c (arc_override_options): Set unaligned access
2196 default on for HS CPUs.
2197 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
2199 2019-03-06 Martin Liska <mliska@suse.cz>
2201 PR gcov-profile/89577
2202 * doc/gcov.texi: Prefer to use --coverage.
2203 * doc/sourcebuild.texi: Likewise.
2205 2019-03-02 Jason Merrill <jason@redhat.com>
2207 PR c++/86485 - -Wmaybe-unused with empty class ?:
2208 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
2210 2019-03-05 Jakub Jelinek <jakub@redhat.com>
2213 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
2217 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
2218 exactly one argument.
2220 2019-03-05 Jakub Jelinek <jakub@redhat.com>
2221 Richard Sandiford <richard.sandiford@arm.com>
2223 PR tree-optimization/89570
2224 * match.pd (vec_cond into cond_op simplification): Don't use
2225 get_conditional_internal_fn, use as_internal_fn (cond_op).
2227 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
2230 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
2231 to decide when to split off a non-zero offset from a symbol.
2232 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
2233 in function symbols.
2235 2019-03-05 Richard Biener <rguenther@suse.de>
2237 PR tree-optimization/89594
2238 * tree-if-conv.c (pass_if_conversion::execute): Handle
2239 case where .LOOP_VECTORIZED_FUNCTION was removed.
2241 2019-03-05 Jakub Jelinek <jakub@redhat.com>
2244 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
2245 instead alloca it only when needed with the needed size.
2247 PR tree-optimization/89570
2248 * match.pd (vec_cond into cond_op simplification): Guard with
2249 vectorized_internal_fn_supported_p test and #if GIMPLE.
2251 PR tree-optimization/89566
2252 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
2253 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
2254 Punt if get_user_idx_format succeeds, but idx_format argument is
2255 not provided or doesn't have pointer type, or if idx_args is above
2256 number of provided arguments.
2258 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
2260 PR tree-optimization/89437
2261 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
2263 2019-03-04 Richard Biener <rguenther@suse.de>
2266 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
2269 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
2271 PR tree-optimization/89487
2272 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
2273 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
2274 (distribute_loop): Don't do runtime alias check if there is non-
2275 addressable data reference.
2276 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
2277 is a register variable.
2279 2019-03-02 Jakub Jelinek <jakub@redhat.com>
2282 * config/arm/arm.md (cmpsi2_addneg): Use
2283 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
2284 If operands[2] is 0 or INT_MIN, force use of subs.
2285 (*compare_scc splitter): Use gen_int_mode.
2286 (*negscc): Likewise.
2287 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
2289 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
2290 Monk Chiang <sh.chiang04@gmail.com>
2292 * common/config/riscv/riscv-common.c: Include sstream.
2293 (riscv_subset_list::to_string): New.
2294 (riscv_arch_str): Likewise.
2295 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
2297 * config/riscv/riscv-protos.h (riscv_arch_str): New.
2298 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
2299 (riscv_emit_attribute): New.
2300 (riscv_file_start): Emit attribute if needed.
2301 (riscv_option_override): Init riscv_emit_attribute_p.
2302 * config/riscv/riscv.opt (mriscv-attribute): New option.
2303 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
2305 * doc/install.texi: Document --with-riscv-attribute.
2306 * doc/invoke.texi: Document -mriscv-attribute.
2308 * common/config/riscv/riscv-common.c:
2309 Include config/riscv/riscv-protos.h.
2310 (INCLUDE_STRING): Defined.
2311 (RISCV_DONT_CARE_VERSION): Defined.
2312 (riscv_subset_t): Declare.
2313 (riscv_subset_t::riscv_subset_t): New.
2314 (riscv_subset_list): Declare.
2315 (riscv_subset_list::riscv_subset_list): New.
2316 (riscv_subset_list::~riscv_subset_list): Likewise.
2317 (riscv_subset_list::parsing_subset_version): Likewise.
2318 (riscv_subset_list::parse_std_ext): Likewise.
2319 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
2320 (riscv_subset_list::add): Likewise.
2321 (riscv_subset_list::lookup): Likewise.
2322 (riscv_subset_list::xlen): Likewise.
2323 (riscv_subset_list::parse): Likewise.
2324 (riscv_supported_std_ext): Likewise.
2325 (current_subset_list): Likewise.
2326 (riscv_parse_arch_string): Using riscv_subset_list::parse to
2329 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
2331 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
2332 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
2333 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
2335 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
2337 PR rtl-optimization/85899
2338 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
2339 fallthru edges leading to the exit block.
2341 2019-03-01 Tamar Christina <tamar.christina@arm.com>
2344 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
2345 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
2347 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
2349 PR tree-optimization/89535
2350 * tree-vect-stmts.c (vectorizable_call): Record the vector types
2351 for each operand. Calculate the fallback choice for mask operands
2352 and pass it to vect_get_vec_def_for_operand.
2354 2019-03-01 Richard Biener <rguenther@suse.de>
2357 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
2358 get virtual operands.
2359 (get_expr_operands): Handle CONST_DECL like other decls.
2361 2019-03-01 Jakub Jelinek <jakub@redhat.com>
2364 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
2365 on DECL_P and EXPR_P.
2367 2019-03-01 Richard Biener <rguenther@suse.de>
2370 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
2371 argument, defaulted to zero.
2372 * passes.c (execute_function_todo): Pass down SSA update flags
2373 to cleanup_tree_cfg.
2374 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
2375 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
2377 (cleanup_tree_cfg): Get and pass down SSA update flags.
2379 2019-03-01 Jakub Jelinek <jakub@redhat.com>
2382 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
2383 early_lto_debug argument.
2385 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
2387 PR tree-optimization/89536
2388 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
2389 only whether bit #0 of the value is 0 instead of the entire value.
2391 2019-02-28 Marek Polacek <polacek@redhat.com>
2393 PR c++/87068 - missing diagnostic with fallthrough statement.
2394 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
2395 at the end of a seq, save its location to walk_stmt_info.
2396 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
2399 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
2402 * tree.c (find_atomic_core_type): Move ahead in file.
2403 (check_base_type): Correctly compare alignments of atomic types.
2405 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
2408 * config/i386/i386.c (get_builtin_code_for_version): Identify
2409 Westmere from PCLMUL, instead of AES.
2411 2019-02-28 Jakub Jelinek <jakub@redhat.com>
2414 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
2415 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
2418 2019-02-28 Tamar Christina <tamar.christina@arm.com>
2421 * config/aarch64/aarch64-option-extensions.def: Document it.
2422 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
2425 2019-02-28 Jakub Jelinek <jakub@redhat.com>
2428 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
2429 builtins if they don't have a single scalar floating point argument.
2432 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2434 PR rtl-optimization/89490
2435 * varasm.c (get_block_for_section): Bail out for mergeable sections.
2436 (default_use_anchors_for_symbol_p, output_object_block): Assert the
2437 block section is not mergeable.
2439 2019-02-27 Jakub Jelinek <jakub@redhat.com>
2442 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
2443 old define_insn to ...
2444 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
2445 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
2446 Rename old define_insn to ...
2447 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
2448 (thumb2_casesi_internal_pic): New define_expand. Rename old
2450 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
2451 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
2452 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
2454 2019-02-27 Richard Biener <rguenther@suse.de>
2457 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
2459 2019-02-27 Richard Biener <rguenther@suse.de>
2461 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
2464 2019-02-27 Richard Biener <rguenther@suse.de>
2467 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
2468 parameter, prefix section name with .gnu.debuglto_ if true.
2469 (dwarf2out_finish): Pass false to output_comdat_type_unit.
2470 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
2472 2019-02-27 Richard Biener <rguenther@suse.de>
2475 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
2476 rather than on use_debug_types, doing what output_die does.
2477 (value_format): Likewise.
2479 2019-02-27 Martin Jambor <mjambor@suse.cz>
2480 Martin Sebor <msebor@redhat.com>
2482 * doc/invoke.texi (Warning Options): Reword description of
2483 -Wno-absolute-value.
2485 2019-02-27 Jakub Jelinek <jakub@redhat.com>
2487 PR tree-optimization/89280
2488 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
2489 builtin_setjmp_setup_bb): New functions.
2490 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
2491 When visiting __builtin_setjmp_setup block, queue in special
2492 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
2493 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
2494 from visited after the loop if they don't have any visited successor
2497 2018-02-26 Steve Ellcey <sellcey@marvell.com>
2499 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
2501 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
2503 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2506 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
2507 with types other than sizetype/ssizetype.
2509 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
2511 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
2512 (enum sparc_processor_type): ...this.
2513 (enum sparc_code_model_type): New enumeration type.
2514 (enum sparc_memory_model_type): Tweak comments.
2515 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
2517 (mcmodel): Use sparc_code_model enumeration and variable.
2518 (sparc_code_model): New enumeration.
2519 (mdebug): Add Undocumented marker.
2520 * config/sparc/sparc.h (enum cmodel): Delete.
2521 (sparc_cmodel): Likewise.
2522 (TARGET_CM_MEDLOW): Adjust to above renaming.
2523 (TARGET_CM_MEDMID): Likewise.
2524 (TARGET_CM_MEDANY): Likewise.
2525 (TARGET_CM_EMBMEDANY): Likewise.
2526 * config/sparc/sparc.c (sparc_cmodel): Delete.
2527 (sparc_option_override): Remove string/value mapping support for the
2528 code model. Move code and memory model support to after the handling
2529 of target flags. Do private machine setup last.
2530 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
2531 (sparc_legitimize_reload_address): Likewise.
2532 (sparc_output_mi_thunk): Likewise.
2533 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
2535 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2537 PR tree-optimization/89500
2538 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
2539 (handle_builtin_strlen): Remove noncst_bound variable. Always
2540 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
2541 cst if the first cst bytes starting at x are known to be non-zero,
2542 even if the string is not zero terminated. Don't try to modify
2543 *si for strnlen. Update strlen_to_stridx only for strlen or if
2544 we can prove strnlen returns the same value as strlen would.
2546 2019-02-26 Martin Liska <mliska@suse.cz>
2548 * alloc-pool.h (struct pool_usage): Remove extra
2550 * bitmap.h (struct bitmap_usage): Likewise.
2551 * ggc-common.c (struct ggc_usage): Likewise.
2552 * mem-stats.h (struct mem_usage): Likewise.
2553 (mem_alloc_description::dump): Print dash lines
2554 here and repeat header at the end of a table report.
2555 It's then more readable.
2556 * tree-phinodes.c (phinodes_print_statistics): Make
2557 horizontal alignment.
2558 * tree-ssanames.c (ssanames_print_statistics): Likewise.
2559 * vec.c (struct vec_usage): Remove extra print_dash_line.
2560 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
2562 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
2564 * doc/extend.texi (__builtin_object_size):
2565 Use @pxref instead of @xref inside parenthesis.
2566 (__builtin_has_attribute): Add missing comma after @xref.
2567 (__builtin_object_size): Ditto.
2568 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
2569 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
2572 2019-02-26 Jeff Law <law@redhat.com>
2574 PR rtl-optimization/87761
2575 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
2576 detect obviously dead insns and delete them.
2578 2019-02-26 Richard Biener <rguenther@suse.de>
2580 PR tree-optimization/89505
2581 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
2582 to handle restrict pointed-to vars with multiple subvars
2585 2019-02-26 Richard Biener <rguenther@suse.de>
2587 PR tree-optimization/89489
2588 * tree-parloops.c (create_loop_fn): Copy over last_clique.
2590 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
2592 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
2593 and move around comment.
2594 <BIT_AND_EXPR>: Likewise.
2595 <BIT_NOT_EXPR>: Add specific handling for boolean types.
2597 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2600 * config/i386/i386.c (remove_partial_avx_dependency): Call
2601 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
2602 after changing possibly many instructions to use that pseudo. Fix up
2603 insertion of v4sf_const0 setter at the start of bb.
2605 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2608 * doc/extend.texi (Variadic Pointer Args): New section.
2610 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2611 Martin Sebor <msebor@gmail.com>
2613 * common.opt (Wattribute-alias): Likewise.
2614 * doc/invoke.texi (Option Summary): List general form of
2615 -Wattribute-alias=. List positive form of -Wmissing-attributes.
2616 (-Wmissing-attributes): Invert entry, rewrite and correct default.
2617 Add cross-references.
2618 (-Wattribute-alias): Rewrite and correct default. Mention
2619 considered attributes (same as for -Wmissing-attributes).
2621 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
2623 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
2624 (_mm_cvtpd_ps): Likewise.
2625 (_mm_cvttpd_epi32): Likewise.
2628 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
2629 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
2632 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
2634 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2637 * common/config/aarch64/aarch64-common.c
2638 (struct aarch64_option_extension): Add is_synthetic.
2639 (all_extensions): Use it.
2640 (TARGET_OPTION_INIT_STRUCT): Define hook.
2641 (struct gcc_targetm_common): Moved to end.
2642 (all_extensions_by_on): New.
2643 (opt_ext_cmp, typedef opt_ext): New.
2644 (aarch64_option_init_struct): New.
2645 (aarch64_contains_opt): New.
2646 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
2647 * config/aarch64/aarch64-option-extensions.def
2648 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
2649 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
2650 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
2651 Set is_synthetic to false.
2652 (crypto): Set is_synthetic to true.
2653 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
2656 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2658 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2659 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
2660 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2661 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
2662 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
2663 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
2664 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
2665 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
2667 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
2668 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2669 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
2670 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
2671 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
2672 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
2673 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
2674 vfmlsl_laneq_high_f16): ... To this.
2675 * config/arm/neon.md: Update comments.
2677 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2679 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2680 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
2681 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2682 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
2683 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
2684 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
2685 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
2686 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
2688 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
2689 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2690 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
2691 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
2692 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
2693 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
2694 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
2695 vfmlslq_laneq_high_f16): ... To this.
2697 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
2699 PR rtl-optimization/86096
2700 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
2701 comparing mw_order values.
2703 2019-02-25 Jakub Jelinek <jakub@redhat.com>
2706 * config/arm/arm.md (*subsi3_carryin_const): Use
2707 arm_neg_immediate_operand predicate instead of
2708 arm_not_immediate_operand, "L" constraint instead of "K" and
2709 print it using %n2 instead of %B2.
2710 (*subsi3_carryin_const0): New define_insn.
2711 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
2712 instead of arm_not_operand and "I" constraint instead of "K" and
2713 print it using %n3 instead of %B2. Instead of using match_dup 2 add
2714 another match_operand and in the condition check that it is negation
2716 (*subsi3_carryin_compare_const0): New define_ins.
2717 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
2718 *subsi3_carryin_const.
2719 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
2720 split into *subsi3_carryin_compare_const0 if the highpart is zero.
2723 * config/arm.vfp.md (*negdf2_vfp): Use
2724 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
2725 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
2727 2019-02-24 Jakub Jelinek <jakub@redhat.com>
2729 PR rtl-optimization/89445
2730 * simplify-rtx.c (simplify_ternary_operation): Don't use
2731 simplify_merge_mask on operands that may trap.
2732 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
2733 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
2734 second operand is CONST_VECTOR, check if any element could be zero.
2735 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
2736 their operands can trap.
2738 2019-02-23 Martin Sebor <msebor@redhat.com>
2740 * gimple-ssa-sprintf.c (target_strtol): Rename...
2741 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
2742 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
2743 check for range error.
2745 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
2748 * opts-common.c (prune_options): Also prune joined switches
2749 with Negative and RejectNegative.
2750 * config/i386/i386.opt (march=): Add Negative(march=).
2751 (mtune=): Add Negative(mtune=).
2752 * doc/options.texi: Document Negative used together with Joined
2755 2019-02-22 Martin Sebor <msebor@redhat.com>
2757 * doc/extend.texi (Other Builtins): Add
2758 __builtin_is_constant_evaluated.
2760 2019-02-22 Richard Biener <rguenther@suse.de>
2762 PR tree-optimization/87609
2763 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
2765 2019-02-22 Jeff Law <law@redhat.com>
2767 PR rtl-optimization/87761
2768 * config/mips/mips.md: Add new combiner pattern to recognize
2769 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
2771 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
2774 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
2775 destination register in peepholes generating patterns for ADDS/SUBS.
2776 (add<mode>3_compare0,
2777 *addsi3_compare0_uxtw, add<mode>3_compareC,
2778 add<mode>3_compareV_imm, add<mode>3_compareV,
2779 *adds_<optab><ALLX:mode>_<GPI:mode>,
2780 *subs_<optab><ALLX:mode>_<GPI:mode>,
2781 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
2782 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
2783 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
2784 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
2785 sub<mode>3_compare1): Allow stack pointer for source register.
2786 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
2788 2019-02-22 Martin Sebor <msebor@redhat.com>
2790 PR tree-optimization/88993
2791 PR tree-optimization/88853
2792 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
2794 (sprintf_dom_walker::call_info::is_string_func): New helper.
2795 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
2796 for formatted string functions.
2797 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
2799 2019-02-22 Martin Sebor <msebor@redhat.com>
2802 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
2803 unreachable subexpressions.
2805 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
2806 Hongtao Liu <hongtao.liu@intel.com>
2807 Sunil K Pandey <sunil.k.pandey@intel.com>
2810 * config/i386/i386-passes.def: Add
2811 pass_remove_partial_avx_dependency.
2812 * config/i386/i386-protos.h
2813 (make_pass_remove_partial_avx_dependency): New.
2814 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
2816 (pass_data_remove_partial_avx_dependency): New.
2817 (pass_remove_partial_avx_dependency): Likewise.
2818 (make_pass_remove_partial_avx_dependency): Likewise.
2819 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
2820 (*extendsfdf2): Add avx_partial_xmm_update.
2821 (truncdfsf2): Likewise.
2822 (*float<SWI48:mode><MODEF:mode>2): Likewise.
2823 (SF/DF conversion splitters): Disabled for TARGET_AVX.
2825 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
2828 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
2831 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
2834 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
2835 (PTA_SKYLAKE): Add PTA_AES.
2836 (PTA_GOLDMONT): Likewise.
2838 2019-02-22 Sudakshina Das <sudi.das@arm.com>
2840 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
2841 instruction if enabled.
2842 (aarch64_override_options): Remove reference to return address key.
2844 2019-02-22 Richard Biener <rguenther@suse.de>
2846 PR tree-optimization/89440
2847 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
2848 not necessary assert.
2850 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2853 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
2854 (oacc_replace_fn_attrib_attr): ... this new function.
2855 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
2856 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
2858 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2860 * config/arm/arm-cpus.in (ares): Rename to...
2861 (neoverse-n1): ... This. Add ares as alias.
2862 * config/arm/arm-tables.opt: Regenerate.
2863 * config/arm/arm-tune.md: Likewise.
2864 * doc/invoke.txt (ARM Options): Document neoverse-n1.
2866 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2868 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
2869 * config/aarch64/aarch64-tune.md: Regenerate.
2870 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
2872 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2874 * config/aarch64/aarch64.c (ares_tunings): Rename to...
2875 (neoversen1_tunings): ... This.
2876 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
2877 (neoverse-n1): New CPU.
2878 * config/aarch64/aarch64-tune.md: Regenerate.
2879 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
2881 2019-02-22 Richard Biener <rguenther@suse.de>
2884 * cfghooks.h (dependence_hash): New typedef.
2885 (struct copy_bb_data): New type.
2886 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
2887 (duplicate_block): Likewise.
2888 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
2889 (copy_bbs): Create and pass down copy_bb_data.
2890 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
2891 (rtl_duplicate_bb): Likewise.
2892 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
2893 remap dependence info.
2895 2019-02-22 Richard Biener <rguenther@suse.de>
2897 PR tree-optimization/87609
2898 * tree-core.h (tree_base): Document special clique values.
2899 * tree-inline.c (remap_dependence_clique): Do not use the
2900 special clique value of one.
2901 (maybe_set_dependence_info): Use clique one.
2902 (clear_dependence_clique): New callback.
2903 (compute_dependence_clique): Clear clique one from all refs
2904 before assigning it (again).
2906 2019-02-21 Martin Sebor <msebor@redhat.com>
2908 * doc/extend.texi (__clear_cache): Correct signature.
2910 2019-02-21 Ian Lance Taylor <iant@golang.org>
2913 * varasm.c (decode_addr_const): Call lookup_constant_def rather
2914 than output_constant_def.
2915 (add_constant_to_table): New static function.
2916 (output_constant_def): Call add_constant_to_table.
2917 (tree_output_constant_def): Likewise.
2919 2019-02-21 Jakub Jelinek <jakub@redhat.com>
2922 * builtins.c (fold_builtin_arith_overflow): If first two args are
2923 INTEGER_CSTs, set intres and ovfres to constants rather than calls
2926 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
2929 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
2930 error for -mindirect-branch/-mfunction-return with incompatible
2933 2019-02-21 Jakub Jelinek <jakub@redhat.com>
2936 * constraints.md (q): Remove.
2937 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
2940 2019-02-21 Martin Jambor <mjambor@suse.cz>
2943 * omp-general.c (omp_extract_for_data): Removed a duplicate call
2944 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
2945 (omp_adjust_for_condition): ...here. Added necessary parameters.
2946 * omp-general.h (omp_adjust_for_condition): Updated declaration.
2947 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
2948 proper values to new parameters of omp_adjust_for_condition.
2950 2019-02-20 Jakub Jelinek <jakub@redhat.com>
2953 * expr.c (expand_assignment): If result is a MEM, use change_address
2954 instead of simplify_gen_subreg.
2956 2019-02-20 Jakub Jelinek <jakub@redhat.com>
2957 David Malcolm <dmalcolm@redhat.com>
2960 * fold-const.c (decode_field_reference): Return NULL_TREE if
2961 lang_hooks.types.type_for_size returns NULL. Check it before
2962 overwriting *exp_. Use return NULL_TREE instead of return 0.
2964 2019-02-20 Jakub Jelinek <jakub@redhat.com>
2968 * toplev.c (do_compile): Double the emin/emax exponents to workaround
2971 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
2974 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
2975 TARGET_SSE in addition to TARGET_SSE_MATH.
2977 (ix86_excess_precision): Ditto.
2978 (ix86_float_exceptions_rounding_supported_p): Ditto.
2979 (use_rsqrt_p): Ditto.
2980 * config/i386/sse.md (rsqrt<mode>2): Ditto.
2982 2019-02-20 David Malcolm <dmalcolm@redhat.com>
2985 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
2986 linenum_arith_t when determining if two adjacent line spans are
2987 close enough to merge.
2988 (diagnostic_show_locus): Use linenum_arith_t when iterating over
2989 lines within each line_span.
2991 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
2994 * lra-constraints.c(uses_hard_regs_p): Fix handling of
2995 paradoxical SUBREGS.
2997 2019-02-20 Li Jia He <helijia@linux.ibm.com>
3000 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
3001 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
3002 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
3005 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
3007 * config/gcn/gcn.c (print_operand): Fix typo.
3009 2019-02-19 Richard Biener <rguenther@suse.de>
3012 * toplev.c (do_compile): Initialize mpfr's exponent range
3013 based on available float modes.
3015 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
3017 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
3018 as long as the epilogue isn't completed.
3020 2019-02-18 Martin Sebor <msebor@redhat.com>
3022 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
3023 __has_cpp_attribute, and __has_include.
3025 2019-02-18 Martin Sebor <msebor@redhat.com>
3027 * doc/invoke.texi (-Wreturn-type): Correct and expand.
3029 2019-02-18 Martin Sebor <msebor@redhat.com>
3032 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
3034 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
3036 2019-02-18 Richard Biener <rguenther@suse.de>
3038 PR tree-optimization/89296
3039 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
3040 of no-warning flag to cases that might emit the bogus warning.
3042 2019-02-18 Jakub Jelinek <jakub@redhat.com>
3045 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
3047 * config/arm/vfp.md (*movdi_vfp): Likewise.
3048 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
3049 "q" constraint for operands[0].
3052 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
3053 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
3054 pattern in a temporary buffer.
3055 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
3056 than 64-operands[2].
3059 * config/s390/s390.c (s390_indirect_branch_attrvalue,
3060 s390_indirect_branch_settings): Define unconditionally.
3061 (s390_set_current_function): Likewise, but guard the whole body except
3062 the s390_indirect_branch_settings call with
3063 #if S390_USE_TARGET_ATTRIBUTE.
3064 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
3066 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
3067 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
3068 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
3069 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
3070 HOST_WIDE_INT_1U instead of 1ULL.
3071 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
3072 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
3073 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
3074 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
3076 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
3079 2019-02-18 Martin Jambor <mjambor@suse.cz>
3081 PR tree-optimization/89209
3082 * tree-sra.c (create_access_replacement): New optional parameter
3083 reg_tree. Use it as a type if non-NULL and access type is not of
3085 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
3086 to create_access_replacement.
3087 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
3088 Check lacc is non-NULL before attempting to re-create it on the RHS.
3090 2019-02-18 Martin Liska <mliska@suse.cz>
3093 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
3095 (symbol_table::free_edge): Recycle m_summary_id.
3096 * cgraph.h (get_summary_id): New.
3097 (symbol_table::release_symbol): Set m_summary_id to -1
3099 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
3100 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
3101 function_summary to fast_function_summary.
3102 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
3103 * ipa-pure-const.c (class funct_state_summary_t):
3104 Switch from function_summary to fast_function_summary.
3105 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
3106 (class ipa_ref_opt_summary_t): Switch from function_summary
3107 to fast_function_summary.
3108 * symbol-summary.h (class function_summary_base): New class
3109 that is created from base of former function_summary.
3110 (function_summary_base::unregister_hooks): New.
3111 (class function_summary): Inherit from function_summary_base.
3112 (class call_summary_base): New class
3113 that is created from base of former call_summary.
3114 (class call_summary): Inherit from call_summary_base.
3115 (struct is_same): New.
3116 (class fast_function_summary): New summary class.
3117 (class fast_call_summary): New summary class.
3118 * vec.h (vec_safe_grow_cleared): New function.
3120 2019-02-18 Martin Liska <mliska@suse.cz>
3122 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
3123 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
3124 * doc/tm.texi: Document new target hook.
3125 * doc/tm.texi.in: Likewise.
3126 * target.def: Add new target macro.
3127 * gcc.c (find_fortran_preinclude_file): Do not search multilib
3130 2019-02-17 Alan Modra <amodra@gmail.com>
3133 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
3134 output reg on add insn.
3135 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
3137 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
3140 * config/i386/sse.md (ssedoublemode): Remove V4HI.
3141 (PMULHRSW): Likewise.
3142 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
3144 (ssse3_pmulhrswv4hi3): New expander.
3146 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
3148 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
3149 MMX. Add isa attribute.
3151 2019-02-16 Jakub Jelinek <jakub@redhat.com>
3153 PR rtl-optimization/66152
3154 * builtins.h (c_readstr): Declare.
3155 * builtins.c (c_readstr): Remove forward declaration. Add
3156 null_terminated_p argument, if false, read all bytes from the
3157 string instead of stopping after '\0'.
3158 * expr.c (string_cst_read_str): New function.
3159 (store_expr): Use string_cst_read_str instead of
3160 builtin_strncpy_read_str. Try to store by pieces the whole
3161 exp_len first, and only if that fails, split it up into
3162 store by pieces followed by clear_storage. Formatting fix.
3164 * config/i386/i386.md (*movqi_internal): Remove static from
3165 buf variable. Use output_asm_insn (buf, operands); return "";
3166 instead of return buf;.
3167 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
3168 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
3169 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
3171 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
3173 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
3174 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
3175 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
3176 (CC1_SPEC): Likewise.
3177 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
3179 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
3181 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
3182 the base address on 64-bit strict-alignment platforms.
3184 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
3186 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
3188 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
3190 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
3192 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
3194 PR rtl-optimization/88308
3195 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
3196 on copied instruction.
3198 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
3200 * final.c (insn_current_reference_address): Replace test on JUMP_P
3201 with test on jump_to_label_p.
3202 * config/visium/visium-passes.def: New file.
3203 * config/visium/t-visium (PASSES_EXTRA): Define.
3204 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
3205 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
3206 (TRAMPOLINE_ALIGNMENT): Define.
3207 * config/visium/visium.c (visium_option_override): Do not register
3208 the machine-specific reorg pass here.
3209 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
3211 (output_branch): Adjust threshold for long branch instruction.
3212 * config/visium/visium.md (cpu): Move around.
3213 (length): Adjust for the GR6.
3215 2019-02-15 Richard Biener <rguenther@suse.de>
3216 Jakub Jelinek <jakub@redhat.com>
3218 PR tree-optimization/89278
3219 * tree-loop-distribution.c: Include tree-eh.h.
3220 (generate_memset_builtin, generate_memcpy_builtin): Call
3221 rewrite_to_non_trapping_overflow on builtin->size before passing it
3222 to force_gimple_operand_gsi.
3224 2019-02-15 Jakub Jelinek <jakub@redhat.com>
3227 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
3229 * opth-gen.awk: Likewise.
3231 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
3233 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
3234 Enable MMX, SSE and SSE2 by default.
3235 * config/i386/i386.c (ix86_option_override_internal): Do not
3236 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
3238 2019-02-14 Jakub Jelinek <jakub@redhat.com>
3240 PR rtl-optimization/89354
3241 * combine.c (make_extraction): Punt if extraction_mode is narrower
3244 2019-02-14 Maya Rashish <coypu@sdf.org>
3246 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
3247 * config/netbsd-d.c: New file.
3248 * config/t-netbsd: Add netbsd-d.o
3250 2018-02-14 Steve Ellcey <sellcey@marvell.com>
3252 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
3253 affects_type_identity to true for aarch64_vector_pcs.
3254 (aarch64_comp_type_attributes): New function.
3255 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
3257 2019-02-14 Tamar Christina <tamar.christina@arm.com>
3260 * config/arm/iterators.md (ANY64): Add V4HF.
3262 2019-02-14 Martin Liska <mliska@suse.cz>
3264 PR rtl-optimization/89242
3265 * dce.c (delete_unmarked_insns): Call free_dominance_info we
3266 process a transformation.
3268 2019-02-14 Jakub Jelinek <jakub@redhat.com>
3270 PR tree-optimization/89314
3271 * fold-const.c (fold_binary_loc): Cast strlen argument to
3272 const char * before dereferencing it. Formatting fixes.
3275 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
3277 2019-02-13 Ian Lance Taylor <iant@golang.org>
3279 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
3280 and set current index for other optimizations.
3282 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
3284 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
3285 nonimmediate_operand as operand 2 predicate.
3286 (vec_set<VF2_512_256:mode>_0): Ditto.
3287 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
3288 (*vec_concatv2si): Remove alternative 2.
3289 (*vec_concatv4si_0): Use vm constraint for alternative 0.
3290 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
3291 (vec_concatv2di): Split alternatives 4,5,6 to ...
3292 (*vec_concatv2di_0) ... new pattern.
3294 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
3297 * config/arm/arm.c (ldm_stm_operation_p) Set
3298 addr_reg_in_reglist correctly for first register.
3299 (load_multiple_sequence): Remove dead base check.
3300 (gen_ldm_seq): Correctly set write_back for Thumb-1.
3302 2019-02-13 Tamar Christina <tamar.christina@arm.com>
3305 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
3306 Expose as @aarch64_pred_mov.
3307 * config/aarch64/aarch64.c (aarch64_classify_address):
3308 Use expand_insn which legitimizes operands.
3310 2019-02-13 Martin Liska <mliska@suse.cz>
3312 * builtins.h (expand_builtin_with_bounds): Remove declaration.
3313 * calls.c (struct arg_data): Remove special_slot, pointer_arg
3314 and pointer_offset fields.
3315 (initialize_argument_information): Remove usage of dead
3317 * cgraph.h (struct cgraph_thunk_info): Remove
3318 add_pointer_bounds_args.
3319 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
3321 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
3323 * config/i386/i386.c (ix86_function_arg_advance): Remove
3325 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
3326 (def_builtin): Remove usage of dead
3328 (ix86_add_new_builtins): Likewise.
3329 * ipa-fnsummary.c (compute_fn_summary): Likewise.
3330 * ipa-icf.c (sem_function::equals_wpa): Likewise.
3331 (sem_function::init): Likewise.
3332 (sem_variable::merge): Likewise.
3333 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3334 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3335 * lto-cgraph.c (lto_output_node): Likewise.
3336 (lto_output_varpool_node): Likewise.
3337 (input_node): Likewise.
3338 (input_varpool_node): Likewise.
3339 * lto-streamer-out.c (lto_output): Likewise.
3340 * tree-inline.c (expand_call_inline): Remove usage of
3342 * tree-inline.h (struct copy_body_data): Likewise.
3343 * varpool.c (varpool_node::dump): Likewise.
3345 2019-02-13 Jakub Jelinek <jakub@redhat.com>
3348 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
3349 into pt->vars_contains_escaped_heap instead of setting
3350 pt->vars_contains_escaped_heap to it.
3353 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
3354 INTVAL (size), compare it to GET_MODE_MASK instead of
3355 1 << GET_MODE_BITSIZE.
3358 * config/i386/predicates.md (x86_64_immediate_operand): Allow
3359 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
3362 2019-02-13 Martin Liska <mliska@suse.cz>
3365 * cfgrtl.c (remove_barriers_from_footer): New function.
3366 (try_redirect_by_replacing_jump): Use it.
3367 (cfg_layout_redirect_edge_and_branch): Likewise.
3369 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
3371 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
3372 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
3373 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
3374 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
3375 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
3376 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
3378 * config/rs6000/rs6000.c (builtin_function_type)
3379 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
3380 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
3381 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
3382 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
3383 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
3385 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
3387 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
3388 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
3390 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
3393 * config/i386/i386.md (*movoi_internal_avx): Revert revision
3394 268678 and revision 268657.
3395 (*movti_internal): Likewise.
3397 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
3400 * config/s390/s390.c (s390_decompose_address): Update comment.
3401 (s390_check_qrst_address): Reject invalid address forms after
3404 2019-02-12 Martin Liska <mliska@suse.cz>
3407 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
3408 we need default values of funct_state for a function that
3411 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
3413 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
3414 the object to pick the size of stores on strict-alignment platforms.
3416 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
3417 (*movdi_insn_sp32): Likewise.
3418 (*movdi_insn_sp64): Likewise.
3420 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
3423 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
3424 types that needs constructiong.
3425 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
3427 2019-02-12 Richard Biener <rguenther@suse.de>
3429 PR tree-optimization/89253
3430 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
3433 2019-02-11 David Malcolm <dmalcolm@redhat.com>
3436 * input.c (selftest::test_line_offset_overflow): New selftest.
3437 (selftest::input_c_tests): Call it.
3439 2019-02-11 Martin Sebor <msebor@redhat.com>
3441 PR tree-optimization/88771
3442 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
3443 when -Wstringop-overflow is set.
3444 (builtin_memref::builtin_memref): Adjust excessive upper bound
3445 only when lower bound is not excessive.
3446 (maybe_diag_overlap): Detect and diagnose excessive bounds via
3447 -Wstringop-ovefflow.
3448 (maybe_diag_offset_bounds): Rename...
3449 (maybe_diag_access_bounds): ...to this.
3450 (check_bounds_or_overlap): Adjust for name change above.
3452 2019-02-11 Martin Sebor <msebor@redhat.com>
3455 * builtins.c (max_object_size): Move from here...
3456 * builtins.h (max_object_size): ...and here...
3457 * tree.c (max_object_size): ...to here...
3458 * tree.h (max_object_size): ...and here.
3460 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
3462 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
3463 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
3464 for correct semantics.
3466 2019-02-11 Alan Modra <amodra@gmail.com>
3468 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
3469 -mlongcall and -mpltseq.
3470 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
3471 (RS/6000 and PowerPC Options <-mpltseq>): Document.
3472 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
3473 * config/rs6000/sysv4.opt (mpltseq): New option.
3474 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
3475 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
3476 support is lacking. Don't allow -mpltseq with -mbss-plt.
3477 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
3478 -mpltseq given for ELFv1.
3479 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
3480 Only use UNSPEC_PLTSEQ for inline PLT calls.
3481 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
3482 use UNSPEC_PLTSEQ for inline PLT calls.
3483 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
3484 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
3485 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
3486 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
3487 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
3488 (pltseq_mtctr_<mode>): Likewise.
3490 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3492 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
3494 * configure: Regenerate.
3496 2019-02-11 Jakub Jelinek <jakub@redhat.com>
3499 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
3502 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
3504 * function.c (assign_parm_setup_block): Use the stored
3505 size, not the passed size, when allocating stack-space,
3506 also for a parameter with alignment larger than
3507 MAX_SUPPORTED_STACK_ALIGNMENT.
3509 2019-02-11 Martin Liska <mliska@suse.cz>
3512 * ipa-cp.c (build_toporder_info): Remove usage of a param.
3513 * ipa-inline.c (inline_small_functions): Likewise.
3514 * ipa-pure-const.c (propagate_pure_const): Likewise.
3515 (propagate_nothrow): Likewise.
3516 * ipa-reference.c (propagate): Likewise.
3517 * ipa-utils.c (struct searchc_env): Remove unused field.
3518 (searchc): Always search across AVAIL_INTERPOSABLE.
3519 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
3520 the only called IPA pure const can properly not propagate
3521 across interposable boundary.
3522 * ipa-utils.h (ipa_reduced_postorder): Remove param.
3524 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
3526 * config/nds32/nds32.md (call_internal, call_value_internal,
3527 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
3529 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
3531 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
3534 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
3536 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
3539 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
3541 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
3543 2019-02-10 Jakub Jelinek <jakub@redhat.com>
3545 PR tree-optimization/89268
3546 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
3547 if preds is non-NULL.
3549 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3552 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
3555 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3557 * config/nds32/nds32.md (trap): New pattern.
3559 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3561 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
3564 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
3566 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
3569 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3571 * ipa-visibility.c (localize_node): Also do not localize
3572 LDPR_PREVAILING_DEF_IRONLY_EXP.
3574 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3577 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
3578 instead of type_with_linkage.
3580 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3583 * params.def (uninlined-function-insns, uninlined-function-time,
3584 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
3585 bound so we don't get overflows.
3587 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
3589 * config/rs6000/rs6000-string.c (expand_compare_loop,
3590 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
3593 2019-02-09 Jakub Jelinek <jakub@redhat.com>
3596 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3597 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
3598 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
3600 2019-02-09 Alan Modra <amodra@gmail.com>
3603 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
3604 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
3607 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
3610 * lra-constraints.c (process_alt_operands): Don't increase reject
3611 for memory when offset memory is required.
3613 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
3615 * config/s390/vector.md: Implement vector copysign.
3617 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3619 * expr.c (expand_constructor): Correct indentations.
3621 2019-02-08 Richard Biener <rguenther@suse.de>
3623 PR tree-optimization/89247
3624 * tree-if-conv.c: Include tree-cfgcleanup.h.
3625 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
3626 (tree_if_conversion): Pass through predicate vector.
3627 (pass_if_conversion::execute): Do CFG cleanup and SSA update
3628 inline, see if any if-converted loops we refrece in
3629 LOOP_VECTORIZED calls vanished and fixup.
3630 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
3632 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
3634 * config/s390/constraints.md (jdd): New constraint.
3636 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3639 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
3640 upper 16 vector registers without TARGET_AVX512VL.
3641 (*movti_internal): Likewise.
3643 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3645 PR rtl-optimization/89234
3646 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
3647 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
3648 (copy_reg_eh_region_note_backward): Likewise.
3650 2019-02-08 Richard Biener <rguenther@suse.de>
3653 * tree-data-ref.c (initialize_matrix_A): Fail if constant
3655 (analyze_subscript_affine_affine): Handle failure from
3656 initialize_matrix_A.
3658 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3660 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
3663 2019-02-07 David Malcolm <dmalcolm@redhat.com>
3665 PR tree-optimization/86637
3666 PR tree-optimization/89235
3667 * tree-vect-loop.c (optimize_mask_stores): Add an
3668 auto_purge_vect_location sentinel to ensure that vect_location is
3671 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
3672 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
3673 to ensure that vect_location is purged on exit.
3674 (pass_slp_vectorize::execute): Likewise, replacing the manual
3676 * tree-vectorizer.h (class auto_purge_vect_location): New class.
3678 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3680 * config/aarch64/iterators.md (max_opp): New code_attr.
3681 (USMAX): New code iterator.
3682 * config/aarch64/predicates.md (aarch64_smin): New predicate.
3683 (aarch64_smax): Likewise.
3684 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
3685 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
3688 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
3691 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
3692 for TARGET_AVX512VL.
3693 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
3695 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
3697 * config/s390/s390-builtin-types.def: Add new types.
3698 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
3699 (s390_vec_xlw4): Make the memory operand into a const pointer.
3700 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
3702 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
3703 a new vector type with the alignment of the scalar memory operand.
3705 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
3706 Jakub Jelinek <jakub@redhat.com>
3709 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
3710 arm_count_ldrdstrd_insns): New declarations.
3711 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
3713 (valid_operands_ldrd_strd): New function.
3714 (arm_count_ldrdstrd_insns): New function.
3715 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
3716 sets instead of single DImode set and define new insns to match this.
3718 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3720 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
3721 Make it a C initializer.
3723 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3726 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
3728 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3730 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
3731 Use neon_dot<q> for type.
3732 (neon_<sup>dot_lane<vsi2qi>): Likewise.
3734 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3736 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
3737 Use neon_dot<q> for type.
3738 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
3739 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
3741 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
3743 PR rtl-optimization/89225
3744 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
3747 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
3749 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
3750 after restoring registers saved to allocate the frame on Windows.
3752 2019-02-06 Richard Biener <rguenther@suse.de>
3754 PR tree-optimization/89182
3755 * graphite.h (cached_scalar_evolution_in_region): Declare.
3756 * graphite.c (struct seir_cache_key): New.
3757 (struct sese_scev_hash): Likewise.
3758 (seir_cache): New global.
3759 (cached_scalar_evolution_in_region): New function.
3760 (graphite_transform_loops): Allocate and release seir_cache.
3761 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
3762 cached_scalar_evolution_in_region.
3763 * graphite-scop-detection.c (scop_detection::can_represent_loop):
3765 (scop_detection::graphite_can_represent_expr: Use
3766 cached_scalar_evolution_in_region.
3767 (scop_detection::stmt_simple_for_scop_p): Likewise.
3768 (find_params_in_bb): Likewise.
3769 (gather_bbs::before_dom_children): Likewise.
3770 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
3771 (add_loop_constraints): Likewise.
3773 2019-02-06 Jakub Jelinek <jakub@redhat.com>
3776 * fold-const-call.c (fold_const_vec_convert): Pass true as last
3777 operand to new_unary_operation only if both element types are integral
3778 and it isn't a widening conversion. Return NULL_TREE if
3779 new_unary_operation failed.
3781 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
3784 * config/s390/s390.md: Remove load and test FP splitter.
3786 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3789 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
3790 expand_compare_loop, expand_block_compare_gpr,
3791 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
3792 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
3793 #include "profile-count.h" and "predict.h" for types and functions
3794 needed to work with REG_BR_PROB notes.
3796 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3799 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
3800 for the long branch case.
3802 2019-02-05 Jakub Jelinek <jakub@redhat.com>
3805 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
3806 can throw, non-call exceptions are enabled and we can't delete
3807 dead exceptions or alter cfg. Set must_clean if
3808 delete_insn_and_edges returns true, don't set it blindly for calls.
3809 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
3811 PR rtl-optimization/89195
3812 * combine.c (make_extraction): For MEMs, don't extract bytes outside
3813 of the original MEM.
3815 2019-02-05 Martin Liska <mliska@suse.cz>
3817 PR gcov-profile/89000
3818 * gcov.c (function_summary): Remove argument.
3819 (file_summary): New function.
3820 (print_usage): Replace tabs with spaces.
3821 (generate_results): Use new function file_summary.
3823 2019-02-05 Jakub Jelinek <jakub@redhat.com>
3826 * optabs.c (prepare_cmp_insn): Pass x and y to
3827 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
3829 2019-02-05 Richard Biener <rguenther@suse.de>
3832 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
3833 (struct bitmap_element): Drop chain_prev so we properly recurse on
3834 the prev member, supporting tree views.
3835 (struct bitmap_head): GTY skip the obstack member.
3837 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
3840 * doc/extend.texi (Vector Extensions): Add an example of using vector
3841 types together with x86 intrinsics.
3843 2019-02-04 Alan Modra <amodra@gmail.com>
3845 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
3846 str[] size to 160, and comment.
3848 2019-02-04 Alan Modra <amodra@gmail.com>
3850 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
3851 (rs6000_pltseq_template): Guard output of TLS markers with
3853 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
3854 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
3855 to use inline PLT sequences.
3856 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
3857 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
3858 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
3860 2019-02-04 Martin Liska <mliska@suse.cz>
3863 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
3864 out when ipa_fn_summaries does not contain entry for callee.
3866 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
3868 * config/sparc/sparc.h: Remove superfluous blank lines.
3869 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
3870 (got_register_rtx): ...this.
3871 (sparc_got): Adjust to above renaming.
3872 (sparc_tls_got): Likewise.
3873 (sparc_delegitimize_address): Likewise.
3874 (sparc_output_mi_thunk): Likewise.
3875 (sparc_init_pic_reg): Likewise.
3876 (save_local_or_in_reg_p): Fix test on the GOT register.
3877 (USE_HIDDEN_LINKONCE): Move around.
3878 (get_pc_thunk_name): Likewise.
3879 (gen_load_pcrel_sym): Likewise.
3880 (load_got_register): Likewise.
3882 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
3884 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
3885 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
3887 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
3889 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
3892 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
3894 * config.gcc (with_nds32_lib, glibc):
3895 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
3896 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
3897 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
3899 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
3902 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
3903 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
3904 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
3905 (*rcpsf2_sse): Ditto.
3906 (*rsqrtsf2_sse): Ditto.
3907 (sse4_1_round<mode<2): Ditto.
3909 2019-02-03 Richard Biener <rguenther@suse.de>
3912 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
3915 2019-02-02 Jakub Jelinek <jakub@redhat.com>
3918 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3919 Punt with warning on aggregate return or argument types. Ignore
3920 type/mode checking for uniform arguments.
3922 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
3924 * combine.c (try_combine): Do not print "Can't combine" messages unless
3925 printing failed combination attempts.
3927 2019-02-01 Martin Jambor <mjambor@suse.cz>
3930 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
3931 segment and global segment variables before making them static.
3933 2019-02-01 Martin Jambor <mjambor@suse.cz>
3935 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
3936 missed optimization dump with dump_enabled_p.
3938 2019-02-01 Richard Biener <rguenther@suse.de>
3941 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
3942 the instantiate cache.
3943 (instantiate_scev_binary): Elide second operand procesing
3944 if equal to the first.
3945 * tree-chrec.c (chrec_contains_symbols): Add visited set.
3946 (chrec_contains_undetermined): Likewise.
3947 (tree_contains_chrecs): Likewise.
3949 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
3951 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
3953 2019-02-01 Jakub Jelinek <jakub@redhat.com>
3955 PR tree-optimization/89143
3956 * wide-int-range.h (wide_int_range_absu): Declare.
3957 * wide-int-range.cc (wide_int_range_absu): New function.
3958 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
3960 PR tree-optimization/88107
3961 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
3962 instead of assertion that eh_region_outermost is non-NULL, if it
3963 is NULL, set *ALL to true and return NULL.
3964 (move_sese_region_to_fn): Adjust caller, if all is set, call
3965 duplicate_eh_regions with NULL region.
3967 2019-02-01 Richard Biener <rguenth@suse.de>
3969 PR rtl-optimization/88593
3970 * mode-switching.c (optimize_mode_switching): Free dominators before
3971 calling cleanup_cfg.
3973 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
3975 PR tree-optimization/88932
3976 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
3978 2019-01-31 Jakub Jelinek <jakub@redhat.com>
3981 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
3982 bogus clang warning.
3984 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
3987 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
3988 alternative to avoid partial SSE register stall for TARGET_AVX.
3989 (truncdfsf2): Ditto.
3990 (sse4_1_round<mode>2): Ditto.
3992 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
3994 PR tree-optimization/89008
3995 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
3996 process anything of the form X * 0.
3998 2019-01-31 Richard Biener <rguenther@suse.de>
4000 PR tree-optimization/89135
4001 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
4002 with abnormal preds.
4004 2019-01-31 Jakub Jelinek <jakub@redhat.com>
4007 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
4008 always_inline callees into no_sanitize_address callers.
4010 2019-01-31 Richard Biener <rguenther@suse.de>
4012 PR rtl-optimization/89115
4013 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
4015 2019-01-30 Martin Sebor <msebor@redhat.com>
4018 * doc/extend.texi (cast to a union): Correct and expand.
4020 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
4022 PR rtl-optimization/87246
4023 * lra-constraints.c (simplify_operand_subreg): Reload memory
4024 in subreg if the address became invalid.
4026 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
4029 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
4030 Disable for little-endian.
4032 2019-01-30 Richard Biener <rguenther@suse.de>
4034 PR rtl-optimization/89115
4035 * opts.c (default_options_optimization): Reduce
4036 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
4037 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
4040 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
4042 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
4043 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
4044 type of vector element when vec_extract is implemented by direct
4047 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
4049 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
4051 2019-01-30 Richard Biener <rguenther@suse.de>
4053 PR tree-optimization/89111
4054 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
4055 canonicalization to appropriately sized access types.
4057 2019-01-30 Jakub Jelinek <jakub@redhat.com>
4060 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
4061 for arguments to functions that are TU-local and shouldn't be
4062 referenced by assembly.
4064 2019-01-30 Ulrich Drepper <drepper@redhat.com>
4066 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
4069 2019-01-29 Martin Sebor <msebor@redhat.com>
4072 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
4074 2019-01-29 Jakub Jelinek <jakub@redhat.com>
4078 * omp-simd-clone.c (simd_clone_clauses_extract)
4079 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
4080 OMP_CLAUSE_ALIGNED_ALIGNMENT.
4082 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
4084 * config.gcc: Force .init_array for ARC.
4086 2019-01-29 Richard Biener <rguenther@suse.de>
4089 * dwarf2out.c (collect_skeleton_dies): New helper.
4090 (copy_decls_for_unworthy_types): Call it.
4091 (build_abbrev_table): Assert we do not try to replace
4092 DW_AT_signature refs with local refs.
4094 2019-01-28 Jakub Jelinek <jakub@redhat.com>
4097 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
4098 for lastprivate/linear IV, push gimplify context around gimplify_assign
4099 and, if it needed any temporaries, pop it into a gimple bind around the
4102 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
4104 * common.opt (-Wattribute-alias): Remove "no-" from name.
4105 Make -Wattribute-alias command line option and
4106 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
4108 2019-01-28 Jakub Jelinek <jakub@redhat.com>
4111 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
4112 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
4114 (bmi2): Add missing @opindex.
4115 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
4116 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
4117 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
4118 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
4119 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
4120 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
4121 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
4122 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
4123 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
4124 xsavec, xsaveopt and xsaves options.
4126 2019-01-28 Richard Biener <rguenther@suse.de>
4129 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
4132 2019-01-28 Richard Biener <rguenther@suse.de>
4134 PR tree-optimization/88739
4135 * tree-cfg.c (verify_types_in_gimple_reference): Verify
4136 BIT_FIELD_REFs only are applied to mode-precision operands
4137 when they are integral.
4138 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
4139 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
4140 BIT_FIELD_REFs of non-mode-precision integral operands.
4142 2019-01-27 Jakub Jelinek <jakub@redhat.com>
4145 * config/i386/sse.md
4146 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
4147 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
4148 first constants in pairs are multiples of 2. Formatting fixes.
4149 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
4150 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
4151 first constants in each quadruple are multiples of 4. Formatting fixes.
4153 2019-01-26 Martin Jambor <mjambor@suse.cz>
4156 * tree-inline.c: Include tree-cfgcleanup.h.
4157 (delete_unreachable_blocks_update_callgraph): Move...
4158 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
4159 ...here, make externally visible, make second argument bool, adjust
4161 * tree-cfgcleanup.c: Include cgraph.h.
4162 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
4164 * ipa-prop.c: Include tree-cfgcleanup.h.
4165 (ipcp_transform_function): Call
4166 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
4168 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
4170 PR rtl-optimization/88846
4171 * ira.c (process_set_for_memref_referenced_p): New.
4172 (memref_referenced_p): Add new param. Use
4173 process_set_for_memref_referenced_p. Add new switch cases.
4174 (memref_used_between_p): Pass new arg to memref_referenced_p.
4176 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
4179 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
4180 argument ABI_BREAK. Set to true if the calculated alignment has
4181 changed in gcc-9. Check bit-fields for their base type alignment.
4182 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
4183 (aarch64_function_arg_boundary): Likewise.
4184 (aarch64_gimplify_va_arg_expr): Likewise.
4186 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
4189 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
4190 instead of accessing TREE_INT_CST_ELT directly.
4192 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
4194 * doc/sourcebuild.texi (Environment attributes): Add fenv and
4195 fenv_exceptions description.
4197 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
4199 PR rtl-optimization/87763
4200 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
4201 Allow SUBREG when matching CC_NZmode compare.
4203 2019-01-25 Richard Biener <rguenther@suse.de>
4205 PR tree-optimization/89049
4206 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4207 Look at the pattern stmt to determine if the stmt is vectorized.
4209 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
4211 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
4212 (pred_mov<mode>): Handle all-register forms using both a new
4213 alternative and a split.
4215 2019-01-25 Richard Biener <rguenther@suse.de>
4217 PR tree-optimization/86865
4218 * graphite-scop-detection.c (scop_detection::can_represent_loop):
4219 Reject non-do-while loops.
4221 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
4223 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
4224 * config/rs6000/constraints.md (Q constraint): Use REG_P.
4225 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
4226 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
4227 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
4228 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4229 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
4230 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
4231 vlogical_operand, gpc_reg_operand, int_reg_operand,
4232 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
4233 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
4234 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
4235 (save_world_operation, restore_world_operation, lmw_operation,
4236 stmw_operation): Use MEM_P and REG_P.
4237 (tie_operand): Use MEM_P.
4238 (vrsave_operation, crsave_operation): Use REG_P.
4239 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
4240 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
4241 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
4242 (call_operand): Use HARD_REGISTER_P.
4243 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
4245 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
4246 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
4247 quad_aligned_load_p, replace_swapped_aligned_store,
4248 recombine_lvx_pattern, replace_swapped_aligned_load,
4249 recombine_stvx_pattern): Use MEM_P.
4250 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
4251 Use MEM_P and SYMBOL_REF_P.
4252 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
4253 (insn_is_swappable_p): Use REG_P and MEM_P.
4254 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
4255 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
4257 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
4259 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
4261 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
4262 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
4263 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
4264 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
4266 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
4267 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
4268 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
4269 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
4270 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
4271 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
4272 rs6000_split_logical_di): Use CONST_INT_P.
4273 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
4274 REG_P and SYMBOL_REF_P.
4275 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
4276 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
4277 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
4278 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
4279 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
4280 (small_data_operand, print_operand_address): Use CONST_INT_P and
4282 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
4283 (rs6000_init_hard_regno_mode_ok, direct_move_p):
4284 Use HARD_REGISTER_NUM_P.
4285 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
4286 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
4287 SUBREG_P and SYMBOL_REF_P.
4288 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
4289 and HARD_REGISTER_NUM_P.
4290 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
4292 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
4293 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
4295 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
4296 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
4297 find_addr_reg): Use REG_P.
4298 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
4299 (rs6000_emit_le_vsx_move): Use SUBREG_P.
4300 (offsettable_ok_by_alignment, constant_pool_expr_p,
4301 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
4302 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
4303 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
4304 rs6000_assemble_integer, create_TOC_reference,
4305 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
4306 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
4307 (rs6000_split_vec_extract_var): Use reg_or_subregno.
4308 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
4309 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
4310 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4311 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4312 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
4313 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
4314 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
4315 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
4316 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
4317 and cbranch<mode>4): Use CONST_INT_P.
4318 (multiple define_splits): Use REG_P and SUBREG_P.
4319 (define_expands call, call_value): Use MEM_P.
4320 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
4321 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
4322 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
4323 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
4324 and HARD_REGISTER_NUM_P.
4325 (multiple define_splits): Use HARD_REGISTER_NUM_P.
4327 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
4329 PR rtl-optimization/88948
4330 * rtl.h (prepare_copy_insn): New prototype.
4331 * gcse.c (prepare_copy_insn): New function, split out from
4332 process_insert_insn.
4333 (process_insert_insn): Use prepare_copy_insn.
4334 * store-motion.c (replace_store_insn): Use prepare_copy_insn
4335 instead of gen_move_insn.
4337 2019-01-24 Jakub Jelinek <jakub@redhat.com>
4340 * config/i386/i386.c (ix86_pic_register_p): Return true for
4343 PR tree-optimization/88964
4344 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
4345 punt if HONOR_SNANS (chrec).
4348 * tree-nested.c (convert_nonlocal_reference_stmt,
4349 convert_local_reference_stmt, convert_tramp_reference_stmt,
4350 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
4351 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
4354 PR tree-optimization/89027
4355 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
4356 for "omp simd array" variables.
4358 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
4361 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
4362 force the alignment of m_val.
4364 2019-01-24 Richard Biener <rguenther@suse.de>
4367 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
4368 When in "legacy" debug mode make sure to reset self-origins.
4370 2019-01-24 Martin Liska <mliska@suse.cz>
4372 PR gcov-profile/88994
4373 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
4374 result will be always smaller or equal to the original.
4375 * gcov.c (mangle_name): Fix else branch where we should
4376 also copy to PTR and shift the pointer.
4378 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
4380 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
4381 * vr-values.c (find_case_label_ranges): Fix a comment typo.
4383 2019-01-23 Bin Cheng <bin.cheng@arm.com>
4384 Steve Ellcey <sellcey@marvell.com>
4387 * recog.c (address_operand): Return false on wrong mode for address.
4388 (constrain_operands): Check for mode with 'p' constraint.
4390 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
4393 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
4394 Disparage MMX alternative.
4395 (sse2_cvtpd2pi): Ditto.
4396 (sse2_cvttpd2pi): Ditto.
4398 2019-01-23 David Malcolm <dmalcolm@redhat.com>
4401 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
4402 use-after-free of the result of
4403 aarch64_get_extension_string_for_isa_flags.
4405 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4408 * doc/extend.texi: Document break and continue behavior in
4409 statement expressions.
4411 2019-01-23 Richard Biener <rguenther@suse.de>
4413 PR tree-optimization/89008
4414 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
4415 not leave another stray operand.
4417 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4419 * BASE-VER: Bump to 9.0.1.
4421 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
4423 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
4424 thunk that returns by reference, use the type of the return object
4425 of the thunk instead of that of the alias to build the dereference.
4427 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
4429 * config/arc/atomic.md: Add operand to DMB instruction.
4431 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4433 PR tree-optimization/88964
4434 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
4435 build_zero_cst instead of build_int_cst. Return false for loop
4436 invariants which honor signed zeros.
4438 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
4440 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
4442 2019-01-22 Jakub Jelinek <jakub@redhat.com>
4445 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
4446 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
4447 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
4450 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
4451 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
4454 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
4455 Disable for little endian.
4457 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
4460 * config/arm/arm.c (arm_needs_double_word_align): Check
4461 DECL_BIT_FIELD_TYPE.
4463 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
4464 H.J. Lu <hongjiu.lu@intel.com>
4467 * config/i386/i386-builtin.def: Add mask2 to all builtin
4468 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
4470 * config/i386/i386.c (BDESC): Add mask2 to the definition.
4471 (BDESC_FIRST): Likewise.
4472 (define_builtin): Add an argument for mask2. Updated to handle
4473 both ix86_isa_flags and ix86_isa_flags2.
4474 (define_builtin_const): Likewise.
4475 (define_builtin_pure): Likewise.
4476 (define_builtin2): Deleted.
4477 (define_builtin_const2): Likewise.
4478 (builtin_description): Add a member, mask2.
4479 (bdesc_*): Add mask2 to builtin initializations.
4480 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
4481 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
4483 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
4485 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
4488 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
4491 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
4494 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
4495 alignment is dominated by a bitfield with 64-bit aligned base type.
4496 (arm_function_arg): Emit a warning if the alignment has changed since
4497 earlier GCC releases.
4498 (arm_function_arg_boundary): Likewise.
4499 (arm_setup_incoming_varargs): Likewise.
4501 2019-01-22 Richard Biener <rguenther@suse.de>
4503 PR tree-optimization/88862
4504 * graphite-scop-detection.c
4505 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
4507 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
4509 * doc/extend.tex (AMD GCN Function Attributes): New section.
4510 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
4511 * doc/invoke.texi (AMD GCN Options): New section.
4512 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
4514 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
4516 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
4517 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
4519 2019-01-22 Jakub Jelinek <jakub@redhat.com>
4521 PR tree-optimization/88044
4522 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
4523 is false in the first iteration, but !every_iteration, return false
4524 instead of true with niter->niter zero.
4526 PR rtl-optimization/88904
4527 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
4528 any nonequal registers before processing BB_END (b).
4531 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
4533 (expand_binop_directly, expand_doubleword_clz,
4534 expand_doubleword_popcount, expand_ctz, expand_ffs,
4535 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
4537 PR rtl-optimization/49429
4539 PR rtl-optimization/86334
4541 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
4542 addressable from here...
4543 (emit_block_op_via_libcall): ... to here.
4545 2019-01-22 Richard Biener <rguenther@suse.de>
4547 * tree-vect-loop.c (vect_analyze_loop_operations): Use
4548 auto_vec for cost vector to fix memleak.
4549 (vectorize_fold_left_reduction): Properly gather SLP defs.
4550 (vectorizable_comparison): Do not swap operands to properly
4553 2019-01-22 Alan Modra <amodra@gmail.com>
4556 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
4557 stays a reg. Allow a const_int.
4558 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
4559 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
4560 (IS_NOMARK_TLSGETADDR): Define.
4561 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
4562 (rs6000_output_tlsargs): New function.
4563 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
4564 __tls_get_addr call takes an arg.
4565 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
4566 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
4568 (call_value_nonlocal_sysv): ..or here, delete split.
4569 (tls_gdld_nomark): Delete.
4570 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
4571 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
4572 (call_value_nonlocal_sysv): Likewise.
4573 (call_value_nonlocal_sysv_secure): Likewise.
4574 (call_value_nonlocal_aix): Likewise.
4575 (call_value_indirect_aix): Likewise.
4576 (call_value_indirect_elfv2): Likewise.
4577 (call_value_local32, call_value_local64): Disable for no-mark tls.
4578 (call_value_local_aix): Likewise.
4580 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
4583 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
4584 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
4586 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
4588 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
4589 string contents as hash_map keys.
4591 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4594 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
4595 for rvalue context. Handle rvalues correctly. Use min_align_of_type
4596 instead of TYPE_ALIGN.
4597 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
4598 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
4599 pointer from TYPE_STUB_DECL.
4601 2019-01-21 Richard Biener <rguenther@suse.de>
4603 PR tree-optimization/88934
4604 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
4605 at the possibly non-constant operand.
4606 (vect_get_constant_vectors): Adjust.
4608 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4611 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
4612 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
4613 instead of _X86INTRIN_H_INCLUDED.
4614 * onfig/i386/clwbintrin.h: Likewise.
4615 * config/i386/pkuintrin.h: Likewise.
4616 * config/i386/prfchwintrin.h: Likewise.
4617 * config/i386/rdseedintrin.h: Likewise.
4618 * config/i386/wbnoinvdintrin.h: Likewise.
4619 * config/i386/xsavecintrin.h: Likewise.
4620 * config/i386/xsavesintrin.h: Likewise.
4621 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
4622 * config/i386/xsaveintrin.h: Likewise.
4623 * config/i386/xsaveoptintrin.h: Likewise.
4624 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
4625 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
4626 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
4627 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
4628 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
4629 * config/i386/immintrin.h: Here.
4631 2019-01-20 Martin Jambor <mjambor@suse.cz>
4634 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
4635 with aa_walk_budget.
4636 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
4637 aa_walk_budget_p parameter.
4638 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
4639 walk. Updated all callers.
4640 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
4641 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
4643 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
4644 parameter info. Extract info from fbi. Pass fbi to recursive calls
4645 and to unmodified_parm.
4646 (phi_result_unknown_predicate): New parameter fbi, removed parameter
4647 info, updated call to will_be_nonconstant_expr_predicate.
4648 (param_change_prob): New parameter fbi, limit AA walking.
4649 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
4650 calls to various above functions.
4651 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
4652 parameter. Use it to limit AA walking.
4653 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
4655 (detect_type_change): New parameter fbi, pass it on to
4656 detect_type_change_from_memory_writes.
4657 (detect_type_change_ssa): Likewise.
4658 (aa_overwalked): Removed.
4659 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
4660 accordingly, adjust to the neew AA limiting scheme.
4661 (parm_ref_data_preserved_p): Likewise.
4662 (ipa_compute_jump_functions_for_edge): Adjust call to
4664 (ipa_analyze_call_uses): Likewise.
4665 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
4666 (ipa_analyze_node): Initialize aa_walk_budget.
4667 (ipcp_transform_function): Likewise.
4668 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
4669 to get_dynamic_type.
4671 2019-01-19 Jakub Jelinek <jakub@redhat.com>
4673 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
4674 outside of #if CHECKING_P code.
4676 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
4678 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
4679 New function, split out from...
4680 (loop_versioning::analyze_stride): ...here.
4681 (loop_versioning::find_per_loop_multiplication): Use gassign.
4682 (loop_versioning::analyze_term_using_scevs): Return a success code.
4683 (loop_versioning::analyze_arbitrary_term): New function.
4684 (loop_versioning::analyze_address_fragment): Use
4685 analyze_arbitrary_term if all else fails.
4687 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
4690 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
4693 2019-01-18 Richard Biener <rguenther@suse.de>
4695 PR tree-optimization/88903
4696 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
4697 scalar stmts a SLP shift amount is composed of when detecting
4700 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
4703 * config/arm/arm-cpus.in (mp): New feature.
4705 (fgroup ARMv7ve): Add mp and sec features.
4706 (arch armv7-a): Add options to allow mp and sec extensions.
4707 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
4708 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
4709 extenstions to the base architecture.
4710 (cpu cortex-a8): Add sec extension to the base architecture.
4711 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
4712 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
4713 variants down to the base v7-a varaint.
4714 * config/arm/t-multilib (v7_a_arch_variants): New variable.
4715 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
4716 of permitted extensions for -march=armv7-a and for
4717 -mcpu=generic-armv7-a.
4719 2019-01-18 Martin Liska <mliska@suse.cz>
4721 * params.def: Fix comment.
4722 * tree-profile.c (gimple_init_gcov_profiler): Bump function
4724 (gimple_gen_ic_func_profiler): Likewise.
4726 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4728 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
4729 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
4730 and put in error checks for stack protector guard options.
4731 (aarch64_stack_protect_guard): New.
4732 (TARGET_STACK_PROTECT_GUARD): Define.
4733 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
4734 (reg_stack_protect_address<mode>): New.
4735 (stack_protect_set): Adjust for SSP_GLOBAL.
4736 (stack_protect_test): Likewise.
4737 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
4738 (-mstack-protector-guard): Likewise.
4739 (-mstack-protector-guard-offset): Likewise.
4741 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4743 PR tree-optimization/86214
4744 * tree-inline.h (struct copy_body_data): Add
4745 add_clobbers_to_eh_landing_pads member.
4746 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
4747 (copy_edges_for_bb): Call it if EH edge destination is <
4748 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
4749 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
4750 if flag_stack_reuse != SR_NONE and clear it afterwards.
4752 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
4755 * doc/install.texi (with-multilib-list): Document for aarch64.
4757 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4760 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
4761 (("..."))) with ("...").
4763 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
4765 * doc/extend.texi (Built-in Functions for Memory Model Aware
4766 Atomic Operations): Document atomic fetch and nand.
4768 2019-01-18 Martin Liska <mliska@suse.cz>
4769 Richard Biener <rguenther@suse.de>
4772 * cgraph.h (create_version_clone_with_body): Add new argument
4774 * cgraphclones.c (cgraph_node::create_version_clone): Add
4775 DECL_ATTRIBUTES to a newly created decl. And call
4776 valid_attribute_p so that proper cl_target_optimization_node
4777 is set for the newly created declaration.
4778 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
4780 (expand_target_clones): Do not call valid_attribute_p, it must
4782 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
4785 2019-01-17 Jakub Jelinek <jakub@redhat.com>
4788 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
4789 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
4790 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
4792 2019-01-17 Martin Sebor <msebor@redhat.com>
4795 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
4796 Handle anti-ranges the same as no range at all.
4798 2018-01-17 Steve Ellcey <sellcey@cavium.com>
4800 * config/aarch64/aarch64.c (cgraph.h): New include.
4801 (intl.h): New include.
4802 (supported_simd_type): New function.
4803 (currently_supported_simd_type): Ditto.
4804 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
4805 (aarch64_simd_clone_adjust): Ditto.
4806 (aarch64_simd_clone_usable): Ditto.
4807 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
4808 (TARGET_SIMD_CLONE_ADJUST): Ditto.
4809 (TARGET_SIMD_CLONE_USABLE): Ditto.
4810 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
4811 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
4814 2019-01-17 Martin Sebor <msebor@redhat.com>
4816 PR tree-optimization/88800
4817 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
4818 NO_WARNING bit here. Avoid folding out-of-bounds calls.
4819 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
4820 redundant argument. Add new argument and issue diagnostics under
4821 its control. Detect out-of-bounds access even with warnings
4823 (check_bounds_or_overlap): Change return type. Add argument.
4824 (wrestrict_dom_walker::check_call): Adjust.
4825 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
4826 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
4827 check_bounds_or_overlap's return value.
4828 (handle_builtin_stxncpy): Same.
4829 (handle_builtin_strcat): Same.
4831 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4832 Kwok Cheung Yeung <kcy@codesourcery.com>
4833 Julian Brown <julian@codesourcery.com>
4834 Tom de Vries <tom@codesourcery.com>
4836 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
4838 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4840 * doc/sourcebuild.texi: Document dg-require-effective-target
4841 llvm_binutils and offload_gcn.
4843 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4844 Kwok Cheung Yeung <kcy@codesourcery.com>
4845 Julian Brown <julian@codesourcery.com>
4846 Tom de Vries <tom@codesourcery.com>
4848 * doc/sourcebuild.texi: Document dg-required-effective-target
4851 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4852 Kwok Cheung Yeung <kcy@codesourcery.com>
4853 Julian Brown <julian@codesourcery.com>
4854 Tom de Vries <tom@codesourcery.com>
4855 Jan Hubicka <hubicka@ucw.cz>
4856 Martin Jambor <mjambor@suse.cz>
4858 * config.gcc: Add amdgcn*-*-amdhsa configuration.
4859 * configure.ac: Check for dlopen.
4860 * configure: Regenerate.
4862 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4863 Kwok Cheung Yeung <kcy@codesourcery.com>
4864 Julian Brown <julian@codesourcery.com>
4865 Tom de Vries <tom@codesourcery.com>
4866 Jan Hubicka <hubicka@ucw.cz>
4867 Martin Jambor <mjambor@suse.cz>
4869 * common/config/gcn/gcn-common.c: New file.
4870 * config/gcn/driver-gcn.c: New file.
4871 * config/gcn/gcn-builtins.def: New file.
4872 * config/gcn/gcn-hsa.h: New file.
4873 * config/gcn/gcn-modes.def: New file.
4874 * config/gcn/gcn-opts.h: New file.
4875 * config/gcn/gcn-passes.def: New file.
4876 * config/gcn/gcn-protos.h: New file.
4877 * config/gcn/gcn-run.c: New file.
4878 * config/gcn/gcn-tree.c: New file.
4879 * config/gcn/gcn.c: New file.
4880 * config/gcn/gcn.h: New file.
4881 * config/gcn/gcn.opt: New file.
4882 * config/gcn/t-gcn-hsa: New file.
4884 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4885 Kwok Cheung Yeung <kcy@codesourcery.com>
4886 Julian Brown <julian@codesourcery.com>
4887 Tom de Vries <tom@codesourcery.com>
4888 Jan Hubicka <hubicka@ucw.cz>
4889 Martin Jambor <mjambor@suse.cz>
4891 * config/gcn/constraints.md: New file.
4892 * config/gcn/gcn-valu.md: New file.
4893 * config/gcn/gcn.md: New file.
4894 * config/gcn/predicates.md: New file.
4896 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
4898 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
4899 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
4900 (stmt_uses_0_or_null_in_undefined_way): Likewise.
4901 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
4903 2019-01-17 Tamar Christina <tamar.christina@arm.com>
4906 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
4907 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
4908 it and document registers.
4910 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4912 * config/aarch64/aarch64.c (ares_tunings): Define.
4913 * config/aarch64/aarch64-cores.def (ares): Use the above.
4915 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
4919 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
4921 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
4922 (_mm512_fixupimm_round_pd): Update parameters and builtin.
4923 (_mm512_maskz_fixupimm_round_pd): Ditto.
4924 (_mm512_fixupimm_round_ps): Ditto.
4925 (_mm512_maskz_fixupimm_round_ps): Ditto.
4926 (_mm_fixupimm_round_sd): Ditto.
4927 (_mm_maskz_fixupimm_round_sd): Ditto.
4928 (_mm_fixupimm_round_ss): Ditto.
4929 (_mm_maskz_fixupimm_round_ss): Ditto.
4930 (_mm512_fixupimm_pd): Ditto.
4931 (_mm512_maskz_fixupimm_pd): Ditto.
4932 (_mm512_fixupimm_ps): Ditto.
4933 (_mm512_maskz_fixupimm_ps): Ditto.
4934 (_mm_fixupimm_sd): Ditto.
4935 (_mm_maskz_fixupimm_sd): Ditto.
4936 (_mm_fixupimm_ss): Ditto.
4937 (_mm_maskz_fixupimm_ss): Ditto.
4938 (_mm512_mask_fixupimm_round_pd): Update builtin.
4939 (_mm512_mask_fixupimm_round_ps): Ditto.
4940 (_mm_mask_fixupimm_round_sd): Ditto.
4941 (_mm_mask_fixupimm_round_ss): Ditto.
4942 (_mm512_mask_fixupimm_pd): Ditto.
4943 (_mm512_mask_fixupimm_ps): Ditto.
4944 (_mm_mask_fixupimm_sd): Ditto.
4945 (_mm_mask_fixupimm_ss): Ditto.
4946 * config/i386/avx512vlintrin.h:
4947 (_mm256_fixupimm_pd): Update parameters and builtin.
4948 (_mm256_maskz_fixupimm_pd): Ditto.
4949 (_mm256_fixupimm_ps): Ditto.
4950 (_mm256_maskz_fixupimm_ps): Ditto.
4951 (_mm_fixupimm_pd): Ditto.
4952 (_mm_maskz_fixupimm_pd): Ditto.
4953 (_mm_fixupimm_ps): Ditto.
4954 (_mm_maskz_fixupimm_ps): Ditto.
4955 (_mm256_mask_fixupimm_pd): Update builtin.
4956 (_mm256_mask_fixupimm_ps): Ditto.
4957 (_mm_mask_fixupimm_pd): Ditto.
4958 (_mm_mask_fixupimm_ps): Ditto.
4959 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
4960 * config/i386/i386-builtin.def: Update builtin definitions.
4961 * config/i386/i386.c: Handle new builtin types and remove useless ones.
4962 * config/i386/sse.md: Update VFIXUPIMM* patterns.
4963 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4964 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4965 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
4966 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4967 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4968 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
4969 * config/i386/subst.md:
4970 (round_saeonly_sd_mask_operand4): Add new subst_attr.
4971 (round_saeonly_sd_mask_op4): Ditto.
4972 (round_saeonly_expand_operand5): Ditto.
4973 (round_saeonly_expand): Update.
4975 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
4979 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
4981 * config/i386/sse.md: Combine VFIXUPIMM* patterns
4982 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4983 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4984 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
4985 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4986 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4987 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
4989 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
4993 2018-12-15 Jakub Jelinek <jakub@redhat.com>
4996 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
4997 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
4998 instead of UNSPEC_FIXUPIMM.
5000 2019-01-17 Richard Biener <rguenther@suse.de>
5003 * dwarf2out.c (want_pubnames): Never generate pubnames sections
5004 and friends for the LTO part of debug info.
5006 2019-01-17 Jakub Jelinek <jakub@redhat.com>
5008 PR tree-optimization/86214
5009 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
5012 PR rtl-optimization/88870
5013 * dce.c (deletable_insn_p): Never delete const/pure calls that can
5014 throw if we can't alter the cfg or delete dead exceptions.
5015 (mark_insn): Don't call find_call_stack_args for such calls.
5017 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
5019 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
5020 prototypes for vec_st.
5021 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
5022 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
5023 mainly on signed/unsigned long long and double.
5025 2019-01-16 David Malcolm <dmalcolm@redhat.com>
5028 * combine.c (delete_noop_moves): Convert to "bool" return,
5029 returning true if any edges are eliminated.
5030 (combine_instructions): Also return true if delete_noop_moves
5033 2019-01-16 Tamar Christina <tamar.christina@arm.com>
5035 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
5036 correct max nunits for endian swap.
5037 (aarch64_expand_fcmla_builtin): Correct subreg code.
5038 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
5039 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
5042 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
5044 * config/alpha/alpha.c (alpha_gimplify_va_arg):
5045 Handle split indirect COMPLEX_TYPE arguments.
5047 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
5050 * config/aarch64/aarch64-modes.def: Add comment about how the carry
5051 bit is set by add and compare.
5052 (CC_ADC): New CC_MODE.
5053 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
5054 to cache the code and mode of X. Adjust the shape of a CC_Cmode
5055 comparison. Add detection for CC_ADCmode.
5056 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
5058 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
5059 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
5060 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
5061 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
5062 to eliminate the need for zero-extending the operands.
5063 (add<mode>3_compareC_imm): Delete. Merge into ...
5064 (add<mode>3_compareC): ... this. Restructure the comparison to
5065 eliminate the need for zero-extending the operands.
5066 (add<mode>3_carryin): Use LTU for the overflow detection.
5067 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
5068 Reexpress comparison for overflow.
5069 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
5070 (add<mode>3_carryinC): Likewise.
5071 (add<mode>3_carryinV): Use LTU for carry between partials.
5072 * config/aarch64/predicates.md (aarch64_carry_operation): Update
5073 handling of CC_Cmode and add CC_ADCmode.
5074 (aarch64_borrow_operation): Likewise.
5076 2019-01-16 Tamar Christina <tamar.christina@arm.com>
5078 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
5079 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
5080 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
5081 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
5083 2019-01-16 Martin Liska <mliska@suse.cz>
5085 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
5087 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
5089 * gcc.c (add_sysrooted_hdrs_prefix): New function.
5090 (path_prefix_reset): Move up in the source file.
5091 (find_fortran_preinclude_file): Make complex search for the
5092 fortran header files.
5094 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
5096 * godump.c (go_output_typedef): When outputting a typedef, refer
5097 to the underlying type by its name and not its structure.
5099 2019-01-15 David Malcolm <dmalcolm@redhat.com>
5102 * tree.c (build_function_type): Assert that arg_types is not
5105 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
5108 * doc/extend.texi: Document that listing the stack pointer in the
5109 clobber list of an asm is a deprecated feature.
5110 * common.opt (Wdeprecated): Moved from c-family/c.opt.
5111 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
5112 warning instead of an error for clobbers of the stack pointer.
5113 Add a note explaining why.
5115 2019-01-15 Richard Biener <rguenther@suse.de>
5118 * dwarf2out.c (gen_member_die): Do not generate inheritance
5121 2019-01-15 Richard Biener <rguenther@suse.de>
5123 PR tree-optimization/88855
5124 * tree-if-conv.c (combine_blocks): Collect
5125 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
5127 2019-01-15 Tom de Vries <tdevries@suse.de>
5130 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
5131 lhs == NULL_TREE for gang-level reduction.
5133 2019-01-15 Richard Biener <rguenther@suse.de>
5134 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5137 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
5138 return true if SSA_NAME is already marked in visited bitmap.
5139 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
5141 2019-01-15 Jakub Jelinek <jakub@redhat.com>
5143 PR tree-optimization/88775
5144 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
5145 equal == 0 equality pointer comparisons some more if compared in
5146 integral types and either one points to an automatic var and the
5147 other to a global, or we can prove at least one points to the middle
5148 or both point to start or both point to end.
5150 2019-01-14 Andi Kleen <ak@linux.intel.com>
5152 * Makefile.in: Lower autofdo sampling rate by 10x.
5153 * Makefile.tpl: Dito.
5155 2019-01-14 Tom Honermann <tom@honermann.net>
5157 * defaults.h: Define CHAR8_TYPE.
5159 2019-01-14 Martin Sebor <msebor@redhat.com>
5162 * doc/extend.texi (Darwin Format Checks): Clarify.
5164 2019-01-14 Richard Biener <rguenther@suse.de>
5166 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
5167 whether we are in (simplify ...) or (match ...) context.
5169 2019-01-14 Jakub Jelinek <jakub@redhat.com>
5171 PR rtl-optimization/88796
5172 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
5173 * cfgexpand.c (stack_protect_prologue): Initialize
5174 crtl->stack_protect_guard_decl.
5175 * function.c (stack_protect_epilogue): Use it instead of calling
5176 targetm.stack_protect_guard again.
5177 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
5178 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
5179 crtl->stack_protect_guard_decl.
5180 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
5181 on the returned MEM_EXPR.
5183 2019-01-12 Tom de Vries <tdevries@suse.de>
5185 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
5186 vector length using -fopenacc-dim.
5188 2019-01-12 Tom de Vries <tdevries@suse.de>
5190 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
5191 lengths into account.
5193 2019-01-12 Svante Signell <svante.signell@gmail.com>
5195 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
5196 (TARGET_CAN_SPLIT_STACK): Define.
5197 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5199 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5201 * params.def (inline-unit-growth): Set to 40.
5203 2019-01-12 Jakub Jelinek <jakub@redhat.com>
5205 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
5207 2019-01-12 Tom de Vries <tdevries@suse.de>
5209 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
5210 region calling vector-partitionable routine, set default_vector_length
5213 2019-01-12 Tom de Vries <tdevries@suse.de>
5215 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
5216 variable default_vector_length.
5218 2019-01-12 Tom de Vries <tdevries@suse.de>
5221 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
5222 from oacc_default_dims, as oacc_validate_dims would do it, and apply
5225 2019-01-12 Tom de Vries <tdevries@suse.de>
5227 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
5228 (nvptx_goacc_validate_dims): Add used parameter.
5229 * doc/tm.texi: Regenerate.
5230 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
5231 argument to call to targetm.goacc.validate_dims.
5232 (default_goacc_validate_dims): Add used
5234 * target.def (validate_dims): Add used parameter in DEFHOOK.
5235 * targhooks.h (default_goacc_validate_dims): Add used parameter.
5237 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5241 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
5243 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
5244 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
5245 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
5246 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
5248 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
5250 PR rtl-optimization/87305
5252 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
5253 for little endian pseudos used as paradoxical subreg.
5255 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5257 PR tree-optimization/88693
5258 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
5259 for STRING_CSTs that don't contain any NUL characters in the first
5260 TREE_STRING_LENGTH bytes.
5262 2019-01-11 Alan Modra <amodra@gmail.com>
5266 * genattrtab.c (min_fn): Don't translate values.
5267 (min_attr_value): Return INT_MAX when the value can't be calculated.
5268 Return minimum among any values that can be calculated.
5269 (max_attr_value): Adjust.
5271 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5273 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
5275 2019-01-11 Steve Ellcey <sellcey@marvell.com>
5277 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
5278 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
5279 (aarch64_return_call_with_max_clobbers): New function.
5280 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
5281 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
5283 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
5284 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
5285 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
5286 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
5287 * cselib.c (cselib_process_insn): Add argument to
5288 targetm.hard_regno_call_part_clobbered call.
5289 * ira-conflicts.c (ira_build_conflicts): Ditto.
5290 * ira-costs.c (ira_tune_allocno_costs): Ditto.
5291 * lra-constraints.c (inherit_reload_reg): Ditto.
5292 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
5293 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
5294 argument. Call targetm.return_call_with_max_clobbers.
5295 Add argument to targetm.hard_regno_call_part_clobbered call.
5296 (calls_have_same_clobbers_p): New function.
5297 (process_bb_lives): Add call_insn and last_call_insn variables.
5298 Pass call_insn to check_pseudos_live_through_calls.
5299 Modify if stmt to check targetm.return_call_with_max_clobbers.
5300 Update setting of flush variable.
5301 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
5303 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
5304 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
5305 targetm.hard_regno_call_part_clobbered call.
5306 * reginfo.c (choose_hard_reg_mode): Ditto.
5307 * regrename.c (check_new_reg_p): Ditto.
5308 * reload.c (find_equiv_reg): Ditto.
5309 * reload1.c (emit_reload_insns): Ditto.
5310 * sched-deps.c (deps_analyze_insn): Ditto.
5311 * sel-sched.c (init_regs_for_mode): Ditto.
5312 (mark_unavailable_hard_regs): Ditto.
5313 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
5314 * target.def (hard_regno_call_part_clobbered): Add insn argument.
5315 (return_call_with_max_clobbers): New target function.
5316 * doc/tm.texi: Regenerate.
5317 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
5318 * hooks.c (hook_bool_uint_mode_false): Change to
5319 hook_bool_insn_uint_mode_false.
5320 * hooks.h (hook_bool_uint_mode_false): Ditto.
5322 2019-01-11 Steve Ellcey <sellcey@marvell.com>
5324 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
5325 (aarch64_remove_extra_call_preserved_regs): New function.
5326 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
5327 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
5328 * doc/tm.texi: Regenerate.
5329 * final.c (get_call_reg_set_usage): Call new hook.
5330 * target.def (remove_extra_call_preserved_regs): New hook.
5331 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
5332 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
5334 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5337 * passes.c (finish_optimization_passes): Call print_combine_total_stats
5338 inside of pass_combine_1 dump rather than pass_profile_1.
5340 2019-01-11 Tom de Vries <tdevries@suse.de>
5342 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
5343 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
5344 (PTX_NUM_PER_WORKER_BARRIERS): Define.
5345 (nvptx_apply_dim_limits): Prevent vector_length 64 and
5348 2019-01-11 Tom de Vries <tdevries@suse.de>
5350 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
5352 2019-01-11 Jan Beulich <jbeulich@suse.com>
5354 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
5355 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
5356 sse2_cvtsi2sd): Add {l}.
5357 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
5360 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5363 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
5365 (*float<floatunssuffix>v2div2sf2): New define_insn.
5366 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
5367 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
5368 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
5369 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
5370 match_operands with "const0_operand" "C".
5372 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5374 * config/aarch64/aarch64-builtins.c
5375 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
5376 (aarch64_init_simd_builtins): ...Here
5378 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
5380 PR rtl-optimization/87305
5382 (setup_live_pseudos_and_spill_after_risky_transforms): Check
5383 allocation for big endian pseudos used as paradoxical subregs and
5384 spill them if it is wrong.
5385 * lra-constraints.c (lra_constraints): Add a comment.
5387 2019-01-10 Richard Biener <rguenther@suse.de>
5389 PR tree-optimization/88792
5390 * tree-ssa-pre.c (get_representative_for): Do not return a
5393 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5397 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
5398 (assign_parm_setup_block): Do the argument slot realignment here
5401 2019-01-10 Stefan Agner <stefan@agner.ch>
5404 * config/arm/arm.c (arm_option_override_internal): Force
5405 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
5407 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5410 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
5413 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5415 * config/arm/arm-builtins.c
5416 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
5417 (MAC_LANE_PAIR_QUALIFIERS): New.
5418 (arm_expand_builtin_args): Use it.
5419 (arm_expand_builtin_1): Likewise.
5420 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
5421 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
5422 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
5423 * config/arm/arm_neon.h:
5424 (vcadd_rot90_f16): New.
5425 (vcaddq_rot90_f16): New.
5426 (vcadd_rot270_f16): New.
5427 (vcaddq_rot270_f16): New.
5430 (vcmla_lane_f16): New.
5431 (vcmla_laneq_f16): New.
5432 (vcmlaq_lane_f16): New.
5433 (vcmlaq_laneq_f16): New.
5434 (vcmla_rot90_f16): New.
5435 (vcmlaq_rot90_f16): New.
5436 (vcmla_rot90_lane_f16): New.
5437 (vcmla_rot90_laneq_f16): New.
5438 (vcmlaq_rot90_lane_f16): New.
5439 (vcmlaq_rot90_laneq_f16): New.
5440 (vcmla_rot180_f16): New.
5441 (vcmlaq_rot180_f16): New.
5442 (vcmla_rot180_lane_f16): New.
5443 (vcmla_rot180_laneq_f16): New.
5444 (vcmlaq_rot180_lane_f16): New.
5445 (vcmlaq_rot180_laneq_f16): New.
5446 (vcmla_rot270_f16): New.
5447 (vcmlaq_rot270_f16): New.
5448 (vcmla_rot270_lane_f16): New.
5449 (vcmla_rot270_laneq_f16): New.
5450 (vcmlaq_rot270_lane_f16): New.
5451 (vcmlaq_rot270_laneq_f16): New.
5452 (vcadd_rot90_f32): New.
5453 (vcaddq_rot90_f32): New.
5454 (vcadd_rot270_f32): New.
5455 (vcaddq_rot270_f32): New.
5458 (vcmla_lane_f32): New.
5459 (vcmla_laneq_f32): New.
5460 (vcmlaq_lane_f32): New.
5461 (vcmlaq_laneq_f32): New.
5462 (vcmla_rot90_f32): New.
5463 (vcmlaq_rot90_f32): New.
5464 (vcmla_rot90_lane_f32): New.
5465 (vcmla_rot90_laneq_f32): New.
5466 (vcmlaq_rot90_lane_f32): New.
5467 (vcmlaq_rot90_laneq_f32): New.
5468 (vcmla_rot180_f32): New.
5469 (vcmlaq_rot180_f32): New.
5470 (vcmla_rot180_lane_f32): New.
5471 (vcmla_rot180_laneq_f32): New.
5472 (vcmlaq_rot180_lane_f32): New.
5473 (vcmlaq_rot180_laneq_f32): New.
5474 (vcmla_rot270_f32): New.
5475 (vcmlaq_rot270_f32): New.
5476 (vcmla_rot270_lane_f32): New.
5477 (vcmla_rot270_laneq_f32): New.
5478 (vcmlaq_rot270_lane_f32): New.
5479 (vcmlaq_rot270_laneq_f32): New.
5480 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
5481 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
5482 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
5483 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
5484 vcmlaq_lane270): New.
5485 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
5486 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
5487 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
5488 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
5489 (arm_option_reconfigure_globals): Use them.
5490 * config/arm/iterators.md (VDF, VQ_HSF): New.
5491 (VCADD, VCMLA): New.
5492 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
5493 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
5495 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
5496 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
5498 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5500 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
5501 Add qualifier_lane_pair_index.
5502 (emit-rtl.h): Include.
5503 (TYPES_QUADOP_LANE_PAIR): New.
5504 (aarch64_simd_expand_args): Use it.
5505 (aarch64_simd_expand_builtin): Likewise.
5506 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
5508 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
5509 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
5510 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
5511 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
5512 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
5513 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
5514 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
5515 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
5516 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
5517 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
5518 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
5519 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
5520 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
5521 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
5522 Add __ARM_FEATURE_COMPLEX.
5523 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
5524 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
5525 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
5526 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
5527 fcmlaq_lane270): New.
5528 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
5529 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
5530 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
5531 * config/aarch64/arm_neon.h:
5532 (vcadd_rot90_f16): New.
5533 (vcaddq_rot90_f16): New.
5534 (vcadd_rot270_f16): New.
5535 (vcaddq_rot270_f16): New.
5538 (vcmla_lane_f16): New.
5539 (vcmla_laneq_f16): New.
5540 (vcmlaq_lane_f16): New.
5541 (vcmlaq_rot90_lane_f16): New.
5542 (vcmla_rot90_laneq_f16): New.
5543 (vcmla_rot90_lane_f16): New.
5544 (vcmlaq_rot90_f16): New.
5545 (vcmla_rot90_f16): New.
5546 (vcmlaq_laneq_f16): New.
5547 (vcmla_rot180_laneq_f16): New.
5548 (vcmla_rot180_lane_f16): New.
5549 (vcmlaq_rot180_f16): New.
5550 (vcmla_rot180_f16): New.
5551 (vcmlaq_rot90_laneq_f16): New.
5552 (vcmlaq_rot270_laneq_f16): New.
5553 (vcmlaq_rot270_lane_f16): New.
5554 (vcmla_rot270_laneq_f16): New.
5555 (vcmlaq_rot270_f16): New.
5556 (vcmla_rot270_f16): New.
5557 (vcmlaq_rot180_laneq_f16): New.
5558 (vcmlaq_rot180_lane_f16): New.
5559 (vcmla_rot270_lane_f16): New.
5560 (vcadd_rot90_f32): New.
5561 (vcaddq_rot90_f32): New.
5562 (vcaddq_rot90_f64): New.
5563 (vcadd_rot270_f32): New.
5564 (vcaddq_rot270_f32): New.
5565 (vcaddq_rot270_f64): New.
5569 (vcmla_lane_f32): New.
5570 (vcmla_laneq_f32): New.
5571 (vcmlaq_lane_f32): New.
5572 (vcmlaq_laneq_f32): New.
5573 (vcmla_rot90_f32): New.
5574 (vcmlaq_rot90_f32): New.
5575 (vcmlaq_rot90_f64): New.
5576 (vcmla_rot90_lane_f32): New.
5577 (vcmla_rot90_laneq_f32): New.
5578 (vcmlaq_rot90_lane_f32): New.
5579 (vcmlaq_rot90_laneq_f32): New.
5580 (vcmla_rot180_f32): New.
5581 (vcmlaq_rot180_f32): New.
5582 (vcmlaq_rot180_f64): New.
5583 (vcmla_rot180_lane_f32): New.
5584 (vcmla_rot180_laneq_f32): New.
5585 (vcmlaq_rot180_lane_f32): New.
5586 (vcmlaq_rot180_laneq_f32): New.
5587 (vcmla_rot270_f32): New.
5588 (vcmlaq_rot270_f32): New.
5589 (vcmlaq_rot270_f64): New.
5590 (vcmla_rot270_lane_f32): New.
5591 (vcmla_rot270_laneq_f32): New.
5592 (vcmlaq_rot270_lane_f32): New.
5593 (vcmlaq_rot270_laneq_f32): New.
5594 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
5595 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
5596 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
5597 (FCADD, FCMLA): New.
5599 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
5601 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5605 * config/pa/pa.c: Change "can not" to "cannot".
5606 * gimple-ssa-evrp-analyze.c: Likewise.
5607 * ipa-icf.c: Likewise.
5608 * ipa-polymorphic-call.c: Likewise.
5609 * ipa-pure-const.c: Likewise.
5610 * lra-constraints.c: Likewise.
5611 * lra-remat.c: Likewise.
5612 * reload1.c: Likewise.
5613 * reorg.c: Likewise.
5614 * tree-ssa-uninit.c: Likewise.
5616 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5620 * Makefile.in: Mechanically replace "can not" with "cannot".
5621 * alias.c: Likewise.
5622 * builtins.c: Likewise.
5623 * calls.c: Likewise.
5624 * cgraph.c: Likewise.
5625 * cgraph.h: Likewise.
5626 * cgraphclones.c: Likewise.
5627 * cgraphunit.c: Likewise.
5628 * combine-stack-adj.c: Likewise.
5629 * combine.c: Likewise.
5630 * common/config/i386/i386-common.c: Likewise.
5631 * config/aarch64/aarch64.c: Likewise.
5632 * config/alpha/sync.md: Likewise.
5633 * config/arc/arc.c: Likewise.
5634 * config/arc/predicates.md: Likewise.
5635 * config/arm/arm-c.c: Likewise.
5636 * config/arm/arm.c: Likewise.
5637 * config/arm/arm.h: Likewise.
5638 * config/arm/arm.md: Likewise.
5639 * config/arm/cortex-r4f.md: Likewise.
5640 * config/csky/csky.c: Likewise.
5641 * config/csky/csky.h: Likewise.
5642 * config/darwin-f.c: Likewise.
5643 * config/epiphany/epiphany.md: Likewise.
5644 * config/i386/i386.c: Likewise.
5645 * config/i386/sol2.h: Likewise.
5646 * config/m68k/m68k.c: Likewise.
5647 * config/mcore/mcore.h: Likewise.
5648 * config/microblaze/microblaze.md: Likewise.
5649 * config/mips/20kc.md: Likewise.
5650 * config/mips/sb1.md: Likewise.
5651 * config/nds32/nds32.c: Likewise.
5652 * config/nds32/predicates.md: Likewise.
5653 * config/pa/pa.c: Likewise.
5654 * config/rs6000/e300c2c3.md: Likewise.
5655 * config/rs6000/rs6000.c: Likewise.
5656 * config/s390/s390.h: Likewise.
5657 * config/sh/sh.c: Likewise.
5658 * config/sh/sh.md: Likewise.
5659 * config/spu/vmx2spu.h: Likewise.
5660 * cprop.c: Likewise.
5661 * dbxout.c: Likewise.
5662 * df-scan.c: Likewise.
5663 * doc/cfg.texi: Likewise.
5664 * doc/extend.texi: Likewise.
5665 * doc/fragments.texi: Likewise.
5666 * doc/gty.texi: Likewise.
5667 * doc/invoke.texi: Likewise.
5668 * doc/lto.texi: Likewise.
5669 * doc/md.texi: Likewise.
5670 * doc/objc.texi: Likewise.
5671 * doc/rtl.texi: Likewise.
5672 * doc/tm.texi: Likewise.
5674 * emit-rtl.c: Likewise.
5675 * emit-rtl.h: Likewise.
5676 * except.c: Likewise.
5677 * expmed.c: Likewise.
5679 * fold-const.c: Likewise.
5680 * genautomata.c: Likewise.
5681 * gimple-fold.c: Likewise.
5682 * hard-reg-set.h: Likewise.
5683 * ifcvt.c: Likewise.
5684 * ipa-comdats.c: Likewise.
5685 * ipa-cp.c: Likewise.
5686 * ipa-devirt.c: Likewise.
5687 * ipa-fnsummary.c: Likewise.
5688 * ipa-icf.c: Likewise.
5689 * ipa-inline-transform.c: Likewise.
5690 * ipa-inline.c: Likewise.
5691 * ipa-polymorphic-call.c: Likewise.
5692 * ipa-profile.c: Likewise.
5693 * ipa-prop.c: Likewise.
5694 * ipa-pure-const.c: Likewise.
5695 * ipa-reference.c: Likewise.
5696 * ipa-split.c: Likewise.
5697 * ipa-visibility.c: Likewise.
5699 * ira-build.c: Likewise.
5700 * ira-color.c: Likewise.
5701 * ira-conflicts.c: Likewise.
5702 * ira-costs.c: Likewise.
5703 * ira-int.h: Likewise.
5704 * ira-lives.c: Likewise.
5707 * loop-invariant.c: Likewise.
5708 * loop-unroll.c: Likewise.
5709 * lower-subreg.c: Likewise.
5710 * lra-assigns.c: Likewise.
5711 * lra-constraints.c: Likewise.
5712 * lra-eliminations.c: Likewise.
5713 * lra-lives.c: Likewise.
5714 * lra-remat.c: Likewise.
5715 * lra-spills.c: Likewise.
5717 * lto-cgraph.c: Likewise.
5718 * lto-streamer-out.c: Likewise.
5719 * postreload-gcse.c: Likewise.
5720 * predict.c: Likewise.
5721 * profile-count.h: Likewise.
5722 * profile.c: Likewise.
5723 * recog.c: Likewise.
5725 * reload.c: Likewise.
5726 * reload1.c: Likewise.
5727 * reorg.c: Likewise.
5728 * resource.c: Likewise.
5729 * rtl.def: Likewise.
5731 * rtlanal.c: Likewise.
5732 * sched-deps.c: Likewise.
5733 * sched-ebb.c: Likewise.
5734 * sched-rgn.c: Likewise.
5735 * sel-sched-ir.c: Likewise.
5736 * sel-sched.c: Likewise.
5737 * shrink-wrap.c: Likewise.
5738 * simplify-rtx.c: Likewise.
5739 * symtab.c: Likewise.
5740 * target.def: Likewise.
5741 * toplev.c: Likewise.
5742 * tree-call-cdce.c: Likewise.
5743 * tree-cfg.c: Likewise.
5744 * tree-complex.c: Likewise.
5745 * tree-core.h: Likewise.
5746 * tree-eh.c: Likewise.
5747 * tree-inline.c: Likewise.
5748 * tree-loop-distribution.c: Likewise.
5749 * tree-nrv.c: Likewise.
5750 * tree-profile.c: Likewise.
5751 * tree-sra.c: Likewise.
5752 * tree-ssa-alias.c: Likewise.
5753 * tree-ssa-dce.c: Likewise.
5754 * tree-ssa-dom.c: Likewise.
5755 * tree-ssa-forwprop.c: Likewise.
5756 * tree-ssa-loop-im.c: Likewise.
5757 * tree-ssa-loop-ivcanon.c: Likewise.
5758 * tree-ssa-loop-ivopts.c: Likewise.
5759 * tree-ssa-loop-niter.c: Likewise.
5760 * tree-ssa-phionlycprop.c: Likewise.
5761 * tree-ssa-phiopt.c: Likewise.
5762 * tree-ssa-propagate.c: Likewise.
5763 * tree-ssa-threadedge.c: Likewise.
5764 * tree-ssa-threadupdate.c: Likewise.
5765 * tree-ssa-uninit.c: Likewise.
5766 * tree-ssanames.c: Likewise.
5767 * tree-streamer-out.c: Likewise.
5770 * vr-values.c: Likewise.
5772 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
5774 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
5775 (ix86_split_xorsign): Ditto.
5776 * config/i386/i386.c (ix86_expand_xorsign): New function.
5777 (ix86_split_xorsign): Ditto.
5778 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
5779 (xorsign<mode>3): New expander.
5780 (xorsign<mode>3_1): New insn_and_split pattern.
5781 * config/i386/sse.md (xorsign<mode>3): New expander.
5783 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5785 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
5786 (*tablejump_sp64): Likewise.
5787 (*tablejump<P:mode>): ...this.
5788 (*call_address_sp32): Merge into...
5789 (*call_address_sp64): Likewise.
5790 (*call_address<P:mode>): ...this.
5791 (*call_symbolic_sp32): Merge into...
5792 (*call_symbolic_sp64): Likewise.
5793 (*call_symbolic<P:mode>): ...this.
5794 (call_value): Remove constraint and add predicate.
5795 (*call_value_address_sp32): Merge into...
5796 (*call_value_address_sp64): Likewise.
5797 (*call_value_address<P:mode>): ...this.
5798 (*call_value_symbolic_sp32): Merge into...
5799 (*call_value_symbolic_sp64): Likewise.
5800 (*call_value_symbolic<P:mode>): ...this.
5801 (*sibcall_symbolic_sp32): Merge into...
5802 (*sibcall_symbolic_sp64): Likewise.
5803 (*sibcall_symbolic<P:mode>): ...this.
5804 (sibcall_value): Remove constraint and add predicate.
5805 (*sibcall_value_symbolic_sp32): Merge into...
5806 (*sibcall_value_symbolic_sp64): Likewise.
5807 (*sibcall_value_symbolic<P:mode>): ...this.
5808 (window_save): Minor tweak.
5809 (*branch_sp32): Merge into...
5810 (*branch_sp64): Likewise.
5811 (*branch<P:mode>): ...this.
5813 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5814 James Clarke <jrtc27@jrtc27.com>
5817 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
5818 consistently in TLS address generation and adjust code to the renaming
5819 of patterns. Mark calls to __tls_get_addr as const.
5820 * config/sparc/sparc.md (tgd_hi22): Turn into...
5821 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
5822 (tgd_lo10): Turn into...
5823 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
5824 (tgd_add32): Merge into...
5825 (tgd_add64): Likewise.
5826 (tgd_add<P:mode>): ...this and use Pmode throughout.
5827 (tldm_hi22): Turn into...
5828 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
5829 (tldm_lo10): Turn into...
5830 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
5831 (tldm_add32): Merge into...
5832 (tldm_add64): Likewise.
5833 (tldm_add<P:mode>): ...this and use Pmode throughout.
5834 (tldm_call32): Merge into...
5835 (tldm_call64): Likewise.
5836 (tldm_call<P:mode>): ...this and use Pmode throughout.
5837 (tldo_hix22): Turn into...
5838 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
5839 (tldo_lox10): Turn into...
5840 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
5841 (tldo_add32): Merge into...
5842 (tldo_add64): Likewise.
5843 (tldo_add<P:mode>): ...this and use Pmode throughout.
5844 (tie_hi22): Turn into...
5845 (tie_hi22<P:mode>): ...this and use Pmode throughout.
5846 (tie_lo10): Turn into...
5847 (tie_lo10<P:mode>): ...this and use Pmode throughout.
5848 (tie_ld64): Use DImode throughout.
5849 (tie_add32): Merge into...
5850 (tie_add64): Likewise.
5851 (tie_add<P:mode>): ...this and use Pmode throughout.
5852 (tle_hix22_sp32): Merge into...
5853 (tle_hix22_sp64): Likewise.
5854 (tle_hix22<P:mode>): ...this and use Pmode throughout.
5855 (tle_lox22_sp32): Merge into...
5856 (tle_lox22_sp64): Likewise.
5857 (tle_lox22<P:mode>): ...this and use Pmode throughout.
5858 (*tldo_ldub_sp32): Merge into...
5859 (*tldo_ldub_sp64): Likewise.
5860 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
5861 (*tldo_ldub1_sp32): Merge into...
5862 (*tldo_ldub1_sp64): Likewise.
5863 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
5864 (*tldo_ldub2_sp32): Merge into...
5865 (*tldo_ldub2_sp64): Likewise.
5866 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
5867 (*tldo_ldsb1_sp32): Merge into...
5868 (*tldo_ldsb1_sp64): Likewise.
5869 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
5870 (*tldo_ldsb2_sp32): Merge into...
5871 (*tldo_ldsb2_sp64): Likewise.
5872 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
5873 (*tldo_ldub3_sp64): Use DImode throughout.
5874 (*tldo_ldsb3_sp64): Likewise.
5875 (*tldo_lduh_sp32): Merge into...
5876 (*tldo_lduh_sp64): Likewise.
5877 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
5878 (*tldo_lduh1_sp32): Merge into...
5879 (*tldo_lduh1_sp64): Likewise.
5880 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
5881 (*tldo_ldsh1_sp32): Merge into...
5882 (*tldo_ldsh1_sp64): Likewise.
5883 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
5884 (*tldo_lduh2_sp64): Use DImode throughout.
5885 (*tldo_ldsh2_sp64): Likewise.
5886 (*tldo_lduw_sp32): Merge into...
5887 (*tldo_lduw_sp64): Likewise.
5888 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
5889 (*tldo_lduw1_sp64): Use DImode throughout.
5890 (*tldo_ldsw1_sp64): Likewise.
5891 (*tldo_ldx_sp64): Likewise.
5892 (*tldo_stb_sp32): Merge into...
5893 (*tldo_stb_sp64): Likewise.
5894 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
5895 (*tldo_sth_sp32): Merge into...
5896 (*tldo_sth_sp64): Likewise.
5897 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
5898 (*tldo_stw_sp32): Merge into...
5899 (*tldo_stw_sp64): Likewise.
5900 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
5901 (*tldo_stx_sp64): Use DImode throughout.
5903 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5905 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
5906 check configure option to set BTI and Return Address Signing.
5907 * configure.ac: Add --enable-standard-branch-protection and
5908 --disable-standard-branch-protection.
5909 * configure: Regenerated.
5910 * doc/install.texi: Document the same.
5912 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5913 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5915 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
5916 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
5917 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
5919 * config/aarch64/aarch64-bti-insert.c: New file.
5920 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
5922 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
5924 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
5925 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
5926 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
5927 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
5929 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5931 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
5932 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
5933 Disable bti for -mbranch-protection=none.
5934 (aarch64_handle_standard_branch_protection): Enable bti for
5935 -mbranch-protection=standard.
5936 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
5937 -mbranch-protection.
5938 (aarch64_bti_enabled): Check if bti is enabled.
5939 * config/aarch64/aarch64.opt: Declare target variable.
5940 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
5942 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5944 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
5945 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
5946 (aarch64_expand_epilogue): Likewise.
5947 (aarch64_output_mi_thunk): Likewise
5948 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
5949 TAILCALL_ADDR_REGS to x16 and x17.
5950 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
5952 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5954 * config/aarch64/aarch64-option-extensions.def: Define
5955 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
5956 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
5957 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
5958 (AARCH64_FL_PREDRES): New.
5959 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
5960 AARCH64_FL_PREDRES by default.
5961 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
5963 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5965 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
5967 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
5968 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
5969 * doc/invoke.texi: Document ARMv8.5-A.
5971 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5973 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
5974 (xorsign<mode>3): Likewise.
5976 2019-01-09 Jelinek <jakub@redhat.com>
5979 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
5980 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
5982 PR rtl-optimization/88331
5983 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
5984 not currently_expanding_to_rtl.
5986 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5988 * doc/invoke.texi (-Os): Remove trailing spaces.
5989 (-finline-functions): Remove reference to -O2.
5991 2019-01-08 Jakub Jelinek <jakub@redhat.com>
5993 PR rtl-optimization/79593
5994 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
5996 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
5997 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
5999 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
6002 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
6006 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
6007 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
6009 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
6012 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
6013 ix86_avx_u128_mode_entry.
6015 2019-01-08 Martin Liska <mliska@suse.cz>
6017 PR tree-optimization/88753
6018 * tree-switch-conversion.c (switch_conversion::build_one_array):
6019 Come up with local variable constructor. Convert first to
6020 type of constructor values.
6022 2019-01-08 Richard Biener <rguenther@suse.de>
6024 PR tree-optimization/86554
6025 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
6026 rpo_avail): Move earlier.
6027 (visit_nary_op): When value-numbering to expressions
6028 with different overflow behavior make sure there's an
6029 available expression on the path.
6031 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
6033 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
6034 aarch64_parse_branch_protection,
6035 struct aarch64_branch_protect_type,
6036 aarch64_handle_no_branch_protection,
6037 aarch64_handle_standard_branch_protection,
6038 aarch64_validate_mbranch_protection,
6039 aarch64_handle_pac_ret_protection,
6040 aarch64_handle_attr_branch_protection,
6041 accepted_branch_protection_string,
6042 aarch64_pac_ret_subtypes,
6043 aarch64_branch_protect_types,
6044 aarch64_handle_pac_ret_leaf): Define.
6045 (aarch64_override_options_after_change_1, aarch64_override_options):
6046 Add check for accepted_branch_protection_string.
6047 (aarch64_option_save): Save accepted_branch_protection_string.
6048 (aarch64_option_restore): Save accepted_branch_protection_string.
6049 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
6050 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
6051 msign-return-address.
6052 * doc/invoke.texi: Add mbranch-protection.
6054 2019-01-08 Alan Modra <amodra@gmail.com>
6057 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
6058 Delete "unknownp" parameter. Adjust callers. Handle
6059 CONST_INT, PLUS, MINUS, and MULT.
6060 (attr_value_aligned): Renamed from or_attr_value.
6061 (min_attr_value): Return INT_MIN for unhandled rtl case..
6062 (min_fn): ..and translate to INT_MAX here.
6063 (write_length_unit_log): Modify to cope without "unknown".
6064 (write_attr_value): Handle IF_THEN_ELSE.
6066 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6068 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
6069 optimization for masked stores.
6071 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6074 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
6075 output vector directly to duplicate_and_interleave instead of
6076 going through a temporary. Postpone insertion of ctor_seq to
6077 the end of the loop.
6079 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
6082 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
6083 unsigned_p. Handle signed and unsigned overflow correction as
6085 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
6087 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
6089 (add<mode>3_compareV_imm): Make this callable for expanding.
6090 (subv<GPI:mode>4): Use register_operand for operand 1. Use
6091 aarch64_plus_operand for operand 2.
6092 (subv<GPI:mode>_insn): New insn pattern.
6093 (subv<GPI:mode>_imm): Likewise.
6094 (negv<GPI:mode>3): New expand pattern.
6095 (negv<GPI:mode>_insn): New insn pattern.
6096 (negv<GPI:mode>_cmp_only): Likewise.
6097 (cmpv<GPI:mode>_insn): Likewise.
6098 (subvti4): Use register_operand for operand 1. Update call to
6099 aarch64_expand_subvti.
6100 (usubvti4): Likewise.
6101 (negvti3): New expand pattern.
6102 (negdi_carryout): New insn pattern.
6103 (negvdi_carryinV): New insn pattern.
6104 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
6105 version the named version.
6106 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
6108 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
6110 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
6112 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
6113 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
6114 (sub<mode>3_carryinCV): Delete.
6115 (sub<GPI:mode>3_carryinV): New expand pattern.
6116 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
6118 2019-01-07 Richard Biener <rguenther@suse.de>
6120 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
6121 of tree_operand_hash.
6123 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6125 PR tree-optimization/88598
6126 * tree.h (single_nonzero_element): Declare.
6127 * tree.c (single_nonzero_element): New function.
6128 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
6129 if I is the only nonzero element of CST.
6131 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
6133 PR tree-optimization/88598
6134 * tree.h (initializer_each_zero_or_onep): Declare.
6135 * tree.c (initializer_each_zero_or_onep): New function.
6136 (signed_or_unsigned_type_for): Handle float types too.
6137 (unsigned_type_for, signed_type_for): Update comments accordingly.
6138 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
6139 x & { 0 or -1, 0 or -1, ... }.
6141 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
6143 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
6144 with x86_64-pc-linux-gnu.
6146 2019-01-07 Tom de Vries <tdevries@suse.de>
6149 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
6151 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
6154 2019-01-07 Jakub Jelinek <jakub@redhat.com>
6156 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
6157 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
6158 TARGET_AVX512F as condition.
6161 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
6162 const_not_ok_for_debug_p target hook.
6163 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
6164 on UNSPEC and subexpressions thereof if all subexpressions of the
6165 UNSPEC are CONSTANT_P.
6167 PR tree-optimization/88676
6168 * tree-ssa-phiopt.c (two_value_replacement): New function.
6169 (tree_ssa_phiopt_worker): Call it.
6172 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
6173 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
6176 * tree-vect-generic.c: Include insn-config.h and recog.h.
6177 (expand_vector_piecewise): Add defaulted ret_type argument,
6178 if non-NULL, use that in preference to type for the result type.
6179 (expand_vector_parallel): Formatting fix.
6180 (do_vec_conversion, do_vec_narrowing_conversion,
6181 expand_vector_conversion): New functions.
6182 (expand_vector_operations_1): Call expand_vector_conversion
6183 for VEC_CONVERT ifn calls.
6184 * internal-fn.def (VEC_CONVERT): New internal function.
6185 * internal-fn.c (expand_VEC_CONVERT): New function.
6186 * fold-const-call.c (fold_const_vec_convert): New function.
6187 (fold_const_call): Use it for CFN_VEC_CONVERT.
6188 * doc/extend.texi (__builtin_convertvector): Document.
6190 2019-01-07 Tom de Vries <tdevries@suse.de>
6192 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
6193 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
6194 vector_red_partition, vector_red_sym): New global variables.
6195 (nvptx_option_override): Initialize vector_red_sym.
6196 (nvptx_declare_function_name): Restore red_partition register.
6197 (nvptx_file_end): Emit code to declare the vector reduction variables.
6198 (nvptx_output_red_partition): New function.
6199 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
6200 large vector reductions.
6201 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
6202 (nvptx_init_builtins): Add VECTOR_ADDR.
6203 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
6204 Handle nvptx_expand_shared_addr.
6205 (nvptx_get_shared_red_addr): Add vector argument and handle large
6207 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
6209 (nvptx_goacc_reduction_init): Likewise.
6210 (nvptx_goacc_reduction_fini): Likewise.
6211 (nvptx_goacc_reduction_teardown): Likewise.
6212 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
6213 init,fini,teardown}.
6214 (nvptx_init_axis_predicate): Initialize vector_red_partition.
6215 (nvptx_set_current_function): Init vector_red_partition.
6216 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
6217 (nvptx_red_partition): New insn.
6218 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
6220 2019-01-07 Tom de Vries <tdevries@suse.de>
6223 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
6226 2019-01-07 Tom de Vries <tdevries@suse.de>
6228 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
6229 (nvptx_option_override): Init oacc_bcast_partition.
6230 (nvptx_init_oacc_workers): New function.
6231 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
6232 (nvptx_needs_shared_bcast): New function.
6233 (nvptx_find_par): Generalize to enable vectors to use shared-memory
6235 (nvptx_shared_propagate): Initialize vector bcast partition and
6236 synchronization state.
6237 (nvptx_single): Generalize to enable vectors to use shared-memory
6239 (nvptx_process_pars): Likewise.
6240 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
6241 * config/nvptx/nvptx.h (struct machine_function): Add
6242 bcast_partition and sync_bar members.
6244 2019-01-07 Tom de Vries <tdevries@suse.de>
6246 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
6247 (nvptx_apply_dim_limits): New function.
6248 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
6251 2019-01-07 Tom de Vries <tdevries@suse.de>
6253 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
6254 as late as possible.
6256 2019-01-07 Tom de Vries <tdevries@suse.de>
6258 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
6259 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
6260 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
6261 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
6262 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
6264 2019-01-07 Tom de Vries <tdevries@suse.de>
6266 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
6268 2019-01-07 Tom de Vries <tdevries@suse.de>
6270 * omp-offload.c (oacc_get_min_dim): New function.
6271 * omp-offload.h (oacc_get_min_dim): Declare.
6273 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
6276 * config/i386/i386.c (function_value_ms_64): Return small sturct in
6277 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
6279 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6283 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
6285 * ipa-inline.c (edge_badness): Use inlined_time instead of
6286 inline_summaries->get.
6288 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6290 * opts.c (enable_fdo_optimizations): Enable
6291 version-loops-for-strides, loop-interchange, unrol-and-jam
6292 and tree-loop-distribution.
6293 * invoke.texi: Document newly enabled options.
6295 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6297 * doc/invoke.texi (max-inline-insns-small): New parameters.
6298 * ipa-inline.c (want_early_inline_function_p): simplify.
6299 (want_inline_small_function_p): Fix pasto from previous patch;
6300 use max-inline-insns-small bound.
6301 * params.def (max-inline-insns-small): New param.
6302 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
6303 variables correctly.
6305 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6307 * doc/invoke.texi: Document max-inline-insns-size,
6308 uninlined-function-insns, uninlined-function-time,
6309 uninlined-thunk-insns and uninlined-thunk-time.
6310 * params.def: Add max-inline-insns-size,
6311 uninlined-function-insns, uninlined-function-time,
6312 uninlined-thunk-insns and uninlined-thunk-time.
6313 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
6315 * ipa-inline.c (can_inline_edge_by_limits_p,
6316 want_inline_small_function_p): Use new parameters.
6318 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6320 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
6322 2019-01-05 Jakub Jelinek <jakub@redhat.com>
6326 * expr.c (expand_assignment): For calls returning VLA structures
6327 if to_rtx is not a MEM, force it into a stack temporary.
6330 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
6331 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
6332 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
6333 subexpressions of both operands.
6334 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
6335 subrtxes are CONSTANT_P.
6336 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
6339 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
6341 * params.def (hot-bb-count-ws-permille): Set to 990.
6343 2019-01-04 Martin Sebor <msebor@redhat.com>
6346 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
6349 2019-01-04 Martin Sebor <msebor@redhat.com>
6352 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
6354 2019-01-04 Jakub Jelinek <jakub@redhat.com>
6356 * gdbinit.in: Turn off pagination for the skip commands, restore
6357 it to previous state afterwards.
6359 2019-01-04 Jakub Jelinek <jakub@redhat.com>
6362 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
6363 of GET_MODE (opN) as modes of the libcall arguments.
6365 2019-01-04 Jan Beulich <jbeulich@suse.com>
6367 * config/i386/sse.md
6368 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
6369 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
6370 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
6371 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
6372 avx512f_vmcmp<mode>3<round_saeonly_name>,
6373 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
6374 avx512f_maskcmp<mode>3,
6375 <avx512>_cvt<ssemodesuffix>2mask<mode>,
6376 <avx512>_cvt<ssemodesuffix>2mask<mode>,
6377 *<avx512>_cvtmask2<ssemodesuffix><mode>,
6378 *<avx512>_cvtmask2<ssemodesuffix><mode>,
6379 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
6380 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
6381 <avx512>_gt<mode>3<mask_scalar_merge_name>,
6382 <avx512>_gt<mode>3<mask_scalar_merge_name>,
6383 <avx512>_testm<mode>3<mask_scalar_merge_name>,
6384 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
6385 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
6386 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
6387 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
6388 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
6389 avx512cd_maskb_vec_dup<mode>,
6390 avx512cd_maskw_vec_dup<mode>,
6391 avx512dq_fpclass<mode><mask_scalar_merge_name>,
6392 avx512dq_vmfpclass<mode>,
6393 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
6396 2019-01-03 Martin Sebor <msebor@redhat.com>
6398 PR tree-optimization/88659
6399 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
6401 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
6403 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
6404 unaligned vsx and avoid lxvd2x/stxvd2x.
6405 (gen_lvx_v4si_move): New function.
6407 2019-01-03 Tom de Vries <tdevries@suse.de>
6409 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
6410 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
6412 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
6414 2019-01-03 Tom de Vries <tdevries@suse.de>
6416 * config/nvptx/nvptx.c (struct offload_attrs): New.
6417 (populate_offload_attrs): New function. Factor mask extraction out of
6418 nvptx_reorg. Add extraction of dimensions.
6419 (nvptx_reorg): Use populate_offload_attrs.
6421 2019-01-03 Tom de Vries <tdevries@suse.de>
6423 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
6424 cases for oacc_min_dims_p and routine_p. Add asserts for
6425 oacc_default_dims_p and offload_region_p.
6427 2019-01-03 Tom de Vries <tdevries@suse.de>
6429 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
6431 (nvptx_goacc_validate_dims): ... here.
6433 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
6435 PR tree-optimization/85574
6436 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
6438 (struct ssa_equip_hash_traits): Declare.
6439 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
6441 2019-01-03 Jakub Jelinek <jakub@redhat.com>
6444 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
6445 change it to qualified_type.
6447 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
6449 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
6450 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
6452 2019-01-02 Martin Sebor <msebor@redhat.com>
6453 Jeff Law <law@redhat.com>
6455 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
6456 (get_range_strlen_tree): Update appropriately.
6458 * gimple-fold.h (get_range_strlen): Drop unused last argument.
6460 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
6461 rather than set_range_info.
6462 * tree-ssa-strlen.c (set_strlen_range): Extracted from
6463 maybe_set_strlen_range. Handle potentially boundary crossing
6464 cases more conservatively.
6465 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
6466 Call set_strlen_range.
6467 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
6470 * gimple-fold.c (get_range_strlen): Update prototype to no longer
6471 need the flexp argument.
6472 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
6473 from calls to get_range_strlen. Update comments. Just update
6474 VAL for an unterminated const char array and let the reset of the
6475 code handle it normally. No longer try to set *flexp. Adjust
6477 (get_range_strlen): Update for the new get_range_strlen API.
6478 (get_maxval_strlen): Similarly.
6479 (gimple_fold_builtin_strlen): Handle update meaning of return value
6480 from get_range_strlen.
6481 * gimple-ssa-sprintf.c (get_string_length): Update for the new
6482 get_range_strlen API.
6484 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
6487 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
6488 false at WPA time when body was removed.
6490 2019-01-02 Martin Liska <mliska@suse.cz>
6492 PR tree-optimization/88650
6493 * predict.c (set_even_probabilities): Calculate probability
6494 remainer only when really used.
6496 2019-01-02 Richard Biener <rguenther@suse.de>
6499 * tree-data-ref.c (analyze_subscript_affine_affine): Use
6500 widest_ints when mangling max_stmt_execution results.
6502 2019-01-02 Richard Biener <rguenther@suse.de>
6504 PR tree-optimization/88621
6505 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
6506 bitfields when canoncalizing.
6508 2019-01-02 Richard Biener <rguenther@suse.de>
6511 * config/i386/x86-tune-costs.h (intel_cost): Adjust
6512 cost of cheap SSE instruction.
6514 2019-01-02 Richard Biener <rguenther@suse.de>
6517 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
6518 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
6520 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
6521 set after UIDs before splitting them.
6523 2019-01-01 Martin Sebor <msebor@redhat.com>
6524 Jeff Law <law@redhat.com>
6526 * gimple-fold.c (get_range_strlen_tree): Record if the computed
6527 length is optimistic. If it is, then arrange to compute the
6528 conservative length as well.
6530 * gimple-fold.h (get_range_strlen): Update prototype.
6531 * builtins.c (check_access): Update call to get_range_strlen to use
6532 c_strlen_data pointer. Change various variable accesses to instead
6533 pull data from the c_strlen_data structure.
6534 (check_strncat_sizes, expand_builtin_strncat): Likewise.
6535 * calls.c (maybe_warn_nonstring_arg): Likewise.
6536 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
6537 minimum length if maximum lengh is unknown.
6538 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
6539 that used c_strlen, it's no longer needed. Restructure slightly.
6540 (format_string): Set unlikely range appropriately.
6541 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
6543 (get_range_strlen): Accept c_strlen_data pointer for external
6544 call sites as well. Pass through to call to internal get_range_strlen.
6545 Adjust minlen, maxlen and maxbound as needed.
6546 (get_maxval_strlen): Update comments.
6547 (gimple_fold_builtin_strlen): Update call to get_range_strlen
6548 to use c_strlen_data pointer. Change variable accesses to instead
6549 use c_strlen_data data members.
6551 * gimple-fold.c (get_range_strlen): Update prototype.
6552 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
6553 local variables. Use pdata to return information to caller.
6554 Update calls to get_range_strlen. Update pdata->maxbound.
6555 (get_range_strlen -- static version): Similarly.
6556 (get_range_strlen -- extern version): Update for internal
6557 get_range_strlen API change. Convert to external data format.
6558 (get_maxval_strlen): Similarly.
6560 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
6562 * coverage.c (get_coverage_counts): Use current_function_decl.
6563 * profile.c (read_thunk_profile): New function.
6564 (branch_prob): Add THUNK parameter.
6565 * tree-profile.c (tree_profiling): Handle thunks.
6566 * value-prof.c (init_node_map): Handle thunks.
6567 * value-prof.h (branch_prob): Upate prototype.
6568 (read_thunk_profile): Declare.
6570 2019-01-01 Jakub Jelinek <jakub@redhat.com>
6572 Update copyright years.
6574 * gcc.c (process_command): Update copyright notice dates.
6575 * gcov-dump.c (print_version): Ditto.
6576 * gcov.c (print_version): Ditto.
6577 * gcov-tool.c (print_version): Ditto.
6578 * gengtype.c (create_file): Ditto.
6579 * doc/cpp.texi: Bump @copying's copyright year.
6580 * doc/cppinternals.texi: Ditto.
6581 * doc/gcc.texi: Ditto.
6582 * doc/gccint.texi: Ditto.
6583 * doc/gcov.texi: Ditto.
6584 * doc/install.texi: Ditto.
6585 * doc/invoke.texi: Ditto.
6587 Copyright (C) 2019 Free Software Foundation, Inc.
6589 Copying and distribution of this file, with or without modification,
6590 are permitted in any medium without royalty provided the copyright
6591 notice and this notice are preserved.