ghc-hetmet.git
22 years ago[project @ 2001-11-19 18:53:50 by sof]
sof [Mon, 19 Nov 2001 18:53:50 +0000 (18:53 +0000)]
[project @ 2001-11-19 18:53:50 by sof]
If the configure script determined that the build-tree version of happy
is to be used, descend into happy/ and build it, if needs be.

22 years ago[project @ 2001-11-19 18:47:43 by sof]
sof [Mon, 19 Nov 2001 18:47:44 +0000 (18:47 +0000)]
[project @ 2001-11-19 18:47:43 by sof]
- change the interpretation of FPTOOLS_TOP_ABS, it is now the UNIXy path.
  For Win32, it is of the form <drive>:<path> where '/' is the directory
  separator. Prior to this commit, the directory separator was '\'.
- for the (only) place we need to have a platform-native representation
  of FPTOOLS_TOP_ABS, use FPTOOLS_TOP_ABS_PLATFORM.

22 years ago[project @ 2001-11-19 16:34:12 by simonpj]
simonpj [Mon, 19 Nov 2001 16:34:14 +0000 (16:34 +0000)]
[project @ 2001-11-19 16:34:12 by simonpj]
Tidy up imports

22 years ago[project @ 2001-11-19 16:33:17 by simonpj]
simonpj [Mon, 19 Nov 2001 16:33:17 +0000 (16:33 +0000)]
[project @ 2001-11-19 16:33:17 by simonpj]
Improve error msg

22 years ago[project @ 2001-11-19 14:23:52 by simonpj]
simonpj [Mon, 19 Nov 2001 14:23:53 +0000 (14:23 +0000)]
[project @ 2001-11-19 14:23:52 by simonpj]
--------------------------------------
Yet another cut at the DmdAnal domains
--------------------------------------

This version of the domain for demand analysis was developed
in discussion with Peter Sestoft, so I think it might at last
be more or less right!

Our idea is mentally to separate
strictness analysis
from
absence and boxity analysis

Then we combine them back into a single domain.  The latter
is all you see in the compiler (the Demand type, as before)
but we understand it better now.

22 years ago[project @ 2001-11-18 12:32:22 by chak]
chak [Sun, 18 Nov 2001 12:32:22 +0000 (12:32 +0000)]
[project @ 2001-11-18 12:32:22 by chak]
Added a new section that covers lexing and parsing.

22 years ago[project @ 2001-11-16 16:58:41 by sof]
sof [Fri, 16 Nov 2001 16:58:41 +0000 (16:58 +0000)]
[project @ 2001-11-16 16:58:41 by sof]
if IS_CBITS_LIB is YES: Extend SRC_HS2HS_OPTS in the same way that SRC_CC_OPTS is

22 years ago[project @ 2001-11-16 15:42:26 by simonpj]
simonpj [Fri, 16 Nov 2001 15:42:26 +0000 (15:42 +0000)]
[project @ 2001-11-16 15:42:26 by simonpj]
---------------------------------------
Add continuation splitting to Simplify
---------------------------------------

When the simplifier finds a 'case', it calls mkDupableAlt
to make the "continuation" (that is, the context of the
case expression) duplicatable, so that it can push it into
the case branches.  This is crucial for the case-of-case
transformation.

But it turns out that it's a bad idea to do that when
the context is "I'm the argument of a strict function".  Consider

f (case x of { True -> False; False -> True }) arg2

where f is a strict function.  Then we *could* (and were)
transforming to

let $j a = f a arg2
in
case x of { True -> $j False; False -> $j True }

But this is in general a terribly bad thing to do.
See the example in comments with Simplify.mkDupableCont.

22 years ago[project @ 2001-11-16 15:33:53 by simonpj]
simonpj [Fri, 16 Nov 2001 15:33:53 +0000 (15:33 +0000)]
[project @ 2001-11-16 15:33:53 by simonpj]
Correct docs about SPECIALIZE instance; MERGE TO STABLE

22 years ago[project @ 2001-11-15 15:04:36 by simonmar]
simonmar [Thu, 15 Nov 2001 15:04:36 +0000 (15:04 +0000)]
[project @ 2001-11-15 15:04:36 by simonmar]
Don't restrict doc building to i386-linux.  please merge.

22 years ago[project @ 2001-11-14 16:34:22 by simonmar]
simonmar [Wed, 14 Nov 2001 16:34:22 +0000 (16:34 +0000)]
[project @ 2001-11-14 16:34:22 by simonmar]
use SET_HDR rather than explicitly setting p->header.info.

