public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/114137] New: ICE when building lua-5.4.6 with -fharden-control-flow-redundancy on x86 (error: invalid rtl sharing found in the insn)
@ 2024-02-27 17:47 sjames at gcc dot gnu.org
  2024-02-27 17:48 ` [Bug rtl-optimization/114137] " sjames at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-02-27 17:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114137
           Summary: ICE when building lua-5.4.6 with
                    -fharden-control-flow-redundancy on x86 (error:
                    invalid rtl sharing found in the insn)
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
                CC: aoliva at gcc dot gnu.org
  Target Milestone: ---

```
libtool: compile:  i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"lua5.4\"
-DPACKAGE_TARNAME=\"lua\" -DPACKAGE_VERSION=\"5.4.6\"
"-DPACKAGE_STRING=\"lua5.4 5.4.6\""
-DPACKAGE_BUGREPORT=\"https://bugs.gentoo.org/\"
-DPACKAGE_URL=\"http://www.lua.org\" -DPACKAGE=\"lua\" -DVERSION=\"5.4.6\"
-DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\"
-DLUA_USE_READLINE=1 -DLUA_USE_LINUX=1 -I. -I./src -DLUA_COMPAT_5_3 -Wall -O3
-pipe -march=i686 -fdiagnostics-color=always -mfpmath=sse -msse -msse2
-fno-vect-cost-model -fharden-control-flow-redundancy -fpermissive -c src/lvm.c
 -fPIC -DPIC -o src/.libs/lvm.o
src/lvm.c: In function 'luaV_execute':
src/lvm.c:1899:1: error: invalid rtl sharing found in the insn
 1899 | }
      | ^
(insn 13766 3884 3886 347 (set (reg:SI 5300)
        (reg:SI 7643)) "src/lvm.c":1432:9 discrim 3 -1
     (expr_list:REG_EQUAL (plus:SI (reg:SI 98)
            (const:SI (unspec:SI [
                        (mem/c:BLK (plus:SI (reg/f:SI 19 frame)
                                (const_int -140 [0xffffffffffffff74])) [14
.cfrvisited.1003+0 S136 A32])
                    ] UNSPEC_GOTOFF)))
        (nil)))
src/lvm.c:1899:1: error: shared rtx
(mem/c:BLK (plus:SI (reg/f:SI 19 frame)
        (const_int -140 [0xffffffffffffff74])) [14 .cfrvisited.1003+0 S136
A32])
during RTL pass: rtl pre
src/lvm.c:1899:1: internal compiler error: internal consistency failure
0x56ebaa07 verify_rtx_sharing
       
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/emit-rtl.cc:3046
0x5873fc59 verify_rtx_sharing
       
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/emit-rtl.cc:3079
0x5873fbac verify_rtx_sharing
       
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/emit-rtl.cc:3061
0x5873fbac verify_rtx_sharing
       
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/emit-rtl.cc:3061
0x5873fbac verify_rtx_sharing
       
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/emit-rtl.cc:3061
0x5873bd69 verify_insn_sharing
       
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/emit-rtl.cc:3132
0x5873bd69 verify_rtl_sharing()
       
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/emit-rtl.cc:3154
0x5837fa6c execute_function_todo
        /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:2109
0x5837fa6c do_per_function
        /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:1687
0x5837fa6c execute_todo
        /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:2142
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
make[1]: *** [Makefile:731: src/lvm.lo] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-lang/lua-5.4.6/work/lua-5.4.6'
make: *** [Makefile:484: all] Error 2
```

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-linux-gnu/14/lto-wrapper
Target: i686-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-14.0.9999/work/gcc-14.0.9999/configure
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/14
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/14/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/14
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/14/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/14/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/i686-pc-linux-gnu/14/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--disable-libunwind-exceptions --enable-checking=yes,extra,rtl,df
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 14.0.9999 p,
commit e54a7fbca63053b5753fd9ba543c27ef392d3084' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--disable-multilib --disable-fixed-point --with-arch=i686 --enable-targets=all
--enable-libgomp --disable-libssp --disable-libada --disable-cet
--disable-systemtap --disable-valgrind-annotations --disable-vtable-verify
--disable-libvtv --with-zstd --without-isl --enable-default-pie
--enable-host-pie --disable-host-bind-now --enable-default-ssp
--disable-fixincludes --with-build-config='bootstrap-O3 bootstrap-lto'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.1 20240226 (experimental)
96773ce7d667452a50b0456681f415b47c22960a (Gentoo 14.0.9999 p, commit
e54a7fbca63053b5753fd9ba543c27ef392d3084)
```

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

end of thread, other threads:[~2024-03-08 11:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-27 17:47 [Bug rtl-optimization/114137] New: ICE when building lua-5.4.6 with -fharden-control-flow-redundancy on x86 (error: invalid rtl sharing found in the insn) sjames at gcc dot gnu.org
2024-02-27 17:48 ` [Bug rtl-optimization/114137] " sjames at gcc dot gnu.org
2024-02-27 18:18 ` [Bug target/114137] " sjames at gcc dot gnu.org
2024-02-27 18:20 ` sjames at gcc dot gnu.org
2024-02-27 19:14 ` sjames at gcc dot gnu.org
2024-02-27 19:16 ` sjames at gcc dot gnu.org
2024-03-08 11:01 ` aoliva 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).