public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Richard.Earnshaw@arm.com
Cc: Richard Sandiford <rsandifo@redhat.com>,
	John David Anglin <dave@hiauly1.hia.nrc.ca>,
	gcc-patches@gcc.gnu.org
Subject: Re: RFC: New approach to --with-cpu
Date: Thu, 01 Aug 2002 06:25:00 -0000	[thread overview]
Message-ID: <20020801132523.GA6794@nevyn.them.org> (raw)
In-Reply-To: <200208011303.OAA20776@cam-mail2.cambridge.arm.com>

On Thu, Aug 01, 2002 at 02:03:26PM +0100, Richard Earnshaw wrote:
> > On Thu, Aug 01, 2002 at 11:56:17AM +0100, Richard Earnshaw wrote:
> > > > Daniel Jacobowitz <drow@mvista.com> writes:
> > > > > +#ifdef TARGET_DEFAULT_OPTION_CPU
> > > > > +  if (TARGET_DEFAULT_CPU_P ())
> > > > > +    add_option (argcp, argvp, "-mcpu=" XSTRING (TARGET_DEFAULT_OPTION_CPU));
> > > > > +#endif
> > > > 
> > > > Sorry, didn't notice first time.  Is it OK to use string
> > > > concatenation in gcc.c?
> > > 
> > > No, I don't think so. It isn't available (that way) in K+R C.
> > 
> > You're right, I should be using concat().  Before I fix that, does
> > anyone know whether XSTRING() works in K&R C, or whether I need to do
> > this with some extra quoting from configure?
> 
> I would have said that XSTRING was OK.  It would be a rather perverse K+R 
> compiler that didn't support either
> 
> #define STRINGX(s) "s"
> or 
> #define STRINGX(s) #s
> 
> to get stringification.

I know that STRINGX works; I'm just not sure how K&R compilers handle
the extra level of indirection in XSTRING.  Don't have one to test
with, and README.Portability is silent.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

  reply	other threads:[~2002-08-01 13:25 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20020801125224.GA5374@nevyn.them.org>
2002-08-01  6:04 ` Richard Earnshaw
2002-08-01  6:25   ` Daniel Jacobowitz [this message]
2002-07-30 18:54 John David Anglin
2002-07-30 23:03 ` Daniel Jacobowitz
2002-07-31  7:53   ` John David Anglin
2002-07-31  8:09     ` Daniel Jacobowitz
2002-07-31  8:30       ` Richard Earnshaw
2002-07-31  9:02         ` Daniel Jacobowitz
2002-07-31 10:34           ` John David Anglin
2002-07-31 13:27             ` Daniel Jacobowitz
2002-08-01  3:31               ` Richard Sandiford
2002-08-01  3:57                 ` Richard Earnshaw
2002-08-01  8:15               ` John David Anglin
2002-08-01  8:23                 ` Daniel Jacobowitz
2002-08-01 11:40                   ` John David Anglin
2002-08-01  6:30             ` Richard Earnshaw
2002-08-01  7:41               ` John David Anglin
  -- strict thread matches above, loose matches on Subject: below --
2002-07-30 15:27 Daniel Jacobowitz
2002-07-31  6:35 ` Richard Sandiford
2002-07-31  6:41   ` Daniel Jacobowitz
2002-07-31  6:54     ` Richard Sandiford
2002-07-31  7:28       ` Daniel Jacobowitz
2002-07-31  7:36         ` Richard Sandiford
2002-07-31  7:46           ` Daniel Jacobowitz
2002-07-31  7:50             ` Richard Sandiford
2002-07-31  8:04               ` Daniel Jacobowitz

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=20020801132523.GA6794@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=dave@hiauly1.hia.nrc.ca \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=rsandifo@redhat.com \
    /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).