This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/20644] bogus uninitialized warning on unused variable



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]