projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8f8d1eb
)
-O2 implies -optc-O2 now
author
Simon Marlow
<simonmar@microsoft.com>
Fri, 24 Feb 2006 12:40:33 +0000
(12:40 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Fri, 24 Feb 2006 12:40:33 +0000
(12:40 +0000)
ghc/compiler/main/DriverPipeline.hs
patch
|
blob
|
history
diff --git
a/ghc/compiler/main/DriverPipeline.hs
b/ghc/compiler/main/DriverPipeline.hs
index
171cecf
..
039c18a
100644
(file)
--- a/
ghc/compiler/main/DriverPipeline.hs
+++ b/
ghc/compiler/main/DriverPipeline.hs
@@
-847,6
+847,9
@@
runPhase cc_phase stop dflags basename suff input_fn get_output_fn maybe_loc
let excessPrecision = dopt Opt_ExcessPrecision dflags
+ let cc_opt | optLevel dflags >= 2 = "-O2"
+ | otherwise = "-O"
+
-- Decide next phase
let mangle = dopt Opt_DoAsmMangling dflags
@@
-891,7
+894,7
@@
runPhase cc_phase stop dflags basename suff input_fn get_output_fn maybe_loc
++ (if hcc
then more_hcc_opts
else [])
- ++ [ verb, "-S", "-Wimplicit", "-O" ]
+ ++ [ verb, "-S", "-Wimplicit", cc_opt ]
++ [ "-D__GLASGOW_HASKELL__="++cProjectVersionInt ]
++ cc_opts
++ split_opt