> first time poster, long time listener :-) Possibly a known
> one, but the
> NCG in 4.08.1 doesn't emit suitably decorated names when calling
> out to 'foreign import'ed functions that use the stdcall
> calling convention,
> e.g.,
>
> sof$ cat foo.hs
> module Foo { foreign import stdcall decorateMe :: IO () }
> sof$ ghc-4.08.1 -S -c foo.hs -fglasgow-exts
> sof$ grep 'call _decorate' foo.s
> call _decorateMe
> sof$
>
> that should be 'call _decorateMe@0'
>
> The function to use to decorate stdcall names is
> CallConv.decorateExtName.
As far as I can tell, CallConv.decorateExtName has never been called
(checked all the way back to 4.02). Did this used to work at some point?
Cheers,
Simon
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs