RTEMS | score/basedefs.h has cases that do not work (#5629)
Chris Johns (@chris)
gitlab at rtems.org
Mon Jun 22 00:18:45 UTC 2026
Issue created by Chris Johns: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5629
## Summary
The header [rtems/score/basedefs.h](https://gitlab.rtems.org/rtems/rtos/rtems/-/blob/main/cpukit/include/rtems/score/basedefs.h) provides a way to use operations in RTEMS source in a consistent way across different compilers to get correctly generated code or to handle warnings appropriately. There are a few cases in this file where the final alternative is invalid or broken. We should generate an error in these cases. If a new compiler is being ported an error for the cases not covered provides feedback this needs to be looked at. At the moment there is no indication there could be an issues.
1. We have determined we need the macros in this file for RTEMS so providing a final default that is nothing is inconsistent, counter to the purpose and I believe wrong.
2. A new compiler needs to be up to date with the current language standards so a number of these options should work making the final case invalid.
3. We should review our dependence on GNU extensions and look to removing them. This improves the portability of RTEMS.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5629
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-11t0nvs7t7txxz15fl9iveq6k-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260622/b8e89645/attachment.htm>
More information about the bugs
mailing list