https://bugs.kde.org/show_bug.cgi?id=527905

--- Comment #2 from Sergei Trofimovich <[email protected]> ---
(In reply to Mark Wielaard from comment #1)
> Which version(s) are you using?

$ gcc -v
Using built-in specs.
COLLECT_GCC=/nix/store/rnwz70b4sak5kki7dnpajckxclh1wswv-gcc-16.2.0/bin/gcc
COLLECT_LTO_WRAPPER=/nix/store/rnwz70b4sak5kki7dnpajckxclh1wswv-gcc-16.2.0/libexec/gcc/i686-unknown-linux-gnu/16.2.0/lto-wrapper
Target: i686-unknown-linux-gnu
Configured with: ../gcc-16.2.0/configure
--prefix=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gcc-16.2.0
--with-gmp-include=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gmp-6.3.0-dev/include
--with-gmp-lib=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gmp-6.3.0/lib
--with-mpfr-include=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-mpfr-4.2.2-dev/include
--with-mpfr-lib=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-mpfr-4.2.2/lib
--with-mpc=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libmpc-1.4.1
--with-native-system-header-dir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-glibc-2.44-57-dev/include
--with-build-sysroot=/
--with-gxx-include-dir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gcc-16.2.0/include/c++/16.2.0/
--program-prefix= --enable-lto --disable-libstdcxx-pch
--without-included-gettext --with-system-zlib --enable-static
--enable-languages=c,c++ --disable-multilib --enable-plugin --disable-libcc1
--with-isl=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-isl-0.20
--disable-bootstrap --with-arch=i686 --enable-default-pie
--build=i686-unknown-linux-gnu --host=i686-unknown-linux-gnu
--target=i686-unknown-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 16.2.0 (GCC)

$ as -v
GNU assembler version 2.46 (i686-unknown-linux-gnu) using BFD version (GNU
Binutils) 2.46

> none/tests/x86/fb_test_i386.c is indeed new in 3.28.0.
> It builds here without any warning:
> ...
Aha, thank you! I have a few default compiler options baked into `gcc`. Trying
to extract ones that might cause the issue:

Looks like the trigger is `-fPIC -O2` extra options:

ok:

gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../.. -I../../../include
-I../../../coregrind -I../../../include -I../../../VEX/pub -I../../../VEX/pub
-DVGA_x86=1 -DVGO_linux=1 -DVGP_x86_linux=1 -DVGPV_x86_linux_vanilla=1   
-Winline -Wall -Wshadow -Wno-long-long -g -fno-stack-protector   -m32 -mmmx
-msse   -MT fb_test_i386.o -MD -MP -MF $depbase.Tpo -c -o fb_test_i386.o
fb_test_i386.c # -fPIC -O2

bad:

gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../.. -I../../../include
-I../../../coregrind -I../../../include -I../../../VEX/pub -I../../../VEX/pub
-DVGA_x86=1 -DVGO_linux=1 -DVGP_x86_linux=1 -DVGPV_x86_linux_vanilla=1   
-Winline -Wall -Wshadow -Wno-long-long -g -fno-stack-protector   -m32 -mmmx
-msse   -MT fb_test_i386.o -MD -MP -MF $depbase.Tpo -c -o fb_test_i386.o
fb_test_i386.c -fPIC -O2
fb_test_i386.c: In function 'test_fcvt':
fb_test_i386.c:928:30: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
  928 |     xxprintf("a=%016llx\n", *(unsigned long long int *) &a);
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fb_test_i386.c:929:36: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
  929 |     xxprintf("la=%016llx %04x\n", *(unsigned long long int *) &la,
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fb_test_i386.c: In function 'test_jcc':
fb_test_i386.c:678:1: error: unsupported size for integer register
  678 | }
      | ^

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to