[MLton] Port to HP-UX
Ville Laurikari
ville@laurikari.net
Mon, 24 Apr 2006 18:23:15 +0300
--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Mon, Apr 24, 2006 at 11:08:06AM -0400, Matthew Fluet wrote:
>
> >A patch is attached.
> No patch attached.
Oops, looks like I forgot it... Let's try that again.
> >- I edited runtime/gc.c to avoid some compiler warnings about
> > inapproriate format strings for pointer differences.
>
> Does HP-UX use its own C compiler rather than gcc? We don't observe
> format string warnings with gcc.
There's a native C compiler on HP-UX, but I'm not using that, I'm
using gcc 4.1.0. MLton seems to be very gcc specific, so I didn't
even try the native HP compiler.
Anyway, I'm getting warnings like this with gcc:
gc.c: In function 'GC_display':
gc.c:343: warning: format '%u' expects type 'unsigned int', but argument 9 has type 'long int'
gc.c:343: warning: format '%d' expects type 'int', but argument 10 has type 'long int'
gc.c:349: warning: format '%u' expects type 'unsigned int', but argument 4 has type 'long int'
gc.c:349: warning: format '%u' expects type 'unsigned int', but argument 5 has type 'long int'
It seems that on this platform, pointer arithmetic gives a result of
type 'long int' rather than 'int'.
--
http://www.iki.fi/vl/
--k1lZvvs/B4yU6o8G
Content-Type: application/x-gunzip
Content-Disposition: attachment; filename="mlton-20051202-hpux.patch.gz"
Content-Transfer-Encoding: base64
H4sICDfhTEQAA21sdG9uLTIwMDUxMjAyLWhwdXgucGF0Y2gA7Txpc+JIlp/LvyKHCldxWxzG
Nm7XNoWxzYxtCMDr6u3qUMgiAbVBYiXhY6r93/e9zNQthLA9sRMTpekxkO/I692ZqrE2mZCS
SUqP2t2KlEo6fSxNtDkli7lt6KWqJO1XqlJ1706xNKs01+5MxXzeW2iWurc0tYVmaw+0bC3m
IfzSUrHVGR1vpNsplUrb9vUBMUuVakmqEumwWavDf2XJeUhBAvhOoVB47ZiQf6Mk1UuVA1KV
mtVqc/8wwL8G/H/9lZQqxTop4J9ff90pZfOkbSyfTW06s0m2nSOVo6Mj1jm5oLr5TNr0T1vT
i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