From nobody Fri Jul 19 17:07:40 2024 X-Original-To: dev-commits-src-main@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 4WQbhY1mfqz5RyxD; Fri, 19 Jul 2024 17:07:41 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WQbhX4tyHz596n; Fri, 19 Jul 2024 17:07:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721408860; 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=aLoOq2wL7OGLh3uJ2HpfmAR9WZqcAo0SjDCSbIiOPH4=; b=UC0broSu9PF+5zGIaZnQs68J/X7jYpyfKwqMwwiQHA2P6C3Q5mkIcgxShP2npyU5a9A0+p TuJ/JZUxOQq1HL1SYAyMTvP2k08dx0OBzgYhLQaWM5wp6TsAyVLlbIq4v2NdENOie5P5aM 018n6/6IIUMgS2DIIRwd5npGROVpVj9sYbF9Uxuwhjiy/Dk2wjYtwibm9yA6sRG34LYZb3 BkTd14Gvc0eAJsSmhnr6+UCVA19K1Eg0nEWPnf+y865gg6eEIa1jW8ROmrAgTtLDbG4jmq hoqokZ7HbEYs+CmKTxCGP9OORik5SojHlUEcx2N5Ksu9+gihLRZ8uWvilwMEVA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721408860; a=rsa-sha256; cv=none; b=LCi107DOzZQdgjy+XWdJBGDQRnmpRDHkh7becBrct5S8ceXc8uefrXK8lC9XdJElTz/GXD azsIPKJnvPQgTnWe54xXIKUeH9Dke/xjWaEXfFv52Z09uOPHa9u769H7JMgBXf25CuMBR1 TuSb0biCfHqIXLpQrZ3YXntzONUsTybXiX1G60PktB8mSTS+QOLIABcaFfXWctSkF6GDTw Chs3/S9ljc1csaOeIPD7sMTvPj7vwiiMSlrMVYa9qblZSqMQYvvIYxzPIoL2+uvJhwp1Jp VO/RiY29RPQAjrPn33Zpko8oBFtylR6jxCOhLpiTF+lwZKfygrJ6AWNnAHReUg== 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=1721408860; 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=aLoOq2wL7OGLh3uJ2HpfmAR9WZqcAo0SjDCSbIiOPH4=; b=KmNXuqMun30NTFTpSYCPQFP5xSku3InSjtw5fBssSSWrp5Y2RGupJW3ebF2R7kwetBn98M 9tUr+Qw3UXXfNuIPRTpmmFajHYiwNEmyUCLTIxBv9PyhdrXj/zNEz12LzdPU3joB5/V2hv iN5gz+N7clgokRP5W1SUj/EnckyK0JGP0rzgoQrX2JypYfR86caxpv7jVW8Y7tRhIOkoBA KRoQ1mi7snL4VrYPrDjly2jpAqUL+F4GtFTUCUm9XEqN1ZrF4NO/vqJVhxgEmI8z4uVDCI YI2RgPxQ6BE12KmFKe/e01s2neI6UvANV3o5Mo1+iQJKJa56D7XWt49DV4OJlQ== 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 4WQbhX4VNrzgbG; Fri, 19 Jul 2024 17:07:40 +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 46JH7eO6027723; Fri, 19 Jul 2024 17:07:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46JH7eLD027720; Fri, 19 Jul 2024 17:07:40 GMT (envelope-from git) Date: Fri, 19 Jul 2024 17:07:40 GMT Message-Id: <202407191707.46JH7eLD027720@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 680f40f38343 - main - stdatomic: Only use clang atomics if __clang__ is defined List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 680f40f38343de118d5b973129683804e496faaf Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=680f40f38343de118d5b973129683804e496faaf commit 680f40f38343de118d5b973129683804e496faaf Author: John Baldwin AuthorDate: 2024-07-19 17:01:07 +0000 Commit: John Baldwin CommitDate: 2024-07-19 17:05:52 +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 --- 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