This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20644] bogus uninitialized warning on unused variable
- 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: 22 Aug 2007 17:38:30 -0000
- Subject: [Bug middle-end/20644] bogus uninitialized warning on unused variable
- References: <bug-20644-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from manu at gcc dot gnu dot org 2007-08-22 17:38 -------
(In reply to comment #6)
> (In reply to comment #5)
> gcc version 4.1.0 20051106 (experimental)
> ../t6.c: In function ?foo?:
> ../t6.c:13: warning: ?j? is used uninitialized in this function
>
Despite what I said before, for this particular case, we should never give a
"is used" warning if the BB is not executed with 100% probability. Hmm, I'll
check whether we can detect this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20644