[Bug tree-optimization/35653] [4.3/4.4 Regression]: gcc-4.3 -O3/-ftree-vectorize regression: incorrect code generation
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Mar 24 16:48:00 GMT 2008
------- Comment #12 from rguenth at gcc dot gnu dot org 2008-03-24 16:48 -------
I tend to agree with Andrew here. If you go through a packed union the failure
vanishes:
union U {
unsigned u;
}__attribute__((packed));
int main()
{
char buf[256];
char *dest;
int i;
dest = &buf[2];
for (i = 0; i < 32; i++)
{
((union U *)dest)->u = 0;
dest += 4;
}
return buf[2];
}
So, IMHO this bug is invalid.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35653
More information about the Gcc-bugs
mailing list