summaryrefslogtreecommitdiff
path: root/compiler/nativeGen
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/nativeGen')
-rw-r--r--compiler/nativeGen/PositionIndependentCode.hs1
-rw-r--r--compiler/nativeGen/PprMach.hs1
-rw-r--r--compiler/nativeGen/Regs.hs2
3 files changed, 3 insertions, 1 deletions
diff --git a/compiler/nativeGen/PositionIndependentCode.hs b/compiler/nativeGen/PositionIndependentCode.hs
index d74a627d0a..a1e11d8a34 100644
--- a/compiler/nativeGen/PositionIndependentCode.hs
+++ b/compiler/nativeGen/PositionIndependentCode.hs
@@ -70,6 +70,7 @@ import Instrs
import NCGMonad ( NatM, getNewRegNat, getNewLabelNat )
import StaticFlags ( opt_PIC, opt_Static )
+import BasicTypes
import Pretty
import qualified Outputable
diff --git a/compiler/nativeGen/PprMach.hs b/compiler/nativeGen/PprMach.hs
index 1e6f45847d..55e3930786 100644
--- a/compiler/nativeGen/PprMach.hs
+++ b/compiler/nativeGen/PprMach.hs
@@ -30,6 +30,7 @@ import BlockId
import Cmm
import Regs -- may differ per-platform
import Instrs
+import Regs
import CLabel ( CLabel, pprCLabel, externallyVisibleCLabel,
labelDynamic, mkAsmTempLabel, entryLblToInfoLbl )
diff --git a/compiler/nativeGen/Regs.hs b/compiler/nativeGen/Regs.hs
index 51eb0f093b..c93ecdda0e 100644
--- a/compiler/nativeGen/Regs.hs
+++ b/compiler/nativeGen/Regs.hs
@@ -61,7 +61,7 @@ module Regs (
freg,
sp, r3, r4, r27, r28, f1, f20, f21,
-#elif i386_TARGET_ARCH || i386_64_TARGET_ARCH
+#elif i386_TARGET_ARCH || x86_64_TARGET_ARCH
EABase(..), EAIndex(..), addrModeRegs,
eax, ebx, ecx, edx, esi, edi, ebp, esp,