http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57341
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- Testing the patch together with the following Index: gcc/testsuite/gcc.dg/torture/pr57341.c =================================================================== --- gcc/testsuite/gcc.dg/torture/pr57341.c (revision 0) +++ gcc/testsuite/gcc.dg/torture/pr57341.c (working copy) @@ -0,0 +1,22 @@ +/* { dg-do run } */ +/* { dg-options "-msse" { target { i?86-*-* x86_64-*-* } } } */ + +int a, d; +int *b = &a, **c; +int +main () +{ + int e; + { + int f[4]; + for (d = 0; d < 4; d++) + f[d] = 1; + e = f[1]; + } + int *g[28] = { }; + *b = e; + c = &g[0]; + if (a != 1) + __builtin_abort (); + return 0; +}