This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Dubious "'foo' might be used uninitialized in this function" message
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Joe Buck'" <Joe dot Buck at synopsys dot COM>,"'Robert Dewar'" <dewar at adacore dot com>
- Cc: "'Dmitry Antipov'" <antipov at dev dot rtsoft dot ru>,<gcc at gcc dot gnu dot org>
- Date: Wed, 15 Dec 2004 18:01:16 -0000
- Subject: RE: Dubious "'foo' might be used uninitialized in this function" message
> -----Original Message-----
> From: gcc-owner On Behalf Of Joe Buck
> Sent: 15 December 2004 17:22
> This case and many other common cases that gcc gives false reports
> on could be solved by using a gated SSA approach (which would, as you
> suggest, determine that the two tests have the same truth value).
> However, using such an approach goes against the desire by many people
> that the warnings they get at -O0 be the same as those for
> higher levels.
Ummmm.. I thought the 'may be used uninited' warning could only occur at > O0
anyway?
cheers,
DaveK
--
Can't think of a witty .sigline today....