22 years ago[project @ 2001-11-14 11:46:12 by simonmar]
simonmar [Wed, 14 Nov 2001 11:46:12 +0000 (11:46 +0000)]
[project @ 2001-11-14 11:46:12 by simonmar]
Fix up the interpreter following the recent modifications to
suspendThread/resumeThread.  Someone should test that foreign imports
in the interpreter still work.

22 years ago[project @ 2001-11-14 11:39:29 by simonmar]
simonmar [Wed, 14 Nov 2001 11:39:29 +0000 (11:39 +0000)]
[project @ 2001-11-14 11:39:29 by simonmar]
Change the way we do finalization for duplex handles.  Previously, we
arranged that the read side pointed to the right side via a special
handle type (ReadSideHandle _), and the finalizer points to the write
side.  This turned out to interact badly with hGetContents, which
likes to explicitly close the read side of the handle after it reads
EOF or gets an error, which resulted in double-closes for duplex
handles.

Now we store the pointer from the read side to the write side in the
Handle structure itself, so it doesn't get lost when hGetContents
changes the handle type to SemiClosedHandle.  Furthermore, in hClose
we no longer close the file descriptor associated with the read side
of a duplex handle - the actual close will have to wait until the
finalizer runs, because someone might still be using the write side.

Thanks to Volker Stolz for pointing out the problem.

22 years ago[project @ 2001-11-14 11:35:23 by simonmar]
simonmar [Wed, 14 Nov 2001 11:35:23 +0000 (11:35 +0000)]
[project @ 2001-11-14 11:35:23 by simonmar]
remove an unnecessary duplicate binding

22 years ago[project @ 2001-11-14 11:15:53 by simonmar]
simonmar [Wed, 14 Nov 2001 11:15:53 +0000 (11:15 +0000)]
[project @ 2001-11-14 11:15:53 by simonmar]
GC unused import

22 years ago[project @ 2001-11-13 13:38:02 by simonmar]
simonmar [Tue, 13 Nov 2001 13:38:02 +0000 (13:38 +0000)]
[project @ 2001-11-13 13:38:02 by simonmar]
Remove unused ticks_since_timestamp.

22 years ago[project @ 2001-11-13 11:06:51 by simonmar]
simonmar [Tue, 13 Nov 2001 11:06:51 +0000 (11:06 +0000)]
[project @ 2001-11-13 11:06:51 by simonmar]
Fix daVinci URL.

22 years ago[project @ 2001-11-13 10:16:21 by simonmar]
simonmar [Tue, 13 Nov 2001 10:16:21 +0000 (10:16 +0000)]
[project @ 2001-11-13 10:16:21 by simonmar]
Mention in the summary of section 7 that extra arguments to
./configure may be required.

22 years ago[project @ 2001-11-13 10:07:28 by simonmar]
simonmar [Tue, 13 Nov 2001 10:07:28 +0000 (10:07 +0000)]
[project @ 2001-11-13 10:07:28 by simonmar]
Updated building guide, now incorporating the CVS cheat sheet.

22 years ago[project @ 2001-11-13 03:28:03 by chak]
chak [Tue, 13 Nov 2001 03:28:03 +0000 (03:28 +0000)]
[project @ 2001-11-13 03:28:03 by chak]
A little more info about type checking

22 years ago[project @ 2001-11-12 23:55:56 by chak]
chak [Mon, 12 Nov 2001 23:55:56 +0000 (23:55 +0000)]
[project @ 2001-11-12 23:55:56 by chak]
Added a link to apt's External Core document.

22 years ago[project @ 2001-11-12 14:13:35 by simonmar]
simonmar [Mon, 12 Nov 2001 14:13:35 +0000 (14:13 +0000)]
[project @ 2001-11-12 14:13:35 by simonmar]
Generate .a files into a temporary file before renaming to the actual
target, to avoid a problem whereby 'ar' could leave a partially-built
archive lying around.

22 years ago[project @ 2001-11-12 14:09:03 by simonmar]
simonmar [Mon, 12 Nov 2001 14:09:03 +0000 (14:09 +0000)]
[project @ 2001-11-12 14:09:03 by simonmar]
comment update

22 years ago[project @ 2001-11-12 12:18:50 by simonpj]
simonpj [Mon, 12 Nov 2001 12:18:50 +0000 (12:18 +0000)]
[project @ 2001-11-12 12:18:50 by simonpj]
Remove pprTrace

22 years ago[project @ 2001-11-09 21:25:56 by sof]
sof [Fri, 9 Nov 2001 21:25:57 +0000 (21:25 +0000)]
[project @ 2001-11-09 21:25:56 by sof]
GhcCanonVersion: leave out GhcPatchLevel, causes problems when
the GhcPatchLevel isn't a patchlevel but a date.

