ghc-hetmet.git
21 years ago[project @ 2003-05-01 10:25:38 by simonmar]
simonmar [Thu, 1 May 2003 10:25:38 +0000 (10:25 +0000)]
[project @ 2003-05-01 10:25:38 by simonmar]
Use the DocBook 4.1 DTD instead of 3.1.  Seems to work fine...

21 years ago[project @ 2003-05-01 08:43:54 by simonmar]
simonmar [Thu, 1 May 2003 08:43:54 +0000 (08:43 +0000)]
[project @ 2003-05-01 08:43:54 by simonmar]
Remove special cases for the setting of $(libdir) and $(datadir) on
mingw32, after discussion with Sigbjorn.

21 years ago[project @ 2003-04-29 21:37:31 by wolfgang]
wolfgang [Tue, 29 Apr 2003 21:37:31 +0000 (21:37 +0000)]
[project @ 2003-04-29 21:37:31 by wolfgang]
Unbreak Mac OS X build (#ifdef mixup)

21 years ago[project @ 2003-04-29 09:32:20 by simonmar]
simonmar [Tue, 29 Apr 2003 09:32:20 +0000 (09:32 +0000)]
[project @ 2003-04-29 09:32:20 by simonmar]
update aLL_NON_PTRS for the new RET_DYN stack frame layout.

21 years ago[project @ 2003-04-28 10:02:15 by simonmar]
simonmar [Mon, 28 Apr 2003 10:02:15 +0000 (10:02 +0000)]
[project @ 2003-04-28 10:02:15 by simonmar]
Add a compile-time sanity check that RESERVED_STACK_WORDS is right.

21 years ago[project @ 2003-04-28 09:57:12 by simonmar]
simonmar [Mon, 28 Apr 2003 09:57:12 +0000 (09:57 +0000)]
[project @ 2003-04-28 09:57:12 by simonmar]
Comments to note the relationship between the RET_DYN stack frame size
and RESERVED_STACK_WORDS.

21 years ago[project @ 2003-04-28 09:55:20 by simonmar]
simonmar [Mon, 28 Apr 2003 09:55:20 +0000 (09:55 +0000)]
[project @ 2003-04-28 09:55:20 by simonmar]
Following the recent change to the layout of the StgRetDyn frame, we
now need to bump RESERVED_STACK_WORDS because this governs the amount
of room which is guaranteed to be available on the stack in the event
of a stack check failure.

This accounts for at least one cause of recent crashes in the HEAD.

21 years ago[project @ 2003-04-27 10:37:01 by qrczak]
qrczak [Sun, 27 Apr 2003 10:37:01 +0000 (10:37 +0000)]
[project @ 2003-04-27 10:37:01 by qrczak]
Strings in perl are compared by eq, not ==.
Fixes creating "nul" files on Unix.

21 years ago[project @ 2003-04-27 10:30:13 by qrczak]
qrczak [Sun, 27 Apr 2003 10:30:13 +0000 (10:30 +0000)]
[project @ 2003-04-27 10:30:13 by qrczak]
s/symbol link/symbolic link/

21 years ago[project @ 2003-04-25 20:58:09 by panne]
panne [Fri, 25 Apr 2003 20:58:09 +0000 (20:58 +0000)]
[project @ 2003-04-25 20:58:09 by panne]
Unbreak 2nd stage

21 years ago[project @ 2003-04-25 09:17:05 by simonmar]
simonmar [Fri, 25 Apr 2003 09:17:05 +0000 (09:17 +0000)]
[project @ 2003-04-25 09:17:05 by simonmar]
- Add a note about the incorrect handling of the 'module Main where'
  header.

- While I'm here: fix out of date stuff, reformat and generally tidy up.

21 years ago[project @ 2003-04-23 10:42:36 by simonmar]
simonmar [Wed, 23 Apr 2003 10:42:36 +0000 (10:42 +0000)]
[project @ 2003-04-23 10:42:36 by simonmar]
Make a leading '~' expand to $HOME in commands that load source files
(:load, :add) in addition to :cd which already had this behaviour.

21 years ago[project @ 2003-04-23 08:54:45 by simonmar]
simonmar [Wed, 23 Apr 2003 08:54:45 +0000 (08:54 +0000)]
[project @ 2003-04-23 08:54:45 by simonmar]
Oops, forgot to update this file after the RET_DYN changes.

21 years ago[project @ 2003-04-22 20:39:59 by igloo]
igloo [Tue, 22 Apr 2003 20:40:00 +0000 (20:40 +0000)]
[project @ 2003-04-22 20:39:59 by igloo]
Order declarations in reifications in order of source line number.
The bugs still there but it bites less often now...

Also remove the type parameterisation and do some type renaming as
discussed on the template-haskell list.

21 years ago[project @ 2003-04-22 16:25:08 by simonmar]
simonmar [Tue, 22 Apr 2003 16:25:12 +0000 (16:25 +0000)]
[project @ 2003-04-22 16:25:08 by simonmar]
Fix an obscure bug: the most general kind of heap check,
HEAP_CHECK_GEN(), is supposed to save the contents of *every* register
known to the STG machine (used in cases where we either can't figure
out which ones are live, or doing so would be too much hassle).  The
problem is that it wasn't saving the L1 register.

A slight complication arose in that saving the L1 register pushed the
size of the frame over the 16 words allowed for the size of the bitmap
stored in the frame, so I changed the layout of the frame a bit.
Describing all the registers using a single bitmap is overkill when
only 8 of them can actually be pointers, so now the bitmap is only 8
bits long and we always skip over a fixed number of non-ptr words to
account for all the non-ptr regs.  This is all described in StgMacros.h.

21 years ago[project @ 2003-04-22 11:44:17 by simonpj]
simonpj [Tue, 22 Apr 2003 11:44:17 +0000 (11:44 +0000)]
[project @ 2003-04-22 11:44:17 by simonpj]
Fix the context for derived Typeable instances

21 years ago[project @ 2003-04-22 09:30:52 by simonpj]
simonpj [Tue, 22 Apr 2003 09:30:53 +0000 (09:30 +0000)]
[project @ 2003-04-22 09:30:52 by simonpj]
Stage-2 wibbles to the Expected type changes

21 years ago[project @ 2003-04-21 14:45:28 by sof]
sof [Mon, 21 Apr 2003 14:45:28 +0000 (14:45 +0000)]
[project @ 2003-04-21 14:45:28 by sof]
drop curious *_debug_opts_prefix tables; no longer used

21 years ago[project @ 2003-04-18 09:45:32 by simonmar]
simonmar [Fri, 18 Apr 2003 09:45:32 +0000 (09:45 +0000)]
[project @ 2003-04-18 09:45:32 by simonmar]
Add a comment about the entry convention to stg_ap_* and why it's done
this way (thanks to Andy Moran for the prodding).

21 years ago[project @ 2003-04-18 09:40:10 by simonmar]
simonmar [Fri, 18 Apr 2003 09:40:10 +0000 (09:40 +0000)]
[project @ 2003-04-18 09:40:10 by simonmar]
Just noticed that all the stack checks in stg_ap_[1-8]_entry are too
low by one word.  Thanks to Andy Moran for (unwittingly) causing me peer
at this code.

21 years ago[project @ 2003-04-17 15:23:32 by simonpj]
simonpj [Thu, 17 Apr 2003 15:23:37 +0000 (15:23 +0000)]
[project @ 2003-04-17 15:23:32 by simonpj]
----------------------------------
Implement Typeable properly
----------------------------------

1.  Add 'deriving' for Typeable class. So you can say

data T a b = .... deriving( Typeable )

    At the moment you only get this if you ask for it. If you say
    nothing you get nothing.

2.  Implement Typeable better, with proper O(1) comparison of
    type representations

3.  Add the 'cast' operation described in 'Scrap your boilerplate'
    and use it.

4.  Consequence: need to move the definition of IOArray from
    Data.Array.IO.Internals to GHC.IOBase, where it joins IORef.
    This is necssary so that HashTable can be low down in the compilation
    hierarchy, and hence so can Dynamic.

WARNING: I'm not certain the imports in HashTable and Dynamic
 will all be right for Hugs and NHC. I hope you can
    fix them up.

21 years ago[project @ 2003-04-17 15:22:38 by simonpj]
simonpj [Thu, 17 Apr 2003 15:22:41 +0000 (15:22 +0000)]
[project @ 2003-04-17 15:22:38 by simonpj]
Comments

21 years ago[project @ 2003-04-17 14:12:15 by simonpj]
simonpj [Thu, 17 Apr 2003 14:12:15 +0000 (14:12 +0000)]
[project @ 2003-04-17 14:12:15 by simonpj]
Comments

21 years ago[project @ 2003-04-17 12:00:58 by simonmar]
simonmar [Thu, 17 Apr 2003 12:00:58 +0000 (12:00 +0000)]
[project @ 2003-04-17 12:00:58 by simonmar]
Comment fix

21 years ago[project @ 2003-04-17 07:13:54 by simonpj]
simonpj [Thu, 17 Apr 2003 07:13:54 +0000 (07:13 +0000)]
[project @ 2003-04-17 07:13:54 by simonpj]
Update hi-boot files

21 years ago[project @ 2003-04-16 13:34:13 by simonpj]
simonpj [Wed, 16 Apr 2003 13:34:17 +0000 (13:34 +0000)]
[project @ 2003-04-16 13:34:13 by simonpj]
----------------------------------
 Use the Infer/Check idea for typechecking higher-rank types
----------------------------------

The main idea is that

data Expected ty = Infer (TcRef ty) | Check ty

tcMonoExpr :: Expr -> Expected TcRhoType -> TcM Expra

This "Expected" type tells tcMonoExpr whether it's doing inference or
checking.  It replaces the "HoleTv" flavour of type variable.

This actually leads to slightly more lines of code, but it's much
clearer, and the new type distinctions showed up several subtle bugs
in the previous implementation.  It all arose out of writing the
prototype implementation for the paper.

Error messages wibble around a little bit.  I'm not quite certain why!  But the
changes look like improvements to me.

21 years ago[project @ 2003-04-15 14:37:12 by simonmar]
simonmar [Tue, 15 Apr 2003 14:37:12 +0000 (14:37 +0000)]
[project @ 2003-04-15 14:37:12 by simonmar]
Fix bug in forkProcess: it should be using RET_N rather than returing
directly.  Makes a difference for unregisterised only.

Remove dead code in atomicModifyMVarzh_fast.

21 years ago[project @ 2003-04-14 13:36:04 by simonpj]
simonpj [Mon, 14 Apr 2003 13:36:04 +0000 (13:36 +0000)]
[project @ 2003-04-14 13:36:04 by simonpj]
Guidance about tags on windows

21 years ago[project @ 2003-04-14 13:15:52 by simonpj]
simonpj [Mon, 14 Apr 2003 13:15:52 +0000 (13:15 +0000)]
[project @ 2003-04-14 13:15:52 by simonpj]
Remove -- option for HSTAGS for tags target, now that we are using hasktags instead

21 years ago[project @ 2003-04-14 08:52:07 by simonmar]
simonmar [Mon, 14 Apr 2003 08:52:07 +0000 (08:52 +0000)]
[project @ 2003-04-14 08:52:07 by simonmar]
We support hs_init() and friends now, so remove the point that says we
don't.

21 years ago[project @ 2003-04-12 16:38:23 by panne]
panne [Sat, 12 Apr 2003 16:38:23 +0000 (16:38 +0000)]
[project @ 2003-04-12 16:38:23 by panne]
Typo :-}

