Hello,
On Mon, Feb 28, 2011 at 04:52:11PM +0000, Simon Marlow wrote:
> On 18/02/2011 08:31, Max Bolingbroke wrote:
> > ...
> >Unexpected failures:
> > 1288(normal)
> > 2276(normal)
> > 2276_ghci(ghci)
>
> These three are probably related to #3336. I'm guessing OS X doesn't
> support stdcall, so the conditional compilation in TcForeign.lhs (line
> 310) should be modified. Could someone with a Mac do that please?
From
> $ uname -a
> Darwin thorkil-naurs-intel-mac-mini.local 9.8.0 Darwin Kernel Version 9.8.0:
> Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
> $ echo '__attribute__((stdcall))f(int); int main() { f(123); }' | gcc -x c -S
> - -o x; cat x
> .text
> .globl _main
> _main:
> pushl %ebp
> movl %esp, %ebp
> subl $24, %esp
> movl $123, (%esp)
> call L_f$stub
> subl $4, %esp
> leave
> ret
> .section
> __IMPORT,__jump_table,symbol_stubs,self_modifying_code+pure_instructions,5
> L_f$stub:
> .indirect_symbol _f
> hlt ; hlt ; hlt ; hlt ; hlt
> .subsections_via_symbols
> $
it appears that stdcall is actually supported on an Intel Mac (the "subl
$4,..." that follows the call of f).
Best regards
Thorkil
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc