This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32667] builtin operator= generates memcpy with overlapping memory regions
- From: "lu_zero at gentoo dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 05 Dec 2011 16:59:07 +0000
- Subject: [Bug middle-end/32667] builtin operator= generates memcpy with overlapping memory regions
- Auto-submitted: auto-generated
- References: <bug-32667-4@http.gcc.gnu.org/bugzilla/>
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;
}