[Bug middle-end/32667] builtin operator= generates memcpy with overlapping memory regions
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jul 8 19:46:00 GMT 2007
------- Comment #3 from rguenth at gcc dot gnu dot org 2007-07-08 19:46 -------
No, this doesn't have anything to do with aliasing. 4.3 simply inlines the
memcpys. This is probably a middle-end issue with expanding structure
assignments. 2.95 and 3.3 also expanded the calls inline. 3.4 does not,
likewise 4.0, 4.1 and 4.2.
Note that this is likely not a problem in practice as memcpy (p, p, sizeof
(*p))
is difficult to implement in a way that would make it not work. So,
downgrading
severity.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
Severity|major |normal
Status|UNCONFIRMED |NEW
Component|c++ |middle-end
Ever Confirmed|0 |1
Keywords| |wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2007-07-08 19:46:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32667
More information about the Gcc-bugs
mailing list