[Bug c/53072] automatically set Init() only if option was not set in some other way

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Tue Apr 24 15:09:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53072

--- Comment #5 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2012-04-24 15:09:34 UTC ---
On Tue, 24 Apr 2012, manu at gcc dot gnu.org wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53072
> 
> --- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-04-24 14:49:54 UTC ---
> (In reply to comment #3)
> > 
> > Init() should I think ideally be just for the defaults (with _set 
> > replacing the present uses of -1 or 2 in Init to mean "not set").
> 
> Do you think it is possible to implement just this last part with _set being a
> boolean? The code handling -Wb would still need to check explicitly that -Wc is
> "not set", but the .opt file infrastructure will take care to set the value
> Init() when "not set" after all command-line options have been processed.

It may be possible - you'd need to avoid implicit setting marking the 
implied option as "set" - and I don't think delaying processing of Init() 
will actually be helpful anyway.



More information about the Gcc-bugs mailing list