From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DD1183895FC5; Thu, 23 Jun 2022 04:46:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD1183895FC5 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/106061] New: [13 Regression] during GIMPLE pass: einline ICE: verify_cgraph_node failed (edge points to wrong declaration) with -Og Date: Thu, 23 Jun 2022 04:46:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2022 04:46:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106061 Bug ID: 106061 Summary: [13 Regression] during GIMPLE pass: einline ICE: verify_cgraph_node failed (edge points to wrong declaration) with -Og Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz CC: marxin at gcc dot gnu.org Target Milestone: --- Host: x86_64-pc-linux-gnu Created attachment 53193 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53193&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -Og testcase.c=20 testcase.c: In function 'foo': testcase.c:14:3: error: edge points to wrong declaration: 14 | bar (-1); | ^~~~~~~~ > QI size unit-size align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7f78c98d55e8 arg-types >> volatile nothrow public external built-in decl_6 QI :0:0 align:8 warn_if_not_align:0 built-in: BUILT_IN_NORMAL:BUILT_IN_TRAP con= text attributes chain chain chain >>>> chain > Instead of: unit-size align:32 warn_if_not_align:0 symtab:0 alias-set 1 canonical-type 0x7f78c98c55e8 precision:32 min max pointer_to_this > QI size unit-size align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7f78c98d4930 pointer_to_this > addressable used public external decl_5 QI testcase.c:1:5 align:8 warn_if_not_align:0 context chain > bar/1 (bar) @0x7f78c9a0e000 Type: function definition analyzed Visibility: semantic_interposition prevailing_def_ironly References:=20 Referring:=20 Function bar/1 is inline copy in foo/2 Availability: local Function flags: body local Called by: foo/2 (inlined)=20 Calls: __builtin_trap/4 (0 (precise),1.00 per call)=20 during GIMPLE pass: einline testcase.c:14:3: internal compiler error: verify_cgraph_node failed 0xed2848 cgraph_node::verify_node() /repo/gcc-trunk/gcc/cgraph.cc:3881 0xec1a54 symtab_node::verify() /repo/gcc-trunk/gcc/symtab.cc:1359 0x144eba1 expand_call_inline /repo/gcc-trunk/gcc/tree-inline.cc:4912 0x1451659 gimple_expand_calls_inline /repo/gcc-trunk/gcc/tree-inline.cc:5318 0x1451659 optimize_inline_calls(tree_node*) /repo/gcc-trunk/gcc/tree-inline.cc:5490 0x24590be early_inliner(function*) /repo/gcc-trunk/gcc/ipa-inline.cc:3038 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= cc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r13-1213-20220623060722-= g31ce821a790-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/13.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r13-1213-20220623060722-g31ce821a7= 90-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.0 20220623 (experimental) (GCC)=