Make more arch-specific #if's exclusive with #else #error cases
authorDuncan Coutts <duncan@haskell.org>
Thu, 7 Feb 2008 17:00:20 +0000 (17:00 +0000)
committerDuncan Coutts <duncan@haskell.org>
Thu, 7 Feb 2008 17:00:20 +0000 (17:00 +0000)
commit1529e92a2b4942dd0fdd95e56adaf97c316d2e39
tree60ba39119d8d8205d1a5f40a3a1da1c997ce9490
parentbcbdcc2b6cdb98312593d938aeb667e9a161e98a
Make more arch-specific #if's exclusive with #else #error cases
So when the next person compiles the Sparc NCG it should fail more
obviously at compile time rather than panicing at runtime.
Plus one obvious fix for LocalReg gaining an extra param
Missing bits of Sparc NCG:
  * genSwitch for generating jump tables. This is the most tricky one.
  * ALLOCATABLE_REGS_INTEGER and ALLOCATABLE_REGS_DOUBLE just requires
    finding and verifying the values. The nearby comment describes how.
  * isRegRegMove and mkRegRegMoveInstr. Sparc uses Or for int move, check
    what this is supposed to do for single and double float types.
  * regDotColor. Probably just copy the ppc impl.
compiler/nativeGen/MachCodeGen.hs
compiler/nativeGen/MachRegs.lhs
compiler/nativeGen/RegAllocInfo.hs
compiler/nativeGen/RegAllocStats.hs