aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2021-11-02 11:43:57 +0100
committerRasmus Villemoes <rv@rasmusvillemoes.dk>2021-11-05 09:42:21 +0100
commit44d0243a247dd1280265c649dab26e9486ffa015 (patch)
tree0815c1be0efea4077c80a0900ae42dfe4a91ff3e /gcc
parent33f1d038708a793a498076c8647165613ec90661 (diff)
downloadgcc-44d0243a247dd1280265c649dab26e9486ffa015.zip
gcc-44d0243a247dd1280265c649dab26e9486ffa015.tar.gz
gcc-44d0243a247dd1280265c649dab26e9486ffa015.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/vx-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/vx-common.h b/gcc/config/vx-common.h
index 7dd4dee..a436bf1 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