This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/22456] [4.1 regression] missing "is used uninitialized" warning
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jul 2005 11:46:33 -0000
- Subject: [Bug middle-end/22456] [4.1 regression] missing "is used uninitialized" warning
- References: <20050713113947.22456.reichelt@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-13 11:46 -------
Hmm, the loop is empty therefore removed.
I don't know if we want to have a is used uninitilzed warning for an empty loop and dead code
afterwards.
In a way this is just like:
void f(void)
{
int i;
if (i)
i = 0;
}
Do we want a warning for that case or not?
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-07-13 11:46:32
date| |
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22456