From nobody Wed Dec 22 10:06:15 2021 X-Original-To: dev-commits-src-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 2B30219065B6; Wed, 22 Dec 2021 10:06:25 +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 4JJpr929Snz4Yd9; Wed, 22 Dec 2021 10:06:17 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 47C131B2CE; Wed, 22 Dec 2021 10:06:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BMA6FsS092432; Wed, 22 Dec 2021 10:06:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BMA6FoY092431; Wed, 22 Dec 2021 10:06:15 GMT (envelope-from git) Date: Wed, 22 Dec 2021 10:06:15 GMT Message-Id: <202112221006.1BMA6FoY092431@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 1a0e5f0657ae - stable/12 - [PowerPC64LE] Fix platform definitions for powerpc64le-*-freebsd* List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 1a0e5f0657aeeeceef358414e200f3f7217c8187 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640167580; 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=L2SSWxuqYD5cHktvD+BHKBW3y8JH3m6mLbXbD1qJKuo=; b=BisRHnoXw/gQJEcNCEV+jioNEoyJjpDFd/Bp0giGLXusMU1149NZQEcG0x+0ArFxioz2Yj 4NyDwa3amRneQa6WLdcpqv50mTwUK68YDKhO7k3cLr1NEEtCXBJFWyqlmaSNobZxAFbid2 6bhC7EEsQeKzrwYcuriSmbslHI5Rip1MgfogUNtnM2mM4Gre3uOshmtC53mtTZoy8Bb9Jg IDoc1ttMFo6uBZB+B5z5UkgbJVb4OelscFm0dzb82xMu5T9TY9BfmhQm+tfA5oMQE8azlu tkLIV8mY1i+MmyKwrENS/gK5dVm8xBjVZr4R0joFTS9fCoVXYU2kskFwjN1lnQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640167580; a=rsa-sha256; cv=none; b=RAsLfqDzZ/eDPmwBGAiwPNGWHsr/pL20TMA2rl3EVPFILubXxnMndOju/7wifVYAODEE3O t5puu5n+ALzyxg7kHNr7tYTgdL03AkKsTEGz1J8SDbrZg13mbjdS4KkPC/Q9KM35hPN8Zx Qa40cLRmq0+jn1v32zExE0nLVyLZ3bLctRv32hx2+VtQ4wwQQaA6OdteHvgpE3a7pmMeO7 lPMRdFQfDB6NGn1EdC7LaYQ7VX1TRGV5WsL17SnRbfJb0CsMQehbvHWmRPy8UR8Vmq+5Nj J3cTsudY6F73u4tRyn+5oJZGgl80xryHihHnaGlEAs5g4m6sDhQxccmE8SEWgA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=1a0e5f0657aeeeceef358414e200f3f7217c8187 commit 1a0e5f0657aeeeceef358414e200f3f7217c8187 Author: Brandon Bergren AuthorDate: 2020-09-12 18:23:27 +0000 Commit: Dimitry Andric CommitDate: 2021-12-22 10:01:16 +0000 [PowerPC64LE] Fix platform definitions for powerpc64le-*-freebsd* Teach clang that powerpc64le-*-freebsd* is a valid triple. This is already in upstream clang, but was too late for llvm 11.0.0. Apply it directly for now, until it can be backported to llvm 11.0.1. See upstream https://reviews.llvm.org/D73425 for details. Reviewed by: dim (upstream version), emaste Approved by: emaste Differential Revision: https://reviews.freebsd.org/D26400 (cherry picked from commit 33fa4ac54f2d794122f8889cc0f10a58025aee6f) --- contrib/llvm-project/clang/lib/Basic/Targets.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/llvm-project/clang/lib/Basic/Targets.cpp b/contrib/llvm-project/clang/lib/Basic/Targets.cpp index 818133f66f3f..d7fcc5f7ecf6 100644 --- a/contrib/llvm-project/clang/lib/Basic/Targets.cpp +++ b/contrib/llvm-project/clang/lib/Basic/Targets.cpp @@ -358,6 +358,8 @@ TargetInfo *AllocateTarget(const llvm::Triple &Triple, switch (os) { case llvm::Triple::Linux: return new LinuxTargetInfo(Triple, Opts); + case llvm::Triple::FreeBSD: + return new FreeBSDTargetInfo(Triple, Opts); case llvm::Triple::NetBSD: return new NetBSDTargetInfo(Triple, Opts); case llvm::Triple::OpenBSD: