From nobody Sat Nov 30 16:51:35 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 4Y0x075rbzz5fJBJ; Sat, 30 Nov 2024 16:51:35 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y0x0736w0z4nws; Sat, 30 Nov 2024 16:51:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732985495; 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=j9k7lq6KhvPt5G7D1iGjXEFjnOWmdKzhPb9Zs3ne0CA=; b=Ljnofu6y2zafdadXYV+eB+LajQdlms0ZOWmRYpD1b85w1P2HSMdZX8Xk+Yf2Rw4X7mYeaF duGdCBHVceK6YIEQA068fXW20K9155qjM440q9Z9W90+QXUY8/BSWoG+Jx9f1gf8LOXBX6 es90me7KluEGNytEcsTW/QOtKhIte0FZYMN0TjoXVqFQjSvTy3f2Wf/Cjw1+Xny3QV2WFG OMeDgyM4chODkJHSjrWYjDpY1JAYKSjbq4dio58YxU71nXETt+h4cXkGF2oWQ9Lj0Yfl9y 5LQg9FjlAVIJ8bo+2YbE3oWcWXu28CoQJcKmmxAwUQlkcBVxIneNPklHn/q5GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732985495; 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=j9k7lq6KhvPt5G7D1iGjXEFjnOWmdKzhPb9Zs3ne0CA=; b=ZRU5lKjkX1hpe6ZzezZreAw2HHHrMGk2siAb0K8LBgphGgO0EVrV4pGXe8yiNjjj8te/Yq 4eRUfwNSJcdTkfUwStn+SEXpDDbDfmzWgpsxwc9Syplyry1pBpJJLBmFh2iWBRrosyGa3H BjRwpD76q1glgp7fGmjRPk8bbotgYwgIddA6Yy4+koDx3W8AqtSUZJpmhYBuTq1oNue9SJ Q/Uh1k/sChDVEr8VXlll8sXgMsvSEnwa/ezTyTQJdlv01NBibfkgphVK4tyLWJk1hrzZyq wg/ONSoPEOhNYJxSf9PxWykSsGx5tGD6EmgtAFsN4GRqaDfDi7FD941lJT35IQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732985495; a=rsa-sha256; cv=none; b=e94es0iiME4Lfexr+O8j+jjSuIEHzYZAC1T7aVq0v3IYxdaZFiN46GzK68IfVA9Cw/rokt YH9VnA7mqfszP/sniFCMfNpe0AxbA1rYURvsTgkh5TGEb4twnrMwF0pLJAeIAPx7cFSqiQ uKW14Nb5nDPEG6lJbWYpZb0QHcCjo26f15mbwk9swxc7Pg1jSAZssbMOdUoqh0ENEqivdm lR0P9Jvs1PyHVVpijd/RD0oWEOmCiTjbj7cXsLx8IjkxVvAleHAKyhmoj0DVFAt12ipP8J IUNApyjkSlvrVl6xUzr5EfOgoRFYOW0DT0hasWQtMllP1DZmEeFYg/i5PNnafg== 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 4Y0x072jyHzGkw; Sat, 30 Nov 2024 16:51:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AUGpZag049729; Sat, 30 Nov 2024 16:51:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AUGpZwj049717; Sat, 30 Nov 2024 16:51:35 GMT (envelope-from git) Date: Sat, 30 Nov 2024 16:51:35 GMT Message-Id: <202411301651.4AUGpZwj049717@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 3cbb192a9ee8 - stable/13 - stdatomic: Only use clang atomics if __clang__ is defined 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 3cbb192a9ee8118b50fb926592c7caf1888f6b20 Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3cbb192a9ee8118b50fb926592c7caf1888f6b20 commit 3cbb192a9ee8118b50fb926592c7caf1888f6b20 Author: John Baldwin AuthorDate: 2024-07-19 17:01:07 +0000 Commit: John Baldwin CommitDate: 2024-11-29 19:25:18 +0000 stdatomic: Only use clang atomics if __clang__ is defined GCC 14 defines __has_extension(c_atomic) but does not support __c11_atomic_*, so require __clang__ for the CLANG_ATOMICS case. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D46001 (cherry picked from commit 680f40f38343de118d5b973129683804e496faaf) --- sys/sys/stdatomic.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/sys/stdatomic.h b/sys/sys/stdatomic.h index e05606b1ead8..099097ea84a4 100644 --- a/sys/sys/stdatomic.h +++ b/sys/sys/stdatomic.h @@ -33,7 +33,8 @@ #include #include -#if __has_extension(c_atomic) || __has_extension(cxx_atomic) +#if (__has_extension(c_atomic) || __has_extension(cxx_atomic)) && \ + defined(__clang__) #define __CLANG_ATOMICS #elif __GNUC_PREREQ__(4, 7) #define __GNUC_ATOMICS