22 years ago[project @ 2001-11-09 20:58:40 by sof]
sof [Fri, 9 Nov 2001 20:58:40 +0000 (20:58 +0000)]
[project @ 2001-11-09 20:58:40 by sof]
prel_PrelHandle_read(): de-hebetudified.

22 years ago[project @ 2001-11-09 20:30:11 by sof]
sof [Fri, 9 Nov 2001 20:30:11 +0000 (20:30 +0000)]
[project @ 2001-11-09 20:30:11 by sof]
Make recent rts/ changes work by recognising symbols starting
with __stg as being known-funny-things.

Still recognise "^stg" as 'funny', not sure if that's still
needed.

22 years ago[project @ 2001-11-09 18:40:52 by sof]
sof [Fri, 9 Nov 2001 18:40:52 +0000 (18:40 +0000)]
[project @ 2001-11-09 18:40:52 by sof]
lookupInstEnv: "#ifdef DEBUG"-protect trace code
that got included in prev. commit.

(I'm guessing it either should be removed or moved
into the ASSERT, but I'll let the original committer
decide which).

22 years ago[project @ 2001-11-09 18:17:48 by sof]
sof [Fri, 9 Nov 2001 18:17:48 +0000 (18:17 +0000)]
[project @ 2001-11-09 18:17:48 by sof]
* Moved CANON_HC_VERSION out of ghc/compiler/Makefile and into mk/config.mk.in
  (and renamed it as GhcCanonVersion).
* Have ghc/driver/Makefile use it; cheaper and more robust than the version
  testing it was already doing.

22 years ago[project @ 2001-11-09 17:39:45 by sof]
sof [Fri, 9 Nov 2001 17:39:45 +0000 (17:39 +0000)]
[project @ 2001-11-09 17:39:45 by sof]
Optimised defn of CANON_HC_VERSION, synthesise it from config.mk info,
not via an expensive $(shell ...) call.

22 years ago[project @ 2001-11-09 17:02:09 by sof]
sof [Fri, 9 Nov 2001 17:02:09 +0000 (17:02 +0000)]
[project @ 2001-11-09 17:02:09 by sof]
Use -fvia-C when compiling rename/ParseIface.hs and parser/Parser.hs -
Int16 primops aren't supported by the NCG on all plats.

22 years ago[project @ 2001-11-09 16:41:15 by simonpj]
simonpj [Fri, 9 Nov 2001 16:41:15 +0000 (16:41 +0000)]
[project @ 2001-11-09 16:41:15 by simonpj]
---------------------------------------
Fix an obscure overlapping-instance bug
---------------------------------------

MERGE TO STABLE BRANCH

When searching for instances, we used bale out if the type
we seek could be instantiated to match the instance (because
it might be so instantiated later, in which case we don't
want to miss the opportunity).

The bug was that we used *matching* whereas we should use
*unification*.

Comments in the file InstEnv.

22 years ago[project @ 2001-11-09 16:29:06 by sof]
sof [Fri, 9 Nov 2001 16:29:06 +0000 (16:29 +0000)]
[project @ 2001-11-09 16:29:06 by sof]
Auto-rule for INSTALL_DATAS and cbits/ header files:

Nuke $(shell perl -e '...') use, i.e., don't load in and start up
a 3M binary just to capitalise a word (which gets done twice per
invocation of 'make').

22 years ago[project @ 2001-11-08 19:34:23 by sof]
sof [Thu, 8 Nov 2001 19:34:23 +0000 (19:34 +0000)]
[project @ 2001-11-08 19:34:23 by sof]
gen_Eq_binds: when comparing constructor tags, emit just

   a == b = case con2tag_Foo# a of
              a# -> case con2tag_Foo# b of b# -> a# PrelGHC.==# b#

and not

   a == b = case con2tag_Foo# a of
              a# -> case con2tag_Foo# b of
                      b# -> if a# PrelGHC.==# b# then PrelBase.True else PrelBase.False

