[Bug middle-end/26565] Unaligned accesses with __attribute__(packed) and memcpy

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Mar 6 10:58:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list