RTEMS | score: Use normal integers for C++ atomic objects (!296)

Sebastian Huber (@sebhub) gitlab at rtems.org
Thu Nov 7 02:20:41 UTC 2024



Sebastian Huber created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/296

Project:Branches: sebhub/rtems:fix-atomics-for-c++20 to rtems/rtos/rtems:main
Author:   Sebastian Huber
Assignee: Sebastian Huber



## 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.


<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/296
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241107/5fe8dfc4/attachment.htm>


More information about the bugs mailing list