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

            Bug ID: 119307
           Summary: [15 Regression] ICE: in lra_rtx_hash, at lra.cc:1782
                    with -Os -mx32 -maddress-mode=long -fprofile-generate
                    -ftrapv
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          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-gnux32

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

Compiler output:
$ x86_64-pc-linux-gnu-gcc -Os -mx32 -maddress-mode=long -fprofile-generate
-ftrapv testcase.c 
during RTL pass: reload
testcase.c: In function 'foo':
testcase.c:11:1: internal compiler error: in lra_rtx_hash, at lra.cc:1782
   11 | }
      | ^
0x2def3c1 internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517
0xefbd65 fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostic.cc:1722
0x81f05b lra_rtx_hash(rtx_def*)
        /repo/gcc-trunk/gcc/lra.cc:1782
0x145a36f lra_rtx_hash(rtx_def*)
        /repo/gcc-trunk/gcc/lra.cc:1765
0x2ec4415 htab_find_slot
        /repo/gcc-trunk/libiberty/hashtab.c:703
0x147a8a7 insert_invariant
        /repo/gcc-trunk/gcc/lra-constraints.cc:5676
0x147a8a7 process_invariant_for_inheritance
        /repo/gcc-trunk/gcc/lra-constraints.cc:6567
0x147a8a7 inherit_in_ebb
        /repo/gcc-trunk/gcc/lra-constraints.cc:6948
0x147a8a7 lra_inheritance()
        /repo/gcc-trunk/gcc/lra-constraints.cc:7343
0x145d1ed lra(_IO_FILE*, int)
        /repo/gcc-trunk/gcc/lra.cc:2478
0x140676f do_reload
        /repo/gcc-trunk/gcc/ira.cc:5987
0x140676f execute
        /repo/gcc-trunk/gcc/ira.cc:6175
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-20250315085318-r15-8068-g254549d2bb9bb3-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/15.0.1/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 --enable-libsanitizer
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-20250315085318-r15-8068-g254549d2bb9bb3-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.1 20250315 (experimental) (GCC)

Reply via email to