This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13705] New: Should support -Wuninitialized without -O.
- From: "mattyt-bugzilla at tpg dot com dot au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2004 05:41:03 -0000
- Subject: [Bug optimization/13705] New: Should support -Wuninitialized without -O.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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