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

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 24 14:51:00 GMT 2012


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.



More information about the Gcc-bugs mailing list