From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id C9C8F3849AD9; Fri, 19 Apr 2024 13:19:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C9C8F3849AD9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713532778; bh=zwpx9W5L6K/H95AMVMKUHnJ+K5HqzlkknHHNU4i92W8=; h=From:To:Subject:Date:From; b=GLx/O0eDTvUIdMFTTblgSyodQoWIY/O4WcBd7HWRNAwKuxGse5pB0YJPl8fRjjOi9 i2hvJZEdsZ7jbf/LhKWzRdznfLfBK/HmSHpdxLdOy38GTAJAnoU8MfvfaAM4e6SJA+ ZqskpZxghKnZ1D+gaVtmwF9HCTur8Qnv9RlMPuBU= 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 r12-10354] testsuite, objective-c++: Fix imported NSObjCRuntime.h. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/heads/releases/gcc-12 X-Git-Oldrev: 04dbdb7347a0b4846311cfce7665b49ea288433f X-Git-Newrev: f04f8734f792159d8bc001946fe4ca6f3503034f Message-Id: <20240419131938.C9C8F3849AD9@sourceware.org> Date: Fri, 19 Apr 2024 13:19:38 +0000 (GMT) List-Id: https://gcc.gnu.org/g:f04f8734f792159d8bc001946fe4ca6f3503034f commit r12-10354-gf04f8734f792159d8bc001946fe4ca6f3503034f 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