I've asked the question on the gcc devel list. The first reply was that MemSet violates strict aliasing rules:The concensus appears to be -fno-strict-aliasing
http://gcc.gnu.org/ml/gcc/2003-10/msg00524.html
I think we must either add -fno-strict-aliasing, or switch to the c compiler memset functions for gcc.
cheers
andrew
---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend