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 <hain...@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 --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); -- 2.17.1