RTEMS | _Processor_mask_Find_last_set() use breaks GCC16+ builds using "-std" flags (#5501)

Matteo Concas (@matteo.concas) gitlab at rtems.org
Mon Mar 2 08:11:33 UTC 2026




Matteo Concas commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5501#note_143945


It's C code, seems it's simply included when including `rtems.h`:
```
In file included from /PREFIX/riscv-rtems7/include/sys/cpuset.h:46,
                 from /PREFIX/riscv-rtems7/BSP/lib/include/rtems/rtems/tasks.h:62,
                 from /PREFIX/riscv-rtems7/BSP/lib/include/rtems/rtems/config.h:62,
                 from /PREFIX/riscv-rtems7/BSP/lib/include/rtems/config.h:62,
                 from /PREFIX/riscv-rtems7/BSP/lib/include/rtems.h:59,
                 from testsuites/samples/rtems/config.c:38:
/PREFIX/riscv-rtems7/BSP/lib/include/rtems/score/processormaskimpl.h: In function '_Processor_mask_Find_last_set':
/PREFIX/riscv-rtems7/BSP/lib/include/rtems/score/processormaskimpl.h:285:21: error: implicit declaration of function 'flsl' [-Wimplicit-function-declaration]
  285 |   return (uint32_t) __BIT_FLS( CPU_MAXIMUM_PROCESSORS, a );
      |                     ^~~~~~~~~
``

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5501#note_143945
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/20260302/2ae25a4f/attachment.htm>


More information about the bugs mailing list