This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32132] bogus warning at -O3 ( 'r' may be used uninitialized in this function ).
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 May 2007 12:57:06 -0000
- Subject: [Bug c++/32132] bogus warning at -O3 ( 'r' may be used uninitialized in this function ).
- References: <bug-32132-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from manu at gcc dot gnu dot org 2007-05-29 12:57 -------
(In reply to comment #9)
> (In reply to comment #8)
> > (In reply to comment #6)
> > >
> > > so, is it still an invalid testcase?
> >
> > Does the warning show up with -O1 and -O2 ?
> >
>
> only with -O3.
>
That is a bug by itself. Using more optimisations could result in some cases
clearing out (and thus, less warnings). It should never result in more
warnings.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32132