diff options
author | Ian Lynagh <igloo@earth.li> | 2008-07-10 12:48:27 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2008-07-10 12:48:27 +0000 |
commit | 0d792bea36420e657fb293d9f90f35d8ef96cb4f (patch) | |
tree | 5dcf00f71343dd76e6f7735e35651858f7d9c3ed | |
parent | a31cf953707dce54fc78bcffbd1773cc554dce8f (diff) | |
download | haskell-0d792bea36420e657fb293d9f90f35d8ef96cb4f.tar.gz |
Move some flags from the Makefile into module pragmas
-rw-r--r-- | compiler/Makefile | 8 | ||||
-rw-r--r-- | compiler/utils/Binary.hs | 4 | ||||
-rw-r--r-- | compiler/utils/Encoding.hs | 4 | ||||
-rw-r--r-- | compiler/utils/FastMutInt.lhs | 6 | ||||
-rw-r--r-- | compiler/utils/FastString.lhs | 4 | ||||
-rw-r--r-- | compiler/utils/StringBuffer.lhs | 4 |
6 files changed, 21 insertions, 9 deletions
diff --git a/compiler/Makefile b/compiler/Makefile index ea3e07b832..ea02562e87 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -645,14 +645,6 @@ endif # basicTypes/SrcLoc_HC_OPTS = -funbox-strict-fields -# We always optimise some low-level modules, otherwise performance of -# a non-optimised compiler is severely affected. -utils/Binary_HC_OPTS += -O -funbox-strict-fields -utils/FastMutInt_HC_OPTS += -O -utils/Encoding_HC_OPTS += -O -utils/StringBuffer_HC_OPTS += -O -funbox-strict-fields -utils/FastString_HC_OPTS += -O -funbox-strict-fields - # ---- Profiling ---- #simplCore/Simplify_HC_OPTS = -auto-all #simplCore/SimplEnv_HC_OPTS = -auto-all diff --git a/compiler/utils/Binary.hs b/compiler/utils/Binary.hs index 3d20609067..80d10cba66 100644 --- a/compiler/utils/Binary.hs +++ b/compiler/utils/Binary.hs @@ -1,4 +1,8 @@ {-# OPTIONS -cpp #-} +{-# OPTIONS_GHC -O -funbox-strict-fields #-} +-- We always optimise this, otherwise performance of a non-optimised +-- compiler is severely affected + -- -- (c) The University of Glasgow 2002-2006 -- diff --git a/compiler/utils/Encoding.hs b/compiler/utils/Encoding.hs index f2659e6a9a..c790f386a4 100644 --- a/compiler/utils/Encoding.hs +++ b/compiler/utils/Encoding.hs @@ -1,3 +1,7 @@ +{-# OPTIONS_GHC -O #-} +-- We always optimise this, otherwise performance of a non-optimised +-- compiler is severely affected + -- ----------------------------------------------------------------------------- -- -- (c) The University of Glasgow, 1997-2006 diff --git a/compiler/utils/FastMutInt.lhs b/compiler/utils/FastMutInt.lhs index 00aba34bba..e8ea58c8db 100644 --- a/compiler/utils/FastMutInt.lhs +++ b/compiler/utils/FastMutInt.lhs @@ -1,10 +1,14 @@ +\begin{code} {-# OPTIONS -cpp #-} +{-# OPTIONS_GHC -O #-} +-- We always optimise this, otherwise performance of a non-optimised +-- compiler is severely affected + -- -- (c) The University of Glasgow 2002-2006 -- -- Unboxed mutable Ints -\begin{code} module FastMutInt( FastMutInt, newFastMutInt, readFastMutInt, writeFastMutInt, diff --git a/compiler/utils/FastString.lhs b/compiler/utils/FastString.lhs index ac79b5b75f..f338002709 100644 --- a/compiler/utils/FastString.lhs +++ b/compiler/utils/FastString.lhs @@ -2,6 +2,10 @@ % (c) The University of Glasgow, 1997-2006 % \begin{code} +{-# OPTIONS_GHC -O -funbox-strict-fields #-} +-- We always optimise this, otherwise performance of a non-optimised +-- compiler is severely affected + {- FastString: A compact, hash-consed, representation of character strings. Comparison is O(1), and you can get a Unique from them. diff --git a/compiler/utils/StringBuffer.lhs b/compiler/utils/StringBuffer.lhs index d51c800fca..3b2a3df2c8 100644 --- a/compiler/utils/StringBuffer.lhs +++ b/compiler/utils/StringBuffer.lhs @@ -6,6 +6,10 @@ Buffers for scanning string input stored in external arrays. \begin{code} +{-# OPTIONS_GHC -O -funbox-strict-fields #-} +-- We always optimise this, otherwise performance of a non-optimised +-- compiler is severely affected + module StringBuffer ( StringBuffer(..), |