]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm64 lib32: change clang to allow -m32 on arm64
authorMike Karels <karels@FreeBSD.org>
Tue, 25 Jul 2023 23:58:51 +0000 (18:58 -0500)
committerDimitry Andric <dim@FreeBSD.org>
Sun, 7 Jan 2024 23:04:33 +0000 (00:04 +0100)
commita2e0c77f941d7fc7fe5e2229124a551c08793052
tree4f148f63578428804057bafe5bd8afde821889f9
parent104cc21de8d688905d67f4a9150b2a0511243273
arm64 lib32: change clang to allow -m32 on arm64

The FreeBSD driver support for clang tested explicitly for 32-bit
Intel, MIPS, or PowerPC targets where /usr/lib32/libcrt1.o was
present to decide whether -m32 should use /usr/lib32.  At jrtc27's
suggestion, simply test for a 32-bit platform rather than adding
arm to the list.  Upstreamed as
https://github.com/llvm/llvm-project/commit/3450272fc281979388bb845a9fffb59b42cc2e7e
Bump the freebsd version to force a bootstrap build.  This is one
step in adding support for -m32 on arm64.

Reviewed by: jrtc27, brooks, dim
Differential Revision: https://reviews.freebsd.org/D40943

(cherry picked from commit f1d5183124d3e18d410ded61e45adb9a23b23c83)
contrib/llvm-project/clang/lib/Driver/ToolChains/FreeBSD.cpp
lib/clang/freebsd_cc_version.h