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

            Bug ID: 112536
           Summary: [14 regression] ICE when buliding xorg-server on arm64
                    (internal compiler error: in
                    vect_slp_analyze_node_operations, at
                    tree-vect-slp.cc:6378)
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

```
FAILED: hw/xfree86/common/libxorg_common.a.p/xf86Helper.c.o
aarch64-unknown-linux-gnu-gcc -Ihw/xfree86/common/libxorg_common.a.p
-Ihw/xfree86/common -I../xorg-server-21.1.9/hw/xfree86/common -IXext
-I../xorg-server-21.1.9/Xext -IXi -I../xorg-server-21.1.9/Xi -Icomposite
-I../xorg-server-21.1.9/composite -Idamageext -I../xorg-server-21.1.9/damageext
-Iexa -I../xorg-server-21.1.9/exa -Ifb -I../xorg-server-21.1.9/fb -Iglamor
-I../xorg-server-21.1.9/glamor -Imi -I../xorg-server-21.1.9/mi -Imiext/damage
-I../xorg-server-21.1.9/miext/damage -Imiext/shadow
-I../xorg-server-21.1.9/miext/shadow -Imiext/sync
-I../xorg-server-21.1.9/miext/sync -Idbe -I../xorg-server-21.1.9/dbe -Idri3
-I../xorg-server-21.1.9/dri3 -Iinclude -I../xorg-server-21.1.9/include
-Ipresent -I../xorg-server-21.1.9/present -Irandr -I../xorg-server-21.1.9/randr
-Irender -I../xorg-server-21.1.9/render -Ixfixes -I../xorg-server-21.1.9/xfixes
-Ihw/xfree86/ddc -I../xorg-server-21.1.9/hw/xfree86/ddc -Ihw/xfree86/dri2
-I../xorg-server-21.1.9/hw/xfree86/dri2 -Ihw/xfree86/i2c
-I../xorg-server-21.1.9/hw/xfree86/i2c -Ihw/xfree86/int1
0 -I../xorg-server-21.1.9/hw/xfree86/int10 -Ihw/xfree86/loader
-I../xorg-server-21.1.9/hw/xfree86/loader -Ihw/xfree86/modes
-I../xorg-server-21.1.9/hw/xfree86/modes -Ihw/xfree86/os-support
-I../xorg-server-21
.1.9/hw/xfree86/os-support -I../xorg-server-21.1.9/hw/xfree86/os-support/bus
-Ihw/xfree86/parser -I../xorg-server-21.1.9/hw/xfree86/parser
-Ihw/xfree86/ramdac -I../xorg-server-21.1.9/hw/xfree86/ramdac -Ihw/xf
ree86/vgahw -I../xorg-server-21.1.9/hw/xfree86/vgahw -I.
-I../xorg-server-21.1.9 -I/usr/include/X11/dri -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include
-
I/usr/include/libdrm -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64
-Wall -Winvalid-pch -std=gnu99 -DHAVE_DIX_CONFIG_H -fno-strict-aliasing
-fvisibility=hidden -Wall -Wpointer-arith -Wmissing-decl
arations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
-Wbad-function-cast -Wold-style-definition -Wunused -Wuninitialized -Wshadow
-Wmissing-noreturn -Wmissing-format-attribute -Wredun
dant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main
-Werror=missing-braces -Werror=sequence-point -Werror=return-type
-Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werro
r=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -O3 -pipe
-mcpu=native -fdiagnostics-color=always -ggdb3 -fPIC -isystem /usr/include/bsd
-DLIBBSD_OVERLAY -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHA
S_FCHOWN -DHAS_STICKY_DIR_BIT -DHAVE_XORG_CONFIG_H -DXORG_NO_SDKSYMS
'-DFALLBACK_INPUT_DRIVER="libinput"' -MD -MQ
hw/xfree86/common/libxorg_common.a.p/xf86Helper.c.o -MF
hw/xfree86/common/libxorg_common.a.p/x
f86Helper.c.o.d -o hw/xfree86/common/libxorg_common.a.p/xf86Helper.c.o -c
../xorg-server-21.1.9/hw/xfree86/common/xf86Helper.c
during GIMPLE pass: slp
../xorg-server-21.1.9/hw/xfree86/common/xf86Helper.c: In function
‘xf86SetWeight’:
../xorg-server-21.1.9/hw/xfree86/common/xf86Helper.c:642:1: internal compiler
error: in vect_slp_analyze_node_operations, at tree-vect-slp.cc:6378
  642 | xf86SetWeight(ScrnInfoPtr scrp, rgb weight, rgb mask)
      | ^~~~~~~~~~~~~
0xaaaae0cc2897 vect_slp_analyze_node_operations
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:6378
0xaaaae0cc209f vect_slp_analyze_node_operations
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:6320
0xaaaae07c8b73 vect_slp_analyze_operations(vec_info*)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:6592
0xaaaae0592dbf vect_slp_analyze_bb_1
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:7596
0xaaaae0592dbf vect_slp_region
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:7643
0xaaaae058f48b vect_slp_bbs
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:7851
0xaaaae058e6e3 vect_slp_function(function*)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vect-slp.cc:7973
0xaaaae058e0ef execute
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vectorizer.cc:1531
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.
```

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-unknown-linux-gnu/14/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/configure
--host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu
--prefix=/usr --bindir=/usr/aarch64-unknown-linux-gnu/gcc-bin/14
--includedir=/usr/lib/gcc/aarch64-unknown-linux-gnu/14/include
--datadir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/14
--mandir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/14/man
--infodir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/14/info
--with-gxx-include-dir=/usr/lib/gcc/aarch64-unknown-linux-gnu/14/include/g++-v14
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/aarch64-unknown-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
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened
14.0.0 p, commit 35bb529f420ff5863fdae51049e6935ab927ff3d'
--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 --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 --enable-host-bind-now
--enable-default-ssp --with-build-config='bootstrap-O3 bootstrap-lto'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.0 20231114 (experimental)
b42a09b258c3ed8d1368e0ef0948034dcf0f8ac9 (Gentoo Hardened 14.0.0 p, commit
35bb529f420ff5863fdae51049e6935ab927ff3d)
```

'gcc -c xf86Helper.c.i -O2' is enough for me to reproduce.

Reply via email to