ghc-hetmet.git
15 years agoRename maybeTyConSingleCon to tyConSingleDataCon_maybe
Max Bolingbroke [Thu, 31 Jul 2008 01:05:37 +0000 (01:05 +0000)]
Rename maybeTyConSingleCon to tyConSingleDataCon_maybe

15 years agoIgnore git files
Max Bolingbroke [Thu, 31 Jul 2008 01:05:09 +0000 (01:05 +0000)]
Ignore git files

15 years agoFix ifBuildable
Ian Lynagh [Fri, 1 Aug 2008 14:17:31 +0000 (14:17 +0000)]
Fix ifBuildable

15 years agoUpdate assertErrorName; assertError has moved to Control.Exception
Ian Lynagh [Fri, 1 Aug 2008 01:10:28 +0000 (01:10 +0000)]
Update assertErrorName; assertError has moved to Control.Exception

15 years agoFix the catching of "IOEnv failure" with extensible extensions
Ian Lynagh [Thu, 31 Jul 2008 19:42:52 +0000 (19:42 +0000)]
Fix the catching of "IOEnv failure" with extensible extensions

15 years agoFollow changes in the base library
Ian Lynagh [Thu, 31 Jul 2008 17:33:54 +0000 (17:33 +0000)]
Follow changes in the base library
TopHandler now uses the new extensible exceptions module, so we
need to interact with it using the new types.

15 years agoAdd the Exception module to ghc.cabal
Ian Lynagh [Wed, 30 Jul 2008 21:34:19 +0000 (21:34 +0000)]
Add the Exception module to ghc.cabal

15 years agoFix building with extensible exceptions
Ian Lynagh [Wed, 30 Jul 2008 19:45:08 +0000 (19:45 +0000)]
Fix building with extensible exceptions

15 years agoMark the ghc package as not exposed
Ian Lynagh [Wed, 30 Jul 2008 17:21:24 +0000 (17:21 +0000)]
Mark the ghc package as not exposed

15 years agoFollow extensible exception changes
Ian Lynagh [Wed, 30 Jul 2008 12:01:34 +0000 (12:01 +0000)]
Follow extensible exception changes

15 years agoWhen raising NonTermination with the RTS, build the right value
Ian Lynagh [Sat, 21 Jun 2008 14:45:28 +0000 (14:45 +0000)]
When raising NonTermination with the RTS, build the right value
We now use a nonTermination value in the base library to take take of
constructing the SomeException value, with the dictionaries etc, for us.
We'll probably need to do the same for some other exceptions too

15 years agoFix the way we pass GMP_INCLUDE_DIRS to hsc2hs; spotted by Andres Loh
Ian Lynagh [Wed, 30 Jul 2008 11:47:13 +0000 (11:47 +0000)]
Fix the way we pass GMP_INCLUDE_DIRS to hsc2hs; spotted by Andres Loh
We were still building the flags in Haskell list syntax, but we now pass
the arguments directly rather than constructing a Haskell program with
them.

15 years agoworkaround #2277: turn off the RTS timer when calling into editline
Simon Marlow [Wed, 30 Jul 2008 13:59:18 +0000 (13:59 +0000)]
workaround #2277: turn off the RTS timer when calling into editline

15 years agoFIX #2388: check that the operand fits before using the 'test' opcode
Simon Marlow [Wed, 30 Jul 2008 10:52:31 +0000 (10:52 +0000)]
FIX #2388: check that the operand fits before using the 'test' opcode

15 years agooops, fix a small pessimisation made in previous refactoring
Simon Marlow [Wed, 30 Jul 2008 10:52:03 +0000 (10:52 +0000)]
oops, fix a small pessimisation made in previous refactoring

15 years agoFIX #2375: remove oc->lochash completely, it apparently isn't used
Simon Marlow [Wed, 30 Jul 2008 10:12:52 +0000 (10:12 +0000)]
FIX #2375: remove oc->lochash completely, it apparently isn't used