(Not that this wouldn't get simplified, but still).

22 years ago[project @ 2001-11-08 19:20:55 by sof]
sof [Thu, 8 Nov 2001 19:20:55 +0000 (19:20 +0000)]
[project @ 2001-11-08 19:20:55 by sof]
rnHsForeignDecl: 'foreign import's (incl 'f.e.d's) _define_ local toplevel
names, so better use RnEnv.lookupTopBndrRn and not RnEnv.lookupOccRn to
resolve the name.

As was, declaring ForeignImports with the same name as an imported entity
wasn't permitted.

22 years ago[project @ 2001-11-08 18:55:19 by sof]
sof [Thu, 8 Nov 2001 18:55:19 +0000 (18:55 +0000)]
[project @ 2001-11-08 18:55:19 by sof]
gencode: for completeness sake only, handle CCallTypedefs

22 years ago[project @ 2001-11-08 18:53:44 by sof]
sof [Thu, 8 Nov 2001 18:53:44 +0000 (18:53 +0000)]
[project @ 2001-11-08 18:53:44 by sof]
ghc-inplace: single-quote -B option to avoid de-escaping those b-slashes

22 years ago[project @ 2001-11-08 18:51:03 by sof]
sof [Thu, 8 Nov 2001 18:51:03 +0000 (18:51 +0000)]
[project @ 2001-11-08 18:51:03 by sof]
hardtop_plat: escape those backslashes (exponentially so).

22 years ago[project @ 2001-11-08 17:39:14 by sof]
sof [Thu, 8 Nov 2001 17:39:14 +0000 (17:39 +0000)]
[project @ 2001-11-08 17:39:14 by sof]
Prev. commit upset world order - revert back to printing out
build tree loc. first.

22 years ago[project @ 2001-11-08 17:04:28 by simonmar]
simonmar [Thu, 8 Nov 2001 17:04:28 +0000 (17:04 +0000)]
[project @ 2001-11-08 17:04:28 by simonmar]
minor simplification

22 years ago[project @ 2001-11-08 17:02:41 by simonmar]
simonmar [Thu, 8 Nov 2001 17:02:41 +0000 (17:02 +0000)]
[project @ 2001-11-08 17:02:41 by simonmar]
inputReady can be an unsafe foreign import.

22 years ago[project @ 2001-11-08 16:37:54 by simonmar]
simonmar [Thu, 8 Nov 2001 16:37:54 +0000 (16:37 +0000)]
[project @ 2001-11-08 16:37:54 by simonmar]
wibble

22 years ago[project @ 2001-11-08 16:36:39 by simonmar]
simonmar [Thu, 8 Nov 2001 16:36:39 +0000 (16:36 +0000)]
[project @ 2001-11-08 16:36:39 by simonmar]
getProgArgv can be an unsafe foreign import.

22 years ago[project @ 2001-11-08 16:17:35 by simonmar]
simonmar [Thu, 8 Nov 2001 16:17:35 +0000 (16:17 +0000)]
[project @ 2001-11-08 16:17:35 by simonmar]
Revert resumeThread and suspendThread to working with StgRegTable
rather than Capability, and do the conversion in the functions
themselves rather than in the inline code.  This means I don't have to
fiddle with the NCG to fix the SUSPEND_THREAD/RESUME_THREAD macros.

22 years ago[project @ 2001-11-08 14:42:11 by simonmar]
simonmar [Thu, 8 Nov 2001 14:42:11 +0000 (14:42 +0000)]
[project @ 2001-11-08 14:42:11 by simonmar]
Fix a bug in the previous commit, and add some more sanity checking.

22 years ago[project @ 2001-11-08 12:56:00 by simonmar]
simonmar [Thu, 8 Nov 2001 12:56:01 +0000 (12:56 +0000)]
[project @ 2001-11-08 12:56:00 by simonmar]
Updates to the native code generator following the changes to fix the
large block allocation bug, and changes to use the new
function-address cache in the register table to reduce code size.

Also: I changed the pretty-printing machinery for assembly code to use
Pretty rather than Outputable, since we don't make use of the styles
and it should improve performance.  Perhaps the same should be done
for abstract C.

22 years ago[project @ 2001-11-08 12:50:07 by simonmar]
simonmar [Thu, 8 Nov 2001 12:50:07 +0000 (12:50 +0000)]
[project @ 2001-11-08 12:50:07 by simonmar]
Remove the heap-check-size panic, following the RTS fixes for this problem.

22 years ago[project @ 2001-11-08 12:46:31 by simonmar]
simonmar [Thu, 8 Nov 2001 12:46:31 +0000 (12:46 +0000)]
[project @ 2001-11-08 12:46:31 by simonmar]
Fix the large block allocation bug (Yay!)
-----------------------------------------

In order to do this, I had to

 1. in each heap-check failure branch, return the amount of heap
    actually requested, in a known location (I added another slot
    in StgRegTable called HpAlloc for this purpose).  This is
    useful for other reasons - in particular it makes it possible
    to get accurate allocation statistics.

 2. In the scheduler, if a heap check fails and we wanted more than
    BLOCK_SIZE_W words, then allocate a special large block and place
    it in the nursery.  The nursery now has to be double-linked so
    we can insert the new block in the middle.

 3. The garbage collector has to be able to deal with multiple objects
    in a large block.  It turns out that this isn't a problem as long as
    the large blocks only occur in the nursery, because we always copy
    objects from the nursery during GC.  One small change had to be
    made: in evacuate(), we may need to follow the link field from the
    block descriptor to get to the block descriptor for the head of a
    large block.

 4. Various other parts of the storage manager had to be modified
    to cope with a nursery containing a mixture of block sizes.

Point (3) causes a slight pessimization in the garbage collector.  I
don't see a way to avoid this.  Point (1) causes some code bloat (a
rough measurement is around 5%), so to offset this I made the
following change which I'd been meaning to do for some time:

  - Store the values of some commonly-used absolute addresses
    (eg. stg_update_PAP) in the register table.  This lets us use
    shorter instruction forms for some absolute jumps and saves some
    code space.

  - The type of Capability is no longer the same as an StgRegTable.
    MainRegTable renamed to MainCapability.  See Regs.h for details.

