[project @ 1997-09-05 09:16:19 by simonm] Approximately_1000_patches_recorded
authorsimonm <unknown>
Fri, 5 Sep 1997 09:16:36 +0000 (09:16 +0000)
committersimonm <unknown>
Fri, 5 Sep 1997 09:16:36 +0000 (09:16 +0000)
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.

13 files changed:
ghc/compiler/Makefile
ghc/lib/Makefile
ghc/mk/paths.mk
ghc/runtime/Makefile
ghc/utils/Makefile
ghc/utils/hp2ps/Makefile
ghc/utils/hscpp/Makefile
ghc/utils/hstags/Makefile
ghc/utils/mkdependHS/Makefile
ghc/utils/parallel/Makefile
ghc/utils/stat2resid/Makefile
ghc/utils/ugen/Makefile
ghc/utils/unlit/Makefile

index 25460e3..721f190 100644 (file)
@@ -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
index 0bb3945..62e5c3b 100644 (file)
@@ -10,6 +10,8 @@
 TOP = ..
 include $(TOP)/mk/boilerplate.mk
 
+WAYS=$(GhcLibWays)
+
 ifeq "$(way)" ""
 SUBDIRS = cbits
 ifeq ($(IncludeTestDirsInBuild),YES)
index 0b73d49..3a69dd0 100644 (file)
@@ -13,9 +13,6 @@ PROJECTPATCHLEVEL=$(GhcProjectPatchLevel)
 #HC                    = $(WithGhcHc)
 HaskellCompilerType    = $(WithGhcHcType)
 
-# What ways to build the RTS+libs
-WAYS=$(GhcLibWays)
-
 GCap=-optc-DGCap
 #GC2s=-optc-DGC2s
 #GC1s=-optc-DGC1s
index fe0aa56..23e7ac4 100644 (file)
@@ -1,5 +1,5 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.9 1997/08/25 21:32:14 sof Exp $
+# $Id: Makefile,v 1.10 1997/09/05 09:16:28 simonm Exp $
 
 #  This is the Makefile for the runtime-system stuff.
 #  This stuff is written in C (and cannot be written in Haskell).
@@ -29,6 +29,8 @@ TOP=..
 DoingRTS=YES
 include $(TOP)/mk/boilerplate.mk
 
+WAYS=$(GhcLibWays)
+
 #
 # A general rule for the grand mk setup is that in a build tree, only
 # directories that don't have any subdirs containing Makefiles are built
index edb0ece..5b07482 100644 (file)
@@ -1,12 +1,6 @@
 TOP=..
 include $(TOP)/mk/boilerplate.mk
 
-#
-# No ways stuff in here (and further below), please
-#
-override WAYS=
-export WAYS=
-
 ifneq "$(BIN_DIST_NAME)" ""
 # We're doing a binary-dist, descend into a subset of the dirs.
 SUBDIRS = hp2ps hscpp hstags mkdependHS stat2resid unlit
index ce02c5e..521c2a8 100644 (file)
@@ -1,6 +1,5 @@
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
-override WAYS=
 
 C_SRCS  = $(wildcard *.c)
 H_SRCS  = $(wildcard *.h)
index ba69ac6..cfd5082 100644 (file)
@@ -1,6 +1,5 @@
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
-override WAYS=
 
 SCRIPT_PROG=hscpp
 SCRIPT_OBJS=hscpp.prl
index 56ba3b1..3653ec3 100644 (file)
@@ -1,9 +1,6 @@
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
 
-# No ways
-override WAYS=
-
 # Note: might be overridden from cmd-line (see install rule below)
 INSTALLING=0
 
index 83b8de1..126581b 100644 (file)
@@ -2,8 +2,6 @@ TOP=../..
 include $(TOP)/mk/boilerplate.mk
 INSTALLING=0
 
-override WAYS=
-
 boot :: all
 
 SCRIPT_PROG=mkdependHS
index b2ebf84..094c5cb 100644 (file)
@@ -1,9 +1,6 @@
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
 
-# Ways? what ways?
-WAYS=
-
 PERL_PROGS = \
   grs2gr gr2qp qp2ps ghc-fool-sort ghc-unfool-sort gr2pe gr2java \
   qp2ap gr2RTS RTS2gran gran-extr gp-ext-imp tf avg-RTS SPLIT \
index e8da102..4b3fad1 100644 (file)
@@ -1,9 +1,9 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.7 1997/09/03 23:29:20 sof Exp $
+# $Id: Makefile,v 1.8 1997/09/05 09:16:34 simonm Exp $
 
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
-override WAYS=
+
 DYN_LOADABLE_BITS = \
        parse-gcstats.prl \
        process-gcstats.prl
index f1ed1b1..fcc834f 100644 (file)
@@ -1,9 +1,8 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.5 1997/09/03 23:28:47 sof Exp $
+# $Id: Makefile,v 1.6 1997/09/05 09:16:35 simonm Exp $
 
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
-override WAYS=
 
 YACC_OPTS += -d
 C_SRCS = syntax.tab.c lex.c id.c tree.c yyerror.c gen.c main.c
index a23895c..943a23f 100644 (file)
@@ -1,6 +1,5 @@
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
-override WAYS=
 
 C_SRCS=unlit.c
 C_PROG=unlit