[PATCH] RTEMS: Use TLS for Ada run-time

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jun 2 10:58:14 UTC 2017


Do not use the RTEMS-specific task variables for the Ada run-time since
they are not available in SMP configurations.  Use thread-local storage
instead.

gcc/ada
2017-06-01  Sebastian Huber  <sebastian.huber at embedded-brains.de>

	* Makefile.in (rtems): Use TLS implementation.
---
 gcc/ada/gcc-interface/Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in
index 5f570cf34c5..6acff9899eb 100644
--- a/gcc/ada/gcc-interface/Makefile.in
+++ b/gcc/ada/gcc-interface/Makefile.in
@@ -1734,7 +1734,7 @@ ifeq ($(strip $(filter-out rtems%,$(target_os))),)
   s-parame.adb<s-parame-rtems.adb \
   s-taprop.adb<s-taprop-posix.adb \
   s-taspri.ads<s-taspri-posix.ads \
-  s-tpopsp.adb<s-tpopsp-rtems.adb \
+  s-tpopsp.adb<s-tpopsp-tls.adb \
   s-stchop.adb<s-stchop-rtems.adb \
   s-interr.adb<s-interr-vxworks.adb
 endif
-- 
2.12.0



More information about the devel mailing list