ghc.git
12 years agoGive cap its correct type, rather than void
Ian Lynagh [Fri, 15 Dec 2006 17:25:58 +0000 (17:25 +0000)] 
Give cap its correct type, rather than void

12 years agoPut the task on the free list in workerTaskStop
Ian Lynagh [Fri, 15 Dec 2006 16:42:10 +0000 (16:42 +0000)] 
Put the task on the free list in workerTaskStop

12 years agoFree various things we allocate
Ian Lynagh [Fri, 15 Dec 2006 13:45:07 +0000 (13:45 +0000)] 
Free various things we allocate

12 years agoUpdating rix output to new standard.
andy@galois.com [Thu, 14 Dec 2006 23:52:10 +0000 (23:52 +0000)] 
Updating rix output to new standard.

12 years agoupdate, and add some more build flavours (inc. dons's fast build)
Simon Marlow [Thu, 14 Dec 2006 11:09:47 +0000 (11:09 +0000)] 
update, and add some more build flavours (inc. dons's fast build)

12 years agoRework the block allocator
Simon Marlow [Thu, 14 Dec 2006 11:09:01 +0000 (11:09 +0000)] 
Rework the block allocator

The main goal here is to reduce fragmentation, which turns out to be
the case of #743.  While I was here I found some opportunities to
improve performance too.  The code is rather more complex, but it also
contains a long comment describing the strategy, so please take a look
at that for the details.

12 years agofix wibble in memory leak error dump
Simon Marlow [Thu, 14 Dec 2006 10:11:02 +0000 (10:11 +0000)] 
fix wibble in memory leak error dump

12 years agoRemoving explicit Binary Tick Boxes; using Case instead.
andy@galois.com [Wed, 13 Dec 2006 18:45:02 +0000 (18:45 +0000)] 
Removing explicit Binary Tick Boxes; using Case instead.

12 years agoAdd left-to-right impredicative instantiation
simonpj@microsoft.com [Wed, 13 Dec 2006 16:29:15 +0000 (16:29 +0000)] 
Add left-to-right impredicative instantiation

People keep complaining, with some justification, that

runST $ foo

doesn't work.  So I've finally caved in.  The difficulty with the above
is that we need to decide how to instantiate ($)'s type arguments based
on the first argument (runST), and then use that info to check the second
argumnent.  There is a left-to-right flow of information.

It's not hard to implement this, and it's clearly useful.  The main
change is in TcExpr.tcArgs, with some knock-on effects elsewhere.

I was finally provoked into this by Trac #981, which turned out, after some
head-scratching, to be another instance of the same problem.

(There was some bug-fixing too; a type like ((?x::Int) => ...) is a polytype
even though it has no leading for-alls, but the new TcUnify code was not
treating it right.)

Test for this is tc222

12 years agoRemoving unused argument to a printf.
andy@galois.com [Wed, 13 Dec 2006 16:06:51 +0000 (16:06 +0000)] 
Removing unused argument to a printf.

12 years agofixing obvious typo in darwin_HOST_OS code (currently does not compile).
andy@galois.com [Wed, 13 Dec 2006 16:06:01 +0000 (16:06 +0000)] 
fixing obvious typo in darwin_HOST_OS code (currently does not compile).

12 years agoPowerPC NCG: support conditional branches outside +-32KB
wolfgang.thaller@gmx.net [Wed, 13 Dec 2006 13:38:08 +0000 (13:38 +0000)] 
PowerPC NCG: support conditional branches outside +-32KB

Work around the PowerPC architecture's +-32KB limitation for conditional
branches by conditionally skipping an unconditional branch instead
(unconditional branches have a +-32MB range).

This requires an extra pass over the basic blocks for each CmmTop after
block sequencing, to determine which branches are "far".

Fixes ticket #709, "Fixup too large" error with -fasm on PowerPC

12 years agoFix allocation debugger to handle allocations in con/destructors
Ian Lynagh [Wed, 13 Dec 2006 13:35:18 +0000 (13:35 +0000)] 
Fix allocation debugger to handle allocations in con/destructors
conc021 is an example of a program that broke.
It doesn't handle them particularly well still, but it doesn't crash at
least.

12 years agoDon't free sched_mutex until freeTaskManager has finished with it
Simon Marlow [Tue, 12 Dec 2006 15:33:53 +0000 (15:33 +0000)] 
Don't free sched_mutex until freeTaskManager has finished with it
Also move closeMutex() etc. into freeTaskManager, this is a free-ish thing

12 years agoGive a better panic if the allocation debugger is used uninitialised
Ian Lynagh [Wed, 13 Dec 2006 12:26:02 +0000 (12:26 +0000)] 
Give a better panic if the allocation debugger is used uninitialised

12 years agoMisc Hpc improvement to dynamic tracer output
andy@galois.com [Wed, 13 Dec 2006 00:19:17 +0000 (00:19 +0000)] 
Misc Hpc improvement to dynamic tracer output

 - Added HPCRIX support for passing tracer filename.
 - Added thread tracing support.
 - Cleaned up use of HsFFI.h

12 years agoAdding tracing support
andy@galois.com [Sat, 9 Dec 2006 05:03:34 +0000 (05:03 +0000)] 
Adding tracing support

13 years agoMisc unsigned printing issues; adding magicTixNumber.
andy@galois.com [Thu, 30 Nov 2006 00:30:24 +0000 (00:30 +0000)] 
Misc unsigned printing issues; adding magicTixNumber.

12 years agoTurn -Wall on
Ian Lynagh [Tue, 12 Dec 2006 20:11:27 +0000 (20:11 +0000)] 
Turn -Wall on

12 years agoFix more warnings
Ian Lynagh [Tue, 12 Dec 2006 20:04:22 +0000 (20:04 +0000)] 
Fix more warnings

12 years agoFix whitespace
Ian Lynagh [Tue, 12 Dec 2006 18:22:15 +0000 (18:22 +0000)] 
Fix whitespace

12 years agoSilence some warnings
Ian Lynagh [Tue, 12 Dec 2006 18:20:44 +0000 (18:20 +0000)] 
Silence some warnings

12 years agoFix more warnings
Ian Lynagh [Tue, 12 Dec 2006 17:43:10 +0000 (17:43 +0000)] 
Fix more warnings

12 years agoRemove trailing white space
Ian Lynagh [Tue, 12 Dec 2006 17:37:05 +0000 (17:37 +0000)] 
Remove trailing white space

12 years agoDetab
Ian Lynagh [Tue, 12 Dec 2006 17:36:25 +0000 (17:36 +0000)] 
Detab

12 years agoFix thd3
Ian Lynagh [Tue, 12 Dec 2006 17:34:27 +0000 (17:34 +0000)] 
Fix thd3

12 years agoSilence some warnings
Ian Lynagh [Tue, 12 Dec 2006 17:34:04 +0000 (17:34 +0000)] 
Silence some warnings

12 years agoSilence more warnings
Ian Lynagh [Tue, 12 Dec 2006 17:27:56 +0000 (17:27 +0000)] 
Silence more warnings

12 years agoMore warning fixes
Ian Lynagh [Tue, 12 Dec 2006 16:46:51 +0000 (16:46 +0000)] 
More warning fixes

12 years agoFix more warnings
Ian Lynagh [Tue, 12 Dec 2006 16:26:24 +0000 (16:26 +0000)] 
Fix more warnings

12 years agoMore warning fixes and some code rejigging
Ian Lynagh [Tue, 12 Dec 2006 16:17:54 +0000 (16:17 +0000)] 
More warning fixes and some code rejigging

12 years agoFix more warnings
Ian Lynagh [Tue, 12 Dec 2006 16:10:26 +0000 (16:10 +0000)] 
Fix more warnings

12 years agoFix some warnings
Ian Lynagh [Tue, 12 Dec 2006 16:00:20 +0000 (16:00 +0000)] 
Fix some warnings

12 years agoBeautify a bit
Ian Lynagh [Tue, 12 Dec 2006 15:48:01 +0000 (15:48 +0000)] 
Beautify a bit

12 years agoRemove trailing spaces
Ian Lynagh [Tue, 12 Dec 2006 15:43:07 +0000 (15:43 +0000)] 
Remove trailing spaces

12 years agoDetab
Ian Lynagh [Tue, 12 Dec 2006 15:42:11 +0000 (15:42 +0000)] 
Detab

12 years agoMissed a stage-2 problem in the TcSimplify refactoring
simonpj@microsoft.com [Tue, 12 Dec 2006 13:28:13 +0000 (13:28 +0000)] 
Missed a stage-2 problem in the TcSimplify refactoring

12 years agoComments only
simonpj@microsoft.com [Tue, 12 Dec 2006 13:28:02 +0000 (13:28 +0000)] 
Comments only

12 years agoMERGE: Fix Windows DEP violations (bug #885)
Simon Marlow [Tue, 12 Dec 2006 10:36:23 +0000 (10:36 +0000)] 
MERGE: Fix Windows DEP violations (bug #885)
Original patch by brianlsmith@gmail.com

12 years agoFix the pattern for _hpc symbols: it incorrectly matched the _hp suffix too
Simon Marlow [Tue, 12 Dec 2006 10:32:37 +0000 (10:32 +0000)] 
Fix the pattern for _hpc symbols: it incorrectly matched the _hp suffix too
This has the undesitrable effect that stg_gc_gen_hp in the RTS was
caught as an HPC symbol and put in the data segment.

12 years agoFix up yesterdays commit to TcSimplify; fixes broken HEAD
simonpj@microsoft.com [Tue, 12 Dec 2006 09:25:56 +0000 (09:25 +0000)] 
Fix up yesterdays commit to TcSimplify; fixes broken HEAD

12 years agoAdd comments, plus fix zapFragileInfo to zap worker info
simonpj@microsoft.com [Mon, 11 Dec 2006 16:51:41 +0000 (16:51 +0000)] 
Add comments, plus fix zapFragileInfo to zap worker info

This is a minor fix up to the patch
 * retain arity for let-bound vars in simplifier

12 years agoAdd comments about pruning implication constraints
simonpj@microsoft.com [Mon, 11 Dec 2006 16:43:33 +0000 (16:43 +0000)] 
Add comments about pruning implication constraints

12 years agoUnbreak x86_64 PIC patch, part 3
wolfgang.thaller@gmx.net [Mon, 11 Dec 2006 22:26:35 +0000 (22:26 +0000)] 
Unbreak x86_64 PIC patch, part 3

This time, the PowerPC NCG suffered from a typo.

(I've really grown to hate all those #if foo_TARGET_ARCH
 lines. I need to build GHC for at least four different
 platforms just to make sure that there are no typos...)

12 years agoSupport MO_WriteBarrier in PowerPC NCG (lwsync instruction)
wolfgang.thaller@gmx.net [Mon, 11 Dec 2006 22:25:34 +0000 (22:25 +0000)] 
Support MO_WriteBarrier in PowerPC NCG (lwsync instruction)

12 years agoFix allocate name clash in the HEAD
Ian Lynagh [Mon, 11 Dec 2006 19:21:03 +0000 (19:21 +0000)] 
Fix allocate name clash in the HEAD

12 years agoAdd freeScheduler/freeTaskManager and call it later than exitScheduler
Ian Lynagh [Mon, 11 Dec 2006 13:10:04 +0000 (13:10 +0000)] 
Add freeScheduler/freeTaskManager and call it later than exitScheduler
We were freeing the tasks in exitScheduler (stopTaskManager) before
exitStorage (stat_exit), but the latter needs to walk down the list
printing stats. Resulted in segfaults with commands like
    ghc -v0 -e main q.hs -H32m -H32m +RTS -Sstderr
(where q.hs is trivial), but very sensitive to exact commandline and
libc version or something.

12 years agoWhen debugging, have the allocator help us a bit
Ian Lynagh [Mon, 11 Dec 2006 12:49:50 +0000 (12:49 +0000)] 
When debugging, have the allocator help us a bit
We now check for freeing memory that isn't allocated, and overwrite memory
we are about to free with 0xaa.
It might be nice to also have a flag to control whether the memory
actually gets free'd.

12 years agoMore refactoring of constraint simplification
simonpj@microsoft.com [Mon, 11 Dec 2006 16:07:32 +0000 (16:07 +0000)] 
More refactoring of constraint simplification

This patch fixes several bugs in the handling of impliciation
constraints, thereby fixing several regression-suite failures.

On the way I managed to further simplify the code in TcSimplify;
the extra lines are comments.

12 years agoImprove origin of constraints in subsumption checking
simonpj@microsoft.com [Mon, 11 Dec 2006 16:05:57 +0000 (16:05 +0000)] 
Improve origin of constraints in subsumption checking

12 years agoSuggests -fglasgow-exts for contexts-differ-in-length error
simonpj@microsoft.com [Mon, 11 Dec 2006 16:05:17 +0000 (16:05 +0000)] 
Suggests -fglasgow-exts for contexts-differ-in-length error

12 years agoComments and layout only
simonpj@microsoft.com [Mon, 11 Dec 2006 16:04:09 +0000 (16:04 +0000)] 
Comments and layout only

12 years agoRemove strange extra print (a temporary debug?)
simonpj@microsoft.com [Mon, 11 Dec 2006 15:50:35 +0000 (15:50 +0000)] 
Remove strange extra print (a temporary debug?)

13 years agoFix typo
simonpj@microsoft.com [Fri, 8 Dec 2006 13:48:07 +0000 (13:48 +0000)] 
Fix typo

13 years agoImprove parsing for bang patterns (fixes Trac #1041)
simonpj@microsoft.com [Fri, 8 Dec 2006 13:46:29 +0000 (13:46 +0000)] 
Improve parsing for bang patterns (fixes Trac #1041)

12 years agoUnbreak x86_64 PIC patch, part 2
wolfgang.thaller@gmx.net [Sun, 10 Dec 2006 13:27:12 +0000 (13:27 +0000)] 
Unbreak x86_64 PIC patch, part 2

Continue repairing breakage from patch
"x86_64: support PIC and therefore, Mac OS X in the NCG",
this time something affecting (linux && !i386)

12 years agoUse System.IO.stderr rather than IO.stderr in GHCi. Fixes trac #1001.
Ian Lynagh [Sat, 9 Dec 2006 18:51:52 +0000 (18:51 +0000)] 
Use System.IO.stderr rather than IO.stderr in GHCi. Fixes trac #1001.
GHCi evaluates a command to flush the stdout/stderr buffers, but this
command can only use names that are in scope. It used to need IO.stderr
from the haskell98 package, but this patch means it only needs things
from the base package.

12 years agoAdd PowerPC to the list of SMP arches
Ian Lynagh [Sat, 9 Dec 2006 17:42:03 +0000 (17:42 +0000)] 
Add PowerPC to the list of SMP arches

12 years agoMake './darcs-all get --complete' work
sven.panne@aedion.de [Sat, 9 Dec 2006 12:51:54 +0000 (12:51 +0000)] 
Make './darcs-all get --complete' work

13 years agofix for #1013.
Simon Marlow [Thu, 7 Dec 2006 15:16:44 +0000 (15:16 +0000)] 
fix for #1013.
We weren't getting the bitmap right for the continuation BCO in a case-of-case.

13 years agoUnbreak previous x86_64 PIC patch
wolfgang.thaller@gmx.net [Thu, 7 Dec 2006 13:31:08 +0000 (13:31 +0000)] 
Unbreak previous x86_64 PIC patch

Make things compile on Linux again

13 years agoTell the NCG that XOR foo, foo does *not* read foo
wolfgang.thaller@gmx.net [Thu, 7 Dec 2006 13:17:21 +0000 (13:17 +0000)] 
Tell the NCG that XOR foo, foo does *not* read foo

On x86[-64], MachCodeGen uses the old XOR trick to zero a register.
This patch makes regUsage not list the register as an input in this
case.
Listing the register as an input for the instruction could make it
appear like an unitialised value, which is bad because unitialised
values can cause the register allocator to panic (at least in the
presence of a loop).

13 years agox86_64: support PIC and therefore, Mac OS X in the NCG
wolfgang.thaller@gmx.net [Thu, 7 Dec 2006 13:16:07 +0000 (13:16 +0000)] 
x86_64: support PIC and therefore, Mac OS X in the NCG

Supporting x86_64-apple-darwin in the NCG basically boils down to supporting
position-independent code in the NCG.
PIC code works almost exactly the same as on x86_64-linux, while position-dependent
code is not supported at all.
This patch implements -fPIC for x86_64-linux, too, but that is untested.

13 years agoFix family instance consistency check for home package modules
Manuel M T Chakravarty [Thu, 7 Dec 2006 01:41:18 +0000 (01:41 +0000)] 
Fix family instance consistency check for home package modules
* So far, family instance modules was only available for external modules.
* This fixes the "Over" test in the testsuite under indexed-types/

13 years agoKind sigs in associated data/newtype family decls may be omitted
Manuel M T Chakravarty [Wed, 6 Dec 2006 22:33:20 +0000 (22:33 +0000)] 
Kind sigs in associated data/newtype family decls may be omitted
* This is only a slight generalisation of the parser, so that family
  declarations on the toplevel and in classes are uniform.
* I didn't allow that right away as it is a bit tricky to avoid reduce/reduce
  conflicts.

13 years agoAdd release note that Network.CGI.Compat uses XHtml rather than Html
Ian Lynagh [Wed, 6 Dec 2006 14:49:46 +0000 (14:49 +0000)] 
Add release note that Network.CGI.Compat uses XHtml rather than Html

13 years agoImprove dependency analysis; makes more dictionaries inlinable
simonpj@microsoft.com [Wed, 6 Dec 2006 07:18:45 +0000 (07:18 +0000)] 
Improve dependency analysis; makes more dictionaries inlinable

I recentl changed the scoring system used by dependency analysis for
recursive bindings, that it used the *form* of the RHS of a binding,
rather than just its type. In doing so I inadvertently made recursive
dictionary bindings unravel less well, because I'd missed the case
of  c = /\a. C (...) (...)

This patch fixes the problem.  A good example is the instance for
Monad (ST s) or Show (ST s a) in GHC.ST.  It's vital for these
dictionaries to be inlinable.

13 years agoAdd documentation for seq
simonpj@microsoft.com [Mon, 4 Dec 2006 01:31:16 +0000 (01:31 +0000)] 
Add documentation for seq

13 years agoComments only
simonpj@microsoft.com [Mon, 4 Dec 2006 01:30:40 +0000 (01:30 +0000)] 
Comments only

13 years agoMake a ghc/ghci manpage
Ian Lynagh [Tue, 5 Dec 2006 23:52:44 +0000 (23:52 +0000)] 
Make a ghc/ghci manpage
Set GhcManpages=YES in mk/build.mk if you want to build the manpage.

13 years agowe need GHC.Conc.ensureIOManagerIsRunning on Windows too
Simon Marlow [Tue, 5 Dec 2006 16:24:35 +0000 (16:24 +0000)] 
we need GHC.Conc.ensureIOManagerIsRunning on Windows too

13 years agoadd Windows-specific GHCi information, and a FAQ about ^C in GHCi on Windows
Simon Marlow [Tue, 5 Dec 2006 16:11:40 +0000 (16:11 +0000)] 
add Windows-specific GHCi information, and a FAQ about ^C in GHCi on Windows

13 years agoupdate the question about concurrent threads & GHCi
Simon Marlow [Tue, 5 Dec 2006 15:39:47 +0000 (15:39 +0000)] 
update the question about concurrent threads & GHCi

13 years agofix Windows GHCi
Simon Marlow [Mon, 4 Dec 2006 16:43:26 +0000 (16:43 +0000)] 
fix Windows GHCi

13 years agoMERGE: In hashExpr, use Word32 rather than relying on wrapping behaviour of Int
Ian Lynagh [Sun, 3 Dec 2006 22:33:37 +0000 (22:33 +0000)] 
MERGE: In hashExpr, use Word32 rather than relying on wrapping behaviour of Int
Fixes #952, as it turns out.

When compiling via C, we are at the mercy of C's undefined behaviour
with respect to overflow of signed integer operations, and this was
biting us here.

Perhaps we should always add the -fwrapv flag to gcc, but since
Haskell doesn't define overflow on Int either, it seemed the right
thing to do to fix this code anyway.

13 years agoFixed and simplified repository calculation, works via SSH now, too
sven.panne@aedion.de [Sun, 3 Dec 2006 13:48:24 +0000 (13:48 +0000)] 
Fixed and simplified repository calculation, works via SSH now, too

13 years agoAdd support for the IO manager thread on Windows
Simon Marlow [Fri, 1 Dec 2006 14:48:23 +0000 (14:48 +0000)] 
Add support for the IO manager thread on Windows
Fixes #637.
The implications of this change are:
  - threadDelay on Windows no longer creates a new OS thread each time,
    instead it communicates with the IO manager thread in the same way as
    on Unix.
  - deadlock detection now works the same way on Windows as on Unix; that
    is the timer interrupt wakes up the IO manager thread, which causes
    the scheduler to check for deadlock.
  - Console events now get sent to the IO manager thread, in the same way as
    signals do on Unix.  This means that console events should behave more
    reliably with -threaded on Windows.

All this applies only with -threaded.  Without -threaded, the old
ConsoleEvent code is still used.

After some testing, this could be pushed to the 6.6 branch.

13 years agoRemove the Windows Async IO Manager completely in THREADED_RTS mode
Simon Marlow [Fri, 1 Dec 2006 14:07:53 +0000 (14:07 +0000)] 
Remove the Windows Async IO Manager completely in THREADED_RTS mode
It isn't used here anyway, just making sure the code doesn't get compiled in.

13 years agoDecouple -O from -fvia-C
wolfgang.thaller@gmx.net [Fri, 1 Dec 2006 12:53:04 +0000 (12:53 +0000)] 
Decouple -O from -fvia-C

Nowadays, there are situations where -fvia-C is definitely unwanted, such
as when -fPIC is used on some platforms, so we do not want implicit -fvia-C
any more.

13 years agoq
simonpj@microsoft.com [Fri, 1 Dec 2006 03:42:07 +0000 (03:42 +0000)] 
q

13 years agocas(): modify assembly syntax to make it work everywhere (hopefully)
Simon Marlow [Tue, 21 Nov 2006 13:26:46 +0000 (13:26 +0000)] 
cas(): modify assembly syntax to make it work everywhere (hopefully)

13 years agouse "lock cmpxchg" instead of "lock/cmpxchg"
Simon Marlow [Fri, 17 Nov 2006 11:44:29 +0000 (11:44 +0000)] 
use "lock cmpxchg" instead of "lock/cmpxchg"
I'm not sure where the latter version came from, but it apparently
doesn't generate a legal instruction on Solaris.

13 years agoUpdate library version numbers in release notes
Ian Lynagh [Mon, 9 Oct 2006 12:02:43 +0000 (12:02 +0000)] 
Update library version numbers in release notes

13 years agoFix _module_registered bug for sparc linux.
Simon Marlow [Fri, 6 Oct 2006 10:45:34 +0000 (10:45 +0000)] 
Fix _module_registered bug for sparc linux.
Patch by Ferris McCormick <fmccor@gentoo.org>
This patch has been tested with GHC-6.4.2 where it fixes a
huge number of testsuite failures (down from 406 to 17)

13 years agoRemove trace
simonpj@microsoft.com [Wed, 29 Nov 2006 22:52:43 +0000 (22:52 +0000)] 
Remove trace

13 years agoRemove bogus comment
simonpj@microsoft.com [Wed, 29 Nov 2006 22:52:23 +0000 (22:52 +0000)] 
Remove bogus comment

13 years agoTeach SpecConstr how to handle mutually-recursive functions
simonpj@microsoft.com [Wed, 29 Nov 2006 21:39:31 +0000 (21:39 +0000)] 
Teach SpecConstr how to handle mutually-recursive functions

Roman found cases where it was important to do SpecConstr for
mutually-recursive definitions.  Here is one:
foo :: Maybe Int -> Int
foo Nothing  = 0
foo (Just 0) = foo Nothing
foo (Just n) = foo (Just (n-1))
By the time SpecConstr gets to it, it looks like this:
lvl = foo Nothing
foo Nothing  = 0
foo (Just 0) = lvl
foo (Just n) = foo (Just (n-1))

Happily, it turns out to be rather straightforward to generalise the
transformation to mutually-recursive functions.  Look, ma, only 4
extra lines of ocde!

13 years agoImprove the loop-breaking heuristics
simonpj@microsoft.com [Wed, 29 Nov 2006 21:24:40 +0000 (21:24 +0000)] 
Improve the loop-breaking heuristics

The loop-breaking heuristics were making it a high priority to
avoid choosing a variable as a loop breaker if its *type* was a
data type.  The reason is that it's very good to be able to "see"
constructor applications.

But it's only good if the constructor application is *visible*,
so that is what I test for now.  I found a case (when testing
SpecConstr) where I had a Rec like this:
rec { lvl = foo Nothing
      foo = ...
        RULE foo Nothing = ...
        }

Even if lvl has a data type, it's much better to make lvl the loop
breaker, not foo, so that foo's RULE is visible in lvl's RHS.

13 years agoComments only
simonpj@microsoft.com [Wed, 29 Nov 2006 19:42:12 +0000 (19:42 +0000)] 
Comments only

13 years agoMake SpecConstr work right for nullary constructors
simonpj@microsoft.com [Wed, 29 Nov 2006 19:24:21 +0000 (19:24 +0000)] 
Make SpecConstr work right for nullary constructors

For totally stupid reasons, SpecConstr didn't work for the (particularly
easy) case of nullary constructors like True and False.  I just had some
equations in the wrong order, so that a Var case came first, which
matches a nullary constructor, with the constructor-application case
afterwards.

The fix is easy.  I did a bit of refactoring at the same time.

13 years agox86_64 NCG: fix register usage for CALLs
wolfgang.thaller@gmx.net [Wed, 29 Nov 2006 01:34:29 +0000 (01:34 +0000)] 
x86_64 NCG: fix register usage for CALLs

For varargs calls, CALL reads the %al register; record that fact for the benefit of the
register allocator.
(There was a previous attempt to do this, but it was broken.)

13 years agoAdd Win32/configure.ac to the mix
sof@galois.com [Wed, 29 Nov 2006 22:25:13 +0000 (22:25 +0000)] 
Add Win32/configure.ac to the mix

13 years agoTickBox representation change
andy@galois.com [Wed, 29 Nov 2006 22:09:57 +0000 (22:09 +0000)] 
TickBox representation change

This changes the internal representation of TickBoxes,
from
        Note (TickBox "module" n)  <expr>
into

        case tick<module,n> of
          _ -> <expr>

tick has type :: #State #World, when the module and tick numbe
are stored inside IdInfo.

Binary tick boxes change from

         Note (BinaryTickBox "module" t f) <expr>

into

          btick<module,t,f> <expr>

btick has type :: Bool -> Bool, with the module and tick number
stored inside IdInfo.

13 years agoFixing Alts to reflect Alternatives, rather than every pattern match in Hpc.
andy@galois.com [Wed, 1 Nov 2006 23:08:27 +0000 (23:08 +0000)] 
Fixing Alts to reflect Alternatives, rather than every pattern match in Hpc.

13 years agofix to isNormalComment for non-Haddock mode, and some cleanup
Simon Marlow [Wed, 29 Nov 2006 09:32:21 +0000 (09:32 +0000)] 
fix to isNormalComment for non-Haddock mode, and some cleanup

Haddock documentation comments weren't being treated as comments even
without the -haddock flag.  Fixes nofib/spectral/simple, and probably
others.

13 years agoMake the non-threaded-RTS threadDelay wait at least as long as asked
Ian Lynagh [Tue, 28 Nov 2006 21:05:16 +0000 (21:05 +0000)] 
Make the non-threaded-RTS threadDelay wait at least as long as asked

13 years agoretain arity for let-bound vars in simplifier
Kirsten Chevalier [Tue, 28 Nov 2006 13:51:43 +0000 (13:51 +0000)] 
retain arity for let-bound vars in simplifier

13 years agoInitial support for x86_64-darwin
wolfgang.thaller@gmx.net [Mon, 27 Nov 2006 13:06:02 +0000 (13:06 +0000)] 
Initial support for x86_64-darwin

Basic -fvia-C code generation is there, not much testing.

13 years agoSupport I64->I32 casts in the NCG, and use them for I64->Integer conversions
wolfgang.thaller@gmx.net [Fri, 24 Nov 2006 09:41:29 +0000 (09:41 +0000)] 
Support I64->I32 casts in the NCG, and use them for I64->Integer conversions

We can avoid using any other long long operations in PrimOps.cmm.
One more step towards compiling the RTS using the NCG.

13 years agoNCG: Really avoid the need for memory-to-memory moves in the register allocator
wolfgang.thaller@gmx.net [Fri, 24 Nov 2006 09:35:36 +0000 (09:35 +0000)] 
NCG: Really avoid the need for memory-to-memory moves in the register allocator

This is a follow-up to "NCG: Handle loops in register allocator".
The newly-introduced invariant that every virtual register is always assigned to
the same spill slot wasn't kept under all circumstances.
*Now* memory-to-memory moves should never be required when compiling hand-written
cmm code.