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

            Bug ID: 116526
           Summary: [12/13/14/15 Regression] ICE: in
                    get_partitioning_class, at symtab.cc:2190 with -O
                    -fopenacc -fprofile-generate -flto
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

Created attachment 59023
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59023&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O -fopenacc -fprofile-generate -flto testcase.c 
during IPA pass: modref
testcase.c:23:1: internal compiler error: in get_partitioning_class, at
symtab.cc:2190
   23 | }
      | ^
0x2cdcc3e internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:492
0xe6c76f fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostic.cc:1658
0x7565b9 symtab_node::get_partitioning_class()
        /repo/gcc-trunk/gcc/symtab.cc:2190
0x13ea663 lto_output_varpool_node
        /repo/gcc-trunk/gcc/lto-cgraph.cc:632
0x13ea663 output_symtab()
        /repo/gcc-trunk/gcc/lto-cgraph.cc:1000
0x14006a2 lto_output()
        /repo/gcc-trunk/gcc/lto-streamer-out.cc:2830
0x1499b39 write_lto
        /repo/gcc-trunk/gcc/passes.cc:2780
0x1499b39 ipa_write_summaries_1
        /repo/gcc-trunk/gcc/passes.cc:2844
0x1499b39 ipa_write_summaries()
        /repo/gcc-trunk/gcc/passes.cc:2900
0x1070421 ipa_passes
        /repo/gcc-trunk/gcc/cgraphunit.cc:2262
0x1070421 symbol_table::compile()
        /repo/gcc-trunk/gcc/cgraphunit.cc:2337
0x10732b7 symbol_table::compile()
        /repo/gcc-trunk/gcc/cgraphunit.cc:2315
0x10732b7 symbol_table::finalize_compilation_unit()
        /repo/gcc-trunk/gcc/cgraphunit.cc:2589
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/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r15-3242-20240828091318-g3cde331e959-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/15.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
--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 --enable-libsanitizer
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r15-3242-20240828091318-g3cde331e959-checking-yes-rtl-df-extra-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.0 20240828 (experimental) (GCC)

Reply via email to