From 081dc0d925833f120fba56424513c9ae38192793 Mon Sep 17 00:00:00 2001 From: wolfgang Date: Sat, 7 May 2005 17:28:05 +0000 Subject: [PATCH] [project @ 2005-05-07 17:28:05 by wolfgang] GCC 4.0 Fix: Do not emit lvalue casts for foreign calls. Note: This fix might break cmm code that directly assigns the result of a foreign call to a "strange type" register (but we don't do that). MERGE TO STABLE --- ghc/compiler/cmm/PprC.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc/compiler/cmm/PprC.hs b/ghc/compiler/cmm/PprC.hs index 7804fb6..1cb5366 100644 --- a/ghc/compiler/cmm/PprC.hs +++ b/ghc/compiler/cmm/PprC.hs @@ -701,7 +701,7 @@ pprCall ppr_fn cconv results args vols where ppr_results [] = empty ppr_results [(one,hint)] - = pprExpr (CmmReg one) <> ptext SLIT(" = ") + = pprReg one <> ptext SLIT(" = ") <> pprUnHint hint (cmmRegRep one) ppr_results _other = panic "pprCall: multiple results" -- 1.7.10.4