This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/13705] New: Should support -Wuninitialized without -O.


If you try to do a -Wuninitialized without -O (to any level) you'll currently
get the warning:

cc1plus: warning: -Wuninitialized is not supported without -O

This seems to me to be a case of letting implementation details affect the user
interface.  Compiler users typically don't care about the implementation of flow
analysis and the like.

Couldn't the relevant flow analysis be done when -O *or* -Wuninitialized was
specified?

It also seems like someone might want to do a -Wuninitialized without any
optimisation, for debugging purposes.  Just because you build up the flow
analysis, doesn't mean you need to use it for optimisation.

-- 
           Summary: Should support -Wuninitialized without -O.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mattyt-bugzilla at tpg dot com dot au
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]