From nobody Thu Jul 20 19:55:44 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R6Nhw3Spsz4ntyL; Thu, 20 Jul 2023 19:55:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R6Nhw2scXz4Plt; Thu, 20 Jul 2023 19:55:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689882944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OZUZje/3+nBVO+89xDbGLwnr0WrXf64f01ta8wDegeg=; b=DmRO2rsGAARnN85sHpxYEvwYwrQoznfXiOvmzOQGY6VhP/mbYt5psjwQhBpO2vy6+tj/yq nzwNZoDS4EKGi+YwDdDwpVRItG8uLGLHQshWZcRSVje92NjhyvTO7Iljmj0A3tVS0gfjmF 5boiDVvdkmOw/DygjjTR5f1TbnmkhXwnUXmB6hsd6tOIrctsKZCsJZo1eKKxcPrMfj2lxb 5lp5dOP2i+NtJ1AKUmpD0D6TwYGfbZjJPCA6JdpDpb3K1oeK5/4YIsktk8rPS3cSckhN3r qniZDwvNHemz06TPhPdfKeEPDYrysVatqYMcP6fNkjorGDTR8nshWaCEMbiVyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689882944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OZUZje/3+nBVO+89xDbGLwnr0WrXf64f01ta8wDegeg=; b=qgM2sE38kmHYeriav4vBymBXzWYEWx9GpB8xcDYKZ71zc2OBaggw3yP4VZClWBjcgGtiyo 8uAOZFp2dTdkF9253KZ76fd+U+9uGW6svVD8FQ+2TKjyAMb1of/9eFloBMcnheremuu7cj QwcBL4UOymSPCvOV6JYW2ZksdvAbTMkpAjBTyO35Z2b31wyVFtlKcgCAoHvw/gpCLL/VpB /yeFzMHbUXV73I0FqL0KZElawncRoZc4XXdzLyf+B0Q+Ik/7nHLR+WvP75wqDbJct1IW0M ABwtv8jLTHB9BwasrfQ/iT4lkw/fagVK3YlO4QQK8weJ0iqgfz1sCPgJbvHGZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689882944; a=rsa-sha256; cv=none; b=wON8KpEL1U4EcUhbQFj81c2dGhpR+v9WBzuTsYlNzrfHEvqWUD/Cknmn2aLi7Ej5yQPFNP ZBkH5SmwFzBqGC804OFfbOMRfofblAKUjJN73n6scIABj7milWlAXgSeyilveHDsqEqlIK 0Owky+v2QtxlIuey3VkeM7x0P+uZwbvWtwnpHFOX+HZ+VErGspLYq2sUG7ICBffw1Qfcyu /tKZ3lcSYe8E/C1EaOqr9rQjDwE+1t/2zB0IGfRVAx595+3eGU+ZWHuQF+HVwgcWGxulEj AJ2XMnHTkFX58amY6LsBNyU1EQhQl9ZcqDZXF4Nsje96y3ACd+69RAwyyK3Sww== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R6Nhw1rmmzk6v; Thu, 20 Jul 2023 19:55:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36KJtigF052980; Thu, 20 Jul 2023 19:55:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36KJtihq052979; Thu, 20 Jul 2023 19:55:44 GMT (envelope-from git) Date: Thu, 20 Jul 2023 19:55:44 GMT Message-Id: <202307201955.36KJtihq052979@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Brooks Davis Subject: git: e160923e2435 - 2023Q3 - devel/llvm16: change clang to allow -m32 on arm64 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: ports X-Git-Refname: refs/heads/2023Q3 X-Git-Reftype: branch X-Git-Commit: e160923e24351c7d2280ad4cbe97795d5a262ba0 Auto-Submitted: auto-generated The branch 2023Q3 has been updated by brooks: URL: https://cgit.FreeBSD.org/ports/commit/?id=e160923e24351c7d2280ad4cbe97795d5a262ba0 commit e160923e24351c7d2280ad4cbe97795d5a262ba0 Author: Brooks Davis AuthorDate: 2023-07-11 23:11:40 +0000 Commit: Brooks Davis CommitDate: 2023-07-20 18:33:44 +0000 devel/llvm16: change clang to allow -m32 on arm64 This is a backport from upstream and will be merged to FreeBSD head soon. See D40943 for more info. Sponsored by: DARPA (cherry picked from commit 3509504bd820a16b91ee3ac6818aef8e7894fb2e) --- devel/llvm16/Makefile | 2 +- devel/llvm16/files/patch-backport-3450272fc2 | 33 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/devel/llvm16/Makefile b/devel/llvm16/Makefile index 11ac69fbb456..7a70876d13e7 100644 --- a/devel/llvm16/Makefile +++ b/devel/llvm16/Makefile @@ -1,6 +1,6 @@ PORTNAME= llvm DISTVERSION= 16.0.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel lang MASTER_SITES= https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \ https://${PRE_}releases.llvm.org/${LLVM_RELEASE}${RCDIR}/ diff --git a/devel/llvm16/files/patch-backport-3450272fc2 b/devel/llvm16/files/patch-backport-3450272fc2 new file mode 100644 index 000000000000..1af8bf9700a0 --- /dev/null +++ b/devel/llvm16/files/patch-backport-3450272fc2 @@ -0,0 +1,33 @@ +commit 3450272fc281979388bb845a9fffb59b42cc2e7e +Author: Jessica Clarke +Date: Mon Jul 10 01:40:58 2023 +0100 + + [Driver][FreeBSD] Generalise lib32 handling to support arm + + The current code maintains its own list of 32-bit architectures for + which there is a 64-bit FreeBSD architecture that supports it for lib32. + This is unnecessary (if it's not supported, the directory just won't + exist), and means that, when FreeBSD gains lib32 support for a new + architecture, you need an updated toolchain that knows about it. + Instead we can check for any 32-bit architecture and have forwards + compatibility. + + This is motivated by FreeBSD adding support for building arm lib32 + libraries on aarch64. + + Co-authored-by: Mike Karels + +diff --git clang/lib/Driver/ToolChains/FreeBSD.cpp clang/lib/Driver/ToolChains/FreeBSD.cpp +index ac336598a78c..84e257741702 100644 +--- clang/lib/Driver/ToolChains/FreeBSD.cpp ++++ clang/lib/Driver/ToolChains/FreeBSD.cpp +@@ -376,8 +376,7 @@ FreeBSD::FreeBSD(const Driver &D, const llvm::Triple &Triple, + + // When targeting 32-bit platforms, look for '/usr/lib32/crt1.o' and fall + // back to '/usr/lib' if it doesn't exist. +- if ((Triple.getArch() == llvm::Triple::x86 || Triple.isMIPS32() || +- Triple.isPPC32()) && ++ if (Triple.isArch32Bit() && + D.getVFS().exists(concat(getDriver().SysRoot, "/usr/lib32/crt1.o"))) + getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib32")); + else