This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Re: ld testsuite breaks with latest GCC-4.0
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