Skip to content
Snippets Groups Projects
Commit f50706ea authored by sven.panne@aedion.de's avatar sven.panne@aedion.de
Browse files

[project @ 1999-07-16 08:56:41 by panne]

More small portability changes:
   * For older GHCs use IOBase instead of PrelIOBase
   * Never use commas in SLIT. cpp IS a hack for Haskell...
parent 7dac0047
No related merge requests found
......@@ -819,8 +819,12 @@ pprInstr (FUNBEGIN clab)
where
pp_lab = pprCLabel_asm clab
pp_ldgp = ptext SLIT(":\n\tldgp $29,0($27)\n")
pp_frame = ptext SLIT("..ng:\n\t.frame $30,4240,$26,0\n\t.prologue 1")
-- NEVER use commas within those string literals, cpp will ruin your day
pp_ldgp = hcat [ ptext SLIT(":\n\tldgp $29"), char ',', ptext SLIT("0($27)\n") ]
pp_frame = hcat [ ptext SLIT("..ng:\n\t.frame $30"), char ',',
ptext SLIT("4240"), char ',',
ptext SLIT("$26"), char ',',
ptext SLIT("0\n\t.prologue 1") ]
pprInstr (FUNEND clab)
= (<>) (ptext SLIT("\t.align 4\n\t.end ")) (pprCLabel_asm clab)
......
......@@ -20,7 +20,11 @@ module RnMonad(
#include "HsVersions.h"
#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 302
import PrelIOBase ( fixIO ) -- Should be in GlaExts
#else
import IOBase ( fixIO )
#endif
import IOExts ( IORef, newIORef, readIORef, writeIORef, unsafePerformIO )
import HsSyn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment