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

            Bug ID: 115394
           Summary: ICE in lto_read_decls for a minimal C test-case with
                    streamer_debugging set to true
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: prathamesh3492 at gcc dot gnu.org
  Target Milestone: ---

Hi,
For the following minimal C test:

int main()
{
  return 0;
}

Compiling with -flto with streamer_debugging set to true, results in following
ICE:

lto1: internal compiler error: in lto_read_decls, at lto/lto-common.cc:1970
0x729706 lto_read_decls
        ../../gcc/gcc/lto/lto-common.cc:1970
0x999bd1 lto_file_finalize
        ../../gcc/gcc/lto/lto-common.cc:2299
0x999bd1 lto_create_files_from_ids
        ../../gcc/gcc/lto/lto-common.cc:2309
0x999bd1 lto_file_read
        ../../gcc/gcc/lto/lto-common.cc:2364
0x999bd1 read_cgraph_and_symbols(unsigned int, char const**)
        ../../gcc/gcc/lto/lto-common.cc:2812
0x97b8f6 lto_main()
        ../../gcc/gcc/lto/lto.cc:658

Not sure if this qualifies as a valid PR, because it's only triggered by
modifying the compiler (setting streamer_debugging to true). I suppose it
shouldn't result in ICE tho ?

I was debugging another LTO streaming issue, and wanted to set
streamer_debugging to true to enable extra checks.  

Thanks,
Prathamesh
  • [Bug lto/115394] New: ICE i... prathamesh3492 at gcc dot gnu.org via Gcc-bugs

Reply via email to