FastString and StringBuffer need -funbox-strict-fields too
authorSimon Marlow <simonmar@microsoft.com>
Tue, 22 Aug 2006 14:33:37 +0000 (14:33 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 22 Aug 2006 14:33:37 +0000 (14:33 +0000)
For the benefit of old GHCs that don't understand {-# UNPACK #-}

compiler/Makefile

index 1d39804..e82adc8 100644 (file)
@@ -567,16 +567,14 @@ utils/Digraph_HC_OPTS             = -fglasgow-exts
 
 basicTypes/SrcLoc_HC_OPTS      = -funbox-strict-fields
 
-utils/Binary_HC_OPTS           = -funbox-strict-fields
-
 # We always optimise some low-level modules, otherwise performance of
 # a non-optimised compiler is severely affected.
 main/BinIface_HC_OPTS          += -O
-utils/Binary_HC_OPTS           += -O
+utils/Binary_HC_OPTS           += -O -funbox-strict-fields
 utils/FastMutInt_HC_OPTS       += -O
 utils/Encoding_HC_OPTS         += -O
-utils/StringBuffer_HC_OPTS     += -O
-utils/FastString_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