]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] SPARC32: Fix over-optimization by GCC near ip_fast_csum.
authorBob Breuer <breuerr@mc.net>
Fri, 2 Feb 2007 20:52:15 +0000 (12:52 -0800)
committerChris Wright <chrisw@sous-sol.org>
Mon, 5 Feb 2007 16:31:44 +0000 (08:31 -0800)
commit594fb7bd8f3b317c531af7d00fb0967fb67e968d
treeefa58a5e3843a24c5c02726a7dcdef213657658f
parent50d7d7e3c0ecbb01fc018434a23ec8b260c68473
[PATCH] SPARC32: Fix over-optimization by GCC near ip_fast_csum.

In some cases such as:
iph->check = 0;
iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
GCC may optimize out the previous store.

Observed as a failure of NFS over udp (bad checksums on ip fragments)
when compiled with GCC 3.4.2.

Signed-off-by: Bob Breuer <breuerr@mc.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
include/asm-sparc/checksum.h