[Bug libffi/101336] Incorrect target on gnux32 hosts

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 9 22:31:13 GMT 2021


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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:

https://gcc.gnu.org/g:506f337ad2d75c0feceaaf28fd4997c157979956

commit r12-2231-g506f337ad2d75c0feceaaf28fd4997c157979956
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Jul 5 14:15:04 2021 -0700

    libffi/x86: Always check __x86_64__ for x86 hosts

    The upstream libffi has

    commit cb8474368cdef3207638d047bd6c707ad8fcb339
    Author: hjl-tools <hjl.tools@gmail.com>
    Date:   Wed Dec 2 12:52:12 2020 -0800

        libffi/x86: Always check __x86_64__ for x32 hosts (#601) (#602)

        Since for x86_64-*x32 and x86_64-x32-* hosts, -m32 generates ia32
codes.
        We should always check __x86_64__ for x32 hosts.

    Since for gnux32 hosts, -m32 generates i386 codes, always check __x86_64__
    for x86 hosts.

            PR libffi/101336
            * configure.host: Always check __x86_64__ for x86 hosts.


More information about the Gcc-bugs mailing list