[project @ 2002-01-29 16:54:41 by sewardj]
authorsewardj <unknown>
Tue, 29 Jan 2002 16:54:41 +0000 (16:54 +0000)
committersewardj <unknown>
Tue, 29 Jan 2002 16:54:41 +0000 (16:54 +0000)
x86 only: remove special ccall support for calling PerformGC_wrapper
using dodgy-looking calling convention.  PerformGC_wrapper was last
seen alive in GHC 3.X, AFAIK.

ghc/compiler/nativeGen/MachCode.lhs

index 023225c..8c3937f 100644 (file)
@@ -2703,18 +2703,6 @@ genCCall fn cconv kind args
 
 #if i386_TARGET_ARCH
 
-genCCall fn cconv ret_rep [StInt i]
-  | isLeft fn && unLeft fn == SLIT ("PerformGC_wrapper")
-  = let call = toOL [
-                  MOV L (OpImm (ImmInt (fromInteger i))) (OpReg eax),
-                 CALL (Left (ImmLit (ptext (if   underscorePrefix 
-                                       then (SLIT ("_PerformGC_wrapper"))
-                                       else (SLIT ("PerformGC_wrapper"))))))
-               ]
-    in
-    returnNat call
-
-
 genCCall fn cconv ret_rep args
   = mapNat push_arg
            (reverse args)      `thenNat` \ sizes_n_codes ->