RTEMS Tools | linkers: Suppress out of bounds array warnings for an empty array (!57)

Gedare Bloom (@gedare) gitlab at rtems.org
Sat Mar 22 16:34:30 UTC 2025




Gedare Bloom started a new discussion: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/57#note_121621


I don't think this is the right solution.  Either the issue is a compiler bug, or else the code that gets generated is in fact accessing data outside of the variable. For this case, it would mean there is not actually any (enough) data memory at that location for the data size being accessed. The solution is likely to avoid generating the code with the warning. It has to know that specific array is empty.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/57#note_121621
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/20250322/f4366bfe/attachment-0001.htm>


More information about the bugs mailing list