[Bug middle-end/32667] builtin operator= generates memcpy with overlapping memory regions
lu_zero at gentoo dot org
gcc-bugzilla@gcc.gnu.org
Mon Dec 5 17:00:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32667
lu_zero at gentoo dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lu_zero at gentoo dot org
--- Comment #6 from lu_zero at gentoo dot org 2011-12-05 16:59:07 UTC ---
Doesn't seem.
Here a reduced testcase courtesy of Mans Rullgard
struct foo {
int x[64];
};
void __attribute__((noinline)) foo(struct foo *a, struct foo *b)
{
*a = *b;
}
int main(void)
{
struct foo a = { 0 };
foo(&a, &a);
return 0;
}
More information about the Gcc-bugs
mailing list