[ovs-dev] [PATCH] netdev: Fix strict-aliasing error in GCC 4.4

Justin Pettit jpettit at nicira.com
Tue Dec 15 08:25:24 UTC 2009


On Dec 14, 2009, at 9:16 PM, Ben Pfaff wrote:

> My favorite allowed form of aliasing (ha! I am geek!) is that
> character types are allowed to alias anything.  The memcpy
> function is required to copy data byte-by-byte ("as if" it was
> byte-by-byte, anyhow), so that means that you can use memcpy() to
> copy something into a region that has the "wrong type".

You were able to narrow it down to only a single favorite allowed form of aliasing?  I imagine that would be like my having to choose a favorite Jonas Brother.  Must have been tough.

Thanks for the lesson.  I've pushed the change as you described and credited you.

--Justin






More information about the dev mailing list