summaryrefslogtreecommitdiff
path: root/ghc/compiler
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-03-07 09:38:00 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-03-07 09:38:00 +0000
commit646d6f52ec973d6ccef0bf3af7fc3a1291a4f418 (patch)
tree377dd4c72891598930690bba29a7501e32b77e5a /ghc/compiler
parentd1545b69b5fbcad3a95b86d9da389235da832b6d (diff)
downloadhaskell-646d6f52ec973d6ccef0bf3af7fc3a1291a4f418.tar.gz
x86_64: add -fno-builtin to gcc command line for .hc files.
This seems to be required now that we're stealing more registers.
Diffstat (limited to 'ghc/compiler')
-rw-r--r--ghc/compiler/main/DynFlags.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/ghc/compiler/main/DynFlags.hs b/ghc/compiler/main/DynFlags.hs
index b1eb4332ab..8f6ac1fee7 100644
--- a/ghc/compiler/main/DynFlags.hs
+++ b/ghc/compiler/main/DynFlags.hs
@@ -1266,11 +1266,15 @@ machdepCCOpts dflags
-- and get in the way of -split-objs. Another option
-- would be to throw them away in the mangler, but this
-- is easier.
- "-fno-unit-at-a-time"
+ "-fno-unit-at-a-time",
-- unit-at-a-time doesn't do us any good, and screws
-- up -split-objs by moving the split markers around.
-- It's only turned on with -O2, but put it here just
-- in case someone uses -optc-O2.
+ "-fno-builtin"
+ -- calling builtins like strlen() using the FFI can
+ -- cause gcc to run out of regs, so use the external
+ -- version.
] )
#elif mips_TARGET_ARCH