[MLton] Type-punned pointer warnings

Ville Laurikari ville@laurikari.net
Sat, 29 Apr 2006 18:48:30 +0300


Hi,

I just noticed that the warnings about how "dereferencing type-punned
pointer will break strict-aliasing rules" seem to depend on GCC
version, not operating system.  GCC 4.1.0 outputs the same warnings on
x86/linux, hppa/hpux, and powerpc/aix.

The union trick is the only one I've seen so far that works.  I don't
think this is a high priority problem, though, and wouldn't want to
interfere with the x86_64 work.

Which GCC versions are you guys working with?

-- 
http://www.iki.fi/vl/