This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/55060] False un-initialized variable warnings
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 24 Oct 2012 19:18:51 +0000
- Subject: [Bug tree-optimization/55060] False un-initialized variable warnings
- Auto-submitted: auto-generated
- References: <bug-55060-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55060
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #3 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-10-24 19:18:51 UTC ---
This doesn't warn, so it seems there is something else going on apart from SRA.
static void b(int p) { }
int main(int argc, char *argv[]) {
int i;
b(i);
return 0;
}
Moving a(&i) after b(i) also prevents the warning.
Weird.