From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id C1E283858C66; Wed, 22 Feb 2023 14:49:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C1E283858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677077342; bh=vQ2VidBztiuH/jf8IEdX3OCHs/Sud17iJvNK0IyEmwE=; h=From:To:Subject:Date:From; b=crlnpfYECUBvPXkqa1aRdEQwYCYYTESDYaiMLTVnWaKxbyvkoLGM0v45YjTEcies5 OS4809cVW3GeTSflePd5LBuuOg2gaS2QHpzkmwLJ1qUBHvUOY1oviGoU+rNKFNS3kA 1hno7cNvxfcCTNskF+zc+gvxRftG2bJctuUATYpk= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] [libstdc++] [testsuite] intro/names.cc: undef func on vxw7krn X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: fb5365907317551cf9e4661aa78dd4f773e7a18a X-Git-Newrev: c0e62483a77af5b780c62a78dae8641afd018599 Message-Id: <20230222144902.C1E283858C66@sourceware.org> Date: Wed, 22 Feb 2023 14:49:02 +0000 (GMT) List-Id: https://gcc.gnu.org/g:c0e62483a77af5b780c62a78dae8641afd018599 commit c0e62483a77af5b780c62a78dae8641afd018599 Author: Alexandre Oliva Date: Thu Feb 16 06:35:42 2023 -0300 [libstdc++] [testsuite] intro/names.cc: undef func on vxw7krn The '#define func' added in 2021, to test that system headers don't violate the user namespace, exposes such a bug in the vxworks sysLib.h header, so add yet another such annotated workaround. for libstdc++-v3/ChangeLog * testsuite/17_intro/names.cc: Undef func on vxworks >= 7 in kernel mode. Diff: --- libstdc++-v3/testsuite/17_intro/names.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc index afa749128f5..9932dea14d5 100644 --- a/libstdc++-v3/testsuite/17_intro/names.cc +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -346,6 +346,8 @@ #undef d #undef e #undef f +// in sysLib.h, func appears as a formal parameter name +#undef func #endif // __RTP__ #endif // VxWorks Major >= 7