public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/104333] New: [11/12 Regression] ICE with -flto -Wl,-plugin-opt=debug
@ 2022-02-01 18:28 jakub at gcc dot gnu.org
  2022-02-01 18:28 ` [Bug lto/104333] " jakub at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-02-01 18:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104333

            Bug ID: 104333
           Summary: [11/12 Regression] ICE with -flto
                    -Wl,-plugin-opt=debug
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

extern int printf (const char *, ...);
int foo (int arg) { return printf ("hello %d\n", arg); }
int main (int argc) { return foo (argc); }

./xgcc -B ./ -flto -Wl,-plugin-opt=debug rh2048551.c
ICEs
lto1: internal compiler error: in read_cgraph_and_symbols, at
lto/lto-common.cc:2740
0xab4035 read_cgraph_and_symbols(unsigned int, char const**)
        ../../gcc/lto/lto-common.cc:2740
0xa88d99 lto_main()
        ../../gcc/lto/lto.cc:625
in GCC 11 and 12, while it correctly complains:
xgcc: error: debug: No such file or directory
in GCC 10.
The reporter meant -Wl,-plugin-opt=-debug which works in all cases, but we
shouldn't ICE even on bad arguments.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-02-02 15:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01 18:28 [Bug lto/104333] New: [11/12 Regression] ICE with -flto -Wl,-plugin-opt=debug jakub at gcc dot gnu.org
2022-02-01 18:28 ` [Bug lto/104333] " jakub at gcc dot gnu.org
2022-02-02  9:41 ` marxin at gcc dot gnu.org
2022-02-02 10:01 ` marxin at gcc dot gnu.org
2022-02-02 10:01 ` marxin at gcc dot gnu.org
2022-02-02 13:11 ` marxin at gcc dot gnu.org
2022-02-02 15:06 ` cvs-commit at gcc dot gnu.org
2022-02-02 15:10 ` cvs-commit at gcc dot gnu.org
2022-02-02 15:10 ` marxin at gcc dot gnu.org

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).