summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-04-29 12:59:00 +0100
committerIan Lynagh <igloo@earth.li>2011-04-29 12:59:00 +0100
commit28e92f3622eaf5ea28cb6226aa41cee8ad69681d (patch)
tree03b550d9d1778f34bf49f5eeb6cc29a7f4749b85 /compiler
parent3451da4b9e740a432738def3acb077af1da52ee3 (diff)
downloadhaskell-28e92f3622eaf5ea28cb6226aa41cee8ad69681d.tar.gz
Move the machdepCCOpts flags into cCcOpts
This will ultimately mean they end up in the settings file, rather than being hardcoded. We now unconditionally give -D_REENTRANT on alpha, but I think that's probably the right thing to do nowadays anyway.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/main/DynFlags.hs23
1 files changed, 1 insertions, 22 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index 732d9b4616..f5d4be3928 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -2201,28 +2201,7 @@ setOptHpcDir arg = upd $ \ d -> d{hpcDir = arg}
-- platform.
machdepCCOpts :: DynFlags -> [String] -- flags for all C compilations
-machdepCCOpts _ = cCcOpts ++ machdepCCOpts'
-
-machdepCCOpts' :: [String] -- flags for all C compilations
-machdepCCOpts'
-#if alpha_TARGET_ARCH
- = ["-w", "-mieee"
-#ifdef HAVE_THREADED_RTS_SUPPORT
- , "-D_REENTRANT"
-#endif
- ]
- -- For now, to suppress the gcc warning "call-clobbered
- -- register used for global register variable", we simply
- -- disable all warnings altogether using the -w flag. Oh well.
-
-#elif hppa_TARGET_ARCH
- -- ___HPUX_SOURCE, not _HPUX_SOURCE, is #defined if -ansi!
- -- (very nice, but too bad the HP /usr/include files don't agree.)
- = ["-D_HPUX_SOURCE"]
-
-#else
- = []
-#endif
+machdepCCOpts _ = cCcOpts
picCCOpts :: DynFlags -> [String]
picCCOpts _dflags