From nobody Mon Jun 22 10:35:35 2026 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 4gkPk243Mcz6jf2s for ; Mon, 22 Jun 2026 10:35:54 +0000 (UTC) (envelope-from kfv@kfv.io) Received: from outbound.mr.icloud.com (mr-2002l-snip4-5.eps.apple.com [57.103.68.218]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4gkPk21MXqz3Pft for ; Mon, 22 Jun 2026 10:35:54 +0000 (UTC) (envelope-from kfv@kfv.io) Authentication-Results: mx1.freebsd.org; none Received: from outbound.mr.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-west-2a-100-percent-9 (Postfix) with ESMTPS id D3D6B18001E3; Mon, 22 Jun 2026 10:35:51 +0000 (UTC) X-ICL-Out-Info: HUtFAUMHWwJACUgATUQeDx5WFlZNRAJCTQxWB1gZWgpEF0EATVIPDxtfDnMGUR0cGVZYVQkKAFQGFxFcTUUID0gZEFYBWFZdBU0aXBhZDxwdS1ZaDlsERxQXG1wAFxtGAgQjAl8ARQJeCVYBMBcPVk1SHkVDXgQSHVAcDlEFWwZBAToBXRooAkMKVQdeAVsfMgw+CkAHKXNDAE4DVHEqBjR5E1UbGQJdThkMSh1SVlEFSgxcAGgPXR1YEV0= Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kfv.io; s=sig1; t=1782124552; x=1784716552; bh=i7pOGZHcNtFRtKMv+s4mS3U26H70Vf6je5EvwjK/tvE=; h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To:x-icloud-hme; b=cvad7lgX8CoTUzivjn72PDv/SAYlUAhSMT1m6KzbiSdO2dWmsnqzMv+/pBFacz10DiUtv1cYdQkz8b0nvjewFi4LCrZfUfssBT9ihPD9B9tCRPjyEmQ9UP5CX6BoiHPx7syAw8y+rGJLdZTZ1Sq/VIx4ogXPdim/1iaXacGWkP28uYowlC4t3TNVESmuVkqbspZU7pfPQJZ2SJAySnV7nsUeVFU6ciHax4irjFi5oKA+OkWx2bPAiwa9qA44EhGPUlBBGUiXJVgmw69iLN1xk51lDhAqHdTnF1qCPKjDEwYm0COoV4aR0sEvXvwfdn89429sMQDxiagixCmTlcZRqw== mail-alias-created-date: 1649693719123 Received: from smtpclient.apple (unknown [17.57.152.38]) by p00-icloudmta-asmtp-us-west-2a-100-percent-9 (Postfix) with ESMTPSA id 6E48B18001EE; Mon, 22 Jun 2026 10:35:49 +0000 (UTC) Content-Type: multipart/signed; boundary="Apple-Mail=_14577618-85B7-480D-97A4-A49D476A12A7"; protocol="application/pgp-signature"; micalg=pgp-sha256 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.100.1.1.5\)) Subject: Re: git: 28cecfe27964 - main - libc: Restrict ATOMIC_VAR_INIT for C23 conformance From: Faraz Vahedi In-Reply-To: <86bjd3rmpr.fsf@ltc.des.dev> Date: Mon, 22 Jun 2026 14:05:35 +0330 Cc: Warner Losh , Mark Millard , Warner Losh , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org, Nuno Teixeira Message-Id: <20418B20-C033-4360-B5F9-0BA39609FA4D@kfv.io> References: <6a35ddd3.22963.721d614@gitrepo.freebsd.org> <4e902fcf-e79c-47b5-a51f-4881c09f7528@yahoo.com> <94E5F613-3930-464B-AC10-4943230C2025@kfv.io> <86bjd3rmpr.fsf@ltc.des.dev> To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= X-Mailer: Apple Mail (2.3864.100.1.1.5) X-Proofpoint-GUID: Hg3eB0V8zKr__kpnrjp4BB1GCLhRXqRK X-Proofpoint-ORIG-GUID: Hg3eB0V8zKr__kpnrjp4BB1GCLhRXqRK X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjIyMDEwNCBTYWx0ZWRfX91LlTKvSjGFP 1ipe+LbIaDWjQvIVzmTMjIiOCBKkB2obDdkvA7TnFnXFsNs3J/aOtAS7gZXaafMe6W4nBcQDUqq od/gmXfwhfetxK5FKKiIxL0ReDboSjvztyjvKQYU6kx2v1BqJRnhhUBVD+UB2oTkawjswcHYaJ8 vi6E5QRkpyKNpgFFgO2oWSTcsew0p+9XIzL3hYiQ7evBEp5PdTSwf67GqKk1IIuyLcbo4y/2+CU //qoZs6zMYS7KJ44QENRnFKPgOVuHUtsNQN0h1Eg5NCrP/WZathTfOzsszHqAQ7jjR1OGrLfMNy /ytDMjBG3jW+CgCc4zG X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:714, ipnet:57.103.68.0/22, country:US] X-Rspamd-Queue-Id: 4gkPk21MXqz3Pft X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated --Apple-Mail=_14577618-85B7-480D-97A4-A49D476A12A7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hey, > No, __STDC_VERSION__ is defined by the compiler and is used to = determine > which language version the compiler provides, while __ISO_C_VISIBLE is > defined by us and is used to decide which interfaces to expose to the > application based on what the application requested. If you scan > through src/include, you'll note that __STDC_VERSION__ is only used > there when what matters is whether a certain keyword is provided by = the > compiler, which is not the case here. That distinction is well understood, but I think removals tied to a = specific standard version are cases worth considering separately. In this case for example, ATOMIC_VAR_INIT is only removed from C23, so = the relevant question is not which interfaces we choose to expose, but = rather whether the compiler is operating in C23 mode. I agree that for internally = adopted exposure policies we should generally avoid gating on __STDC_VERSION__, = but removal is a different case and when tied to a specific standard = version, it is a language-mode-specific matter, not something governed by internal = exposure policies. Gating on __STDC_VERSION__ ties the removal directly to the language = mode in use, which seems more semantically accurate here than = __ISO_C_VISIBLE, whose role is API exposure policy rather than tracking language-level = removals. Assume the default standard mode of a compiler is C17, internal = visibility policy is set to C23, this is absolutely expected to have, say ATOMIC_VAR_INIT = (that has been deprecated since C17 but remained available until removed in = C23,) if not explicitly compiled for C23. This is the duty of a gate that can = check what mode the compiler is compiling for, not what is visible and provided by = the OS. Yours, Faraz= --Apple-Mail=_14577618-85B7-480D-97A4-A49D476A12A7 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEnunneCmADnpNx8ZMLdpU9MVz/74FAmo5D/cACgkQLdpU9MVz /74vdBAAgrteJheUqGFJ4btxspG2L27bD8aURBwuc5q621piNoW1US0MCtOPy9OJ J/hui8obXqjVseHpqQQNfYxmn1l4bb7dSYezGFv39IlPyvnNY3u2FoK7IpTuh9rj 2nFYwABemif4sFFJ3UlZLxwCs1xFku6TkNnV969Qhn4kjB320lN8ZMM4E/FlW4en 68/CsBjShxND//9MBbTcX6NSCFIcbaeh7VVVNk52QrqT8ThyEIZz4ZFlMNGxv4Y2 rGnLBoco71UAIjodNvdnr2JpEvzWBoGk+a4SvFJMjtxQCz4kQAp9Nl84tJqlYh9d jQUghxh7nu711hXK2NPMkZ7hB47KPLl8OtuyQphCejMdBOsmQNaoX5wJUSUgRziq SvdupTHKSIfdYUfgpbhFfS686SZngBjYRzVPCnjl0zDMEDWpupEGpKRuQ3ibApn0 Ce6sEtfAW3zlfDCS0yd33Ud8Z5PvlhKesA6WPzzNxlwOIlOS/+tnhppoWHqYKF2a baylU/9v8EL3C/riZr4OOFu35GwSNIT/H8c1NlO9U/6XbgLY/Aedwdn+qRDMLDqa h0vgPU6J9QiFZ+NONm6FmFEHbtouU0hM1cBcgfthCawgjbtNCCKpZIM1Gnt2dr6Q seqaN9e4CPbuj1STyf1ofR0hyaEQKV87yUx6xh35w45ExIdGUNY= =gkmb -----END PGP SIGNATURE----- --Apple-Mail=_14577618-85B7-480D-97A4-A49D476A12A7--