Page MenuHomeFreeBSD

stdatomic: Only use clang atomics if __clang__ is defined
ClosedPublic

Authored by jhb on Jul 17 2024, 7:14 PM.
Tags
None
Referenced Files
F102909643: D46001.id141051.diff
Mon, Nov 18, 3:20 PM
Unknown Object (File)
Fri, Nov 8, 9:58 PM
Unknown Object (File)
Wed, Nov 6, 2:19 PM
Unknown Object (File)
Wed, Nov 6, 6:35 AM
Unknown Object (File)
Tue, Nov 5, 11:54 AM
Unknown Object (File)
Oct 17 2024, 6:19 AM
Unknown Object (File)
Oct 17 2024, 1:54 AM
Unknown Object (File)
Oct 15 2024, 3:38 AM
Subscribers
None

Details

Summary

GCC 14 defines has_extension(c_atomic) but does not support
c11_atomic_*, so require clang for the CLANG_ATOMICS case.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58683
Build 55571: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Jul 17 2024, 7:14 PM
jhb created this revision.

We likely don't need sync atomics given the scopeof where it would be needed... but im not sure.

This revision is now accepted and ready to land.Jul 17 2024, 7:55 PM

I think as part of your cleanup of cdefs.h, we can probably drop the pre-GCC 4.7 path entirely. We already don't support versions of GCC that old in cdefs.h now I think?