summaryrefslogtreecommitdiff
path: root/ghc/compiler
diff options
context:
space:
mode:
authorsimonm <unknown>1997-09-05 09:16:36 +0000
committersimonm <unknown>1997-09-05 09:16:36 +0000
commite3f0d880b7b74ed95059a8cddf3edf3e0d2f83c6 (patch)
treefbdb789de9515bb4945ac8248b35f46b77c41377 /ghc/compiler
parent189a7fc21556030618026d820ae1f9381a0d7032 (diff)
downloadhaskell-e3f0d880b7b74ed95059a8cddf3edf3e0d2f83c6.tar.gz
[project @ 1997-09-05 09:16:19 by simonm]Approximately_1000_patches_recorded
don't set $(WAYS) in ghc/mk/paths.mk, set it explicitly in the Makefiles where it is required (compiler/Makefile, lib/Makefile and runtime/Makefile). Remove the overriding of $(WAYS) from utils/*/Makefile. No need to eliminate warnings for overlapped patterns in Happy-generated parsers any more. Don't compile OccurAnal with -O if we're using a pre-version-2 GHC, since it seems there's an optimiser bug.
Diffstat (limited to 'ghc/compiler')
-rw-r--r--ghc/compiler/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile
index 25460e3114..721f190351 100644
--- a/ghc/compiler/Makefile
+++ b/ghc/compiler/Makefile
@@ -5,7 +5,7 @@ include $(TOP)/mk/boilerplate.mk
#-----------------------------------------------------------------------------
# Building hsc different ways (default is just `normal' sequential)
-override WAYS=$(GhcCompilerWays)
+WAYS=$(GhcCompilerWays)
#-----------------------------------------------------------------------------
# Set SUBDIRS
@@ -187,9 +187,9 @@ rename/ParseIface_HC_OPTS += -Onot -H16m
rename/ParseType_HC_OPTS += -Onot -H16m
rename/ParseUnfolding_HC_OPTS += -Onot -H30m
ifeq "$(Ghc2_0)" "YES"
-rename/ParseIface_HC_OPTS += -fno-warn-incomplete-patterns -fno-warn-overlapped-patterns
-rename/ParseType_HC_OPTS += -fno-warn-incomplete-patterns -fno-warn-overlapped-patterns
-rename/ParseUnfolding_HC_OPTS += -fno-warn-incomplete-patterns -fno-warn-overlapped-patterns
+rename/ParseIface_HC_OPTS += -fno-warn-incomplete-patterns
+rename/ParseType_HC_OPTS += -fno-warn-incomplete-patterns
+rename/ParseUnfolding_HC_OPTS += -fno-warn-incomplete-patterns
endif
ifeq "$(TARGETPLATFORM)" "hppa1.1-hp-hpux9"
@@ -221,6 +221,11 @@ utils/FastString_HC_OPTS = -fvia-C -monly-3-regs
utils/StringBuffer_HC_OPTS = -fvia-C
utils/Digraph_HC_OPTS = -fglasgow-exts -fvia-C
+# optimiser misbehaving in 0.29, occurrence analyser fails to terminate when
+# compiling lib/required/Time.lhs
+ifeq "$(Ghc2_0)" "NO"
+simplCore/OccurAnal_HC_OPTS = -Onot
+endif
# ----------------------------------------------------------------------------
# C compilations