On Sun, 2006-04-16 at 13:10 +0200, pHilipp Zabel wrote:
> Am I reading this correctly, is
>    memcpy(&p.target_ip, &target_ip, sizeof(p.target_ip));
> compiled into
>    ldr     r3, [sp, #112]
>    str     r3, [sp, #50]
>    str     r10, [sp]
> target_ip being at sp+112 and p.target_ip at sp+50?
> 
> I guess this is gcc's builtin memcpy inlining gone wrong.
> What could be done to fix this?

It seems, yeah.  Presumably "p" is a packed struct of some kind?  

What version of gcc are you using?  If it's 4.1 or the HEAD, probably
best to just file a report in the gcc bugzilla.

It'd be interesting to know whether the same version of gcc has the same
problem in a non eabi configuration, too.

p.


_______________________________________________
Oe mailing list
[email protected]
https://www.handhelds.org/mailman/listinfo/oe

Reply via email to