[project @ 2005-07-11 09:10:58 by simonmar]
authorsimonmar <unknown>
Mon, 11 Jul 2005 09:10:58 +0000 (09:10 +0000)
committersimonmar <unknown>
Mon, 11 Jul 2005 09:10:58 +0000 (09:10 +0000)
x86_64: Pass -fno-asynchronous-unwind-tables to gcc, which eliminates
some unnecessary junk from the via-C generated code and allows
-split-objs to work.

ghc/compiler/main/DynFlags.hs

index 05a6806..3b4d306 100644 (file)
@@ -1225,7 +1225,13 @@ machdepCCOpts dflags
        = ( [], ["-fomit-frame-pointer", "-G0"] )
 
 #elif x86_64_TARGET_ARCH
-       = ( [], ["-fomit-frame-pointer"] )
+       = ( [], ["-fomit-frame-pointer",
+                "-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.
+               ] )
 
 #elif mips_TARGET_ARCH
        = ( ["-static"], [] )