Handle LongArg's in the FFI on x86
authorIan Lynagh <igloo@earth.li>
Fri, 22 Dec 2006 14:15:54 +0000 (14:15 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 22 Dec 2006 14:15:54 +0000 (14:15 +0000)
compiler/ghci/ByteCodeFFI.lhs
compiler/ghci/ByteCodeGen.lhs

index 3e12828..982cdec 100644 (file)
@@ -263,7 +263,7 @@ mkMarshalCode_wrk cconv (r_offW, r_rep) addr_offW arg_offs_n_reps
            NonPtrArg -> i32
            DoubleArg -> f64  
            FloatArg  -> f32
-           -- LongArg -> i64
+           LongArg   -> i64
            VoidArg   -> []
            other     -> moan64 "ByteCodeFFI.mkMarshalCode_wrk(x86)" 
                                (ppr r_rep)
index bfc7d75..350148c 100644 (file)
@@ -954,6 +954,7 @@ mkDummyLiteral pr
         NonPtrArg -> MachWord 0
         DoubleArg -> MachDouble 0
         FloatArg  -> MachFloat 0
+        LongArg   -> MachWord64 0
         _         -> moan64 "mkDummyLiteral" (ppr pr)