[Bug target/104890] [12 Regression] fails to build the 32bit libgcc on x86_64-linux-gnu (--enable-cet --with-arch-32=i686)
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Mar 13 16:26:31 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104890
--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Jakub Jelinek from comment #7)
> Comment on attachment 52619 [details]
> A patch
>
> This looks wrong, it will fail with the same configuration if people build
> with -msse2.
I have no issues to build 32-bit GCC with SSE2. I got
[hjl@gnu-tgl-2 gcc]$ ./xgcc -B./ -S -O2 -mshstk -march=i686 -m32 /tmp/x.c
In file included from ./include/x86gprintrin.h:45,
from /tmp/x.c:1:
./include/cetintrin.h: In function ‘foo’:
./include/cetintrin.h:47:1: error: inlining failed in call to ‘always_inline’
‘_get_ssp’: target specific option mismatch
47 | _get_ssp (void)
| ^~~~~~~~
/tmp/x.c:7:10: note: called from here
7 | return _get_ssp ();
| ^~~~~~~~~~~
[hjl@gnu-tgl-2 gcc]$ ./xgcc -B./ -S -O2 -mshstk -march=i686 -m32 /tmp/x.c
-msse2
[hjl@gnu-tgl-2 gcc]$
More information about the Gcc-bugs
mailing list