RTEMS | confdefs/newlib: error on CONFIGURE_DISABLE_NEWLIB_REENTRANCY with TLS newlib (!1569)

Aaditya Agarwal (@aaditya8979) gitlab at rtems.org
Mon Nov 9 16:34:18 UTC 2026



Aaditya Agarwal created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1569

Project:Branches: aaditya8979/rtems:newlib-tls-conflict to rtems/rtos/rtems:main
Author: Aaditya Agarwal

## Summary

`CONFIGURE_DISABLE_NEWLIB_REENTRANCY` assumes newlib invokes `__getreent()` to obtain the per-thread reentrancy structure. When newlib is built with `_REENT_THREAD_LOCAL`, reentrancy data is accessed directly through thread-local storage, making the callback moot and the option a silent no-op.

Add a `#error` in `<rtems/confdefs/newlib.h>` when both `CONFIGURE_DISABLE_NEWLIB_REENTRANCY` and `_REENT_THREAD_LOCAL` are defined so configuration conflicts are caught at compile time.

Closes #5781.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1569
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-858y2ofojf3vlmq2ovv28475p-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/20261109/87d96435/attachment-0001.htm>


More information about the bugs mailing list