From: Rasmus Villemoes Date: Tue, 2 Nov 2021 10:43:57 +0000 (+0100) Subject: gcc: vx-common.h: fix test for VxWorks7 X-Git-Tag: releases/gcc-11.3.0~685 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b555a1469ea285166363e5de327231e2ee698d93;p=thirdparty%2Fgcc.git gcc: vx-common.h: fix test for VxWorks7 The macro TARGET_VXWORKS7 is always defined (see vxworks-dummy.h). Thus we need to test its value, not its definedness. Fixes aca124df (define NO_DOT_IN_LABEL only in vxworks6). gcc/ChangeLog: * config/vx-common.h: Test value of TARGET_VXWORKS7 rather than definedness. (cherry picked from commit 44d0243a247dd1280265c649dab26e9486ffa015) --- diff --git a/gcc/config/vx-common.h b/gcc/config/vx-common.h index 7dd4dee536ec..a436bf14074c 100644 --- a/gcc/config/vx-common.h +++ b/gcc/config/vx-common.h @@ -97,7 +97,7 @@ along with GCC; see the file COPYING3. If not see /* ------------------------ Misc configuration bits ---------------------- */ -#ifndef TARGET_VXWORKS7 +#if !TARGET_VXWORKS7 /* VxWorks, prior to version 7, could not have dots in constructor labels, because it used a mutant variation of collect2 that generates C code instead of assembly. Thus each constructor label