------- Comment #2 from pinskia at gcc dot gnu dot org 2008-05-07 09:43 ------- This is a normal issue with the unitialized warnings. See PR 5035. Basically to get this warning correct for this case, you need conditional PHIs which we don't have currently. And I don't know of any compiler that does.
Basically the code looks like: if (a) set b for(...) for(...) if (a) use b Unswitching the loops will help somewhat as then you can then jump thread. Thanks, Andrew Pinski -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |24639 nThis| | Severity|normal |enhancement Keywords|diagnostic | Known to fail|4.2.3 4.4.0 | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36168