[Bug driver/40960] POSIX requires that option -D have a lower precedence than -U

2018-06-16 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40960

Eric Gallager  changed:

   What|Removed |Added

   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=80535

--- Comment #6 from Eric Gallager  ---
(In reply to Eric Gallager from comment #5)
> 
> Confirmed, I think a configure option would be a good way to go about it.

Other options as mentioned in bug 80535 comment 1 include respecting the
POSIXLY_CORRECT environment variable, and/or adding a -posix-std= flag to
mirror the existing -std= flag for the language standard

[Bug driver/40960] POSIX requires that option -D have a lower precedence than -U

2017-09-16 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40960

Eric Gallager  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-09-16
 CC||egallager at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #5 from Eric Gallager  ---
(In reply to jos...@codesourcery.com from comment #4)
> 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".

Confirmed, I think a configure option would be a good way to go about it.