From: simonmar Date: Mon, 31 Oct 2005 11:53:42 +0000 (+0000) Subject: [project @ 2005-10-31 11:53:42 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~93 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=58786d7131b8842c5d50cb3ac4173753951cc343;p=ghc-hetmet.git [project @ 2005-10-31 11:53:42 by simonmar] x86_64: pass -fno-unit-at-a-time to gcc. See comment for details. --- diff --git a/ghc/compiler/main/DynFlags.hs b/ghc/compiler/main/DynFlags.hs index a7f02bf..1f88fea 100644 --- a/ghc/compiler/main/DynFlags.hs +++ b/ghc/compiler/main/DynFlags.hs @@ -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