« Return to Thread: [PATCH] Fix aliasing violation.

Re: [PATCH] Fix aliasing violation.

by Jonathan Larmour :: Rate this Message:

Reply to Author | View in Thread

David Woodhouse wrote:
> On Fri, 2008-10-03 at 09:39 -0400, bill wrote:
>> But we should use SMEMCPY.  I use a macro that converts this to a
>> series of inline load/stores.
>
> Isn't that the compiler's job?

Not all compilers do it. GCC does, and I expect that's what you're using.
For GCC, SMEMCPY can remain as memcpy.

Jifl
--
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------       Opinions==mine


_______________________________________________
lwip-devel mailing list
lwip-devel@...
http://lists.nongnu.org/mailman/listinfo/lwip-devel

 « Return to Thread: [PATCH] Fix aliasing violation.