This is the mail archive of the
mailing list for the GCC project.
[Bug c/53072] automatically set Init() only if option was not set in some other way
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Apr 2012 13:59:10 +0000
- Subject: [Bug c/53072] automatically set Init() only if option was not set in some other way
- Auto-submitted: auto-generated
- References: <email@example.com/bugzilla/>
--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2012-04-24 13:59:10 UTC ---
On Sun, 22 Apr 2012, manu at gcc dot gnu.org wrote:
> The infrastructure to detect whether options have been set explicitly seems to
> be there, but it is not clear how to use it to fix the above problem.
My notion is that the _set information should move from being a boolean to
recording the "distance" of the option that set some field from that field
(it might be set by an option that directly corresponds to the field, or
by one indirectly implying it, or a default if no relevant option is given
at all). Distance is in the sense of appendix 1 of
This is explicitly not a detailed design; anyone implementing it would
need to flesh out the details.