Other minor changes:

  - remove individual declarations for the heap-check-failure jump
    points, and declare them all in StgMiscClosures.h instead.  Remove
    HeapStackCheck.h.

Updates to the native code generator to follow.

22 years ago[project @ 2001-11-08 12:41:07 by simonmar]
simonmar [Thu, 8 Nov 2001 12:41:07 +0000 (12:41 +0000)]
[project @ 2001-11-08 12:41:07 by simonmar]
(addendum to the previous commit) also set bd->blocks to zero in
coalesce().

22 years ago[project @ 2001-11-08 10:18:49 by simonmar]
simonmar [Thu, 8 Nov 2001 10:18:49 +0000 (10:18 +0000)]
[project @ 2001-11-08 10:18:49 by simonmar]
For each non-head block in a block group, set its 'blocks' field to
zero (as per comments elsewhere).

22 years ago[project @ 2001-11-07 22:51:08 by sof]
sof [Wed, 7 Nov 2001 22:51:08 +0000 (22:51 +0000)]
[project @ 2001-11-07 22:51:08 by sof]
When generating dependencies, look for both source files _and_
interface files.

If STABLE is still a branch with a future, I'd encourage merging.

22 years ago[project @ 2001-11-07 20:17:37 by sof]
sof [Wed, 7 Nov 2001 20:17:37 +0000 (20:17 +0000)]
[project @ 2001-11-07 20:17:37 by sof]
Avoid using $(shell ...) functions - expensive buggers.

22 years ago[project @ 2001-11-07 20:14:21 by sof]
sof [Wed, 7 Nov 2001 20:14:21 +0000 (20:14 +0000)]
[project @ 2001-11-07 20:14:21 by sof]
subst new variable hardtop_plat - platform-specific version of hardtop

22 years ago[project @ 2001-11-07 20:13:26 by sof]
sof [Wed, 7 Nov 2001 20:13:26 +0000 (20:13 +0000)]
[project @ 2001-11-07 20:13:26 by sof]
FPTOOLS_HAPPY: have it subst default HappyOpts too

22 years ago[project @ 2001-11-07 19:37:17 by sof]
sof [Wed, 7 Nov 2001 19:37:17 +0000 (19:37 +0000)]
[project @ 2001-11-07 19:37:17 by sof]
made to work on Unices

22 years ago[project @ 2001-11-07 19:36:11 by sof]
sof [Wed, 7 Nov 2001 19:36:11 +0000 (19:36 +0000)]
[project @ 2001-11-07 19:36:11 by sof]
Cope with conditional presence of o_BINARY in PrelPosix.

(Something's not quite right here - O_BINARY, a non-Posix flag,
being defined by PrelPosix).

22 years ago[project @ 2001-11-07 19:31:58 by sof]
sof [Wed, 7 Nov 2001 19:31:58 +0000 (19:31 +0000)]
[project @ 2001-11-07 19:31:58 by sof]
Test for stddef.h

22 years ago[project @ 2001-11-07 19:11:43 by sof]
sof [Wed, 7 Nov 2001 19:11:43 +0000 (19:11 +0000)]
[project @ 2001-11-07 19:11:43 by sof]
Added #defines for HsBool values:
  - HS_BOOL_FALSE
  - HS_BOOL_TRUE
  - HS_BOOL_MIN
  - HS_BOOL_MAX

22 years ago[project @ 2001-11-07 18:26:58 by sof]
sof [Wed, 7 Nov 2001 18:26:58 +0000 (18:26 +0000)]
[project @ 2001-11-07 18:26:58 by sof]
remove extra .hsc deps; not needed