15 years agoFix a typo in powerpc/Linux-only code; spotted by Jeroen Pulles
Ian Lynagh [Tue, 29 Jul 2008 21:40:07 +0000 (21:40 +0000)]
Fix a typo in powerpc/Linux-only code; spotted by Jeroen Pulles

15 years agoAdd the runghc wrapper script
Ian Lynagh [Tue, 29 Jul 2008 21:18:52 +0000 (21:18 +0000)]
Add the runghc wrapper script

15 years agoMake cabal-bin not do any building, even of Setup.hs, when it is asked to clean
Ian Lynagh [Tue, 29 Jul 2008 20:24:10 +0000 (20:24 +0000)]
Make cabal-bin not do any building, even of Setup.hs, when it is asked to clean

15 years agoUpdate the test in Makefile that we have all the boot libs
Ian Lynagh [Tue, 29 Jul 2008 20:16:40 +0000 (20:16 +0000)]
Update the test in Makefile that we have all the boot libs

15 years agoUpdate boot's test that we have all of the bootlibs
Ian Lynagh [Tue, 29 Jul 2008 20:10:32 +0000 (20:10 +0000)]
Update boot's test that we have all of the bootlibs

15 years agoMake the push-all script complain about bad lines
Ian Lynagh [Tue, 29 Jul 2008 20:06:13 +0000 (20:06 +0000)]
Make the push-all script complain about bad lines

15 years agoAdd some comments to packages/darcs-all
Ian Lynagh [Tue, 29 Jul 2008 15:19:34 +0000 (15:19 +0000)]
Add some comments to packages/darcs-all

15 years agoRemove ndp from libraries/Makefile. We now use dph instead.
Ian Lynagh [Tue, 29 Jul 2008 14:19:17 +0000 (14:19 +0000)]
Remove ndp from libraries/Makefile. We now use dph instead.

15 years agoAdd dph to ./packages and darcs-all
Ian Lynagh [Tue, 29 Jul 2008 14:18:50 +0000 (14:18 +0000)]
Add dph to ./packages and darcs-all

15 years agoRemove cabal-install from ./packages; we've decided not to build it
Ian Lynagh [Tue, 29 Jul 2008 14:18:24 +0000 (14:18 +0000)]
Remove cabal-install from ./packages; we've decided not to build it

15 years agoFIX #2327: a fault in the thunk-selector machinery (again)
Simon Marlow [Tue, 29 Jul 2008 15:05:18 +0000 (15:05 +0000)]
FIX #2327: a fault in the thunk-selector machinery (again)
This program contains an expression of the form

   let x = snd (_, snd (_, snd (_, x)))

(probably not explicitly, but that's what appears in the heap at
runtime).  Obviously the program should deadlock if it ever enters
this thing, but apparently the test program in #2327 never does.

The GC tries to evaluate the snd closures, and gets confused due to
the loop.  In particular the earlier fix for #1038 was to blame.

15 years agoFIX #2332: avoid overflow on 64-bit machines in the memory allocator
Simon Marlow [Tue, 29 Jul 2008 15:04:59 +0000 (15:04 +0000)]
FIX #2332: avoid overflow on 64-bit machines in the memory allocator

15 years agoChange the calling conventions for unboxed tuples slightly
Simon Marlow [Mon, 28 Jul 2008 15:56:21 +0000 (15:56 +0000)]
Change the calling conventions for unboxed tuples slightly
When returning an unboxed tuple with a single non-void component, we
now use the same calling convention as for returning a value of the
same type as that component.  This means that the return convention
for IO now doesn't vary depending on the platform, which make some
parts of the RTS simpler, and fixes a problem I was having with making
the FFI work in unregisterised GHCi (the byte-code compiler makes
some assumptions about calling conventions to keep things simple).

15 years agodon't strip the inplace GHC executables (for debugging)
Simon Marlow [Mon, 28 Jul 2008 13:46:47 +0000 (13:46 +0000)]
don't strip the inplace GHC executables (for debugging)

15 years agoComplete the changes for #1205
Simon Marlow [Mon, 28 Jul 2008 10:51:41 +0000 (10:51 +0000)]
Complete the changes for #1205
Now ":load M" always searches for a module called "M", rather than
using a file called "M.hs" if that exists.  To get the file semantics
(i.e. not loading "M.o"), use ":load M.hs".

