RTEMS | C++20 deprecates some volatile operations (#5505)

Matteo Concas (@matteo.concas) gitlab at rtems.org
Mon Mar 2 09:56:14 UTC 2026




Matteo Concas commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5505#note_143957


I have also ran into multiple issues in the testsuite when building it with latest GCC:
- spglobalcon01:
```
../../../testsuites/sptests/spglobalcon01/init.cc: In constructor 'A::A()':
../../../testsuites/sptests/spglobalcon01/init.cc:40:9: error: '++' expression of 'volatile'-qualified type is deprecated [-Werror=volatile]
   40 |       ++i;
      |         ^
cc1plus: all warnings being treated as errors
```
- mp10:
```
../../../testsuites/mptests/mp10/task3.c: In function 'Test_task3':
../../../testsuites/mptests/mp10/task3.c:43:12: error: old-style function definition [-Werror=old-style-definition]
   43 | rtems_task Test_task3( restart )
      |            ^~~~~~~~~~
cc1: all warnings being treated as errors
``

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5505#note_143957
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/20260302/52307886/attachment-0001.htm>


More information about the bugs mailing list