21 years ago[project @ 2003-04-12 16:27:24 by panne]
panne [Sat, 12 Apr 2003 16:27:24 +0000 (16:27 +0000)]
[project @ 2003-04-12 16:27:24 by panne]
Unbreak 2nd stage: GHC.Posix => System.Posix.Internals

21 years ago[project @ 2003-04-12 09:39:03 by panne]
panne [Sat, 12 Apr 2003 09:39:03 +0000 (09:39 +0000)]
[project @ 2003-04-12 09:39:03 by panne]
Fixed the -print arg to a $(FIND) command, so as to be more compatible
with shells.  :-)

21 years ago[project @ 2003-04-11 13:09:44 by simonmar]
simonmar [Fri, 11 Apr 2003 13:09:44 +0000 (13:09 +0000)]
[project @ 2003-04-11 13:09:44 by simonmar]
Add -print to some $(FIND) commands, so as to be more compatible with
non-GNU finds.

21 years ago[project @ 2003-04-11 13:04:37 by simonmar]
simonmar [Fri, 11 Apr 2003 13:04:37 +0000 (13:04 +0000)]
[project @ 2003-04-11 13:04:37 by simonmar]
The Id for a foreign import should be a LocalId, not a GlobalId.
Making it a GlobalId violates the invariant that all Ids defined in
the current module should be LocalIds until CoreTidy.

