gcc miscompiles csum_tcpudp_magic() on ARMv5

Nicolas Pitre nico at fluxnic.net
Thu Dec 12 13:07:58 EST 2013


On Thu, 12 Dec 2013, Russell King - ARM Linux wrote:

> static inline __sum16 csum_fold(__wsum sum)
> {
>         __asm__(
>         "add    %0, %1, %1, ror #16     @ csum_fold"
>         : "=r" (sum)
>         : "r" (sum)
>         : "cc");
>         return (__force __sum16)(~(__force u32)sum >> 16);
> }

There is no longer any flag updates so you should remove "cc" from the 
clobber list as well.


Nicolas



More information about the linux-arm-kernel mailing list