Date: Mon, 22 Jun 2026 12:49:58 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org> To: Faraz Vahedi <kfv@kfv.io> Cc: Warner Losh <imp@bsdimp.com>, Mark Millard <marklmi@yahoo.com>, Warner Losh <imp@freebsd.org>, src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org, Nuno Teixeira <eduardo@freebsd.org> Subject: Re: git: 28cecfe27964 - main - libc: Restrict ATOMIC_VAR_INIT for C23 conformance Message-ID: <864iiusvc9.fsf@ltc.des.dev> In-Reply-To: <20418B20-C033-4360-B5F9-0BA39609FA4D@kfv.io> (Faraz Vahedi's message of "Mon, 22 Jun 2026 14:05:35 %2B0330") References: <6a35ddd3.22963.721d614@gitrepo.freebsd.org> <4e902fcf-e79c-47b5-a51f-4881c09f7528@yahoo.com> <CANCZdfpo0mECxiLM9mFV7=6yNZgspcbvzFYyE2hsHeQ1X8p_eA@mail.gmail.com> <94E5F613-3930-464B-AC10-4943230C2025@kfv.io> <86bjd3rmpr.fsf@ltc.des.dev> <20418B20-C033-4360-B5F9-0BA39609FA4D@kfv.io>
index | next in thread | previous in thread | raw e-mail
Faraz Vahedi <kfv@kfv.io> writes: > 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. No. Using __STDC_VERSION__ here would mean “this library feature only works when compiled by a certain compiler” which is not the case. > 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. That's the fault of whomever decided to request that specific combination of C compiler and library version. DES -- Dag-Erling Smørgrav - des@FreeBSD.orghome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?864iiusvc9.fsf>
