public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org> 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 [thread overview] Message-ID: <bug-106061-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106061 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=53193&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -Og testcase.c testcase.c: In function 'foo': testcase.c:14:3: error: edge points to wrong declaration: 14 | bar (-1); | ^~~~~~~~ <function_decl 0x7f78c998ee00 __builtin_trap type <function_type 0x7f78c98d55e8 type <void_type 0x7f78c98c5f18 void VOID align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7f78c98c5f18 pointer_to_this <pointer_type 0x7f78c98cd000>> QI size <integer_cst 0x7f78c98a9e40 constant 8> unit-size <integer_cst 0x7f78c98a9e58 constant 1> align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7f78c98d55e8 arg-types <tree_list 0x7f78c98c1b18 value <void_type 0x7f78c98c5f18 void>>> volatile nothrow public external built-in decl_6 QI <built-in>:0:0 align:8 warn_if_not_align:0 built-in: BUILT_IN_NORMAL:BUILT_IN_TRAP context <translation_unit_decl 0x7f78c98b7c30 testcase.c> attributes <tree_list 0x7f78c998ceb0 purpose <identifier_node 0x7f78c98d1be0 nothrow> chain <tree_list 0x7f78c998ce88 purpose <identifier_node 0x7f78c98d1c30 leaf> chain <tree_list 0x7f78c998ce60 purpose <identifier_node 0x7f78c98d1b90 noreturn> chain <tree_list 0x7f78c998ce38 purpose <identifier_node 0x7f78c98d1a00 cold>>>>> chain <function_decl 0x7f78c998ef00 __builtin_unreachable>> Instead of: <function_decl 0x7f78c99e8200 baz type <function_type 0x7f78c98d4930 type <integer_type 0x7f78c98c55e8 int public SI size <integer_cst 0x7f78c98a9f90 constant 32> unit-size <integer_cst 0x7f78c98a9fa8 constant 4> align:32 warn_if_not_align:0 symtab:0 alias-set 1 canonical-type 0x7f78c98c55e8 precision:32 min <integer_cst 0x7f78c98a9f48 -2147483648> max <integer_cst 0x7f78c98a9f60 2147483647> pointer_to_this <pointer_type 0x7f78c98cda80>> QI size <integer_cst 0x7f78c98a9e40 constant 8> unit-size <integer_cst 0x7f78c98a9e58 constant 1> align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7f78c98d4930 pointer_to_this <pointer_type 0x7f78c99e1bd0>> addressable used public external decl_5 QI testcase.c:1:5 align:8 warn_if_not_align:0 context <translation_unit_decl 0x7f78c98b7c30 testcase.c> chain <var_decl 0x7f78c98b8bd0 g>> bar/1 (bar) @0x7f78c9a0e000 Type: function definition analyzed Visibility: semantic_interposition prevailing_def_ironly References: Referring: Function bar/1 is inline copy in foo/2 Availability: local Function flags: body local Called by: foo/2 (inlined) Calls: __builtin_trap/4 (0 (precise),1.00 per call) 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 <https://gcc.gnu.org/bugs/> for instructions. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/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=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r13-1213-20220623060722-g31ce821a790-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.0 20220623 (experimental) (GCC)
next reply other threads:[~2022-06-23 4:46 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-06-23 4:46 zsojka at seznam dot cz [this message] 2022-06-23 6:47 ` [Bug ipa/106061] [13 Regression] during GIMPLE pass: einline ICE: verify_cgraph_node failed (edge points to wrong declaration) with -Og since r13-1204-gd68d366425369649 marxin at gcc dot gnu.org 2022-06-24 10:09 ` rguenth at gcc dot gnu.org 2022-07-14 17:27 ` pinskia at gcc dot gnu.org 2022-08-10 19:25 ` pinskia at gcc dot gnu.org 2022-10-11 23:20 ` pinskia at gcc dot gnu.org 2022-10-11 23:23 ` pinskia at gcc dot gnu.org 2022-11-11 18:06 ` yann at droneaud dot fr 2022-12-20 14:37 ` rguenth at gcc dot gnu.org 2023-01-27 10:17 ` cvs-commit at gcc dot gnu.org 2023-01-27 10:18 ` jakub 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-106061-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).