From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11082 invoked by alias); 4 Jan 2005 22:47:56 -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 10962 invoked from network); 4 Jan 2005 22:47:33 -0000 Received: from unknown (HELO tigers-lfs.local) (202.7.74.40) by sourceware.org with SMTP; 4 Jan 2005 22:47:33 -0000 Received: from gws by tigers-lfs.local with local (Exim 4.22) id 1ClxSc-0005Si-9P; Wed, 05 Jan 2005 09:47:30 +1100 Date: Tue, 04 Jan 2005 22:47:00 -0000 From: Greg Schafer To: Jakub Jelinek Cc: binutils@sources.redhat.com Subject: Re: [PATCH] Re: ld testsuite breaks with latest GCC-4.0 Message-ID: <20050104224730.GA20987@tigers-lfs.nsw.bigpond.net.au> References: <20050102044451.GA24007@tigers-lfs.nsw.bigpond.net.au> <20050102051144.GA8032@nevyn.them.org> <20050102062400.GA18827@tigers-lfs.nsw.bigpond.net.au> <20050104104326.GR3168@sunsite.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050104104326.GR3168@sunsite.mff.cuni.cz> User-Agent: Mutt/1.4.1i X-SW-Source: 2005-01/txt/msg00027.txt.bz2 On Tue, Jan 04, 2005 at 11:43:26AM +0100, Jakub Jelinek wrote: > 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. Agreed. That is the exact scenario I was concerned about and alluded to up thread. > 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 ... Yes. That would seem saner and definitely more robust. I'll try to make a new patch and test it but am running short on time right now.. so if someone beats me to it.. go right ahead. Also, prolly best to remove that ia64-aix cruft as confirmed by Jim Wilson. Thanks Greg