This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]