gcc miscompiles csum_tcpudp_magic() on ARMv5

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Dec 12 10:43:09 EST 2013


On Thu, Dec 12, 2013 at 04:28:49PM +0100, Willy Tarreau wrote:
> On Thu, Dec 12, 2013 at 03:18:18PM +0000, Måns Rullgård wrote:
> > The ABI for function calls sign/zero-extends all arguments prior to the
> > call.
> 
> OK then that's pretty clear, there's no ambiguity, thanks for the precision.

Let's be clear about this: there is no GCC bug here - the kernel code
unfortunately what is buggy.  asm() input arguments are not subject to
this promotion irrespective of the ABI.



More information about the linux-arm-kernel mailing list