[Bug tree-optimization/55060] False un-initialized variable warnings

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Oct 24 19:19:00 GMT 2012


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.



More information about the Gcc-bugs mailing list