Skip to content

score: Use normal integers for C++ atomic objects

Sebastian Huber requested to merge sebhub/rtems:fix-atomics-for-c++20 into main

Summary

score: Use normal integers for C++ atomic objects

Since C++20 there is no longer a default constructor available for atomic objects. See:

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0883r2.pdf

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117475

We already assume that an atomic integer can be stored in a normal integer and has the same representation in C and C++.

Update #5145.

Merge request reports