diff mbox series

vxworks: Fix the logic conditioning VX_ENTER/LEAVE_TLS_DTOR

Message ID 02F4FDC1-0960-4EC4-A1BD-9FDBAC70D661@adacore.com
State New
Headers show
Series vxworks: Fix the logic conditioning VX_ENTER/LEAVE_TLS_DTOR | expand

Commit Message

Olivier Hainque Oct. 28, 2020, 2:22 p.m. UTC
This change fixes a basic #if/#ifdef confusion exposed by
the wider range of testing we’re running for the forthcoming
introduction of additional support for VxWorks 7r2, which
comes together with a few organizational changes to keep
supporting older versions.

Committing as obvious after checking that it does fix
unexpected undefined references on powerpc for vx7r2.

Olivier

2020-10-28  Olivier Hainque  <hainque@adacore.com>

libgcc/
        * config/gthr-vxworks-tls.c: Fix preprocessor logic
        controlling the definition of VX_ENTER_TLS_DTOR and
        VX_LEAVE_TLS_DTOR based on a version major check.
diff mbox series

Patch

diff --git a/libgcc/config/gthr-vxworks-tls.c b/libgcc/config/gthr-vxworks-tls.c
index 8987e55c35ac..1d5c4fbb34de 100644
--- a/libgcc/config/gthr-vxworks-tls.c
+++ b/libgcc/config/gthr-vxworks-tls.c
@@ -115,7 +115,7 @@  extern void __gthread_set_tls_data (void *data);
 
 #endif
 
-#ifdef _VXWORKS_MAJOR_EQ(6)
+#if _VXWORKS_MAJOR_EQ(6)
 
 extern void __gthread_enter_tls_dtor_context (void);
 extern void __gthread_leave_tls_dtor_context (void);