Commit 3a6b1bfb authored by Simon Marlow's avatar Simon Marlow

Turn on -O2 for the RTS by default

Optimisation now makes a difference when compiling .cmm code, because
it enables the optimisation passes in CmmPipeline.  Recently validate
has not been optimising the .cmm code because it uses SRC_HC_OPTS=-O0,
which explains why I couldn't reproduce #7366 in validate (the bug
miscompiled rts/PrimOps.cmm).
parent ee43ad52
...@@ -360,9 +360,11 @@ LAX_DEPENDENCIES = NO ...@@ -360,9 +360,11 @@ LAX_DEPENDENCIES = NO
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# Options for GHC's RTS # Options for GHC's RTS
# For an optimised RTS (you probably don't want to change these; we build # Build an optimised RTS. Remember that we need to turn on
# a debugging RTS by default now. Use -debug to get it). # optimisation both for C code (-optc-O2) and .cmm code (-O2). For
GhcRtsHcOpts=-optc-O2 # the debugging RTS flavour, rts/ overrides these to turn off
# optimisation.
GhcRtsHcOpts=-optc-O2 -O2
GhcRtsCcOpts=-fomit-frame-pointer GhcRtsCcOpts=-fomit-frame-pointer
# Include the front panel code? Needs GTK+. # Include the front panel code? Needs GTK+.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment