From: simonmar Date: Tue, 8 Nov 2005 12:31:36 +0000 (+0000) Subject: [project @ 2005-11-08 12:31:36 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~60 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=2724902344992a88cc142a892b353466146b348d;hp=fd8ddfb9514a2d28352e052aae2ff04368d4bc10;p=ghc-hetmet.git [project @ 2005-11-08 12:31:36 by simonmar] unless I'm mistaken, only x86 needs -ffloat-store. x86_64 certainly doesn't need it, because it uses SSE2 with the correct-sized floating point registers and doesn't store temporary results with more precision than results in memory. --- diff --git a/ghc/compiler/main/DriverPipeline.hs b/ghc/compiler/main/DriverPipeline.hs index bdc0546..07fe113 100644 --- a/ghc/compiler/main/DriverPipeline.hs +++ b/ghc/compiler/main/DriverPipeline.hs @@ -872,7 +872,9 @@ runPhase cc_phase stop dflags basename suff input_fn get_output_fn maybe_loc ++ [ "-D__GLASGOW_HASKELL__="++cProjectVersionInt ] ++ cc_opts ++ split_opt +#if x86_TARGET_ARCH ++ (if excessPrecision then [] else [ "-ffloat-store" ]) +#endif ++ include_paths ++ pkg_extra_cc_opts ))