On Oct 29, 2025, "H.J. Lu" <[email protected]> wrote:

> If bootstrap is used, it is the same as i686-linux with
> --with-multilib-list=m32,m64.

Perhaps.  The above requires --enable-targets=all to enable 64-bit
multilibs AFAICT, and it only supports GNU/Linux/i686.  We want such
64-to-32 cross-natives on/for mingw as well.

But most importantly, a i686-linux-gnu native is expected to run in
32-bit mode.  What we want is something that runs in 64-bit mode, but
that generates 32-bit code (at least by default), without giving up its
native nature.  A different triplet makes sense to that end.

>> But the interesting use case for this is the non-bootstrap case.

> If it is the case, why not use x86-64-linux --with-abi=m32?

That was not supported on x86_64; it's the patch that starts this thread
that adds support for m32 in x86_64's --with-abi.

Anyhow, it's useful for us to be able to distinguish x86_64-linux-gnu
from this variant, and a triplet change is useful for that.

-- 
Alexandre Oliva, happy hacker            https://blog.lx.oliva.nom.br/
Free Software Activist     FSFLA co-founder     GNU Toolchain Engineer
More tolerance and less prejudice are key for inclusion and diversity.
Excluding neuro-others for not behaving ""normal"" is *not* inclusive!

Reply via email to