RTEMS Tools | rtems-syms: Warnings in generated output (#21)
Joel Sherrill (@joel)
gitlab at rtems.org
Mon Feb 24 17:21:07 UTC 2025
Joel Sherrill created an issue: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/issues/21
Assignee: Chris Johns
## Summary
This was generated on m68k/uc5282
```
/home/joel/rtems-work/rtems/b-uC5282/m68k/uC5282/testsuites/libtests/dl06/dl06-sym.c: In funct
ion 'rtems_rtl_base_global_syms_init':
/home/joel/rtems-work/rtems/b-uC5282/m68k/uC5282/testsuites/libtests/dl06/dl06-sym.c:1487:3: warning: array subscript 0 is outside array bounds of 'const rtems_rtl_tls_offset[0]' [-Warray-
bounds=]
1487 | rtems_rtl_base_sym_global_add (&rtems__rtl_base_globals[0],
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1488 | rtems__rtl_base_globals_size[0],
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1489 | &rtems_rtl_tls_offsets[0],
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1490 | RTEMS_RTL_TLS_OFFSETS_NUM);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/joel/rtems-work/rtems/b-uC5282/m68k/uC5282/testsuites/libtests/dl06/dl06-sym.c:1480:28:note: while referencing 'rtems_rtl_tls_offsets'
1480 | const rtems_rtl_tls_offset rtems_rtl_tls_offsets[] = {
| ^~~~~~~~~~~~~~~~~~~~~
```
## Steps to reproduce
I did not see this warning on sparc/leon3 or aarch64/zynqmp_cfc400x but since it comes from code generated by rtems-syms.c, it should also be happening on other architectures.
### Pre-set options
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/issues/21
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/20250224/b3132022/attachment.htm>
More information about the bugs
mailing list