From nobody Sat Apr 20 10:34:51 2024 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 4VM7Dq35vZz5HWdG; Sat, 20 Apr 2024 10:34:51 +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 4VM7Dq1DBgz4T3R; Sat, 20 Apr 2024 10:34:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713609291; 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=lisqsXXBeKjVEq5MZsVFvtrHTpqbdxb2xuGHqRWgVFc=; b=D66L+I4JTuG5IV70HOxC/6G+nIDOLYKG/RJWQitZ7kym8bsCGEuhMPv4BRIPH9q1BN8pd1 Pfqa6eM+qtnAOREY2kNgGDQ00+XBraXcmArUNA/r3EYAVkXnJHthYHUTYEvf0EvbSgv5Xb 9I80J2xBOU95HDEYCmIKfm2/thqfRQmo6xqA/M9Bd4MzCx8RxaWbuDJwTzveifAeIUa4uk YgfBEMjFNfT5gMNNeq3NVfTSn5Aa/Xn9S9078IuyS2VZhytk3U/EcZLPhRWXyxSesPmS3U 812m0mCxYphutgHemjEf9ZgHaSII9kDYm0Uou8D/NRXFrBwqN8E0OhVW7Irs7w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713609291; a=rsa-sha256; cv=none; b=ahkFS6T8SxgXX0K6mEBhF621oO7nGl7oi1EUpVGENQYsI3jOFmm2VxwHqpxoU79VY3B0Uj oM+SY2ZJ3LqPncZwceW5hIO1VaoVq0gMFON9TakHLZJWZRHMb/VQBFEmApziJS6CEK6Lcw 65WpH3j77Qy6za66npwzwNj5TqcsfVjiG8iE/52PIk9/ufrJesJF4l1YFRAGajI5tTOo+2 KKnytpZMfbFnHpxiDmgvqTEKcP8w7cPOzCQfPEV71HrrF4YkuqmsSr99utjD1PZIRybsVO b2FbGHuTiKppu6SJz+l3cKcYfMz0/3/3WYuD26oomuN35gkPf8FsB0Ixgd2u6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713609291; 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=lisqsXXBeKjVEq5MZsVFvtrHTpqbdxb2xuGHqRWgVFc=; b=D3ZtQ6nvG11YYyEGxZvvTsJ8H+wGobvrYFnGSlsH64KJ7I8FMRVEpLe9pSf+ntW47v58cL +Csj2/HMsHBOkZXQpTtt9/daysWBHcUNUyoNsMimLINaHIC0td9dK91Bkcn2AL+iShL3il Iz9qe5JDBZGBMtr2QXN0aZufl1+Eb1xY3nead0U2vugIADE/+diSDYNZybLBFQqfkevDdz 4pbH6iVjysupQPmtnVYWXHKurrTMmfPfBjAPHsOvKyJkqxNrXxBOixOFjsG/uN9pn97DC7 4Cfyyu9E+5LYQpc20pxkI7R0+4qI2Ydftm6vnRNgoEQsBqxcqlsSScClMD6lXg== 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 4VM7Dq0rxYzYrG; Sat, 20 Apr 2024 10:34:51 +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 43KAYppC014450; Sat, 20 Apr 2024 10:34:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43KAYprE014447; Sat, 20 Apr 2024 10:34:51 GMT (envelope-from git) Date: Sat, 20 Apr 2024 10:34:51 GMT Message-Id: <202404201034.43KAYprE014447@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: e2e4022725ac - stable/13 - libcompiler_rt Makefile.inc: don't build bfloat16 support for gcc < 13 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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/13 X-Git-Reftype: branch X-Git-Commit: e2e4022725aca1f7a1a698e241f926bcac506049 Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=e2e4022725aca1f7a1a698e241f926bcac506049 commit e2e4022725aca1f7a1a698e241f926bcac506049 Author: Dimitry Andric AuthorDate: 2024-04-07 18:21:01 +0000 Commit: Dimitry Andric CommitDate: 2024-04-20 10:29:09 +0000 libcompiler_rt Makefile.inc: don't build bfloat16 support for gcc < 13 Older versions of gcc produce "error: unknown type name '__bf16'". PR: 276104 MFC after: 1 month (cherry picked from commit 2e226748a961329471f5b51483318b94c8735f34) --- lib/libcompiler_rt/Makefile.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/libcompiler_rt/Makefile.inc b/lib/libcompiler_rt/Makefile.inc index eb2b04001b1e..a4d0203b8ed3 100644 --- a/lib/libcompiler_rt/Makefile.inc +++ b/lib/libcompiler_rt/Makefile.inc @@ -230,9 +230,10 @@ SRCF+= comparesf2 # # bfloat16 support, only used on some architectures. # -.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ - ${MACHINE_CPUARCH} == "arm" || (${MACHINE_CPUARCH} == "i386" && \ - !empty(MACHINE_CPU:Msse2)) || ${MACHINE_CPUARCH} == "riscv" +.if (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ + ${MACHINE_CPUARCH} == "arm" || (${MACHINE_CPUARCH} == "i386" && \ + !empty(MACHINE_CPU:Msse2)) || ${MACHINE_CPUARCH} == "riscv") && \ + !(${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} < 130000) SRCF+= truncdfbf2 SRCF+= truncsfbf2 .endif