public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: "Unruh\, Erwin" <erwin.unruh@ts.fujitsu.com>
Cc: GCC mailing list <gcc@gcc.gnu.org>
Subject: Re: order of -D and -U is significant
Date: Tue, 04 Aug 2009 15:20:00 -0000	[thread overview]
Message-ID: <m3ljlzhb8j.fsf@fleche.redhat.com> (raw)
In-Reply-To: <F827A1300CC73247B0255EEEA5FFFB3B012A8BABDE5B@ABGEX70E.FSC.NET> (Erwin Unruh's message of "Mon\, 3 Aug 2009 15\:52\:37 +0200")

>>>>> "Erwin" == Unruh, Erwin <erwin.unruh@ts.fujitsu.com> writes:

Erwin> In current gcc the order of options -D and -U is significant. The
Erwin> Single Unix(r) Specification explicitly specifies that the order
Erwin> should not matter for the c89 command. It reads (cited from
Erwin> version 2, which is ten years old):

Erwin> I did not find a justification for the current gcc
Erwin> behavior.

GCC's behavior is more useful.  And, given its age, I think it would be
a mistake to change it.

I think if you want the c89 behavior, a wrapper program of some kind
would be the way to go.

Tom

  parent reply	other threads:[~2009-08-04 15:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-03 13:52 Unruh, Erwin
2009-08-04  8:48 ` Paolo Bonzini
2009-08-04 13:59   ` Vincent Lefevre
2009-08-04 13:51 ` Vincent Lefevre
2009-08-04 15:20 ` Tom Tromey [this message]
2009-08-04 16:12   ` Joe Buck
2009-08-04 20:13     ` Ross Smith
2009-08-04 22:56       ` Joe Buck
2009-08-05  3:11         ` Vincent Lefevre
2009-08-05  9:17           ` Dave Korn
2009-08-05  9:35             ` Vincent Lefevre
2009-08-05  9:45               ` Dave Korn
2009-08-05 13:21             ` Joseph S. Myers
2009-08-05 15:59           ` Joe Buck

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=m3ljlzhb8j.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=erwin.unruh@ts.fujitsu.com \
    --cc=gcc@gcc.gnu.org \
    /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).