From 58786d7131b8842c5d50cb3ac4173753951cc343 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 31 Oct 2005 11:53:42 +0000 Subject: [PATCH] [project @ 2005-10-31 11:53:42 by simonmar] x86_64: pass -fno-unit-at-a-time to gcc. See comment for details. --- ghc/compiler/main/DynFlags.hs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 1.7.10.4