From 9df44b9403312d7cd9678bfb44cae3bb972d6355 Mon Sep 17 00:00:00 2001 From: Olivier Hainque Date: Wed, 28 Oct 2020 11:24:56 +0000 Subject: [PATCH] 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 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. --- libgcc/config/gthr-vxworks-tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgcc/config/gthr-vxworks-tls.c b/libgcc/config/gthr-vxworks-tls.c index 8987e55c35a..1d5c4fbb34d 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); -- 2.30.2