15 years agoupdate the comments about how we find $topdir
Simon Marlow [Fri, 25 Jul 2008 15:14:06 +0000 (15:14 +0000)]
update the comments about how we find $topdir

15 years agounderstand absolute pathnames on Windows too
Simon Marlow [Mon, 28 Jul 2008 10:22:43 +0000 (10:22 +0000)]
understand absolute pathnames on Windows too

15 years agochange where we put gcc-lib/ld.exe to keep Cabal happy
Simon Marlow [Mon, 28 Jul 2008 10:08:52 +0000 (10:08 +0000)]
change where we put gcc-lib/ld.exe to keep Cabal happy

15 years agomove an inline function to keep older versions of gcc happy
Simon Marlow [Fri, 25 Jul 2008 14:47:08 +0000 (14:47 +0000)]
move an inline function to keep older versions of gcc happy
no idea why this only just showed up...

15 years agotry to fix the way we find $topdir
Simon Marlow [Fri, 25 Jul 2008 14:28:28 +0000 (14:28 +0000)]
try to fix the way we find $topdir

15 years agofor the installed versions, don't use dynamic-linking wrappers
Simon Marlow [Fri, 25 Jul 2008 13:45:51 +0000 (13:45 +0000)]
for the installed versions, don't use dynamic-linking wrappers

15 years agodon't steal %ebx for the GC on x86: it's also used by PIC
Simon Marlow [Fri, 25 Jul 2008 12:29:21 +0000 (12:29 +0000)]
don't steal %ebx for the GC on x86: it's also used by PIC

15 years agoSRT labels don't need to be globally visible
Simon Marlow [Fri, 25 Jul 2008 08:09:01 +0000 (08:09 +0000)]
SRT labels don't need to be globally visible
Saves space in the symbol table and speeds up linking

15 years agoDon't prematurely link shared libraries against the RTS package
Simon Marlow [Thu, 24 Jul 2008 15:50:01 +0000 (15:50 +0000)]
Don't prematurely link shared libraries against the RTS package
We want to be able to pick the RTS flavour (e.g. -threaded) when we
link the final program.

15 years agoadd --enable-shared to configure, and $(BuildSharedLibs) to the build system
Simon Marlow [Thu, 24 Jul 2008 15:49:25 +0000 (15:49 +0000)]
add --enable-shared to configure, and $(BuildSharedLibs) to the build system

15 years agouse RTLD_LAZY instead of RTLD_NOW
Simon Marlow [Thu, 24 Jul 2008 15:27:27 +0000 (15:27 +0000)]
use RTLD_LAZY instead of RTLD_NOW
RTLD_NOW apparently causes some problems, according to previous
mailing-list discussion

 http://www.haskell.org/pipermail/cvs-ghc/2007-September/038570.html

15 years agodebug output tweak
Simon Marlow [Thu, 24 Jul 2008 15:26:36 +0000 (15:26 +0000)]
debug output tweak

15 years agosmall cleanup
Simon Marlow [Thu, 24 Jul 2008 15:16:14 +0000 (15:16 +0000)]
small cleanup

15 years agoFix building runghc on Windows
Ian Lynagh [Thu, 24 Jul 2008 18:28:31 +0000 (18:28 +0000)]
Fix building runghc on Windows

15 years agoFollow darcs-all changes in push-all
Ian Lynagh [Thu, 24 Jul 2008 16:41:53 +0000 (16:41 +0000)]
Follow darcs-all changes in push-all

15 years agoRejig how darcs-all works
Ian Lynagh [Thu, 24 Jul 2008 16:41:42 +0000 (16:41 +0000)]
Rejig how darcs-all works
It's now easier to add new repos anywhere in the source tree

15 years agoRemove the OpenGL family of libraries from extralibs
Ian Lynagh [Thu, 24 Jul 2008 10:27:36 +0000 (10:27 +0000)]
Remove the OpenGL family of libraries from extralibs