21 years ago[project @ 2003-04-11 12:51:45 by simonmar]
simonmar [Fri, 11 Apr 2003 12:51:45 +0000 (12:51 +0000)]
[project @ 2003-04-11 12:51:45 by simonmar]
Add an ASSERT to confirm an invariant: all Ids defined in this module
should be LocalIds until the CoreTidy phase.

21 years ago[project @ 2003-04-11 12:24:30 by simonmar]
simonmar [Fri, 11 Apr 2003 12:24:30 +0000 (12:24 +0000)]
[project @ 2003-04-11 12:24:30 by simonmar]
remove spurious backslash

21 years ago[project @ 2003-04-11 08:27:53 by simonpj]
simonpj [Fri, 11 Apr 2003 08:27:55 +0000 (08:27 +0000)]
[project @ 2003-04-11 08:27:53 by simonpj]
More simplifier wibbles to do with the arity transfer stuff

21 years ago[project @ 2003-04-10 21:27:54 by wolfgang]
wolfgang [Thu, 10 Apr 2003 21:27:54 +0000 (21:27 +0000)]
[project @ 2003-04-10 21:27:54 by wolfgang]
Mac OS X/Darwin: Fix two more mangler bugs. Maybe the profiling libraries will work this time...

MERGE TO STABLE

