Page MenuHomeFreeBSD

libc: Fix ATOMIC_VAR_INIT visibility
ClosedPublic

Authored by des on Jun 21 2026, 6:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 6, 9:09 AM
Unknown Object (File)
Thu, Aug 6, 1:28 AM
Unknown Object (File)
Mon, Aug 3, 5:46 AM
Unknown Object (File)
Mon, Aug 3, 1:00 AM
Unknown Object (File)
Sun, Aug 2, 1:03 AM
Unknown Object (File)
Sat, Jul 18, 6:18 PM
Unknown Object (File)
Wed, Jul 15, 7:27 AM
Unknown Object (File)
Wed, Jul 15, 7:27 AM
Subscribers

Details

Summary

Fixes: 28cecfe27964 ("libc: Restrict ATOMIC_VAR_INIT for C23 conformance")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Jun 21 2026, 6:05 PM
des created this revision.

This looks sane, though I've only a minute to look at it before I have to stow my laptop for takeoff. We'll see if it works.

This revision is now accepted and ready to land.Jun 21 2026, 6:11 PM
fuz added a subscriber: fuz.

Looks reasonable.

sys/sys/stdatomic.h
89

Now that I've had a chance to look at this, I'm convinced this is right because in the past __BSD_VISIBLE has meant 'also include obsoleted interfaces that a strict Cxx environment will have removed'. There's no great way to do this generically, and we'll need to remember this in code reviews. I missed this detail when I looked at it on github.

This revision was automatically updated to reflect the committed changes.