[project @ 2005-10-31 11:53:42 by simonmar]
authorsimonmar <unknown>
Mon, 31 Oct 2005 11:53:42 +0000 (11:53 +0000)
committersimonmar <unknown>
Mon, 31 Oct 2005 11:53:42 +0000 (11:53 +0000)
x86_64: pass -fno-unit-at-a-time to gcc.  See comment for details.

ghc/compiler/main/DynFlags.hs

index a7f02bf..1f88fea 100644 (file)
@@ -1246,11 +1246,16 @@ machdepCCOpts dflags
 
 #elif x86_64_TARGET_ARCH
        = ( [], ["-fomit-frame-pointer",
-                "-fno-asynchronous-unwind-tables"
+                "-fno-asynchronous-unwind-tables",
                        -- the unwind tables are unnecessary for HC code,
                        -- 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"
+                       -- 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.
                ] )
 
 #elif mips_TARGET_ARCH