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

            Bug ID: 123447
           Summary: [15/16 Regression] ICE: in
                    simplify_gen_subreg_concatn, at lower-subreg.cc:744
                    with -Og -fno-tree-dce -mstrict-align and vector
                    reinterpret
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: aarch64-unknown-linux-gnu

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

Compiler output:
$ aarch64-unknown-linux-gnu-gcc -Og -fno-tree-dce -mstrict-align testcase.c
during RTL pass: subreg1
testcase.c: In function 'foo':
testcase.c:10:1: internal compiler error: in simplify_gen_subreg_concatn, at
lower-subreg.cc:744
   10 | }
      | ^
0x282addd internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0xc9658b fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostics/context.cc:1805
0xc470dd simplify_gen_subreg_concatn
        /repo/gcc-trunk/gcc/lower-subreg.cc:744
0x264b0c3 resolve_simple_move
        /repo/gcc-trunk/gcc/lower-subreg.cc:1109
0x264ce5a decompose_multiword_subregs
        /repo/gcc-trunk/gcc/lower-subreg.cc:1688
0x264d6ca execute
        /repo/gcc-trunk/gcc/lower-subreg.cc:1804
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.

$ aarch64-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20260106083620-r16-6516-gc6085ca0ed4cef-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-unknown-linux-gnu/16.0.0/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-sysroot=/usr/aarch64-unknown-linux-gnu --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=aarch64-unknown-linux-gnu
--with-ld=/usr/bin/aarch64-unknown-linux-gnu-ld
--with-as=/usr/bin/aarch64-unknown-linux-gnu-as --enable-libsanitizer
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-20260106083620-r16-6516-gc6085ca0ed4cef-checking-yes-rtl-df-extra-aarch64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20260106 (experimental) (GCC)

Reply via email to