RTEMS | score: Define Per_CPU_Stats only for profiling (!1560)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Wed Nov 4 23:15:21 UTC 2026
Sebastian Huber created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1560
Project:Branches: sebhub/rtems:cxx-profiling to rtems/rtos/rtems:main
Author: Sebastian Huber
Assignee: Sebastian Huber
## Summary
score: Define Per_CPU_Stats only for profiling
Without RTEMS_PROFILING, Per_CPU_Stats was an empty structure. It has
the size zero in C and the size one in C++, so Per_CPU_Control was not
the same type in both languages. A compile with -Wc++-compat reported
it as an error.
Define the structure and the member only for RTEMS_PROFILING, which
covers every use of the member.
Close #5812.
Assisted-by: Claude:claude-opus-5-5 claude-code
Signed-off-by: Sebastian Huber <sebastian.huber at embedded-brains.de>
## Generative AI
<!-- If you have used AI please use the "AI Contribution" template otherwise leave this blank see our fulls statement at https://www.rtems.org/generative-ai/-->
<!-- 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/1560
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/6-5hzwmfllij4in2k0xuk98c0wp-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/20261104/cb1a3f89/attachment.htm>
More information about the bugs
mailing list