From patchwork Thu May 4 20:25:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ahelenia_Ziemia=C5=84ska?= X-Patchwork-Id: 68772 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 953E23858D33 for ; Thu, 4 May 2023 20:26:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 953E23858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1683231991; bh=RXMd8ca9T98svIsu10borLP8T3drkqapcOPKDqYXA34=; h=Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=HTNqL0Vq6x28ZZv5ToiU9gEw7d2z2C2D/ay4/emGllPM17dOJsI+tRZN4rp7dZWsD 0roKZek9WJqy2s2te3WtKNseXDMVNetGa0Q2o6hPt5eHGWDo3dZbmrUhpMaa1KdWmw scqvX+s/iUgIPT3KxIdCeka7Pu81/60HfejDtHPk= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from tarta.nabijaczleweli.xyz (unknown [139.28.40.42]) by sourceware.org (Postfix) with ESMTP id C0FC63858D33 for ; Thu, 4 May 2023 20:26:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C0FC63858D33 Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id BCDA67054 for ; Thu, 4 May 2023 22:25:58 +0200 (CEST) Date: Thu, 4 May 2023 22:25:57 +0200 Cc: libc-alpha@sourceware.org Subject: [PATCH v2] testsuite: stdlib/isomac.c: fix REQUIREMENTS Message-ID: MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20230407 X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_INFOUSMEBIZ, MISSING_HEADERS, RDNS_DYNAMIC, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?b?0L3QsNCxIHZpYSBMaWJjLWFscGhh?= From: =?utf-8?q?Ahelenia_Ziemia=C5=84ska?= Reply-To: =?utf-8?b?0L3QsNCx?= Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" All of the mentioned variables are gone. gcc is just the default and argv[1] can be used instead. /usr/include isn't hard-coded and you can pass argv[2] with -I... to adjust. Signed-off-by: Ahelenia ZiemiaƄska Reviewed-by: Carlos O'Donell --- v2: no-change resend after clean rebase stdlib/isomac.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/stdlib/isomac.c b/stdlib/isomac.c index 3a6009d988..a371bb2593 100644 --- a/stdlib/isomac.c +++ b/stdlib/isomac.c @@ -45,14 +45,11 @@ compiler compiles some other language than Standard C. REQUIREMENTS: - This program calls gcc to get the list of defined macros. If you + This program calls ${1-gcc} to get the list of defined macros. If you don't have gcc you're probably out of luck unless your compiler or - preprocessor has something similar to gcc's -dM option. Tune - PRINT_MACROS in this case. This program assumes headers are found - under /usr/include and that there is a writable /tmp directory. - Tune SYSTEM_INCLUDE if your system differs. - #define BROKEN_SYSTEM if system(NULL) bombs -- one more violation - of ISO C, by the way. + preprocessor has something similar to gcc's -dM option. This program + assumes headers are found in the default search path (pass -I... in + $2 if this is not the case) and that there is a writable /tmp directory. OUTPUT: Each header file name is printed, followed by illegal macro names