From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id EB95A385840D; Wed, 24 Apr 2024 18:39:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB95A385840D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713983970; bh=u7EoXT0lTQeL9pfLHmR6EMX9pkflv6wcKtBdJhM4RsY=; h=From:To:Subject:Date:From; b=AlNm7qYZXk+OKjCd8/D50lcNXc33gO4txXA1A5zkHtJ6ffht9JI4PTpqsgGfcG8as FYAXrbdwYVayjldbHbImgTW9ZAsj1CE0CN8trVEQNz4GPBu1i3Wbacl54WdQaRAtc0 /xxBOuQnkYoCOkEAGW8rfPbr935pn6Adj+zBYuVo= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc r11-11358] testsuite, objective-c++: Fix imported NSObjCRuntime.h. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/heads/releases/gcc-11 X-Git-Oldrev: e3a4a568f4ac08ca981b41360aeab005cf6e41cf X-Git-Newrev: c2a39d977605e554177236bf524c97ff14196f95 Message-Id: <20240424183930.EB95A385840D@sourceware.org> Date: Wed, 24 Apr 2024 18:39:30 +0000 (GMT) List-Id: https://gcc.gnu.org/g:c2a39d977605e554177236bf524c97ff14196f95 commit r11-11358-gc2a39d977605e554177236bf524c97ff14196f95 Author: Iain Sandoe Date: Fri Jun 23 15:29:14 2023 +0100 testsuite,objective-c++: Fix imported NSObjCRuntime.h. We have imported some headers from the GNUStep project to allow us to maintain the testsuite independent to changing versions of system headers. One of these headers has a macro that (now we have support for __has_feature) expands to a declaration that triggers a warning. These headers are considered part of the implementation so that, in this case, we can suppress the warning with the system_header pragma. Signed-off-by: Iain Sandoe gcc/testsuite/ChangeLog: * objc-obj-c++-shared/GNUStep/Foundation/NSObjCRuntime.h: Make this header use pragma system_header. (cherry picked from commit d83e0e3bc375a05844438d28c9a4ab24c5401eb9) Diff: --- gcc/testsuite/objc-obj-c++-shared/GNUStep/Foundation/NSObjCRuntime.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/testsuite/objc-obj-c++-shared/GNUStep/Foundation/NSObjCRuntime.h b/gcc/testsuite/objc-obj-c++-shared/GNUStep/Foundation/NSObjCRuntime.h index 189af80436a..62556f9ac88 100644 --- a/gcc/testsuite/objc-obj-c++-shared/GNUStep/Foundation/NSObjCRuntime.h +++ b/gcc/testsuite/objc-obj-c++-shared/GNUStep/Foundation/NSObjCRuntime.h @@ -29,6 +29,9 @@ #ifndef __NSObjCRuntime_h_GNUSTEP_BASE_INCLUDE #define __NSObjCRuntime_h_GNUSTEP_BASE_INCLUDE +/* Allow the elaborated enum use in _GS_NAMED_ENUM. */ +#pragma GCC system_header + #ifdef __cplusplus #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1