[project @ 2005-05-07 17:28:05 by wolfgang]
authorwolfgang <unknown>
Sat, 7 May 2005 17:28:05 +0000 (17:28 +0000)
committerwolfgang <unknown>
Sat, 7 May 2005 17:28:05 +0000 (17:28 +0000)
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

index 7804fb6..1cb5366 100644 (file)
@@ -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"