21 years ago[project @ 2003-04-10 16:52:26 by simonpj]
simonpj [Thu, 10 Apr 2003 16:52:26 +0000 (16:52 +0000)]
[project @ 2003-04-10 16:52:26 by simonpj]
Wibble to arity fix

21 years ago[project @ 2003-04-10 15:46:11 by simonpj]
simonpj [Thu, 10 Apr 2003 15:46:11 +0000 (15:46 +0000)]
[project @ 2003-04-10 15:46:11 by simonpj]
A subtle type checker bug, which showed up in rebindable1 test

21 years ago[project @ 2003-04-10 14:45:48 by simonpj]
simonpj [Thu, 10 Apr 2003 14:45:48 +0000 (14:45 +0000)]
[project @ 2003-04-10 14:45:48 by simonpj]
Handle Int literals in TH

21 years ago[project @ 2003-04-10 14:44:18 by simonpj]
simonpj [Thu, 10 Apr 2003 14:44:18 +0000 (14:44 +0000)]
[project @ 2003-04-10 14:44:18 by simonpj]
----------------------------------
       Fix a long-standing eta-reduction bug
----------------------------------

Consider the stupid definition

f = \x -> f x

We were erroneously eta-reducing this to

f = f

(unsound because they'd be distinguishable by `seq`)

The reason was that simplLazyBind was exposing the arity of
a recursive function to its own RHS, when all it was really
trying to do was expose the *rules* for the function.

Easily fixed.   This fixes some

"Bad eta expand"

warnings.  Good all round.  In particular, fixes rn006.

21 years ago[project @ 2003-04-10 14:43:52 by simonpj]
simonpj [Thu, 10 Apr 2003 14:43:52 +0000 (14:43 +0000)]
[project @ 2003-04-10 14:43:52 by simonpj]
comments

21 years ago[project @ 2003-04-10 11:33:56 by simonpj]
simonpj [Thu, 10 Apr 2003 11:33:56 +0000 (11:33 +0000)]
[project @ 2003-04-10 11:33:56 by simonpj]
Comments

21 years ago[project @ 2003-04-10 08:09:51 by simonpj]
simonpj [Thu, 10 Apr 2003 08:09:51 +0000 (08:09 +0000)]
[project @ 2003-04-10 08:09:51 by simonpj]
Two win32 wibbles

21 years ago[project @ 2003-04-09 08:44:53 by simonpj]
simonpj [Wed, 9 Apr 2003 08:44:53 +0000 (08:44 +0000)]
[project @ 2003-04-09 08:44:53 by simonpj]
Document how to get rid of the console window

21 years ago[project @ 2003-04-09 08:44:37 by simonpj]
simonpj [Wed, 9 Apr 2003 08:44:37 +0000 (08:44 +0000)]
[project @ 2003-04-09 08:44:37 by simonpj]
wibble

21 years ago[project @ 2003-04-09 08:07:58 by simonpj]
simonpj [Wed, 9 Apr 2003 08:07:58 +0000 (08:07 +0000)]
[project @ 2003-04-09 08:07:58 by simonpj]
-------------------------------------
      Fix a functional-dependency-related bug in
tcSimpifyRestricted
-------------------------------------

MERGE TO STABLE if it goes over conveniently
(but I rather think it may not)

tcSimplifyRestricted works by (a) simplifying brutall to find out
what the constrained type variables are, and (b) simplifying more
gently, knowing the constrained type varaibles.  The bug is that
in step (b) we were not doing the check-for-improvement-and-loop
part, thinking that step (a) had alrady done all the improvement.
But not so, as an example in the code now shows.

Simple to fix.  I rather think we could tidy up these various loops.

21 years ago[project @ 2003-04-09 07:48:31 by simonpj]
simonpj [Wed, 9 Apr 2003 07:48:31 +0000 (07:48 +0000)]
[project @ 2003-04-09 07:48:31 by simonpj]
Comments

21 years ago[project @ 2003-04-08 15:54:24 by sof]
sof [Tue, 8 Apr 2003 15:54:24 +0000 (15:54 +0000)]
[project @ 2003-04-08 15:54:24 by sof]
if needs be, include Capability.h

21 years ago[project @ 2003-04-08 15:53:51 by sof]
sof [Tue, 8 Apr 2003 15:53:51 +0000 (15:53 +0000)]
[project @ 2003-04-08 15:53:51 by sof]
resumeThread: concCall arg is universally unused (but leave it in for now)

21 years ago[project @ 2003-04-08 15:32:38 by sof]
sof [Tue, 8 Apr 2003 15:32:38 +0000 (15:32 +0000)]
[project @ 2003-04-08 15:32:38 by sof]
UPD_IND_NOLOCK(): update THREADED_RTS & SMP versions wrt rts/Storage.h:updateWithIndirection() change

21 years ago[project @ 2003-04-08 13:06:48 by simonpj]
simonpj [Tue, 8 Apr 2003 13:06:48 +0000 (13:06 +0000)]
[project @ 2003-04-08 13:06:48 by simonpj]
----------------------------------
   Try swapping order of inference for applications
----------------------------------

For a long time we've inferred the argument types of a function
call before using information from the expected type passed in.
This commit swaps the order.  See comments with tcApp for an
example where this makes a real difference.

I don't think any error messages get signficantly worse, but yell
if you find any.

21 years ago[project @ 2003-04-08 13:03:58 by simonpj]
simonpj [Tue, 8 Apr 2003 13:03:58 +0000 (13:03 +0000)]
[project @ 2003-04-08 13:03:58 by simonpj]
Better error messages

21 years ago[project @ 2003-04-08 13:03:42 by simonpj]
simonpj [Tue, 8 Apr 2003 13:03:42 +0000 (13:03 +0000)]
[project @ 2003-04-08 13:03:42 by simonpj]
ToDo comments

21 years ago[project @ 2003-04-08 11:27:30 by simonpj]
simonpj [Tue, 8 Apr 2003 11:27:30 +0000 (11:27 +0000)]
[project @ 2003-04-08 11:27:30 by simonpj]
Improve error messages on newtype deriving

21 years ago[project @ 2003-04-08 11:01:00 by simonpj]
simonpj [Tue, 8 Apr 2003 11:01:00 +0000 (11:01 +0000)]
[project @ 2003-04-08 11:01:00 by simonpj]
Fix unbox-strict-fields deriving bug; MERGE TO STABLE

21 years ago[project @ 2003-04-06 22:08:49 by igloo]
igloo [Sun, 6 Apr 2003 22:08:49 +0000 (22:08 +0000)]
[project @ 2003-04-06 22:08:49 by igloo]
Typecheck type reification brackets [t| ... |]

21 years ago[project @ 2003-04-04 09:11:02 by reid]
reid [Fri, 4 Apr 2003 09:11:02 +0000 (09:11 +0000)]
[project @ 2003-04-04 09:11:02 by reid]
Missing commit from last night: Add GreenCard files, GreenCard derived files, etc. to the lists of sources so that make depend and make clean work

21 years ago[project @ 2003-04-02 00:28:59 by sof]
sof [Wed, 2 Apr 2003 00:28:59 +0000 (00:28 +0000)]
[project @ 2003-04-02 00:28:59 by sof]
threadStackOverflow() wibble

21 years ago[project @ 2003-04-01 17:09:40 by sof]
sof [Tue, 1 Apr 2003 17:09:40 +0000 (17:09 +0000)]
[project @ 2003-04-01 17:09:40 by sof]
updated and sync'ed wrt ClosureTypes.h

21 years ago[project @ 2003-04-01 15:40:27 by sof]
sof [Tue, 1 Apr 2003 15:40:27 +0000 (15:40 +0000)]
[project @ 2003-04-01 15:40:27 by sof]
comment update

21 years ago[project @ 2003-04-01 15:28:20 by sof]
sof [Tue, 1 Apr 2003 15:28:21 +0000 (15:28 +0000)]
[project @ 2003-04-01 15:28:20 by sof]
Have Literal.Literal support the representation of NULL pointers only,
and not arbitrary pointer values.

(MachAddr <some-pointer-value-as-an-Integer>) wasn't being used,
except to handle nullAddr#. It (MachAddr) is a potential source of
problems should the compiler start doing constant folding or other
interesting operations over MachAddrs (think: interface files +
cross-compilation), so we might as well scale back the representation
of raw pointer values.

21 years ago[project @ 2003-04-01 15:05:13 by sof]
sof [Tue, 1 Apr 2003 15:05:22 +0000 (15:05 +0000)]
[project @ 2003-04-01 15:05:13 by sof]
Tidy up code that supports user/Haskell signal handlers.

Signals.h now defines RTS_USER_SIGNALS when this is supported,
which is then used elsewhere.

21 years ago[project @ 2003-04-01 09:35:13 by simonmar]
simonmar [Tue, 1 Apr 2003 09:35:13 +0000 (09:35 +0000)]
[project @ 2003-04-01 09:35:13 by simonmar]
Don't constant-fold (negateFloat# 0.0#), because the compiler's
internal representation of floating-point literals (Rational) can't
represent -0.0.  This means that

   main = print (-0.0)

now gives the same results with -O as it does without.

Fixes test arith005.

21 years ago[project @ 2003-03-31 19:19:34 by sof]
sof [Mon, 31 Mar 2003 19:19:34 +0000 (19:19 +0000)]
[project @ 2003-03-31 19:19:34 by sof]
- Stable.c:enlargeStablePtrTable(): plug a mem leak,
  the (re-)allocation is in bytes, not words.
- nuke RtsUtils.c:stgMallocWords(),
       RtsUtils.c:stgReallocWords()

21 years ago[project @ 2003-03-31 14:02:32 by simonmar]
simonmar [Mon, 31 Mar 2003 14:02:32 +0000 (14:02 +0000)]
[project @ 2003-03-31 14:02:32 by simonmar]
On 32-bit platforms, add a bunch of symbols from libgcc.a used to
support 64-bit arithmetic.

It looks like these symbols are defined in libc on some platforms but
not others, but it shouldn't do any harm to include them in the list
of symbols that the linker knows about even if they're also in libc.
They were already included for some platforms (cygwin, mingw, and
darwin), this commit just includes then whenever we're compiling with
gcc on a 32-bit platform.

21 years ago[project @ 2003-03-31 13:08:49 by simonmar]
simonmar [Mon, 31 Mar 2003 13:08:49 +0000 (13:08 +0000)]
[project @ 2003-03-31 13:08:49 by simonmar]
Mention that our Read class accepts hex and octal literals, as an
extension to Haskell 98.

21 years ago[project @ 2003-03-31 12:42:04 by simonmar]
simonmar [Mon, 31 Mar 2003 12:42:04 +0000 (12:42 +0000)]
[project @ 2003-03-31 12:42:04 by simonmar]
Booting from HC fixes (slightly tweaked for the HEAD)

Submitted by: Urban Boquist <boquist@crt.se>

21 years ago[project @ 2003-03-31 12:37:41 by simonmar]
simonmar [Mon, 31 Mar 2003 12:37:41 +0000 (12:37 +0000)]
[project @ 2003-03-31 12:37:41 by simonmar]
HC bootstrapping fixes

Submitted by: Urban Boquist <boquist@crt.se>

21 years ago[project @ 2003-03-31 12:35:21 by simonmar]
simonmar [Mon, 31 Mar 2003 12:35:21 +0000 (12:35 +0000)]
[project @ 2003-03-31 12:35:21 by simonmar]
Include NetBSD support

Submitted by: Urban Boquist <boquist@crt.se>

21 years ago[project @ 2003-03-31 12:26:07 by simonmar]
simonmar [Mon, 31 Mar 2003 12:26:07 +0000 (12:26 +0000)]
[project @ 2003-03-31 12:26:07 by simonmar]
NetBSD fixes

Submitted by: Urban Boquist <boquist@crt.se>

21 years ago[project @ 2003-03-31 12:24:50 by simonmar]
simonmar [Mon, 31 Mar 2003 12:24:50 +0000 (12:24 +0000)]
[project @ 2003-03-31 12:24:50 by simonmar]
Comments only

Submitted by: Urban Boquist <boquist@crt.se>

21 years ago[project @ 2003-03-31 12:23:41 by simonmar]
simonmar [Mon, 31 Mar 2003 12:23:41 +0000 (12:23 +0000)]
[project @ 2003-03-31 12:23:41 by simonmar]
Fixes to subdir ordering for booting from HC files.

Submitted by: Urban Boquist <boquist@crt.se>

21 years ago[project @ 2003-03-31 12:22:11 by simonmar]
simonmar [Mon, 31 Mar 2003 12:22:11 +0000 (12:22 +0000)]
[project @ 2003-03-31 12:22:11 by simonmar]
Tweaks to make it work again (at least with 5.04.3)

Submitted by: Urban Boquist <boquist@crt.se>

21 years ago[project @ 2003-03-31 12:17:36 by simonmar]
simonmar [Mon, 31 Mar 2003 12:17:36 +0000 (12:17 +0000)]
[project @ 2003-03-31 12:17:36 by simonmar]
Fixes to the hc-file-bundle

Submitted by: Urban Boquist <boquist@crt.se>

21 years ago[project @ 2003-03-29 00:27:11 by sof]
sof [Sat, 29 Mar 2003 00:27:11 +0000 (00:27 +0000)]
[project @ 2003-03-29 00:27:11 by sof]
startTicker(): pass in the tick handler as an arg

21 years ago[project @ 2003-03-29 00:00:41 by sof]
sof [Sat, 29 Mar 2003 00:00:44 +0000 (00:00 +0000)]
[project @ 2003-03-29 00:00:41 by sof]
win32 tidyup: exclude Select.c, Itimer.c and Signals.c from SRCS

21 years ago[project @ 2003-03-28 23:46:39 by sof]
sof [Fri, 28 Mar 2003 23:46:40 +0000 (23:46 +0000)]
[project @ 2003-03-28 23:46:39 by sof]
block_vtalrm_signal() and unblock_vtalrm_signal(): unused, disable.

21 years ago[project @ 2003-03-28 15:47:15 by sof]
sof [Fri, 28 Mar 2003 15:47:15 +0000 (15:47 +0000)]
[project @ 2003-03-28 15:47:15 by sof]
fix ProjectVersion

21 years ago[project @ 2003-03-28 15:13:52 by sof]
sof [Fri, 28 Mar 2003 15:13:52 +0000 (15:13 +0000)]
[project @ 2003-03-28 15:13:52 by sof]
FIRST_BLOCK_OFF: more parens (for prec table illiterates like me)

21 years ago[project @ 2003-03-28 01:59:05 by sof]
sof [Fri, 28 Mar 2003 01:59:08 +0000 (01:59 +0000)]
[project @ 2003-03-28 01:59:05 by sof]
Off-by-one tidyup.

ALLOC_AP, ALLOC_PAP and MKAP were all being constructed
with size arguments equal to (1+number of args/FVs) in
ByteCodeGen.schemeE, only for Interpreter.c to subtract 1
when fishing out the payloads. This commit drops the
up-and-downery.

Simplification spotted by Andy Moran

21 years ago[project @ 2003-03-27 22:35:28 by sof]
sof [Thu, 27 Mar 2003 22:35:29 +0000 (22:35 +0000)]
[project @ 2003-03-27 22:35:28 by sof]
be gone

21 years ago[project @ 2003-03-27 17:59:09 by sof]
sof [Thu, 27 Mar 2003 17:59:12 +0000 (17:59 +0000)]
[project @ 2003-03-27 17:59:09 by sof]
NCG support for f.e.d. stdcall -- Literal.MachLabels now optionally carry
the size (in bytes) of the stack frame it expects, if known. That just
so happens to match what stdcall labels need to be annotated with when
emitting them in the NCG..

21 years ago[project @ 2003-03-27 13:54:31 by simonmar]
simonmar [Thu, 27 Mar 2003 13:54:32 +0000 (13:54 +0000)]
[project @ 2003-03-27 13:54:31 by simonmar]
Two performance tweaks:

  - Use specialised indirections, which perform the right kind of
    return without needing to enter the object they point to.  This
    saves a small percentages of memory reads.

  - Tweak the update code to generate better code with gcc.  This
    saves a few instructions per update.

21 years ago[project @ 2003-03-27 08:25:31 by simonpj]
simonpj [Thu, 27 Mar 2003 08:25:31 +0000 (08:25 +0000)]
[project @ 2003-03-27 08:25:31 by simonpj]
-------------------------------------
      Fix a wibble in default-type setting for TH
-------------------------------------

When a bunch of declarations contains no 'default' declaration,
we were setting 'defaultDefaultTys' as appropriate default types.
This isn't right for Template Haskell, which may have more than
one bunch of top-level decls.  (The bunches are separated by
top-level declaration splices.)

Instead, if there is no 'default' declaration we should do nothing.

21 years ago[project @ 2003-03-27 08:21:27 by simonpj]
simonpj [Thu, 27 Mar 2003 08:21:27 +0000 (08:21 +0000)]
[project @ 2003-03-27 08:21:27 by simonpj]
-------------------------------------
      Respect SPECIALISE pragmas in instance decls
-------------------------------------

For some time now we have simply been discarding SPECIALISE pragmas
in instance declarations.  I think this was my fault, at some point
when I was re-plumbing TcClassDcl.lhs, but it's been this way for
some time.

The only uses of this facility in the Prelude are in GHC/Float.lhs
and GHC/Real.lhs, which affected the efficiency of the Float and
Double instance of properFraction, floor, ceiling, etc.

Ah well, it's fixed now.

21 years ago[project @ 2003-03-27 08:18:21 by simonpj]
simonpj [Thu, 27 Mar 2003 08:18:21 +0000 (08:18 +0000)]
[project @ 2003-03-27 08:18:21 by simonpj]
Reduce tctrace verbosity

21 years ago[project @ 2003-03-27 08:16:29 by simonpj]
simonpj [Thu, 27 Mar 2003 08:17:59 +0000 (08:17 +0000)]
[project @ 2003-03-27 08:16:29 by simonpj]
Import wibbles

21 years ago[project @ 2003-03-26 18:59:34 by sof]
sof [Wed, 26 Mar 2003 18:59:34 +0000 (18:59 +0000)]
[project @ 2003-03-26 18:59:34 by sof]
allocatePinned(): move large-object check to the front

21 years ago[project @ 2003-03-26 17:43:05 by sof]
sof [Wed, 26 Mar 2003 17:43:05 +0000 (17:43 +0000)]
[project @ 2003-03-26 17:43:05 by sof]
bring rts_mainLazyIO() into scope

21 years ago[project @ 2003-03-26 17:40:57 by sof]
sof [Wed, 26 Mar 2003 17:40:58 +0000 (17:40 +0000)]
[project @ 2003-03-26 17:40:57 by sof]
wibbles - drop references to PleaseStopAllocating(), use CloseNursery() to express ExtendNursery()

21 years ago[project @ 2003-03-26 17:33:49 by sof]
sof [Wed, 26 Mar 2003 17:33:49 +0000 (17:33 +0000)]
[project @ 2003-03-26 17:33:49 by sof]
initStorage(): sm_mutex not correctly initialised (guess no one's done an SMP build for the past 12 months :)

21 years ago[project @ 2003-03-26 15:56:25 by simonmar]
simonmar [Wed, 26 Mar 2003 15:56:25 +0000 (15:56 +0000)]
[project @ 2003-03-26 15:56:25 by simonmar]
Add __attribute__((regparm(1))) to evacuate()'s prototype.  This
avoids a lot of stack assignments between scavenge() and
evacuate().  Performance isn't affected measurably, though.

21 years ago[project @ 2003-03-26 14:52:02 by simonmar]
simonmar [Wed, 26 Mar 2003 14:52:02 +0000 (14:52 +0000)]
[project @ 2003-03-26 14:52:02 by simonmar]
Fix bug in previous two commits: must check HEAP_ALLOCED() before
using Bdescr().

21 years ago[project @ 2003-03-26 12:33:10 by simonmar]
simonmar [Wed, 26 Mar 2003 12:33:11 +0000 (12:33 +0000)]
[project @ 2003-03-26 12:33:10 by simonmar]
Check for the rlim_t type

21 years ago[project @ 2003-03-26 02:12:38 by sof]
sof [Wed, 26 Mar 2003 02:12:38 +0000 (02:12 +0000)]
[project @ 2003-03-26 02:12:38 by sof]
gen_map_mblocks(): add comment re: issues that need to be addressed should anyone want to tackle the ToDo item

21 years ago[project @ 2003-03-25 18:00:19 by sof]
sof [Tue, 25 Mar 2003 18:00:19 +0000 (18:00 +0000)]
[project @ 2003-03-25 18:00:19 by sof]
bring rts_mainLazyIO() into scope

21 years ago[project @ 2003-03-25 17:58:47 by sof]
sof [Tue, 25 Mar 2003 17:58:51 +0000 (17:58 +0000)]
[project @ 2003-03-25 17:58:47 by sof]
to ease replacement of the underlying allocator used by stgMallocBytes() and friends, provide (&use) RtsUtils.c:stgFree()