[Bug middle-end/39954] [4.5 Regression] Unaligned access in gcc.dg/torture/pr26565.c

hjl dot tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Apr 28 21:59:00 GMT 2009



------- Comment #2 from hjl dot tools at gmail dot com  2009-04-28 21:59 -------
(In reply to comment #1)
> I think this testcase is invalid really:
>     memcpy(&outdata->tv, tp, sizeof outdata->tv);
> 
> tv is packed and taking the address of a packed entry is not really a valid
> thing.
> 

I don't believe memcpy has any alignment requirements.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39954



More information about the Gcc-bugs mailing list