From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2044) id 7DEA03858D35; Fri, 5 Nov 2021 08:42:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7DEA03858D35 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Rasmus Villemoes To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-4932] gcc: vx-common.h: fix test for VxWorks7 X-Act-Checkin: gcc X-Git-Author: Rasmus Villemoes X-Git-Refname: refs/heads/master X-Git-Oldrev: 33f1d038708a793a498076c8647165613ec90661 X-Git-Newrev: 44d0243a247dd1280265c649dab26e9486ffa015 Message-Id: <20211105084232.7DEA03858D35@sourceware.org> Date: Fri, 5 Nov 2021 08:42:32 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2021 08:42:32 -0000 https://gcc.gnu.org/g:44d0243a247dd1280265c649dab26e9486ffa015 commit r12-4932-g44d0243a247dd1280265c649dab26e9486ffa015 Author: Rasmus Villemoes Date: Tue Nov 2 11:43:57 2021 +0100 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. Diff: --- gcc/config/vx-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/vx-common.h b/gcc/config/vx-common.h index 7dd4dee536e..a436bf14074 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