aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2020-10-28 11:24:56 +0000
committerOlivier Hainque <hainque@adacore.com>2020-10-29 10:59:11 +0000
commit9df44b9403312d7cd9678bfb44cae3bb972d6355 (patch)
tree1b8893be422b86dee4b8a94d501e969f91bae391
parent291d920395dcb192aea657b8073074b690777d4b (diff)
downloadgcc-9df44b9403312d7cd9678bfb44cae3bb972d6355.zip
gcc-9df44b9403312d7cd9678bfb44cae3bb972d6355.tar.gz
gcc-9df44b9403312d7cd9678bfb44cae3bb972d6355.tar.bz2
Fix the logic conditioning VX_ENTER/LEAVE_TLS_DTOR
Fix a basic #if/#ifdef confusion which leads to improper choices in some configurations. 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.
-rw-r--r--libgcc/config/gthr-vxworks-tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgcc/config/gthr-vxworks-tls.c b/libgcc/config/gthr-vxworks-tls.c
index 8987e55..1d5c4fb 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);