This is an archive of the discontinued LLVM Phabricator instance.

Undeprecate ATOMIC_FLAG_INIT in C++
ClosedPublic

Authored by aaron.ballman on Jul 8 2022, 4:16 AM.

Details

Reviewers
erichkeane
cor3ntin
tambre
ldionne
Group Reviewers
Restricted Project
Summary

C++20 deprecated ATOMIC_FLAG_INIT thinking it was deprecated in C when it wasn't. It is expected to be undeprecated in C++23 as part of LWG3659 (https://wg21.link/LWG3659), which is currently Tentatively Ready as of yesterday.

I think similar changes should happen on the libc++ side, basically to undo parts of 4e730aeb731cb9b7116ed51bbef662d363f72b66, so I've included some of the libc++ folks here to see if they agree.

Diff Detail

Event Timeline

aaron.ballman created this revision.Jul 8 2022, 4:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 8 2022, 4:16 AM
aaron.ballman requested review of this revision.Jul 8 2022, 4:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 8 2022, 4:16 AM
tambre accepted this revision.Jul 8 2022, 4:20 AM

Makes sense to me, thanks!

This revision is now accepted and ready to land.Jul 8 2022, 4:20 AM

Makes sense to me, thanks!

Thanks! Would you mind handling the libc++ side like last time, or do you prefer I handle it as part of the changes in this patch?

tambre added a comment.Jul 8 2022, 9:42 AM

Makes sense to me, thanks!

Thanks! Would you mind handling the libc++ side like last time, or do you prefer I handle it as part of the changes in this patch?

Yeah, sure, see D129380.

Makes sense to me, thanks!

Thanks! Would you mind handling the libc++ side like last time, or do you prefer I handle it as part of the changes in this patch?

Yeah, sure, see D129380.

Thank you! :-)