22 years ago[project @ 2001-11-07 18:26:27 by sof]
sof [Wed, 7 Nov 2001 18:26:27 +0000 (18:26 +0000)]
[project @ 2001-11-07 18:26:27 by sof]
bring writeErrString__() proto into scope

22 years ago[project @ 2001-11-07 18:25:55 by sof]
sof [Wed, 7 Nov 2001 18:25:55 +0000 (18:25 +0000)]
[project @ 2001-11-07 18:25:55 by sof]
no more

22 years ago[project @ 2001-11-07 18:25:35 by sof]
sof [Wed, 7 Nov 2001 18:25:35 +0000 (18:25 +0000)]
[project @ 2001-11-07 18:25:35 by sof]
Move towards having the IO implementation be plat-independent
at the Haskell source code level.

22 years ago[project @ 2001-11-07 18:23:31 by sof]
sof [Wed, 7 Nov 2001 18:23:31 +0000 (18:23 +0000)]
[project @ 2001-11-07 18:23:31 by sof]
prev. commit didn't introduce these two files correctly - PrelIOUtils.{c,h}
contain simple C wrappers to handle some aspects of OS I/O in a
plat-indep. manner.

22 years ago[project @ 2001-11-07 18:19:49 by sof]
sof [Wed, 7 Nov 2001 18:19:49 +0000 (18:19 +0000)]
[project @ 2001-11-07 18:19:49 by sof]
cbits/PrelIOUtils.c

22 years ago[project @ 2001-11-07 18:18:51 by sof]
sof [Wed, 7 Nov 2001 18:18:51 +0000 (18:18 +0000)]
[project @ 2001-11-07 18:18:51 by sof]
PrelTopHandler.lhs -> PrelTopHandler.hs

(CVS history for this file wasn't interesting enough for
a dirty behind-the-scenes repo move).

22 years ago[project @ 2001-11-07 15:11:33 by simonpj]
simonpj [Wed, 7 Nov 2001 15:11:33 +0000 (15:11 +0000)]
[project @ 2001-11-07 15:11:33 by simonpj]
Wibble in zonking of rules; fixes Manuels problem

22 years ago[project @ 2001-11-07 08:34:45 by sof]
sof [Wed, 7 Nov 2001 08:34:45 +0000 (08:34 +0000)]
[project @ 2001-11-07 08:34:45 by sof]
Nuke feature testing for misc error code values + its corresponding
CCONST_XXXX #defines.

22 years ago[project @ 2001-11-07 08:32:34 by sof]
sof [Wed, 7 Nov 2001 08:32:34 +0000 (08:32 +0000)]
[project @ 2001-11-07 08:32:34 by sof]
Function wrappers for misc error codes

22 years ago[project @ 2001-11-07 08:31:29 by sof]
sof [Wed, 7 Nov 2001 08:31:29 +0000 (08:31 +0000)]
[project @ 2001-11-07 08:31:29 by sof]
Delay committing to particular values for the misc error codes until
we're *compiling* the .hc / .hs file on a target platform, i.e., no
longer do this at configure-time.

It ain't pretty, but it works.

22 years ago[project @ 2001-11-07 07:57:57 by sof]
sof [Wed, 7 Nov 2001 07:57:57 +0000 (07:57 +0000)]
[project @ 2001-11-07 07:57:57 by sof]
Wrapper functions reqd to implement Directory

22 years ago[project @ 2001-11-07 07:57:16 by sof]
sof [Wed, 7 Nov 2001 07:57:16 +0000 (07:57 +0000)]
[project @ 2001-11-07 07:57:16 by sof]
no longer used

22 years ago[project @ 2001-11-07 07:56:57 by sof]
sof [Wed, 7 Nov 2001 07:56:57 +0000 (07:56 +0000)]
[project @ 2001-11-07 07:56:57 by sof]
Directory impl which interacts with OS plat via C wrappers

22 years ago[project @ 2001-11-06 14:19:24 by simonpj]
simonpj [Tue, 6 Nov 2001 14:19:24 +0000 (14:19 +0000)]
[project @ 2001-11-06 14:19:24 by simonpj]
---------------------------------------
Fix YET ANOTHER lub/both bug in DmdAnal
---------------------------------------

