From nobody Fri Jun 21 15:52:49 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 4W5MM54TN2z5Nsv8; Fri, 21 Jun 2024 15:52:49 +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 4W5MM53xlXz41h4; Fri, 21 Jun 2024 15:52:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718985169; 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=wK18bfSroowGSnzBcxhQ4YnI5KhYzFtOT4cj/CJpr0A=; b=v+QVTgT/SnMBII9AuxkvqQi4s2auLp3tMdONUM8lWgFbnwSDjqOD8ItpG20DzOWx/whAp8 4dN4GhVQlq2D1kEy+jUp8MS6LnSVwRoryYaFsGQxnlrdy2UJO9y3V0MwzaW8uqDgYf+CWL dQDxzNttIkXvULaKBHExQFrYMNLJ3Cyq/ChjFODWH/oprJPxNEmLFiSwyZhbugiEEFHLDK ntIJobWWNHQjVNNjjMCiFUOFXd7hKWvIGnfO4Vj7MvrXbWYj/R35h2jOUc4fM6LnWv3eLs yxTwaRdji7PAqw7xQjBuoUHyI9NiGyGda/hir1qU0KLEv4mDnltQPAM8o8NoXA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718985169; a=rsa-sha256; cv=none; b=m7j7Se7Yiehz7XIDvU2lJrC1MkgioowY0+7aPS7nz5ZJADDDkan9gw4hywBFeaKVzHk/H/ I+zM+2rriiFwrdzCj2V/T/BXuO0dKXCw5lVrToBxTzjbWUhojyq1vHfz/Rtmzstw3I3eYD 77uKhxU2rXwMyFK/Sq2bvWA+f2GBa2yfmNBtLJaAoqMxIxjtbiTlFhfj6hShthuSKuY58R zINzx4UpCTR9lj4DGtYxQadrETzTE8Dz6xId87imhDKr9JEGL29OezYlQmZFfGphbCjVqg vD5f2vYge+KFWWbOrlK5cgkp/sJcupkGo6JG3UY2w1i2OB1Q389S/asSzAdAhw== 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=1718985169; 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=wK18bfSroowGSnzBcxhQ4YnI5KhYzFtOT4cj/CJpr0A=; b=xYkFVwsemRMkIrfiqSRM+GKekmFuopg7VqvZiUot20nLqHiEUiDxvu9aEhqCUxtG++GYtB B2Uto1hBoZJ/YDKk7x46BGI+TW3FFRQA2YLFA3IiVtTzdt3GRZ48XEdYC57EpVWaZqG033 ncbs/G2MrmLzRmjJO4UYbTDTFIKuPNtkwH8FIXazeaeFP6KH5NEDuk1IN/RfLCHanoa3TB QXdS0kUVJ9Hg4qUvzqUktTIXVThepVp3SFVCXD3wLPRCMjUN8BucdSpWeNW6oP5uAr8aHl pneWirdG92mPBOQbgrePGDjJIGaOH2sLuB3zSqmlOZu0v0zvVITD8njmwDKxSA== 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 4W5MM53YK6zFGx; Fri, 21 Jun 2024 15:52:49 +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 45LFqn5N097693; Fri, 21 Jun 2024 15:52:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45LFqndF097690; Fri, 21 Jun 2024 15:52:49 GMT (envelope-from git) Date: Fri, 21 Jun 2024 15:52:49 GMT Message-Id: <202406211552.45LFqndF097690@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 5a969a3459e4 - main - cdefs.h: Move to more regular _Thread_local define 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5a969a3459e49efaf2ca1dc1d99895ddf04a5d02 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=5a969a3459e49efaf2ca1dc1d99895ddf04a5d02 commit 5a969a3459e49efaf2ca1dc1d99895ddf04a5d02 Author: Warner Losh AuthorDate: 2024-06-21 15:48:48 +0000 Commit: Warner Losh CommitDate: 2024-06-21 15:53:07 +0000 cdefs.h: Move to more regular _Thread_local define Move to trusting C++ environment for thread local storage designation. Noticed by: brooks Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D45663 --- sys/sys/cdefs.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 419fc260f200..8809240ebbf3 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -213,12 +213,7 @@ #endif #if !__has_extension(c_thread_local) -/* - * XXX: Some compilers (Clang 3.3, GCC 4.7) falsely announce C++11 mode - * without actually supporting the thread_local keyword. Don't check for - * the presence of C++11 when defining _Thread_local. - */ -#if /* (defined(__cplusplus) && __cplusplus >= 201103L) || */ \ +#if (defined(__cplusplus) && __cplusplus >= 201103L) || __has_extension(cxx_thread_local) #define _Thread_local thread_local #else