public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Greg Schafer <gschafer@zip.com.au>
Cc: binutils@sources.redhat.com
Subject: Re: [PATCH] Re: ld testsuite breaks with latest GCC-4.0
Date: Tue, 04 Jan 2005 10:43:00 -0000	[thread overview]
Message-ID: <20050104104326.GR3168@sunsite.mff.cuni.cz> (raw)
In-Reply-To: <20050102062400.GA18827@tigers-lfs.nsw.bigpond.net.au>

On Sun, Jan 02, 2005 at 05:24:00PM +1100, Greg Schafer wrote:

> 2005-01-02  Greg Schafer  <gschafer@zip.com.au>
> 
> 	* 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

  parent reply	other threads:[~2005-01-04 10:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-02  4:45 Greg Schafer
2005-01-02  5:11 ` Daniel Jacobowitz
2005-01-02  6:24   ` [PATCH] " Greg Schafer
2005-01-03 20:51     ` James E Wilson
2005-01-04 10:30     ` Nick Clifton
2005-01-04 10:43     ` Jakub Jelinek [this message]
2005-01-04 22:47       ` Greg Schafer
2005-01-06 12:25         ` Greg Schafer
2005-01-10 14:58           ` Nick Clifton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050104104326.GR3168@sunsite.mff.cuni.cz \
    --to=jakub@redhat.com \
    --cc=binutils@sources.redhat.com \
    --cc=gschafer@zip.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).