Package: gcc-15
Severity: wishlist
Tags: forky sid
X-Debbugs-Cc: debian-release@lists.debian.org, debian-amd64@lists.debian.org, bunk@debian.org, llvm-defaults@packages.debian.org
User: debian-qa@lists.debian.org
Usertags: i386
for i386 to be at least i686 + MMX + SSE + SSE2. We already announced in
the Debian 13 release notes that the purpose of the i386 port is to be
run on an x86_64 CPU in a chroot or container, or via multiarch or
multilib. Halfway through the Debian 14 cycle seems like enough of a
grace period before really enforcing this.
Given that announcement (and the fact that Ubuntu similarly only
supports a subset of i386 as a multiarch foreign architecture), if it is
possible to make the 32-bit compiler default to the equivalent of
-march=x86-64 (to use the 32-bit ABI with a baseline that is allowed to
use any x86-64-v1-compatible instruction), then I think that would be
the best thing to do.
Or, the default could be -march=pentium4 (a closer equivalent of what
LLVM already did). According to gcc documentation, that assumes the
presence of MMX, SSE, SSE2 and FXSR, all of which are guaranteed to be
available in x86-64-v1 according to the psABI
(https://gitlab.com/x86-psABIs/x86-64-ABI/-/blob/master/x86-64-ABI/low-level-sys-info.tex)
if I'm reading correctly.
Either way, it could also be a good improvement to make -mfpmath=sse the
default, which I believe would make arithmetic on i386 behave the same
way as on amd64 and every other release architecture (64-bit rather than
80-bit intermediate values), removing a frequent source of i386-specific
test failures. That could be a subsequent transition rather than part of
raising the baseline, if preferred.
Thanks,
smcv