simonmar [Wed, 8 Nov 2000 13:51:58 +0000 (13:51 +0000)]
[project @ 2000-11-08 13:51:58 by simonmar]
Fixes for compiling w/ 4.08.1
simonmar [Wed, 8 Nov 2000 13:51:16 +0000 (13:51 +0000)]
[project @ 2000-11-08 13:51:16 by simonmar]
-fvia-C for Main.hs; it uses myThreadId
simonmar [Wed, 8 Nov 2000 10:22:03 +0000 (10:22 +0000)]
[project @ 2000-11-08 10:22:03 by simonmar]
document options to ./configure.
simonmar [Tue, 7 Nov 2000 18:00:26 +0000 (18:00 +0000)]
[project @ 2000-11-07 18:00:26 by simonmar]
URK! when scanning the heap we might find a DEAD_WEAK that either (a)
is the size of a WEAK, because we just overwrote its info table, or
(b) is the size of a DEAD_WEAK, because its been around at least one
GC. The code herein only accounted for case (a).
Fix: check the word at location p+sizeof(DEAD_WEAK), see whether it
looks like an info table ptr, and if so we're in case (b). This is
guaranteed to work, because we know that in case (a) the appropriate
word will be a closure pointer.
simonmar [Tue, 7 Nov 2000 17:05:47 +0000 (17:05 +0000)]
[project @ 2000-11-07 17:05:47 by simonmar]
Clean ups:
- reduce the namespace pollution of StgTypes.h, it doesn't define
the shorthand versions any more (W_, I_ etc.). These are moved into
Stg.h. StgTypes.h also defines StgClosure as an "opaque" struct.
- RtsAPI.h is now standalone, and includes HsFFI.h and thereby
config.h & StgTypes.h. Now we don't need to #include "Stg.h" in
*_stub.c.
- all the rts_mkXXXX and rts_getXXXX functions are defined in terms
of the HsXXXX types rather than random C types (this fixes some
potential bugs in our foreign export support).
- added HsWord type, to match StgWord. The Haskell version of this
type isn't "documented", but perhaps it should be.
simonmar [Tue, 7 Nov 2000 16:39:15 +0000 (16:39 +0000)]
[project @ 2000-11-07 16:39:15 by simonmar]
small fixes
simonmar [Tue, 7 Nov 2000 16:24:25 +0000 (16:24 +0000)]
[project @ 2000-11-07 16:24:25 by simonmar]
wibble
simonmar [Tue, 7 Nov 2000 16:03:38 +0000 (16:03 +0000)]
[project @ 2000-11-07 16:03:38 by simonmar]
Fix compilation with 4.08.1
simonmar [Tue, 7 Nov 2000 15:38:31 +0000 (15:38 +0000)]
[project @ 2000-11-07 15:38:31 by simonmar]
conditionalise imports of StgInterp etc.
simonmar [Tue, 7 Nov 2000 15:28:36 +0000 (15:28 +0000)]
[project @ 2000-11-07 15:28:36 by simonmar]
add hsc2hs, missed in the merge
simonmar [Tue, 7 Nov 2000 15:21:43 +0000 (15:21 +0000)]
[project @ 2000-11-07 15:21:38 by simonmar]
This commit completes the merge of compiler part
of the HEAD with the before-ghci-branch to
before-ghci-branch-merged.
simonmar [Tue, 7 Nov 2000 14:07:09 +0000 (14:07 +0000)]
[project @ 2000-11-07 14:07:09 by simonmar]
add -optc-DGHCI
simonmar [Tue, 7 Nov 2000 14:01:53 +0000 (14:01 +0000)]
[project @ 2000-11-07 14:01:53 by simonmar]
revert 1.109 (ghci isn't included in DIRS unless we're bootstrapping)
simonmar [Tue, 7 Nov 2000 13:30:41 +0000 (13:30 +0000)]
[project @ 2000-11-07 13:30:40 by simonmar]
Wave goodbye to FLOATS_AS_DOUBLES, it was a somewhat misconceived idea
which will cause trouble with the FFI on 64-bit machines.
simonpj [Tue, 7 Nov 2000 13:12:24 +0000 (13:12 +0000)]
[project @ 2000-11-07 13:12:21 by simonpj]
More small changes
simonmar [Tue, 7 Nov 2000 10:42:57 +0000 (10:42 +0000)]
[project @ 2000-11-07 10:42:55 by simonmar]
merge before-ghci -> before-ghci-branch-merged into the ghc
(non-compiler) parts of the tree.
simonmar [Tue, 7 Nov 2000 10:38:17 +0000 (10:38 +0000)]
[project @ 2000-11-07 10:38:17 by simonmar]
kill this file once and for all
simonmar [Tue, 7 Nov 2000 10:20:03 +0000 (10:20 +0000)]
[project @ 2000-11-07 10:20:03 by simonmar]
Merge before-ghci -> before-ghci-branch-merged in the non-ghc parts of
the tree.
rrt [Mon, 6 Nov 2000 16:43:28 +0000 (16:43 +0000)]
[project @ 2000-11-06 16:43:28 by rrt]
Updated to reflect reality and be a bit more helpful.
simonmar [Mon, 6 Nov 2000 13:14:52 +0000 (13:14 +0000)]
[project @ 2000-11-06 13:14:52 by simonmar]
build the rts *after* the compiler
simonmar [Mon, 6 Nov 2000 13:13:17 +0000 (13:13 +0000)]
[project @ 2000-11-06 13:13:17 by simonmar]
Change the way source distributions are built.
Now we do a 'make boot', 'make distclean', build a link tree to filter
some files out (eg. .cvsignore), and finally tar up the result. The
process isn't bulletproof, so it makes sense to compare the manifest
against previous versions.
Now you don't have to be in a linked build tree to make a source
distribution.
simonmar [Mon, 6 Nov 2000 13:09:52 +0000 (13:09 +0000)]
[project @ 2000-11-06 13:09:52 by simonmar]
.depend should be in DIST_CLEAN, not MAINTAINER_CLEAN
simonmar [Mon, 6 Nov 2000 12:00:49 +0000 (12:00 +0000)]
[project @ 2000-11-06 12:00:49 by simonmar]
sgmlverb.c is in maintainer-clean
simonmar [Mon, 6 Nov 2000 11:33:22 +0000 (11:33 +0000)]
[project @ 2000-11-06 11:33:22 by simonmar]
config.status should be in distclean
simonpj [Mon, 6 Nov 2000 10:52:00 +0000 (10:52 +0000)]
[project @ 2000-11-06 10:52:00 by simonpj]
Remove FunDeps hi-boot files
simonpj [Mon, 6 Nov 2000 10:50:29 +0000 (10:50 +0000)]
[project @ 2000-11-06 10:50:29 by simonpj]
Remove SpecEnv.hi-boot-5; hasnt been used for ages
simonmar [Mon, 6 Nov 2000 10:09:42 +0000 (10:09 +0000)]
[project @ 2000-11-06 10:09:42 by simonmar]
enhance the clean target for doc subdirs
simonmar [Mon, 6 Nov 2000 10:09:08 +0000 (10:09 +0000)]
[project @ 2000-11-06 10:09:08 by simonmar]
clean more files: %.s for each %.hs/%.lhs, *_stub.{c,h}, *.raw_s.
simonpj [Mon, 6 Nov 2000 08:15:24 +0000 (08:15 +0000)]
[project @ 2000-11-06 08:15:20 by simonpj]
Dealing with instance-decl imports; and removing unnecessary imports
simonpj [Fri, 3 Nov 2000 17:10:58 +0000 (17:10 +0000)]
[project @ 2000-11-03 17:10:57 by simonpj]
More renamer... not in a working state I fear
simonmar [Fri, 3 Nov 2000 17:09:00 +0000 (17:09 +0000)]
[project @ 2000-11-03 17:09:00 by simonmar]
clean up Parser.info in MAINTAINER_CLEAN.
simonmar [Fri, 3 Nov 2000 17:08:36 +0000 (17:08 +0000)]
[project @ 2000-11-03 17:08:36 by simonmar]
"make clean" fixes
simonmar [Fri, 3 Nov 2000 16:54:52 +0000 (16:54 +0000)]
[project @ 2000-11-03 16:54:52 by simonmar]
"make clean" fixes
simonmar [Fri, 3 Nov 2000 16:39:00 +0000 (16:39 +0000)]
[project @ 2000-11-03 16:39:00 by simonmar]
Remove unused files.
simonmar [Fri, 3 Nov 2000 16:30:53 +0000 (16:30 +0000)]
[project @ 2000-11-03 16:30:53 by simonmar]
maintainer-clean should include distclean.
simonmar [Fri, 3 Nov 2000 16:23:39 +0000 (16:23 +0000)]
[project @ 2000-11-03 16:23:37 by simonmar]
"make clean" in here now works as advertised.
sewardj [Fri, 3 Nov 2000 11:36:30 +0000 (11:36 +0000)]
[project @ 2000-11-03 11:36:30 by sewardj]
Finally get CompManager to compile. Also rm some redundant imports.
sewardj [Fri, 3 Nov 2000 11:30:23 +0000 (11:30 +0000)]
[project @ 2000-11-03 11:30:23 by sewardj]
stgSyn/StgInterp_HC_OPTS ---> ghci/StgInterp_HC_OPTS
simonmar [Fri, 3 Nov 2000 11:29:00 +0000 (11:29 +0000)]
[project @ 2000-11-03 11:29:00 by simonmar]
don't generate heimdall.summary unless -heimdall is on.
simonmar [Fri, 3 Nov 2000 11:25:35 +0000 (11:25 +0000)]
[project @ 2000-11-03 11:25:35 by simonmar]
Prepend "./" to the command to run only if the file exists in the
current directory, rather than based on whether the command begins
with a ''/'. This means that 'make HC=ghc-4.08.1' in ghc/tests works
as expected.
simonmar [Fri, 3 Nov 2000 10:42:39 +0000 (10:42 +0000)]
[project @ 2000-11-03 10:42:39 by simonmar]
remind me that -nohi doesn't do anything
simonmar [Fri, 3 Nov 2000 10:38:26 +0000 (10:38 +0000)]
[project @ 2000-11-03 10:38:26 by simonmar]
remind me what this test does
simonmar [Thu, 2 Nov 2000 14:33:15 +0000 (14:33 +0000)]
[project @ 2000-11-02 14:33:15 by simonmar]
Found a better way to do the arch test for $(GhcWithInterpreter), used
it for $(GhcWithNativeCodeGen) too and removed one $(shell...).
simonmar [Thu, 2 Nov 2000 14:27:02 +0000 (14:27 +0000)]
[project @ 2000-11-02 14:27:01 by simonmar]
Cleaning up the configuration/build process.
- New build.mk option: GhcWithInterpreter. It has reasonable
defaults, and shouldn't need to be overriden (you get the interpreter
if you're bootstrapping with ghc 4.09+ on an ELF architecture, at
the moment).
- compilation manager now lives in compiler/compMan. compiler/ghci
contains only interpreter-related files.
- WithGhcHc has gone, it now defaults to $(GHC). This is so that
we can reliably determine the version of $(GHC) using the stuff that
configure tells us. configure gets a new --with-ghc option so you
can specify which ghc to use.
sewardj [Thu, 2 Nov 2000 13:58:45 +0000 (13:58 +0000)]
[project @ 2000-11-02 13:58:44 by sewardj]
Most, but not all changes needed to get CompManager to compile.
simonmar [Thu, 2 Nov 2000 13:36:44 +0000 (13:36 +0000)]
[project @ 2000-11-02 13:36:44 by simonmar]
Remove GhcWithRegisterised since it isn't used. It might be
re-instated later if/when we decide on the right way to implement it.
simonpj [Thu, 2 Nov 2000 10:17:49 +0000 (10:17 +0000)]
[project @ 2000-11-02 10:17:49 by simonpj]
Omitted do-nothing case in SimplCore
simonpj [Wed, 1 Nov 2000 17:15:30 +0000 (17:15 +0000)]
[project @ 2000-11-01 17:15:28 by simonpj]
More renamer commits
Versioning now works properly I think.
The main irritation is that interface files now have fuly-qualified names for
*everything*, even things defined in that module. This is a deficiency in
the pretty printing for interface files. Probable solution: add something
to the SDoc styles. But not today.
simonmar [Wed, 1 Nov 2000 11:57:29 +0000 (11:57 +0000)]
[project @ 2000-11-01 11:57:29 by simonmar]
Add the GLADE config for the front panel, tweak a few things.
simonmar [Wed, 1 Nov 2000 11:41:47 +0000 (11:41 +0000)]
[project @ 2000-11-01 11:41:47 by simonmar]
Add a basic "front panel" for GHC-compiled programs.
How to use it:
- re-autoconf & configure to detect GTK+
- add "GhcRtsWithFrontPanel = YES" to mk/build.mk
- rebuild the RTS
- compile up a program, add `gtk-config --libs` to the
link command line
- run with program with +RTS -f,
- sit back & watch the show :-) Programs with lots of
heap-resident data are the most interesting. For extra
kicks, turn up the number of generations & steps like so:
+RTS -f -G5 -T3.
- Bootstrap your compiler, and see in glorious technicolor
just how much of a lumbering beast GHC really is.
This is a work in progress. There's lots more stuff we could display
on the panel: suggestions/comments are of course welcome. The window
layout was designed with GLADE, I'll commit the config file shortly.
I haven't quite figured out how we're going to integrate this with the
release yet (ie. whether we'll distribute two separate RTS's or what).
simonmar [Tue, 31 Oct 2000 17:48:51 +0000 (17:48 +0000)]
[project @ 2000-10-31 17:48:51 by simonmar]
document <command>hs2c</command>
simonmar [Tue, 31 Oct 2000 17:48:31 +0000 (17:48 +0000)]
[project @ 2000-10-31 17:48:31 by simonmar]
docbook police
simonpj [Tue, 31 Oct 2000 17:30:18 +0000 (17:30 +0000)]
[project @ 2000-10-31 17:30:16 by simonpj]
PrelBase compiles!
sewardj [Tue, 31 Oct 2000 13:01:46 +0000 (13:01 +0000)]
[project @ 2000-10-31 13:01:46 by sewardj]
* Stop pipeline when recompilation not needed.
* Check OPTIONS pragmas for non-dynamic flags.
* Misc wibbles.
simonpj [Tue, 31 Oct 2000 12:07:44 +0000 (12:07 +0000)]
[project @ 2000-10-31 12:07:43 by simonpj]
Improve MkIface; get ready for NameEnv.lhs
simonmar [Tue, 31 Oct 2000 11:16:30 +0000 (11:16 +0000)]
[project @ 2000-10-31 11:16:30 by simonmar]
display unknown flags with a leading dash.
simonmar [Tue, 31 Oct 2000 11:16:12 +0000 (11:16 +0000)]
[project @ 2000-10-31 11:16:12 by simonmar]
remove extra leading dash from isStaticFlag predicate
simonmar [Tue, 31 Oct 2000 11:13:29 +0000 (11:13 +0000)]
[project @ 2000-10-31 11:13:29 by simonmar]
- fix the way flags, don't complain about non-static way flags
- reset the dyn flags before each compilation cycle
simonmar [Tue, 31 Oct 2000 10:52:04 +0000 (10:52 +0000)]
[project @ 2000-10-31 10:52:04 by simonmar]
GHC_INPLACE is in ghc/compiler now.
simonpj [Tue, 31 Oct 2000 10:04:41 +0000 (10:04 +0000)]
[project @ 2000-10-31 10:04:41 by simonpj]
Error in TcDeriv
simonpj [Tue, 31 Oct 2000 09:58:13 +0000 (09:58 +0000)]
[project @ 2000-10-31 09:58:13 by simonpj]
Make it work again!
simonpj [Tue, 31 Oct 2000 08:08:39 +0000 (08:08 +0000)]
[project @ 2000-10-31 08:08:38 by simonpj]
More tidying up; esp of isLocallyDefined
sewardj [Mon, 30 Oct 2000 18:13:16 +0000 (18:13 +0000)]
[project @ 2000-10-30 18:13:15 by sewardj]
Move readIface from RnM to IO, and commensurate changes. Also, add a
field to ModuleLocation to hold preprocessed source locations.
rrt [Mon, 30 Oct 2000 17:37:05 +0000 (17:37 +0000)]
[project @ 2000-10-30 17:37:05 by rrt]
cp and chmod during install switched over in case we're copying from a
read-only medium or something.
simonpj [Mon, 30 Oct 2000 17:18:28 +0000 (17:18 +0000)]
[project @ 2000-10-30 17:18:26 by simonpj]
Renamer tidying up
sewardj [Mon, 30 Oct 2000 13:46:24 +0000 (13:46 +0000)]
[project @ 2000-10-30 13:46:24 by sewardj]
Only pass a ModuleLocation into hscMain, not a ModSummary, so as to
facilitate Main.main not necessarily being in Main.hs.
sewardj [Mon, 30 Oct 2000 11:36:09 +0000 (11:36 +0000)]
[project @ 2000-10-30 11:36:09 by sewardj]
Don't be so promiscuous about hoovering up any and all files into the
home/package directory caches.
sewardj [Mon, 30 Oct 2000 11:18:14 +0000 (11:18 +0000)]
[project @ 2000-10-30 11:18:14 by sewardj]
Tmp hacks to allow source-unchangedness to work in one-shot compilation.
simonpj [Mon, 30 Oct 2000 11:01:58 +0000 (11:01 +0000)]
[project @ 2000-10-30 11:01:58 by simonpj]
wibble
simonpj [Mon, 30 Oct 2000 10:04:51 +0000 (10:04 +0000)]
[project @ 2000-10-30 10:04:51 by simonpj]
Fix Name
simonpj [Mon, 30 Oct 2000 09:52:16 +0000 (09:52 +0000)]
[project @ 2000-10-30 09:52:14 by simonpj]
First steps to making it work
simonpj [Fri, 27 Oct 2000 16:43:25 +0000 (16:43 +0000)]
[project @ 2000-10-27 16:43:24 by simonpj]
Wibble
simonmar [Fri, 27 Oct 2000 16:30:02 +0000 (16:30 +0000)]
[project @ 2000-10-27 16:30:02 by simonmar]
build as ghc-$(ProjectVersion), link to ghc (as per driver)
simonmar [Fri, 27 Oct 2000 16:25:01 +0000 (16:25 +0000)]
[project @ 2000-10-27 16:25:01 by simonmar]
don't need GHC_HSC_DIR and GHC_HSC any more.
simonmar [Fri, 27 Oct 2000 16:24:31 +0000 (16:24 +0000)]
[project @ 2000-10-27 16:24:31 by simonmar]
hsc ==> ghc
simonmar [Fri, 27 Oct 2000 16:24:08 +0000 (16:24 +0000)]
[project @ 2000-10-27 16:24:08 by simonmar]
remove interfaceFileVersion, this comes in through Config.hs now.
simonpj [Fri, 27 Oct 2000 15:40:01 +0000 (15:40 +0000)]
[project @ 2000-10-27 15:40:01 by simonpj]
Win32 hacks.
simonmar [Fri, 27 Oct 2000 15:34:30 +0000 (15:34 +0000)]
[project @ 2000-10-27 15:34:30 by simonmar]
fix location of .hi file for packages
sewardj [Fri, 27 Oct 2000 15:11:37 +0000 (15:11 +0000)]
[project @ 2000-10-27 15:11:37 by sewardj]
Fix various platform-dependent bogons.
sewardj [Fri, 27 Oct 2000 14:56:00 +0000 (14:56 +0000)]
[project @ 2000-10-27 14:56:00 by sewardj]
Avoid circularity between these two on Win32.
simonmar [Fri, 27 Oct 2000 14:55:01 +0000 (14:55 +0000)]
[project @ 2000-10-27 14:55:01 by simonmar]
don't fake the processID
simonmar [Fri, 27 Oct 2000 14:46:37 +0000 (14:46 +0000)]
[project @ 2000-10-27 14:46:37 by simonmar]
remove traces
simonmar [Fri, 27 Oct 2000 14:45:18 +0000 (14:45 +0000)]
[project @ 2000-10-27 14:45:18 by simonmar]
fix some obvious bogons
simonmar [Fri, 27 Oct 2000 14:40:40 +0000 (14:40 +0000)]
[project @ 2000-10-27 14:40:40 by simonmar]
create ghc-inplace
simonmar [Fri, 27 Oct 2000 14:36:36 +0000 (14:36 +0000)]
[project @ 2000-10-27 14:36:36 by simonmar]
wibbles
simonmar [Fri, 27 Oct 2000 14:36:16 +0000 (14:36 +0000)]
[project @ 2000-10-27 14:36:16 by simonmar]
s/allocMemory__/malloc
simonmar [Fri, 27 Oct 2000 14:31:55 +0000 (14:31 +0000)]
[project @ 2000-10-27 14:31:55 by simonmar]
fix imports
sewardj [Fri, 27 Oct 2000 14:22:34 +0000 (14:22 +0000)]
[project @ 2000-10-27 14:22:34 by sewardj]
Final mods to make it compile with 4.08.1. You don't get an interpreter
like that, tho.
simonmar [Fri, 27 Oct 2000 14:04:21 +0000 (14:04 +0000)]
[project @ 2000-10-27 14:04:21 by simonmar]
typo
sewardj [Fri, 27 Oct 2000 13:50:26 +0000 (13:50 +0000)]
[project @ 2000-10-27 13:50:25 by sewardj]
Half-way through versioning so it will compile, sans interpreter, with 4.08.1
simonmar [Fri, 27 Oct 2000 11:51:13 +0000 (11:51 +0000)]
[project @ 2000-10-27 11:51:13 by simonmar]
remove unneeded exports
sewardj [Fri, 27 Oct 2000 11:48:56 +0000 (11:48 +0000)]
[project @ 2000-10-27 11:48:54 by sewardj]
Track changes to the finder (now is a global variable and not passed
around). Also some fixes to flag handling.
simonmar [Fri, 27 Oct 2000 11:11:44 +0000 (11:11 +0000)]
[project @ 2000-10-27 11:11:44 by simonmar]
Don't pass the finder around any more. Instead, its state lives in
the I/O monad.
module Finder (
newFinder, -- :: PackageConfigInfo -> IO (),
findModule, -- :: ModuleName -> IO (Maybe (Module, ModuleLocation))
ModuleLocation(..),
mkHomeModuleLocn,
) where
sewardj [Fri, 27 Oct 2000 11:02:05 +0000 (11:02 +0000)]
[project @ 2000-10-27 11:02:05 by sewardj]
baseRegOffset: handle long-regs correctly.
simonmar [Fri, 27 Oct 2000 10:59:55 +0000 (10:59 +0000)]
[project @ 2000-10-27 10:59:55 by simonmar]
fill in the package cache on the first lookup too.
simonmar [Fri, 27 Oct 2000 10:52:05 +0000 (10:52 +0000)]
[project @ 2000-10-27 10:52:05 by simonmar]
Change the finder so that it doesn't fill in the home cache until it
is first used.
sewardj [Fri, 27 Oct 2000 09:39:35 +0000 (09:39 +0000)]
[project @ 2000-10-27 09:39:35 by sewardj]
Remove some redundant -fvia-Cs, wot offend mine eye.
sewardj [Fri, 27 Oct 2000 09:36:39 +0000 (09:36 +0000)]
[project @ 2000-10-27 09:36:39 by sewardj]
No longer needed. Bye bye Argv!
sewardj [Fri, 27 Oct 2000 09:17:20 +0000 (09:17 +0000)]
[project @ 2000-10-27 09:17:20 by sewardj]
Don't link happy-generated objects twice.
sewardj [Thu, 26 Oct 2000 16:51:44 +0000 (16:51 +0000)]
[project @ 2000-10-26 16:51:44 by sewardj]
Final changes to get it to compile.