FIX #2276: foreign import stdcall "&foo" doesn't work
authorSimon Marlow <simonmar@microsoft.com>
Wed, 14 May 2008 08:24:22 +0000 (08:24 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 14 May 2008 08:24:22 +0000 (08:24 +0000)
commitbca74f3e6bde807d688e39e6de28112ebcb4fa49
tree2ab4303ef29a4d1741208b2aaaf79cfa636be1ee
parent13df6c59f92c81bbb53b8402bd28159faf4758f0
FIX #2276: foreign import stdcall "&foo" doesn't work
This turned out not to be too hard, just a matter of figuring out the
correct argument list size by peeking inside FunPtr's type argument,
and in the C backend we have to emit an appropriate prototype for the label.
compiler/cmm/CLabel.hs
compiler/cmm/PprC.hs
compiler/deSugar/DsForeign.lhs