On 03/01/10 23:19, Maxime Henrion wrote:
At that point I feel like this patch would be worth committing, minus
the libffi/ghc.mk hack and possibly name changes, so I'm even more eager
to hear about the advice of the GHC community.
I'd prefer to use something like elf_OBJ_FORMAT rather than
elf_TARGET_OS. We already have an OBJFORMAT_ELF in rts/Linker.c that
could be commoned up. Apart from this, the patch looks fine to me, I'd
be happy to see it go in.
Regarding the warnings, I think you may want to tweak this #ifdef in
nativeGen/X86/Ppr.hs:
pprTypeAndSizeDecl :: CLabel -> Doc
#if linux_TARGET_OS
pprTypeAndSizeDecl lbl
| not (externallyVisibleCLabel lbl) = empty
| otherwise = ptext (sLit ".type ") <>
pprCLabel_asm lbl <> ptext (sLit ", @object")
#else
pprTypeAndSizeDecl _
= empty
#endif
Cheers,
Simon
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc