From d813d1652cafa0f840b4b38a2a4c0b0502c781e4 Mon Sep 17 00:00:00 2001 From: sewardj Date: Thu, 6 Sep 2001 10:03:32 +0000 Subject: [PATCH] [project @ 2001-09-06 10:03:32 by sewardj] Fix cpp-inspired sparc breakage. Sigh. --- ghc/compiler/typecheck/TcForeign.lhs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ghc/compiler/typecheck/TcForeign.lhs b/ghc/compiler/typecheck/TcForeign.lhs index 3236ec0..ab0961e 100644 --- a/ghc/compiler/typecheck/TcForeign.lhs +++ b/ghc/compiler/typecheck/TcForeign.lhs @@ -161,7 +161,8 @@ checkFEDArgs arg_tys where words_of_args = sum (map (getPrimRepSize . typePrimRep) arg_tys) err = ptext SLIT("On SPARC, I can only handle 4 words of arguments to foreign export dynamic") -#elsif alpha_TARGET_ARCH +#else +#if alpha_TARGET_ARCH checkFEDArgs arg_tys = check (integral_args <= 4) err where @@ -171,6 +172,7 @@ checkFEDArgs arg_tys #else checkFEDArgs arg_tys = returnNF_Tc () #endif +#endif \end{code} -- 1.7.10.4