This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/26565] Unaligned accesses with __attribute__(packed) and memcpy
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Mar 2006 10:58:48 -0000
- Subject: [Bug middle-end/26565] Unaligned accesses with __attribute__(packed) and memcpy
- References: <bug-26565-2744@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rguenth at gcc dot gnu dot org 2006-03-06 10:58 -------
We indeed lose alignment information of outdata->tv. We start expanding
memcpy (&outdataD.1529->tvD.1528, tpD.1530, 4) [tail call]
with
(gdb) print dest_align
$1 = 32
so, builtins.c:get_pointer_alignment returns wrong (non conservative) results.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-03-06 10:58:47
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26565