summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Reorganisation of the source treeSimon Marlow2006-04-071531-1150/+626
| | | | | | | | | | | | | | | Most of the other users of the fptools build system have migrated to Cabal, and with the move to darcs we can now flatten the source tree without losing history, so here goes. The main change is that the ghc/ subdir is gone, and most of what it contained is now at the top level. The build system now makes no pretense at being multi-project, it is just the GHC build system. No doubt this will break many things, and there will be a period of instability while we fix the dependencies. A straightforward build should work, but I haven't yet fixed binary/source distributions. Changes to the Building Guide will follow, too.
* remove empty dirSimon Marlow2006-01-210-0/+0
|
* rempve some unused filesSimon Marlow2006-01-2168-1946/+0
|
* Add stage2/ghci to ghc-api's import list.Lemmih2006-04-061-0/+1
|
* Don't build GHC with breakpoint support by default.Lemmih2006-04-061-1/+1
|
* GHC.Base.breakpoint isn't vaporware anymore.Lemmih2006-04-0610-33/+251
| | | | | -fignore-breakpoints can be used to ignore breakpoints.
* Add SA_RESTART flag to the timer signal handler.Simon Marlow2006-04-061-0/+11
| | | | | This seems to be necessary to prevent readline being confused by our SIGALRM handler.
* Better messages from HscTypes.showModMsg.Lemmih2006-04-064-13/+17
|
* Turn the "too many hs_exit()s" fatal error into a warningSimon Marlow2006-04-051-1/+2
|
* add freeStorage() prototypeSimon Marlow2006-04-051-0/+1
|
* add support for x86_64; foreign import is now supported in GHCi on x86_64Simon Marlow2006-04-051-7/+176
|
* Correct spelling mistake: GhcState1HcOpts -> GhcStage1HcOptsDuncan Coutts2006-03-301-3/+3
|
* oops, undo accidental patchSimon Marlow2006-03-301-1/+1
|
* fix profiling on Win32Simon Marlow2006-03-303-5/+12
| | | | | The recent patch to free memory in hs_exit() on Win32 unfortunately broke profiling, because it freed the memory slightly too early.
* fix for GHC >= 6.5 againSimon Marlow2006-03-291-1/+1
|
* in stage1, we should get isPrint and isUpper from Compat.Unicode, not Data.CharSimon Marlow2006-03-292-4/+13
|
* Darwin/x86: correct stack alignment in ByteCodeFFIwolfgang.thaller@gmx.net2006-03-291-1/+17
|
* Deal with non-executable memory on Darwin (only an issue on Darwin/x86 so far)wolfgang.thaller@gmx.net2006-03-231-2/+2
|
* add forkOnzh_fast symbolSimon Marlow2006-03-281-0/+1
|
* Add a new primitive forkOn#, for forking a thread on a specific CapabilitySimon Marlow2006-03-276-24/+110
| | | | | | | | | | | | | | | | | | | | This gives some control over affinity, while we figure out the best way to automatically schedule threads to make best use of the available parallelism. In addition to the primitive, there is also: GHC.Conc.forkOnIO :: Int -> IO () -> IO ThreadId where 'forkOnIO i m' creates a thread on Capability (i `rem` N), where N is the number of available Capabilities set by +RTS -N. Threads forked by forkOnIO do not automatically migrate when there are free Capabilities, like normal threads do. Still, if you're using forkOnIO exclusively, it's a good idea to do +RTS -qm to disable work pushing anyway (work pushing takes too much time when the run queues are large, this is something we need to fix).
* eliminate a warningSimon Marlow2006-03-271-1/+1
|
* elimiante a couple of warningsSimon Marlow2006-03-271-1/+1
|
* fix a warningSimon Marlow2006-03-241-1/+1
|
* Add some more flexibility to the multiproc schedulerSimon Marlow2006-03-249-51/+182
| | | | | | | | | | | | | There are two new options in the -threaded RTS: -qm Don't automatically migrate threads between CPUs -qw Migrate a thread to the current CPU when it is woken up previously both of these were effectively off, i.e. threads were migrated between CPUs willy-milly, and threads were always migrated to the current CPU when woken up. This is the first step in tweaking the scheduling for more effective work balancing, there will no doubt be more to come.
* mkDerivedConstants.c depends on ghcplatform.hDuncan Coutts2006-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | I think this missing dep is what broke my parallel build I used make -j2 with ghc-6.4.2.20060323 and got: ------------------------------------------------------------------------ ==fptools== make boot -wr --jobserver-fds=3,11 -j; in /var/tmp/portage/ghc-6.4.2_pre20060323/work/ghc-6.4.2.20060323/ghc/includes ------------------------------------------------------------------------ Creating ghcplatform.h... Done. gcc -O -O2 -march=k8 -pipe -Wa,--noexecstack -c mkDerivedConstants.c -o mkDerivedConstants.o In file included from ghcconfig.h:5, from Stg.h:42, from Rts.h:19, from mkDerivedConstants.c:20: ghcplatform.h:1:1: unterminated #ifndef Done. With this patch applied I can no longer repoduce this build bug. So I think this patch should be applied to the cvs ghc-6-4-branch too.
* small updatesSimon Marlow2006-03-271-15/+4
|
* Allow users of the GHC library to specify which packages have already been ↵Lemmih2006-03-271-2/+7
| | | | | | | | loaded. This is pretty important when using the linker/bytecode-compiler from binaries other than GHCi.
* Fix Darwin/x86 stack alignmentwolfgang.thaller@gmx.net2006-03-251-11/+4
| | | | | | | ... again. For now, I've added a TODO comment, but sooner or later this will have to be made gcc-version-independent.
* Ranlib is required on Darwin/x86, toowolfgang.thaller@gmx.net2006-03-081-1/+1
|
* Darwin Mangler: include alignment statements for symbol stubswolfgang.thaller@gmx.net2006-03-241-0/+3
|
* mark recordMutableCap() with [R1] to avoid saving all regs across itSimon Marlow2006-03-241-1/+1
|
* omit the __DISCARD__() call if unregisterisedSimon Marlow2006-03-241-1/+4
|
* Accept amd64-*-freebsd architectureVolker Stolz2006-03-231-0/+9
|
* gcc is getting smarter, so we need to hit it with a bigger stickSimon Marlow2006-03-231-0/+9
| | | | | | | | | | On x86_64 we are using C argument registers for global registers in the STG machine. This is always going to be problematic when it comes to making C calls from STG and compiling via C. Prior to GCC 4.1.0 (approx) it was possible to just assign the argument expressions to temporaries to avoid a clash. Now, we need to add an extra dummy function call as a barrier between the temporary assignments and the actual call. The dummy call is removed by the mangler.
* -fno-code shouldn't be a mode.Lemmih2006-03-185-26/+37
| | | | | | | | I've removed -fno-code from Main to make it work equally well with --make and -c. I've also allowed it not to write hi files unless -fwrite-iface is given.
* Don't generate stub files when -fno-code is given.Lemmih2006-03-181-5/+1
|
* Documentation for -fno-code and -fwrite-iface.Lemmih2006-03-181-7/+1
|
* on second thoughts, revert the ppc/darwin part of the previous patchSimon Marlow2006-03-221-2/+1
|
* fix for gcc 4.1.xSimon Marlow2006-03-221-6/+10
| | | | | | | We need to use GNUC3_ATTRIBUTE(used) to force gcc to keep the definition of StgRunIsImplementedInAssembler() around. In some cases we had already made this function external rather than static to get around the problem, but GNUC3_ATTRIBUTE(used) is a better fix.
* support for STM objects in the retainer profilerSimon Marlow2006-03-211-0/+80
| | | | addresses #492
* small changes to fix retainer profiling on HEADSimon Marlow2006-03-211-2/+3
|
* tiny cleanupSimon Marlow2006-03-211-1/+1
|
* powerpc64 does not support GHCi right nowSimon Marlow2006-03-211-1/+1
|
* oops, remove temporary testing codeSimon Marlow2006-03-211-2/+0
|
* stopTicker(): wait for the timer thread to exitSimon Marlow2006-03-201-8/+30
|
* fix Win32 buildSimon Marlow2006-03-201-1/+1
|
* Documentation for -fno-code and -fwrite-iface.Lemmih2006-03-181-1/+7
|
* Don't generate stub files when -fno-code is given.Lemmih2006-03-181-1/+5
|
* -fno-code shouldn't be a mode.Lemmih2006-03-185-37/+26
| | | | | | | | I've removed -fno-code from Main to make it work equally well with --make and -c. I've also allowed it not to write hi files unless -fwrite-iface is given.
* Cleanup after the OPTIONS parsing was moved.Lemmih2006-03-122-11/+2
|