RTEMS | score: Define Per_CPU_Stats only for profiling (!1560)
Lucian Silistru (@lsilistr)
gitlab at rtems.org
Thu Nov 5 06:15:12 UTC 2026
Lucian Silistru commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1560#note_161898
Ran this in !1391 on #5812 config and `spstdc17` fails because fixing the oversize issue exposes another size 0 issue:
```
char unused_space_for_cache_line_alignment
[ PER_CPU_CONTROL_SIZE - sizeof( Per_CPU_Control ) ];
```
becomes `char unused_space_for_cache_line_alignment[0]` which gives a -Wpedantic
My non-0 PROFILING size even with profiling off was fixing C/C++ size mismatch but jumping over/hiding the size 0 one.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1560#note_161898
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-1czeoyu1migc2g197gnilzpvs-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/20261105/e7fb0aa2/attachment-0001.htm>
More information about the bugs
mailing list