X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FnativeGen%2FMachCode.lhs;h=85373b18a0da8a37d803a1a62c2e47b363484cdc;hb=f6ce418875ed08171c85352ca93010570708810d;hp=6769c33a0b0b2a0479dd5b7ba293186255eb7c96;hpb=3032c5d5262fbba05e0a482c9f306fdca5e363aa;p=ghc-hetmet.git diff --git a/ghc/compiler/nativeGen/MachCode.lhs b/ghc/compiler/nativeGen/MachCode.lhs index 6769c33..85373b1 100644 --- a/ghc/compiler/nativeGen/MachCode.lhs +++ b/ghc/compiler/nativeGen/MachCode.lhs @@ -2395,10 +2395,15 @@ genCCall fn cconv kind args -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #if sparc_TARGET_ARCH +-- Implement this! It should be im MachRegs.lhs, not here. +allArgRegs :: [Reg] +allArgRegs = error "nativeGen(sparc): allArgRegs" + genCCall fn cconv kind args = mapAccumLNat get_arg (allArgRegs, eXTRA_STK_ARGS_HERE) args `thenNat` \ ((unused,_), argCode) -> let + nRegs = length allArgRegs - length unused call = CALL fn__2 nRegs False code = concatOL argCode