From patchwork Sun Apr 23 00:55:15 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: 1772357 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=GD6BHhPG; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q3qZ64MGCz23tt for ; Sun, 23 Apr 2023 10:55:42 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A45713857710 for ; Sun, 23 Apr 2023 00:55:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A45713857710 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1682211338; bh=FdEHFo/L3wNto30GGsMnGTsoCv81leA/G93ZmFTj410=; h=Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=GD6BHhPGt8MfUvgh6w6t8PyWTMQITKOgpvZja7GKeMiYQ9o3240N72ZcjnhcdjYYc gh9jOG0rB66pheS9oB9q7wmOG6iTVs5IBYEp4i5V/QGTh4DDXyQDmQgpkjRCKZed60 A61/bt10+ldoSZ55P2f2pAtIyjV89YkZkZrjiDj8= 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 1004E385840A for ; Sun, 23 Apr 2023 00:55:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1004E385840A Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id 401FC68A2 for ; Sun, 23 Apr 2023 02:55:16 +0200 (CEST) Date: Sun, 23 Apr 2023 02:55:15 +0200 Cc: libc-alpha@sourceware.org Subject: [PATCH 2/2] 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.2 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+incoming=patchwork.ozlabs.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 --- Please keep me in CC, as I'm not subscribed. 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