From: simonmar Date: Mon, 11 Jul 2005 09:10:58 +0000 (+0000) Subject: [project @ 2005-07-11 09:10:58 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~388 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=6869e00cad046fdeeca3e4c5f6c883ca4007ac09;p=ghc-hetmet.git [project @ 2005-07-11 09:10:58 by simonmar] 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. --- diff --git a/ghc/compiler/main/DynFlags.hs b/ghc/compiler/main/DynFlags.hs index 05a6806..3b4d306 100644 --- a/ghc/compiler/main/DynFlags.hs +++ b/ghc/compiler/main/DynFlags.hs @@ -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"], [] )