MERGE TO 5.02 branch (it's a real bug)

Two bugs actually.  One showed up in a program by
Jeremy Manson, and led to an "entered absent arg"
error.  The problem was

Err `lub` U(L,A)  /=  U(L,A)

which is what we had.  It should be

Err `lub` U(L,A) = U(Err `lub` L, Err `lub` A)
 = U(LL)

The second bug was found by Peter Sestoft while
staring at the code.

V `lub` Defer(ds) /= U(L)

It should be Lazy on the RHS.

Very large sigh.

22 years ago[project @ 2001-11-06 11:11:07 by simonmar]
simonmar [Tue, 6 Nov 2001 11:11:07 +0000 (11:11 +0000)]
[project @ 2001-11-06 11:11:07 by simonmar]
- Make the psecs field of a ClockTime measure picoseconds rather than
  nanoseconds.

- toClockTime was throwing away the picoseconds field of the input
  CalendarTime: fix this.

22 years ago[project @ 2001-11-06 11:07:39 by simonmar]
simonmar [Tue, 6 Nov 2001 11:07:39 +0000 (11:07 +0000)]
[project @ 2001-11-06 11:07:39 by simonmar]
Don't use a combination of '=' and ':=' to override libdir and
datadir, as it appears to not have the same behaviour in all versions
of GNU make.

22 years ago[project @ 2001-11-06 11:05:22 by simonmar]
simonmar [Tue, 6 Nov 2001 11:05:23 +0000 (11:05 +0000)]
[project @ 2001-11-06 11:05:22 by simonmar]
Make compilation of javaGen conditional on $(GhcWithJavaGen) in the
same way as the ILX and native backends.

22 years ago[project @ 2001-11-06 11:04:16 by simonmar]
simonmar [Tue, 6 Nov 2001 11:04:16 +0000 (11:04 +0000)]
[project @ 2001-11-06 11:04:16 by simonmar]
cosmetic only: reformat to 80 cols

22 years ago[project @ 2001-11-06 11:03:19 by simonmar]
simonmar [Tue, 6 Nov 2001 11:03:19 +0000 (11:03 +0000)]
[project @ 2001-11-06 11:03:19 by simonmar]
Add an ASSERT

22 years ago[project @ 2001-11-06 11:03:00 by simonmar]
simonmar [Tue, 6 Nov 2001 11:03:00 +0000 (11:03 +0000)]
[project @ 2001-11-06 11:03:00 by simonmar]
Add a comment explaining the discount subtraction in mkSizeIs.

22 years ago[project @ 2001-11-06 11:02:05 by simonmar]
simonmar [Tue, 6 Nov 2001 11:02:05 +0000 (11:02 +0000)]
[project @ 2001-11-06 11:02:05 by simonmar]
Change an ASSERT into an ASSERT2

22 years ago[project @ 2001-11-06 05:08:52 by chak]
chak [Tue, 6 Nov 2001 05:08:52 +0000 (05:08 +0000)]
[project @ 2001-11-06 05:08:52 by chak]
* added SPJ to authors list and bumped the version number

* documented the buildCoreToDo story and related issues

22 years ago[project @ 2001-11-05 16:45:02 by simonpj]
simonpj [Mon, 5 Nov 2001 16:45:02 +0000 (16:45 +0000)]
[project @ 2001-11-05 16:45:02 by simonpj]
Wibble to eta reduction

22 years ago[project @ 2001-11-05 14:16:48 by simonpj]
simonpj [Mon, 5 Nov 2001 14:16:48 +0000 (14:16 +0000)]
[project @ 2001-11-05 14:16:48 by simonpj]
Wibbles for scoped type variables

22 years ago[project @ 2001-11-05 14:15:53 by simonpj]
simonpj [Mon, 5 Nov 2001 14:15:53 +0000 (14:15 +0000)]
[project @ 2001-11-05 14:15:53 by simonpj]
Tidy up activation pragmas

22 years ago[project @ 2001-11-05 14:08:28 by chak]
chak [Mon, 5 Nov 2001 14:08:28 +0000 (14:08 +0000)]
[project @ 2001-11-05 14:08:28 by chak]
Activation phase in a __R pragma must be in square brackets.

22 years ago[project @ 2001-11-05 05:12:55 by sof]
sof [Mon, 5 Nov 2001 05:12:55 +0000 (05:12 +0000)]
[project @ 2001-11-05 05:12:55 by sof]
merge revision 1.32.4.2 (ghc-5-02-branch)

  TIC_TO_DOUBLE --> TICK_TO_DOUBLE

22 years ago[project @ 2001-11-03 01:44:04 by sof]
sof [Sat, 3 Nov 2001 01:44:04 +0000 (01:44 +0000)]
[project @ 2001-11-03 01:44:04 by sof]
mingw32: -#include process.h to bring _getpid() proto into scope when
compiling main/SysTools.lhs

22 years ago[project @ 2001-11-03 01:30:42 by sof]
sof [Sat, 3 Nov 2001 01:30:42 +0000 (01:30 +0000)]
[project @ 2001-11-03 01:30:42 by sof]
main: in both exception handlers, explicitly flush stdout before
      emitting bytes onto stderr, since the two aren't connected
      any longer.

22 years ago[project @ 2001-11-03 00:33:24 by sof]
sof [Sat, 3 Nov 2001 00:33:24 +0000 (00:33 +0000)]
[project @ 2001-11-03 00:33:24 by sof]
Removed 'paren' and 'brack' helpers; use Outputable / Pretty equivalents
instead.

22 years ago[project @ 2001-11-03 00:29:13 by sof]
sof [Sat, 3 Nov 2001 00:29:13 +0000 (00:29 +0000)]
[project @ 2001-11-03 00:29:13 by sof]
mingw32: #include process.h to bring _getpid() proto into scope.

22 years ago[project @ 2001-11-02 14:40:24 by simonpj]
simonpj [Fri, 2 Nov 2001 14:40:24 +0000 (14:40 +0000)]
[project @ 2001-11-02 14:40:24 by simonpj]
Fix a STG lint bug

22 years ago[project @ 2001-11-02 11:15:00 by simonmar]
simonmar [Fri, 2 Nov 2001 11:15:00 +0000 (11:15 +0000)]
[project @ 2001-11-02 11:15:00 by simonmar]
Add a couple of missing TICK_TO_DBL()s.

Noticed by: Nicholas Nethercote <njn25@cam.ac.uk>

22 years ago[project @ 2001-11-02 10:35:14 by simonpj]
simonpj [Fri, 2 Nov 2001 10:35:14 +0000 (10:35 +0000)]
[project @ 2001-11-02 10:35:14 by simonpj]
Stingy -> thrifty

22 years ago[project @ 2001-11-02 10:19:24 by simonpj]
simonpj [Fri, 2 Nov 2001 10:19:24 +0000 (10:19 +0000)]
[project @ 2001-11-02 10:19:24 by simonpj]
wibble

22 years ago[project @ 2001-11-02 09:50:32 by simonpj]
simonpj [Fri, 2 Nov 2001 09:50:32 +0000 (09:50 +0000)]
[project @ 2001-11-02 09:50:32 by simonpj]
Add missing cases to pp_origin; MERGE TO STABLE

22 years ago[project @ 2001-11-01 13:20:42 by simonpj]
simonpj [Thu, 1 Nov 2001 13:20:42 +0000 (13:20 +0000)]
[project @ 2001-11-01 13:20:42 by simonpj]
wibble

22 years ago[project @ 2001-11-01 13:20:05 by simonpj]
simonpj [Thu, 1 Nov 2001 13:20:06 +0000 (13:20 +0000)]
[project @ 2001-11-01 13:20:05 by simonpj]
---------------------------------------
Fix a unboxed-binding bug in SpecConstr
---------------------------------------

[HEAD only]

This fixes a rather obscure bug in the constructor
specialiser discovered by Ralf Hinze.  It was
generating a specialised version of the function
with no arguments --- and the function returned an
unboxed type.

Solution: same as for worker-wrapper; add a dummy
argument.

Several files are affected because I added
CoreUtils.mkPiTypes, as a useful helper function.

22 years ago[project @ 2001-11-01 12:07:09 by simonpj]
simonpj [Thu, 1 Nov 2001 12:07:09 +0000 (12:07 +0000)]
[project @ 2001-11-01 12:07:09 by simonpj]
Correct the zero-arg stuff in worker/wrapper generation

22 years ago[project @ 2001-11-01 10:33:58 by simonpj]
simonpj [Thu, 1 Nov 2001 10:33:58 +0000 (10:33 +0000)]
[project @ 2001-11-01 10:33:58 by simonpj]
----------------------------------
Fix a bug in Simplify.mkDupableAlt
----------------------------------

[This is the HEAD commit; I've fixed
 the branch separately.]

This fixes a funResultTy panic that Koen encountered.

The reason was that the simplifier was doing a
case-of-case where the result had a polymorphic type.
This in turn showed up because of a newtype (now
transparent) with a forall inside it.

The fix is very easy; can't think how I got it wrong
in the first place.

22 years ago[project @ 2001-11-01 09:50:53 by simonpj]
simonpj [Thu, 1 Nov 2001 09:50:53 +0000 (09:50 +0000)]
[project @ 2001-11-01 09:50:53 by simonpj]
Add missing import of dropList for mingw32 build