From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130813 invoked by alias); 15 Feb 2017 15:50:46 -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 130780 invoked by uid 89); 15 Feb 2017 15:50:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=HX-Envelope-From:sk:thomas., H*F:D*foss.arm.com X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 15 Feb 2017 15:50:44 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AF92B28 for ; Wed, 15 Feb 2017 07:50:43 -0800 (PST) Received: from [10.2.206.52] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5F2943F2E5 for ; Wed, 15 Feb 2017 07:50:43 -0800 (PST) Subject: Re: [PATCH, newlib/ARM] Fix elf-nano.specs to work without -save-temps To: newlib@sourceware.org References: <20170215153209.GC3889@calimero.vinschen.de> From: Thomas Preudhomme Message-ID: <407d776d-69af-c4f1-f937-edd9d45a5247@foss.arm.com> Date: Wed, 15 Feb 2017 15:50:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170215153209.GC3889@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017/txt/msg00149.txt.bz2 Thanks! On 15/02/17 15:32, Corinna Vinschen wrote: > On Feb 15 11:32, Thomas Preudhomme wrote: >> Hi, >> >> 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=nano.specs is specified [1]. This is because the driver only >> use cpp_options spec for the external cpp tool, not for the integrated >> one. >> >> [1] Guess the options I used to test the change... >> >> 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. >> >> Tested by running the following C program when building it with gcc or g++ >> with and without -specs=nano.specs and/or -save-temps: > > Pushed. > > > Thanks, > Corinna >