15 years agocompiler/package.conf.in is no longer used, so remove it
Ian Lynagh [Thu, 24 Jul 2008 10:16:10 +0000 (10:16 +0000)]
compiler/package.conf.in is no longer used, so remove it

15 years agoallow EXTRA_HC_OPTS to be used from the command-line
Simon Marlow [Thu, 24 Jul 2008 08:17:28 +0000 (08:17 +0000)]
allow EXTRA_HC_OPTS to be used from the command-line

15 years agoput the inplace GHC in stageN-inplace/ghc instead of stageN-inplace/bin/ghc
Simon Marlow [Thu, 24 Jul 2008 08:09:51 +0000 (08:09 +0000)]
put the inplace GHC in stageN-inplace/ghc instead of stageN-inplace/bin/ghc
just saves a bit of typing

15 years agoadd a "rebuild" target for convenience
Simon Marlow [Wed, 23 Jul 2008 14:32:01 +0000 (14:32 +0000)]
add a "rebuild" target for convenience

15 years agoset PAPI_LIB_DIR="" when we don't have PAPI (clean up package.conf)
Simon Marlow [Tue, 22 Jul 2008 14:13:27 +0000 (14:13 +0000)]
set PAPI_LIB_DIR="" when we don't have PAPI (clean up package.conf)

15 years agoremove -fvia-C that I apparrently accidentally added recently
Simon Marlow [Tue, 22 Jul 2008 14:12:55 +0000 (14:12 +0000)]
remove -fvia-C that I apparrently accidentally added recently

15 years agoFix a build error on powerpc/Linux; spotted by Jeroen Pulles
Ian Lynagh [Wed, 23 Jul 2008 19:19:48 +0000 (19:19 +0000)]
Fix a build error on powerpc/Linux; spotted by Jeroen Pulles

15 years agoIf the extension is not .lhs, runghc now treats it as .hs; fixes trac #1232
Ian Lynagh [Wed, 23 Jul 2008 18:21:56 +0000 (18:21 +0000)]
If the extension is not .lhs, runghc now treats it as .hs; fixes trac #1232

15 years agorunghc now uses the compiler that it comes with; fixes trac #1281
Ian Lynagh [Wed, 23 Jul 2008 18:11:15 +0000 (18:11 +0000)]
runghc now uses the compiler that it comes with; fixes trac #1281
rather than the first one that it finds on the PATH

15 years agoUse the upstream hsc2hs repo
Ian Lynagh [Wed, 23 Jul 2008 15:50:21 +0000 (15:50 +0000)]
Use the upstream hsc2hs repo

15 years agoRemove some redundancy in darcs-all
Ian Lynagh [Wed, 23 Jul 2008 14:38:04 +0000 (14:38 +0000)]
Remove some redundancy in darcs-all

15 years agoTell Cabal where gcc is
Ian Lynagh [Wed, 23 Jul 2008 00:12:02 +0000 (00:12 +0000)]
Tell Cabal where gcc is

15 years agoUndo fix for #2185: sparks really should be treated as roots
Simon Marlow [Wed, 23 Jul 2008 12:52:05 +0000 (12:52 +0000)]
Undo fix for #2185: sparks really should be treated as roots
Unless sparks are roots, strategies don't work at all: all the sparks
get GC'd.  We need to think about this some more.

15 years agofix bug in sparkPoolSize (affects debug output only)
Simon Marlow [Wed, 23 Jul 2008 10:43:22 +0000 (10:43 +0000)]
fix bug in sparkPoolSize (affects debug output only)

15 years agodebug message tweaks
Simon Marlow [Wed, 23 Jul 2008 09:00:50 +0000 (09:00 +0000)]
debug message tweaks

15 years agorefactoring/tidyup: (not.is64BitInteger) -> is32BitInteger
Simon Marlow [Tue, 22 Jul 2008 09:21:13 +0000 (09:21 +0000)]
refactoring/tidyup: (not.is64BitInteger) -> is32BitInteger

