This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/40960] POSIX requires that option -D have a lower precedence than -U
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Aug 2009 14:54:14 -0000
- Subject: [Bug c/40960] POSIX requires that option -D have a lower precedence than -U
- References: <bug-40960-6373@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from joseph at codesourcery dot com 2009-08-04 14:54 -------
Subject: Re: POSIX requires that option -D have a lower precedence
than -U
On Tue, 4 Aug 2009, vincent at vinc17 dot org wrote:
> There would the possibility to have a POSIX mode implied by c99, but I don't
> think having different behaviors would be a good idea. IMHO, Makefiles should
I think that installing a variant driver program as "c99", that implements
the different semantics, is exactly the right thing to do here; the
present semantics are more useful for "gcc". We should have a configure
option to install "cc", "c89" and "c99" drivers; they should have
appropriate defaults regarding e.g. standards mode, and should also adjust
the precedence of these options and make any other adjustments required by
POSIX that aren't appropriate for "gcc".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40960