From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 122987 invoked by alias); 15 Feb 2017 15:32:14 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 122967 invoked by uid 89); 15 Feb 2017 15:32:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*R:D*sourceware.org, H*i:sk:f0d41bb, cpp_options, H*f:sk:f0d41bb X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 15 Feb 2017 15:32:12 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 34963C065134 for ; Wed, 15 Feb 2017 15:32:12 +0000 (UTC) Received: from calimero.vinschen.de (ovpn-117-193.ams2.redhat.com [10.36.117.193]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v1FFWB91024723 for ; Wed, 15 Feb 2017 10:32:11 -0500 Received: by calimero.vinschen.de (Postfix, from userid 500) id CA280A80657; Wed, 15 Feb 2017 16:32:09 +0100 (CET) Date: Wed, 15 Feb 2017 15:32:00 -0000 From: Corinna Vinschen To: newlib@sourceware.org Subject: Re: [PATCH, newlib/ARM] Fix elf-nano.specs to work without -save-temps Message-ID: <20170215153209.GC3889@calimero.vinschen.de> Reply-To: newlib@sourceware.org Mail-Followup-To: newlib@sourceware.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4bRzO86E/ozDv8r1" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) X-SW-Source: 2017/txt/msg00147.txt.bz2 --4bRzO86E/ozDv8r1 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 859 On Feb 15 11:32, Thomas Preudhomme wrote: > Hi, >=20 > it turns out that the changes in > af272aca591fe1dc0f1be64ae5bda147ea98a047 only works when using gcc/g++ > with -E or -save-temps, otherwise newlib's newlib.h gets used even if > -specs=3Dnano.specs is specified [1]. This is because the driver only > use cpp_options spec for the external cpp tool, not for the integrated > one. >=20 > [1] Guess the options I used to test the change... >=20 > This patch uses instead cpp_unique_options which is used in all cases: > it is used directly when the integrated preprocessor is used, and > indirectly by expansion of cpp_options otherwise. >=20 > Tested by running the following C program when building it with gcc or g++ > with and without -specs=3Dnano.specs and/or -save-temps: Pushed. Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer Red Hat --4bRzO86E/ozDv8r1 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYpHR5AAoJEPU2Bp2uRE+gNI0QAJrexFwhvCda6SgeL8PZGs12 aDJD04q+wapXWCIGOrkuiyPcS4KxGnPYzybqZBniJ89uLT2RLpkebJjNhorMPaif a6z4zkB+sNuMQV5csH5WMqehkGj/zBaFWNI2f4oa3kY4GV6ZbNgLHG2nAS5oZG9s l+6iqh/+6zzHOZmnvRGC4UsPl/wV+XqvCmSf+Ch+Htpt1+gLB0qo8jTKaOkXbiJ1 cE8WcJekGE3yCRPjTGsuA5UJKIFjc0EuoX1/BmVpQkb8OWxg9watLtFhCaXIdB6w ixdqxn7nXuzz3VdjIzLoQjwooSqz/HjHezac3pjYFcUu+wynKmHNYUAJgu/yjBBD o9HF8fJ6IiWRPtCent4Dc5nBzFHWksxsBDFyHR140wF+UwmUIinxs1cHezdsc7aB g/JRdb1mhYz7GxOiRN2Wp4k/CiA9RYcxoRPib0b+1OoB/vemztQ+cxaMAmskRa0y xCDCwPuxGF0AwgIEBFBvpXsLopsB8cbNbs2EAJYhlX+R0st7hpPFS2vGuuT+9w4D jadutvvkf9XF4mG/iigM50SuhZpLp7FshJ44WQPo+PwG+HymxVZ26CEjVHt9AmfJ TtjKVOwM0eeRzJV4LIL1yVUCu0wUcZlGRG4fwe2fONkm102MCMFISO8ghTsLQsst IgJRGgjdfDmCVv2ebUbH =Sms1 -----END PGP SIGNATURE----- --4bRzO86E/ozDv8r1--