Re: GHC 4.01 FFI another bug -- more details

1999-01-16 Thread Manuel M. T. Chakravarty
"Manuel M. T. Chakravarty" <[EMAIL PROTECTED]> wrote, > If I link > > import Addr (Addr, nullAddr) > > foreign import ccall "foo" foo :: Int -> Addr -> IO () > > main = foo (id 32) nullAddr > > with > > void foo (int x, char *y) > { > printf ("foo: x = %d; y = %xl\n", x, (long)

RE: GHC 4.01 FFI another bug -- more details

1999-01-18 Thread Sigbjorn Finne (Intl Vendor)
Thanks for the report. Yep, the 4.01 code generator doesn't generate correct code for _casm_GC_ expressions. This bug was fixed some time ago (and will be included in 4.02) It's available via the CVS repository should you depend on having a working _ccall_GC_ impl right now though. --Sigbjorn >

RE: GHC 4.01 FFI another bug -- more details

1999-01-19 Thread Manuel M. T. Chakravarty
"Sigbjorn Finne (Intl Vendor)" <[EMAIL PROTECTED]> wrote, > Thanks for the report. Yep, the 4.01 code generator doesn't > generate correct code for _casm_GC_ expressions. This bug > was fixed some time ago (and will be included in 4.02) > It's available via the CVS repository should you depend >

RE: GHC 4.01 FFI another bug -- more details

1999-01-19 Thread Sigbjorn Finne (Intl Vendor)
Manuel M. T. Chakravarty <[EMAIL PROTECTED]> writes: > > "Sigbjorn Finne (Intl Vendor)" <[EMAIL PROTECTED]> wrote, > > > Thanks for the report. Yep, the 4.01 code generator doesn't > > generate correct code for _casm_GC_ expressions. This bug > > was fixed some time ago (and will be included i

RE: GHC 4.01 FFI another bug -- more details

1999-01-19 Thread Manuel M. T. Chakravarty
"Manuel M. T. Chakravarty" <[EMAIL PROTECTED]> wrote, > "Sigbjorn Finne (Intl Vendor)" <[EMAIL PROTECTED]> wrote, > > > Thanks for the report. Yep, the 4.01 code generator doesn't > > generate correct code for _casm_GC_ expressions. This bug > > was fixed some time ago (and will be included in 4