public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/53072] New: automatically set Init() only if option was not set in some other way
@ 2012-04-22 16:51 manu at gcc dot gnu.org
  2012-04-24 13:59 ` [Bug c/53072] " joseph at codesourcery dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: manu at gcc dot gnu.org @ 2012-04-22 16:51 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53072
           Summary: automatically set Init() only if option was not set in
                    some other way
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: manu@gcc.gnu.org


Currently, it is possible to specify an initial value in the .opt file with
Init(). However, this value is set at the beginning, so it is (impossible?) to
know whether the value is the default or was set explicitly in some other way.
This is why many options are initialized to -1 instead.

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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-05-13 22:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-22 16:51 [Bug c/53072] New: automatically set Init() only if option was not set in some other way manu at gcc dot gnu.org
2012-04-24 13:59 ` [Bug c/53072] " joseph at codesourcery dot com
2012-04-24 14:11 ` manu at gcc dot gnu.org
2012-04-24 14:44 ` joseph at codesourcery dot com
2012-04-24 14:51 ` manu at gcc dot gnu.org
2012-04-24 15:09 ` joseph at codesourcery dot com
2012-04-28  0:17 ` manu at gcc dot gnu.org
2012-05-13 22:34 ` manu at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).