simonmar [Tue, 3 Sep 2002 15:34:11 +0000 (15:34 +0000)]
[project @ 2002-09-03 15:34:11 by simonmar]
Exception => Control.Exception
GlaExts => GHC.Exts
simonmar [Tue, 3 Sep 2002 15:33:10 +0000 (15:33 +0000)]
[project @ 2002-09-03 15:32:16 by simonmar]
GlaExts => GHC.Exts
simonmar [Tue, 3 Sep 2002 15:14:54 +0000 (15:14 +0000)]
[project @ 2002-09-03 15:14:54 by simonmar]
GlaExts => GLAEXTS
simonmar [Tue, 3 Sep 2002 14:39:06 +0000 (14:39 +0000)]
[project @ 2002-09-03 14:39:06 by simonmar]
Just hit a problem caused by gcc 3.1+: it uses instructions like
movl %esi, 4(%esp)
in the prologue, which the mangler wasn't expecting. This might fix
problems that other people have been seeing with gcc 3.1 on x86.
MERGE TO STABLE
simonmar [Tue, 3 Sep 2002 14:07:03 +0000 (14:07 +0000)]
[project @ 2002-09-03 14:07:03 by simonmar]
stg_sig_install: restore the old signal mask at the end, rather than
unconditionally unblocking the signal we just installed the handler for.
simonpj [Tue, 3 Sep 2002 11:27:33 +0000 (11:27 +0000)]
[project @ 2002-09-03 11:27:33 by simonpj]
More comments
simonpj [Mon, 2 Sep 2002 16:39:19 +0000 (16:39 +0000)]
[project @ 2002-09-02 16:39:19 by simonpj]
Wibble in demand analyser; no need to merge
simonpj [Mon, 2 Sep 2002 16:38:24 +0000 (16:38 +0000)]
[project @ 2002-09-02 16:38:24 by simonpj]
Fix an obscure bug in an optimisation for 'coerce' which
wasn't taking account of the possiblity of type arguments.
MERGE TO STABLE
simonpj [Mon, 2 Sep 2002 16:37:13 +0000 (16:37 +0000)]
[project @ 2002-09-02 16:37:13 by simonpj]
Fix an obscure bug in the creation of default methods for class
ops with higher-rank type. See the comments with
TcClassDcl.mkDefMethRhs
Test is should_compile/tc161
MERGE TO STABLE
simonpj [Mon, 2 Sep 2002 16:31:34 +0000 (16:31 +0000)]
[project @ 2002-09-02 16:31:34 by simonpj]
Do not specialise functions that take implicit parameters.
The specialisation mechanism doesn't work for them, because
their implicit args are not driven by their type args (unlike
the implicit dictionary parameters)
MERGE TO STABLE
simonmar [Mon, 2 Sep 2002 13:06:30 +0000 (13:06 +0000)]
[project @ 2002-09-02 13:06:30 by simonmar]
revert part of previous commit; looks like it was accidental
mthomas [Sun, 1 Sep 2002 00:34:21 +0000 (00:34 +0000)]
[project @ 2002-09-01 00:34:21 by mthomas]
Foreign does not export C.String so CString and peekCString are undefined.
simonpj [Fri, 30 Aug 2002 15:17:00 +0000 (15:17 +0000)]
[project @ 2002-08-30 15:17:00 by simonpj]
Add notes about linear implicit parameters
simonmar [Fri, 30 Aug 2002 12:21:16 +0000 (12:21 +0000)]
[project @ 2002-08-30 12:21:16 by simonmar]
oops, 'make Foo.s' in ghc/rts was completely busted
MERGE TO STABLE
simonmar [Fri, 30 Aug 2002 09:14:02 +0000 (09:14 +0000)]
[project @ 2002-08-30 09:14:02 by simonmar]
Remove unused import of PrelPack (should fix the build again)
simonmar [Thu, 29 Aug 2002 15:44:23 +0000 (15:44 +0000)]
[project @ 2002-08-29 15:44:11 by simonmar]
Housekeeping:
- The main goal is to remove dependencies on hslibs for a
bootstrapped compiler, leaving only a requirement that the
packages base, haskell98 and readline are built in stage 1 in
order to bootstrap. We're almost there: Posix is still required
for signal handling, but all other dependencies on hslibs are now
gone.
Uses of Addr and ByteArray/MutableByteArray array are all gone
from the compiler. PrimPacked defines the Ptr type for GHC 4.08
(which didn't have it), and it defines simple BA and MBA types to
replace uses of ByteArray and MutableByteArray respectively.
- Clean up import lists. HsVersions.h now defines macros for some
modules which have moved between GHC versions. eg. one now
imports 'GLAEXTS' to get at unboxed types and primops in the
compiler.
Many import lists have been sorted as per the recommendations in
the new style guidelines in the commentary.
I've built the compiler with GHC 4.08.2, 5.00.2, 5.02.3, 5.04 and
itself, and everything still works here. Doubtless I've got something
wrong, though.
simonpj [Thu, 29 Aug 2002 13:38:45 +0000 (13:38 +0000)]
[project @ 2002-08-29 13:38:45 by simonpj]
Fix eta-expansion bug, which led to an infinite loop in
CoreUtils.etaExpand. This showed up when compiling FranTk.
MERGE TO STABLE
simonmar [Thu, 29 Aug 2002 12:57:34 +0000 (12:57 +0000)]
[project @ 2002-08-29 12:57:34 by simonmar]
Add notes about DEBUG and GHCI.
simonmar [Thu, 29 Aug 2002 11:52:42 +0000 (11:52 +0000)]
[project @ 2002-08-29 11:52:42 by simonmar]
update (readline has moved)
simonmar [Thu, 29 Aug 2002 11:47:46 +0000 (11:47 +0000)]
[project @ 2002-08-29 11:47:46 by simonmar]
Add a ToDo note.
ken [Wed, 28 Aug 2002 19:28:02 +0000 (19:28 +0000)]
[project @ 2002-08-28 19:28:02 by ken]
Further mangler changes to get ghc working with gcc 3.04 on the Alpha.
Jeff Lewis: "The compiler was sometimes emitting the $..ng label for a symbol
before the regular label. This really confused the mangler, and it completely
scrambled the file."
simonmar [Wed, 28 Aug 2002 16:02:52 +0000 (16:02 +0000)]
[project @ 2002-08-28 16:02:51 by simonmar]
Add the beginnings of the "Coding Style Guidelines" for ghc/compiler.
simonmar [Wed, 28 Aug 2002 13:02:51 +0000 (13:02 +0000)]
[project @ 2002-08-28 13:02:51 by simonmar]
Remove duplicate sched_belch() call from raiseAsync().
simonpj [Wed, 28 Aug 2002 11:29:42 +0000 (11:29 +0000)]
[project @ 2002-08-28 11:29:42 by simonpj]
Add notes about data types
simonmar [Wed, 28 Aug 2002 09:24:15 +0000 (09:24 +0000)]
[project @ 2002-08-28 09:24:15 by simonmar]
Fix braino in previous commit
MERGE TO STABLE
simonmar [Tue, 27 Aug 2002 09:38:43 +0000 (09:38 +0000)]
[project @ 2002-08-27 09:38:43 by simonmar]
- If the same module is defined in multiple "root" source files, then
complain. Before, the compiler would silently ignore one of them.
- Remove some unuseed imports
MERGE TO STABLE
simonmar [Tue, 27 Aug 2002 09:34:20 +0000 (09:34 +0000)]
[project @ 2002-08-27 09:34:20 by simonmar]
Fix a bug in the cleaning up of temporary files: we were wrongly
cleaning the temporary pre-processed source files for stable modules,
with the result that the compiler would panic the next time they were
required.
Reported ages ago by: Hal Duame.
MERGE TO STABLE
simonmar [Tue, 27 Aug 2002 09:12:53 +0000 (09:12 +0000)]
[project @ 2002-08-27 09:12:53 by simonmar]
Replace "Funny global thing" with a better error message, as suggested
by Alastair Reid. The message is:
Warning: retaining unknown function `$_' in output from C compiler
("unknown function" is a bit vague, but I couldn't come up with an
alternative that wasn't misleading).
sof [Fri, 23 Aug 2002 20:59:29 +0000 (20:59 +0000)]
[project @ 2002-08-23 20:59:29 by sof]
bring write() proto into scope
ken [Wed, 21 Aug 2002 22:06:03 +0000 (22:06 +0000)]
[project @ 2002-08-21 22:06:02 by ken]
Use __DISCARD__ to prevent overly aggressive optimization by certain
gcc versions on the Alpha. Thanks to Jeffrey Lewis!
simonmar [Wed, 21 Aug 2002 16:02:58 +0000 (16:02 +0000)]
[project @ 2002-08-21 16:02:58 by simonmar]
Add link to Mark Jones' paper on functional dependencies, in lieu of
real documentation.
simonmar [Wed, 21 Aug 2002 12:58:56 +0000 (12:58 +0000)]
[project @ 2002-08-21 12:58:56 by simonmar]
fromInt ==> fromIntegral
simonmar [Wed, 21 Aug 2002 10:44:26 +0000 (10:44 +0000)]
[project @ 2002-08-21 10:44:26 by simonmar]
Oops, string literals were using mkFastStringNarrow instead of
mkFastString, with the result that characters >= 256 were being
truncated modulo 256.
MERGE TO STABLE
simonmar [Tue, 20 Aug 2002 10:32:48 +0000 (10:32 +0000)]
[project @ 2002-08-20 10:32:48 by simonmar]
Fix a buglet in CorePrep: an expression such as
case __coerce (\x -> e) :: T of { ... }
would be left as is, but the lambda expression should really be
abstracted as a let (causes a panic later in srtExpr; shown up by
the dynamic001 test). There was a missing call to deLam in the case
for Case expressions in corePrepExprFloat.
In addition, I made a new version of deLam, deLamFloat, which can
float any bindings generated. This helps to generate slightly cleaner
code in the above case (the binding is floated out of the scrutinee).
Also: GC unused imports while I'm here.
simonmar [Mon, 19 Aug 2002 16:02:26 +0000 (16:02 +0000)]
[project @ 2002-08-19 16:02:26 by simonmar]
Protect against divide by zero when there have been zero major GCs in
the one-line stats mode.
simonmar [Mon, 19 Aug 2002 08:38:36 +0000 (08:38 +0000)]
[project @ 2002-08-19 08:38:36 by simonmar]
oops, rts_n_free_capabilities is used in an inline function.
simonmar [Fri, 16 Aug 2002 14:30:21 +0000 (14:30 +0000)]
[project @ 2002-08-16 14:30:21 by simonmar]
Use an stg_ap_2 thunk rather than an AP_UPD in rts_apply(). Saves one
word per rts_apply(), and a little time too.
simonmar [Fri, 16 Aug 2002 13:29:07 +0000 (13:29 +0000)]
[project @ 2002-08-16 13:29:05 by simonmar]
Global and common variable sweep: staticize many variables that don't
need to be globally visible.
simonmar [Fri, 16 Aug 2002 13:28:22 +0000 (13:28 +0000)]
[project @ 2002-08-16 13:28:22 by simonmar]
Re-order the checks in HP_STK_CHK and HP_STK_CHK_NP: if the stack
check failed before the heap check, then we would get bogus allocation
results.
simonmar [Fri, 16 Aug 2002 13:20:36 +0000 (13:20 +0000)]
[project @ 2002-08-16 13:20:36 by simonmar]
large_alloc_list seems to be a fossil; remove it
simonmar [Fri, 16 Aug 2002 09:36:36 +0000 (09:36 +0000)]
[project @ 2002-08-16 09:36:36 by simonmar]
Be a bit clearer about the current directory when GHCi is started, and
mention that you might have to ':cd' to the right place before you can
load something.
sof [Wed, 14 Aug 2002 14:06:25 +0000 (14:06 +0000)]
[project @ 2002-08-14 14:06:25 by sof]
If booting unregisterised, add -DNO_REGS -DUSE_MINIINTERPRETER
to PLATFORM_HC_BOOT_CC_OPTS
simonmar [Tue, 13 Aug 2002 10:13:40 +0000 (10:13 +0000)]
[project @ 2002-08-13 10:13:40 by simonmar]
Update docs about not using Float.
sof [Mon, 12 Aug 2002 14:40:25 +0000 (14:40 +0000)]
[project @ 2002-08-12 14:40:25 by sof]
HC_BOOT_LD_OPTS:
- if needed, include ghc/rts/gmp on -L list.
- sync -u list wrt ghc/rts/rts.conf.in
sof [Fri, 9 Aug 2002 22:16:03 +0000 (22:16 +0000)]
[project @ 2002-08-09 22:16:03 by sof]
oops, YES is NO
sof [Fri, 9 Aug 2002 22:13:51 +0000 (22:13 +0000)]
[project @ 2002-08-09 22:13:51 by sof]
UseGhcForCc: don't use "ifneq" to control its setting; too strict.
Resort to a $(shell ..) hack.
sof [Fri, 9 Aug 2002 21:28:10 +0000 (21:28 +0000)]
[project @ 2002-08-09 21:28:09 by sof]
Added GHC_MANGLER_DIR, GHC_SPLIT_DIR + fix .raw_s -> .s bootstrap suffix rule
sof [Fri, 9 Aug 2002 20:59:41 +0000 (20:59 +0000)]
[project @ 2002-08-09 20:59:41 by sof]
NON_HS_PKG vs NON_HS_PACKAGE confusion - NON_HS_PACKAGE wins
simonmar [Tue, 6 Aug 2002 13:43:35 +0000 (13:43 +0000)]
[project @ 2002-08-06 13:43:35 by simonmar]
Make this compile, and maybe even work
simonmar [Mon, 5 Aug 2002 11:11:46 +0000 (11:11 +0000)]
[project @ 2002-08-05 11:11:44 by simonmar]
- Update the old coding style document
- Move it to the commentary under the "RTS & libs" section
simonmar [Mon, 5 Aug 2002 10:11:04 +0000 (10:11 +0000)]
[project @ 2002-08-05 10:11:03 by simonmar]
Overhaul the debugging flags. The old bitfield mechanism was a bit
silly, so now instead of writing -D129 (the one I use most) you can
now write -DSs. Each debugging option has a single character assigned
to it, documented in the -? help text.
simonmar [Mon, 5 Aug 2002 09:18:27 +0000 (09:18 +0000)]
[project @ 2002-08-05 09:18:27 by simonmar]
We have to turn off the buffering on stdout, stdin & stderr after
every time we revert all CAFs, not just when starting up GHCi.
MERGE TO STABLE
simonmar [Fri, 2 Aug 2002 13:08:35 +0000 (13:08 +0000)]
[project @ 2002-08-02 13:08:33 by simonmar]
PrimRep Cleanup
- Remove all PrimReps which were just different flavours of
PtrRep. Now, everything which is a pointer to a closure of
some kind is always a PtrRep.
- Three of the deleted PrimReps, namely ArrayRep, ByteArrayRep,
and ForeignObj rep, had a subtle reason for their existence:
the abstract C pretty-printer(!) used them to decide whether
to apply a shim to an outgoing C-call argument: a ByteArrayRep
argument would be adjusted to point past the object header,
for example.
I've changed this to happen in a much more reasonable and
obvious way: there are now explict macros in AbsCSyn to do the
adjustment, and the code generator makes calls to these as
necessary. Slightly less hackery is necessary in the NCG as
a result.
simonmar [Fri, 2 Aug 2002 12:24:04 +0000 (12:24 +0000)]
[project @ 2002-08-02 12:24:04 by simonmar]
Pass -fno-builtin to gcc when compiling .hc files, because this avoids
a common cause of running out of registers when foreign calls to
functions like memcpy(), strlen() are made from Haskell.
MERGE
simonmar [Fri, 2 Aug 2002 11:17:15 +0000 (11:17 +0000)]
[project @ 2002-08-02 11:17:15 by simonmar]
Remove out-of-date comment
simonmar [Fri, 2 Aug 2002 09:44:26 +0000 (09:44 +0000)]
[project @ 2002-08-02 09:44:26 by simonmar]
Mention that --show-iface is needed for viewing interface files.
simonpj [Thu, 1 Aug 2002 14:34:42 +0000 (14:34 +0000)]
[project @ 2002-08-01 14:34:42 by simonpj]
Make the byte-code generator understand about unboxed
tuple returns. The previous code was just wrong.
This code is better but it is still not *right*, I fear.
Don't merge till we sort this out.
simonpj [Thu, 1 Aug 2002 14:13:11 +0000 (14:13 +0000)]
[project @ 2002-08-01 14:13:10 by simonpj]
Another rebindable-syntax wibble; merge to stable branch
simonpj [Thu, 1 Aug 2002 12:49:41 +0000 (12:49 +0000)]
[project @ 2002-08-01 12:49:41 by simonpj]
Comments only
simonpj [Thu, 1 Aug 2002 12:49:06 +0000 (12:49 +0000)]
[project @ 2002-08-01 12:49:06 by simonpj]
More documentation about hoisting
simonmar [Wed, 31 Jul 2002 14:11:14 +0000 (14:11 +0000)]
[project @ 2002-07-31 14:11:13 by simonmar]
Detect Python (any version).
simonmar [Wed, 31 Jul 2002 12:17:35 +0000 (12:17 +0000)]
[project @ 2002-07-31 12:17:35 by simonmar]
Remove unused primRepTyCon
sof [Tue, 30 Jul 2002 17:35:59 +0000 (17:35 +0000)]
[project @ 2002-07-30 17:35:59 by sof]
wibble
simonpj [Tue, 30 Jul 2002 11:49:18 +0000 (11:49 +0000)]
[project @ 2002-07-30 11:49:17 by simonpj]
Wibble to yestdays commit re module versioning
sof [Tue, 30 Jul 2002 03:42:56 +0000 (03:42 +0000)]
[project @ 2002-07-30 03:42:56 by sof]
hc-file-bundle:
* only include the .hsc-derived .hs files that exist in the build tree.
* updated to include current happy-derived .hs files
simonpj [Mon, 29 Jul 2002 16:12:08 +0000 (16:12 +0000)]
[project @ 2002-07-29 16:12:07 by simonpj]
** MERGE TO STABLE **
1. Make TidyPgm forget IdInfo for exported things. This is
really important for the recompilation checker; see the
commment with TidyPgm.tidyTopIdInfo
Fixes a bug reported by Sigbjorn.
2. Make CoreToStg more robust, by avoiding the duplicate
calculation of update flag for top-level closures
simonpj [Mon, 29 Jul 2002 16:08:20 +0000 (16:08 +0000)]
[project @ 2002-07-29 16:08:20 by simonpj]
Comment only
simonpj [Mon, 29 Jul 2002 13:19:53 +0000 (13:19 +0000)]
[project @ 2002-07-29 13:19:52 by simonpj]
** MERGE TO STABLE **
Fix an alpha-renaming bug in hoistForAlls
simonpj [Mon, 29 Jul 2002 12:22:38 +0000 (12:22 +0000)]
[project @ 2002-07-29 12:22:37 by simonpj]
*** MERGE TO STABLE BRANCH ***
Surprisingly large delta to make rebindable names work properly.
I was sloppily not checking the type of the user-supplied name,
and Ashley Yakeley's first experiment showed up the problem!
Solution: typechecker has to check both the 'standard' name and
the 'user' name and check the latter has a type compatible with the
former.
The main comment is with Inst.tcSyntaxName (a new function).
simonmar [Mon, 29 Jul 2002 11:22:31 +0000 (11:22 +0000)]
[project @ 2002-07-29 11:22:31 by simonmar]
Back out previous commit; -static is on by default and we don't want
to always pass -static to the linker.
simonmar [Mon, 29 Jul 2002 10:50:44 +0000 (10:50 +0000)]
[project @ 2002-07-29 10:50:43 by simonmar]
Type variables created by the typechecker didn't have the correct
NameSpace: they were in the Var namespace rather than the TyVar
namespace, which can lead to strange warnings about quantified type
variables being not mentioned in the type when DEBUG is on.
Name:
- added mkSystemNameEncoded for use when the string
is already encoded (saves re-encoding the string every
time)
- added mkSystemTvNameEncoded for making a type variable
name, as above
Var:
- use mkSystemTvNameEncoded when making type variables
Id:
- add mkSysLocalUnencoded for the (rare) case when
the string needs encoding
TcMType:
- use mkSystemTvNameEncoded rather than mkSystemName for
making type variables
SetLevels:
- use mkSysLocalUnencoded since the names generated here
need encoding.
simonmar [Mon, 29 Jul 2002 10:42:29 +0000 (10:42 +0000)]
[project @ 2002-07-29 10:42:29 by simonmar]
Add -static to the linker command line when -static is passed to GHC.
At some point we might want a way to say that Haskell libraries should
be linked statically but everything else should be linked as normal,
but since we aren't really supporting dynamic Haskell libraries at
this time, we don't need to address that yet.
simonpj [Mon, 29 Jul 2002 09:11:04 +0000 (09:11 +0000)]
[project @ 2002-07-29 09:11:04 by simonpj]
More informative crash in rdrNameModule
krasimir [Sun, 28 Jul 2002 14:10:03 +0000 (14:10 +0000)]
[project @ 2002-07-28 14:10:03 by krasimir]
Documentation for #size
krasimir [Sun, 28 Jul 2002 13:55:32 +0000 (13:55 +0000)]
[project @ 2002-07-28 13:55:32 by krasimir]
add `size` macro
sof [Sun, 28 Jul 2002 02:31:11 +0000 (02:31 +0000)]
[project @ 2002-07-28 02:31:11 by sof]
include stdlib.h (to get at NULL)
simonmar [Fri, 26 Jul 2002 09:35:46 +0000 (09:35 +0000)]
[project @ 2002-07-26 09:35:46 by simonmar]
Always return 8-byte-aligned memory from arenaAlloc(). Fixes problems
with profiling on sparc-sun-solaris2, and might fix problems with
Windows too.
MERGE
sof [Fri, 26 Jul 2002 03:06:58 +0000 (03:06 +0000)]
[project @ 2002-07-26 03:06:58 by sof]
interactiveLoop{mingw32}: always show prompt under mingw.
hIsTerminalDevice returns True iff stdin is connected to a Console
under Win32. Which it is when running in a command shell
(DOS,bash etc.), but Emacs sub-shells don't get a Console of their
own when invoked. So, just disable this feature (whose motivation
somewhat escapes me.)
sof [Thu, 25 Jul 2002 18:37:00 +0000 (18:37 +0000)]
[project @ 2002-07-25 18:36:59 by sof]
Expose printAllThreads() in non-DEBUG builds;
of some use when debugging ConcHask code and
want a dump of the current state of the system's
threads.
Not provided via a library, so to use, do
foreign import call unsafe printAllThreads :: IO ()
simonmar [Thu, 25 Jul 2002 14:47:30 +0000 (14:47 +0000)]
[project @ 2002-07-25 14:47:30 by simonmar]
Add -ddump-minimal-imports (not sure why this was missing)
MERGE
sof [Wed, 24 Jul 2002 18:18:13 +0000 (18:18 +0000)]
[project @ 2002-07-24 18:18:13 by sof]
warning removal
simonmar [Wed, 24 Jul 2002 09:47:49 +0000 (09:47 +0000)]
[project @ 2002-07-24 09:47:49 by simonmar]
Documentation for #offset
simonmar [Wed, 24 Jul 2002 09:44:37 +0000 (09:44 +0000)]
[project @ 2002-07-24 09:44:37 by simonmar]
Add #offset for just grabbing the byte offset of a struct field.
krasimir [Wed, 24 Jul 2002 06:27:01 +0000 (06:27 +0000)]
[project @ 2002-07-24 06:27:01 by krasimir]
add GhcLibsWithObjectIO
sof [Wed, 24 Jul 2002 03:38:58 +0000 (03:38 +0000)]
[project @ 2002-07-24 03:38:58 by sof]
awaitEvent: if select() reports EBADF,
always unblock all waiting threads, even if
the prior invocation of select() also
elicited an EBADF.
The 'smart' that was there previously runs
the risk of working against us (if the EBADFs are
coming from different fds), so the above
scheme is preferable (and simpler.)
krasimir [Tue, 23 Jul 2002 22:42:18 +0000 (22:42 +0000)]
[project @ 2002-07-23 22:42:17 by krasimir]
add --enable-objectio configuration option
ken [Tue, 23 Jul 2002 20:03:48 +0000 (20:03 +0000)]
[project @ 2002-07-23 20:03:48 by ken]
Change "rm" in example makefile to "rm -f",
in case there is no .o file to remove
simonpj [Tue, 23 Jul 2002 14:58:16 +0000 (14:58 +0000)]
[project @ 2002-07-23 14:58:16 by simonpj]
Use tcLookupId, not tcLookupGlobalId, in Inst.newMethodFromName
This really only affects the behaviour with -fno-implicit-prelude
*** MERGE TO STABLE BRANCH ***
simonpj [Tue, 23 Jul 2002 14:57:11 +0000 (14:57 +0000)]
[project @ 2002-07-23 14:57:11 by simonpj]
a) Correct precedence for application in derived
Read/Show
b) Spaces round '=' in derived Show for records
*** MERGE TO STABLE BRANCH ***
sof [Tue, 23 Jul 2002 13:30:12 +0000 (13:30 +0000)]
[project @ 2002-07-23 13:30:12 by sof]
find ~=> $(FIND)
simonmar [Tue, 23 Jul 2002 11:25:27 +0000 (11:25 +0000)]
[project @ 2002-07-23 11:25:27 by simonmar]
if $(STAMP_PKG_CONF) is non-null, then wait for it before generating
dependencies. This avoids a race with 'make -j' where package.conf
could get modified while the compiler is reading it.
simonmar [Tue, 23 Jul 2002 11:23:55 +0000 (11:23 +0000)]
[project @ 2002-07-23 11:23:55 by simonmar]
Don't re-run ghc-pkg if the package conf files haven't changed. We
use a stamp file rather than adding an explicit dependency on
ghc/driver/package.conf{,.inplace} for reasons explained in a comment.
simonmar [Tue, 23 Jul 2002 10:12:01 +0000 (10:12 +0000)]
[project @ 2002-07-23 10:12:01 by simonmar]
Use $(HADDOCK) rather than $(HADDOCK_INPLACE)
simonmar [Tue, 23 Jul 2002 10:10:28 +0000 (10:10 +0000)]
[project @ 2002-07-23 10:10:28 by simonmar]
Add $(HADDOCK) pointing to the Haddock to use (src tree or installed)
simonmar [Tue, 23 Jul 2002 10:09:51 +0000 (10:09 +0000)]
[project @ 2002-07-23 10:09:51 by simonmar]
- Invoke FPTOOLS_HADDOCK to find an installed Haddock
- Add an option --use-src-tree-haddock to mirror --use-src-tree-happy
simonmar [Tue, 23 Jul 2002 10:08:58 +0000 (10:08 +0000)]
[project @ 2002-07-23 10:08:58 by simonmar]
Add FPTOOLS_HADDOCK to detect an installed version of Haddock.
stolz [Mon, 22 Jul 2002 15:32:42 +0000 (15:32 +0000)]
[project @ 2002-07-22 15:32:41 by stolz]
Last bunch of OpenBSD-implicated autoconf-changes
from Donald Bruce Stewart <dons@cse.unsw.edu.au>.
simonpj [Mon, 22 Jul 2002 14:29:13 +0000 (14:29 +0000)]
[project @ 2002-07-22 14:29:13 by simonpj]
Add a note about pattern-matching with -fno-implicit-prelude
simonmar [Mon, 22 Jul 2002 10:02:13 +0000 (10:02 +0000)]
[project @ 2002-07-22 10:02:13 by simonmar]
Add a comment to note that Stg.h must be included before system
headers (this was always the case, but is now more important because
it is often necessary to #include system headers where it wasn't
previously).
panne [Sun, 21 Jul 2002 11:46:34 +0000 (11:46 +0000)]
[project @ 2002-07-21 11:46:34 by panne]
Long explanation for small commit:
With the recent reorganization of #includes, things get a little bit
fragile: When gcc with -O is used, glibc's <stdio.h> defines a few
inline functions (see <bits/stdio.h>), and "Stg.h" defines some global
variables which reside in registers. But the latter must happen
*before* any function definition has been seen, otherwise the
generated code could be invalid. Consequently gcc complains like:
In file included from Stg.h:182,
from mkNativeHdr.c:12:
Regs.h:293: global register variable follows a function definition
Regs.h:302: global register variable follows a function definition
The solution is quite simple: Always #include "Stg.h" *before* any
system headers.