From 6869e00cad046fdeeca3e4c5f6c883ca4007ac09 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 11 Jul 2005 09:10:58 +0000 Subject: [PATCH] [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. --- ghc/compiler/main/DynFlags.hs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"], [] ) -- 1.7.10.4