public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "acoplan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/98599] New: fatal error: Cgraph edge statement index out of range with -Os -flto -fanalyzer Date: Fri, 08 Jan 2021 10:59:47 +0000 [thread overview] Message-ID: <bug-98599-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98599 Bug ID: 98599 Summary: fatal error: Cgraph edge statement index out of range with -Os -flto -fanalyzer Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following fails: $ cat test.c int b(int); int a() { b(5); } int main() { a(); } $ aarch64-elf-gcc -Os -flto -fanalyzer test.c test.c: In function 'a': test.c:3:5: fatal error: Cgraph edge statement index out of range 3 | int main() { a(); } | ^ compilation terminated. lto-wrapper: fatal error: aarch64-elf-gcc returned 1 exit status compilation terminated. /home/alecop01/toolchain/build-aarch64-elf/install/lib/gcc/aarch64-elf/11.0.0/../../../../aarch64-elf/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status Removing any one of these options prevents the error.
next reply other threads:[~2021-01-08 10:59 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-01-08 10:59 acoplan at gcc dot gnu.org [this message] 2021-01-08 16:36 ` [Bug analyzer/98599] " dmalcolm at gcc dot gnu.org 2021-01-08 23:56 ` dmalcolm at gcc dot gnu.org 2021-01-11 12:47 ` marxin at gcc dot gnu.org 2021-01-11 16:29 ` dmalcolm at gcc dot gnu.org 2021-01-12 13:27 ` marxin at gcc dot gnu.org 2021-01-12 23:26 ` dmalcolm at gcc dot gnu.org 2021-01-13 10:31 ` marxin at gcc dot gnu.org 2021-01-13 18:38 ` dmalcolm at gcc dot gnu.org 2021-01-13 22:09 ` dmalcolm at gcc dot gnu.org 2021-03-11 18:04 ` dmalcolm at gcc dot gnu.org 2021-03-31 18:28 ` dmalcolm at gcc dot gnu.org 2021-04-10 17:42 ` [Bug analyzer/98599] [11 Regression] " dmalcolm at gcc dot gnu.org 2021-04-13 1:15 ` cvs-commit at gcc dot gnu.org 2021-04-13 1:16 ` dmalcolm at gcc dot gnu.org 2021-04-13 7:55 ` hubicka at ucw dot cz 2021-04-13 9:09 ` acoplan at gcc dot gnu.org 2021-04-13 18:26 ` dmalcolm at gcc dot gnu.org 2021-04-15 9:41 ` cvs-commit 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-98599-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).