gcc miscompiles csum_tcpudp_magic() on ARMv5

Maxime Bizon mbizon at freebox.fr
Thu Dec 12 10:04:17 EST 2013


On Thu, 2013-12-12 at 14:48 +0000, Russell King - ARM Linux wrote:

> Even so, the code _is_ buggy, because if the protocol value had bits
> 15-8 set, then this would go wrong for all the same reasons that
> you've found.  GCC is definitely ignoring the outter (uint16_t) cast
> in the above.

ok I'll file a gcc bug report to get their input on this.

-- 
Maxime






More information about the linux-arm-kernel mailing list