Hi,

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.

--sigbjorn



_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to