This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: order of -D and -U is significant
- From: Tom Tromey <tromey at redhat dot com>
- To: "Unruh\, Erwin" <erwin dot unruh at ts dot fujitsu dot com>
- Cc: GCC mailing list <gcc at gcc dot gnu dot org>
- Date: Tue, 04 Aug 2009 09:03:56 -0600
- Subject: Re: order of -D and -U is significant
- References: <F827A1300CC73247B0255EEEA5FFFB3B012A8BABDE5B@ABGEX70E.FSC.NET>
- Reply-to: tromey at redhat dot com
>>>>> "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