From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24652 invoked by alias); 4 Jan 2005 10:43:52 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 24176 invoked from network); 4 Jan 2005 10:43:28 -0000 Received: from unknown (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org with SMTP; 4 Jan 2005 10:43:28 -0000 Received: from sunsite.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.1/8.13.1) with ESMTP id j04AhRJH016938; Tue, 4 Jan 2005 11:43:27 +0100 Received: (from jj@localhost) by sunsite.mff.cuni.cz (8.13.1/8.13.1/Submit) id j04AhQKB016935; Tue, 4 Jan 2005 11:43:26 +0100 Date: Tue, 04 Jan 2005 10:43:00 -0000 From: Jakub Jelinek To: Greg Schafer Cc: binutils@sources.redhat.com Subject: Re: [PATCH] Re: ld testsuite breaks with latest GCC-4.0 Message-ID: <20050104104326.GR3168@sunsite.mff.cuni.cz> Reply-To: Jakub Jelinek References: <20050102044451.GA24007@tigers-lfs.nsw.bigpond.net.au> <20050102051144.GA8032@nevyn.them.org> <20050102062400.GA18827@tigers-lfs.nsw.bigpond.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050102062400.GA18827@tigers-lfs.nsw.bigpond.net.au> User-Agent: Mutt/1.4.1i X-SW-Source: 2005-01/txt/msg00013.txt.bz2 On Sun, Jan 02, 2005 at 05:24:00PM +1100, Greg Schafer wrote: > 2005-01-02 Greg Schafer > > * configure.host: Use "${CC} -dumpspecs" instead of > "${CC} --print-file-name=specs" to appease GCC versions >= 4.0. If there is a specs file, configure.host should use that and only use -dumpspecs if it is not present. -dumpspecs dumps the built-in specs, not the ones it finds on the filesystem. This can make a difference if specs is hand edited. So, I think the patch should use ${CC} --print-file-name=specs, if that prints just specs, it should use ${CC} -dumpspecs, otherwise cat the specs file. specs=`${CC} --print-file-name=specs` { if [ x"$specs" = xspecs ]; then ${CC} -dumpspecs; else cat "$specs"; fi; } \ | egrep ... Jakub