public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/97235] New: ICE in duplicate, at ipa-prop.c:4251 Date: Tue, 29 Sep 2020 01:36:29 +0000 [thread overview] Message-ID: <bug-97235-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97235 Bug ID: 97235 Summary: ICE in duplicate, at ipa-prop.c:4251 Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com CC: marxin at gcc dot gnu.org Target Milestone: --- gcc-11.0.0-alpha20200927 snapshot (g:e24817aa7a1c6d12039b486ab5ea9b5ee0a46cd4) ICEs when compiling the following testcase w/ -O2 -fno-ipa-modref: struct ie { int hk; }; typedef int gn (int, struct ie *); int de (int, struct ie *); int qc (int, struct ie *); int bh; int uj (gn yz) { struct ie *se = 0; if (se->hk == 1) return yz (bh, se); return 1; } int n6 (void) { (void) uj (qc); (void) uj (de); } % gcc-11.0.0 -O2 -fno-ipa-modref -c a7m1ghpt.c during IPA pass: inline a7m1ghpt.c: In function 'n6': a7m1ghpt.c:31:10: internal compiler error: in duplicate, at ipa-prop.c:4251 31 | (void) uj (de); | ^~~~~~~ 0x6741de ipa_edge_args_sum_t::duplicate(cgraph_edge*, cgraph_edge*, ipa_edge_args*, ipa_edge_args*) /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/ipa-prop.c:4251 0x95912b symbol_table::call_edge_duplication_hooks(cgraph_edge*, cgraph_edge*) /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/cgraph.c:451 0x96d12f cgraph_edge::clone(cgraph_node*, gcall*, unsigned int, profile_count, profile_count, bool) /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/cgraphclones.c:149 0xe322d7 copy_bb /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-inline.c:2266 0xe332fb copy_cfg_body /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-inline.c:3042 0xe332fb copy_body /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-inline.c:3290 0xe36714 expand_call_inline /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-inline.c:5076 0xe38391 gimple_expand_calls_inline /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-inline.c:5266 0xe38391 optimize_inline_calls(tree_node*) /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-inline.c:5439 0xb92863 inline_transform(cgraph_node*) /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/ipa-inline-transform.c:741 0xccd67d execute_one_ipa_transform_pass /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/passes.c:2240 0xccd67d execute_all_ipa_transforms(bool) /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/passes.c:2279 0x968683 cgraph_node::expand() /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/cgraphunit.c:2302 0x969c1d expand_all_functions /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/cgraphunit.c:2480 0x969c1d symbol_table::compile() /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/cgraphunit.c:2843 0x96c092 symbol_table::compile() /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/cgraphunit.c:2756 0x96c092 symbol_table::finalize_compilation_unit() /var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/cgraphunit.c:3021
next reply other threads:[~2020-09-29 1:36 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-09-29 1:36 asolokha at gmx dot com [this message] 2020-09-29 7:18 ` [Bug ipa/97235] [11 Regression] " rguenth at gcc dot gnu.org 2020-09-29 8:11 ` [Bug ipa/97235] [11 Regression] ICE in duplicate, at ipa-prop.c:4251 since r11-3478-gada353b87909fd6c marxin at gcc dot gnu.org 2020-09-29 8:12 ` marxin at gcc dot gnu.org 2020-09-30 15:43 ` hubicka at ucw dot cz 2020-10-01 13:14 ` hubicka at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-97235-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).