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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
This now also occurs during GCC bootstrap on trunk:

[   49s] + ../configure 'CFLAGS= -O2 -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g'
'CXXFLAGS= -O2 -funwind-tables -fasynchronous-unwind-tables
-fstack-clash-protection -Werror=return-type -g' 'XCFLAGS= -O2 -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g'
'TCFLAGS= -O2 -funwind-tables -fasynchronous-unwind-tables
-fstack-clash-protection -Werror=return-type -g' 'GDCFLAGS= -O2 -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -g' --prefix=/usr
--infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64
--libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,ada,jit,m2,algol68
--enable-host-pie --enable-host-shared --enable-checking=release
--disable-werror --with-gxx-include-dir=/usr/include/c++/17
--with-libstdcxx-zoneinfo=/usr/share/zoneinfo --enable-ssp --disable-libssp
--disable-libvtv --enable-cet=auto --disable-libcc1 --disable-plugin
--with-bugurl=https://bugs.opensuse.org/ '--with-pkgversion=SUSE Linux'
--with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new
--disable-libstdcxx-pch --enable-version-specific-runtime-libs
--with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex
--enable-gnu-indirect-function --program-suffix=-17 --without-system-libunwind
--with-cpu=power9 --with-tune=power10 --with-long-double-format=ieee
--enable-secureplt --with-long-double-128 --enable-targets=powerpcle-linux
--disable-multilib --with-build-config=bootstrap-lto-lean
--enable-link-serialization --build=powerpc64le-suse-linux
--host=powerpc64le-suse-linux
...
[ 1276s]
/home/abuild/rpmbuild/BUILD/gcc17-17.0.0+git5812-build/gcc-17.0.0+git5812/obj-powerpc64le-suse-linux/./prev-gcc/xgcc
-B/home/abuild/rpmbuild/BUILD/gcc17-17.0.0+git5812-build/gcc-17.0.0+git5812/obj-powerpc64le-suse-linux/./prev-gcc/
-B/usr/powerpc64le-suse-linux/bin/ -B/usr/powerpc64le-suse-linux/bin/
-B/usr/powerpc64le-suse-linux/lib/ -isystem /usr/powerpc64le-suse-linux/include
-isystem /usr/powerpc64le-suse-linux/sys-include   -fno-checking -c -O2 -Wall
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type  -g
-fno-checking  -gnatpg  -W -Wall -fPIC -nostdinc -I- -I. -Iada/generated -Iada
-I../../gcc/ada -Iada/libgnat -I../../gcc/ada/libgnat -Iada/gcc-interface
-I../../gcc/ada/gcc-interface ../../gcc/ada/exp_attr.adb -o ada/exp_attr.o
[ 1276s] gnat1: warning: ‘-Werror=’ argument ‘-Werror=return-type’ is not valid
for Ada
[ 1276s] ../../gcc/ada/exp_attr.adb: In function
‘Exp_Attr.Expand_N_Attribute_Reference’:
[ 1276s] ../../gcc/ada/exp_attr.adb:6874:15: warning: ‘C_Type’ may be used
uninitialized [-Wmaybe-uninitialized]
[ 1276s] ../../gcc/ada/exp_attr.adb:6814:10: note: ‘C_Type’ was declared here
[ 1276s] /tmp/cckx3i46.s: Assembler messages:
[ 1276s] /tmp/cckx3i46.s:26903: Error: operand out of range (0x8138 is not
between 0xffffffffffff8000 and 0x7ffc)
[ 1276s] /tmp/cckx3i46.s:26916: Error: operand out of range (0x8110 is not
between 0xffffffffffff8000 and 0x7ffc)
[ 1276s] /tmp/cckx3i46.s:42851: Error: operand out of range (0xffffffffffff7fe0
is not between 0xffffffffffff8000 and 0x7ffc)
[ 1276s] make[3]: *** [../../gcc/ada/gcc-interface/Make-lang.in:163:
ada/exp_attr.o] Error 1

but not when configuring like

[   46s] + ../configure 'CFLAGS= -O2 -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g'
'CXXFLAGS= -O2 -funwind-tables -fasynchronous-unwind-tables
-fstack-clash-protection -Werror=return-type -g' 'XCFLAGS= -O2 -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g'
'TCFLAGS= -O2 -funwind-tables -fasynchronous-unwind-tables
-fstack-clash-protection -Werror=return-type -g' 'GDCFLAGS= -O2 -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -g' --prefix=/usr
--infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64
--libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,ada,jit,m2,cobol,algol68
--enable-host-shared --enable-checking=release --disable-werror
--with-gxx-include-dir=/usr/include/c++/17
--with-libstdcxx-zoneinfo=/usr/share/zoneinfo --enable-ssp --disable-libssp
--disable-libvtv --enable-cet=auto --disable-libcc1 --enable-plugin
--with-bugurl=https://bugs.opensuse.org/ '--with-pkgversion=SUSE Linux'
--with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new
--disable-libstdcxx-pch --enable-version-specific-runtime-libs
--with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex
--enable-gnu-indirect-function --program-suffix=-17 --without-system-libunwind
--with-cpu=power8 --with-tune=power9 --with-long-double-format=ieee
--enable-secureplt --with-long-double-128 --enable-targets=powerpcle-linux
--disable-multilib --with-build-config=bootstrap-lto-lean
--enable-link-serialization --build=powerpc64le-suse-linux
--host=powerpc64le-suse-linux

notably the default -mcpu/-mtune differ (also the glibc version, but I doubt
that matters).  Unless -mminimal-toc is the default this might have another
cause?

Reply via email to