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

             Bug #: 53063
           Summary: encode group options in the .opt files
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: m...@gcc.gnu.org


Encoding group options in the .opt files will help to delete a lot of code and
fix a lot of bugs in the way options enabled by other options are handled. For
example,

Wall
C ObjC C++ ObjC++ Warning
Enable most warning messages
Enables(Wwhatever, Wfoo=2)
EnablesIf((optimize >= 2), Warray-bounds)
EnablesIf((c_dialect_cxx ()), Wsign-compare, Wreorder, Wnarrowing)

Suggestions on how to implement this are welcome.

Reply via email to