Date: Mon, 22 Jun 2026 15:43:49 +0330 From: Faraz Vahedi <kfv@kfv.io> To: Robert Clausecker <fuz@fuz.su> Cc: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@freebsd.org>, 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: <94E4DD27-D5B7-4749-8A93-3FBECBF44CD5@kfv.io> In-Reply-To: <ajkki_WRxQOXD9OC@fuz.su> 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> <864iiusvc9.fsf@ltc.des.dev> <F4C6FE9A-025A-4A6B-9262-6946AA9D3AE8@kfv.io> <ajkki_WRxQOXD9OC@fuz.su>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Hey Robert, >> First, let me add that in case we decide to keep the __BSD_VISIBLE gate, the >> condition needs to be reconsidered entirely, since __BSD_VISIBLE is 1 in the >> default environment and makes the __ISO_C_VISIBLE check unreachable in the >> common case. Ergo, with no explicit feature-test macros, __BSD_VISIBLE is 1 >> unconditionally and the condition __BSD_VISIBLE || __ISO_C_VISIBLE < 2023 >> erroneously exposes ATOMIC_VAR_INIT even when compiled with -std=c23, >> which the C23 standard explicitly removed. > > That would be correct then. > We provide this macro as an extension, even if the standard no longer supplies > it, unless the configuration is set up to disable extensions. > This is the same policy we follow with all libc symbols and macros, unless > there is a solid reason not to provide them at all (e.g. due to a type change > or conflict with a more recent feature). Oh, alright, now I get the point. I'll keep it in mind. Thanks to both of you for taking the time to explain. It took me a while to get there, but it's well established in my head now. Cheers, Faraz [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEnunneCmADnpNx8ZMLdpU9MVz/74FAmo5Jv0ACgkQLdpU9MVz /751gRAA1T9IOPGc7NV5r0zwq0qdCRNgbhibixBU8OXrcyi3mz7KFwGW7OjFv0gi AIvctXadFaPFt7Jf2FiR+ph7/a0Cw3jxOcUfv9hbe/GZIxJz/VwmLfP36mXs/iE9 Tnkr0bi13WN4PvXhBeB1sIrs7Ic5FGOnx1xSOHpfd4iLBidIFAF6X7H2LMdCEzWj n0UfiEfslWbwqxA36+vZttrcgL/y45b9Y2yFkW2ETHQOq4cMJA4D2gCquNa0H0ur no1Dg2+zOJM6BJXkFi3TX07450RsuxckT816kbCk406ROSCnzNj3RK1LrJZxoEmP LNY3IXc/k5jqHzi7RbEXMV4HNuKoIKSEDsiMMo4qvRXcekOZFTIYCvlD0Se0f8vw k2YOKmCw3Zw2aLHeI+XRx7PA0WFQYiMSg41jPr48s+s7A65boUHfTBxMpFr8dTBc kaA27gurdWte3qsMDH1XfkIxV9gSkvxk/1mBY5fW8S6D/EXIRmCP0Pi02ad8+Q13 KWpj8ZIYeItFE+tlmnwrkXqTqxIBzAoL9Op3AXYOAONMhDLxmAMMDSRfnDPk113I 4Rn6dQfkXhQI1BA9y3PbBU5f5H6aFOz/xIw5lEZtMhE/Y4i/39Nu5uyxpIQjBflF BgwlLPoGO5mgBQqlPlcB0bqAWN5BDIkd+InJkEXCa6kkKSsFWck= =HFXf -----END PGP SIGNATURE-----home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?94E4DD27-D5B7-4749-8A93-3FBECBF44CD5>