15 years agonon-threaded RTS: don't assume deadlock if there are signal handlers to run
Simon Marlow [Tue, 15 Jul 2008 13:03:16 +0000 (13:03 +0000)]
non-threaded RTS: don't assume deadlock if there are signal handlers to run

15 years agoupdate the text about header files and -#include
Simon Marlow [Tue, 15 Jul 2008 10:11:19 +0000 (10:11 +0000)]
update the text about header files and -#include

15 years agoadd NetBSD to some of the #ifdefs (patch partly from 6.8 branch)
Simon Marlow [Mon, 14 Jul 2008 14:50:40 +0000 (14:50 +0000)]
add NetBSD to some of the #ifdefs (patch partly from 6.8 branch)

15 years agoWarn about unrecognised pragmas; these often mean we've typoed
Ian Lynagh [Tue, 22 Jul 2008 23:55:50 +0000 (23:55 +0000)]
Warn about unrecognised pragmas; these often mean we've typoed

15 years agoSync hsc2hs's Main.hs with the Cabal repo
Ian Lynagh [Tue, 22 Jul 2008 20:36:46 +0000 (20:36 +0000)]
Sync hsc2hs's Main.hs with the Cabal repo

15 years agoWe need to clean the utils on "distclean", as well as "clean"
Ian Lynagh [Tue, 22 Jul 2008 17:07:54 +0000 (17:07 +0000)]
We need to clean the utils on "distclean", as well as "clean"

15 years agoClean stage 3
Ian Lynagh [Tue, 22 Jul 2008 17:05:42 +0000 (17:05 +0000)]
Clean stage 3

15 years agoAdd replacements for the -optdep flags, and deprecate the old ones
Ian Lynagh [Tue, 22 Jul 2008 16:33:08 +0000 (16:33 +0000)]
Add replacements for the -optdep flags, and deprecate the old ones

15 years agoFix the stage3 build
Ian Lynagh [Tue, 22 Jul 2008 12:57:43 +0000 (12:57 +0000)]
Fix the stage3 build

15 years agoFixes for haddock 0.8
Ian Lynagh [Mon, 21 Jul 2008 09:52:56 +0000 (09:52 +0000)]
Fixes for haddock 0.8

15 years agohaddock the stage2 compiler if HADDOCK_DOCS is YES
Ian Lynagh [Sun, 20 Jul 2008 22:06:22 +0000 (22:06 +0000)]
haddock the stage2 compiler if HADDOCK_DOCS is YES

15 years agoFirst step for getting rid of the old -optdep flags
Ian Lynagh [Sun, 20 Jul 2008 20:32:39 +0000 (20:32 +0000)]
First step for getting rid of the old -optdep flags
They are now handled by the main flag parser, rather than having their
own praser that runs later.

As an added bonus, 5 global variables are also gone.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:31:51 +0000 (17:31 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:31:17 +0000 (17:31 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:31:05 +0000 (17:31 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:30:17 +0000 (17:30 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:26:14 +0000 (17:26 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:24:01 +0000 (17:24 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:22:42 +0000 (17:22 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:22:22 +0000 (17:22 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:21:39 +0000 (17:21 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:21:14 +0000 (17:21 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:20:54 +0000 (17:20 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:20:10 +0000 (17:20 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:17:23 +0000 (17:17 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:15:54 +0000 (17:15 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:15:29 +0000 (17:15 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:14:24 +0000 (17:14 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:11:13 +0000 (17:11 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:07:08 +0000 (17:07 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:06:01 +0000 (17:06 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 17:04:21 +0000 (17:04 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 16:58:45 +0000 (16:58 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 16:56:37 +0000 (16:56 +0000)]
Fix Haddock errors.

15 years agoFix Haddock errors.
Thomas Schilling [Sun, 20 Jul 2008 16:41:33 +0000 (16:41 +0000)]
Fix Haddock errors.

15 years agoProperly comment out unused pragmas
Ian Lynagh [Sun, 20 Jul 2008 13:56:04 +0000 (13:56 +0000)]
Properly comment out unused pragmas
We now say
    -- {-# SPECIALIZE ...
rather than
    {-# -- SPECIALIZE ...