ghc-hetmet.git
22 years ago[project @ 2001-06-06 12:24:00 by simonmar]
simonmar [Wed, 6 Jun 2001 12:24:00 +0000 (12:24 +0000)]
[project @ 2001-06-06 12:24:00 by simonmar]
wibbles

22 years ago[project @ 2001-06-06 12:04:46 by simonmar]
simonmar [Wed, 6 Jun 2001 12:04:46 +0000 (12:04 +0000)]
[project @ 2001-06-06 12:04:46 by simonmar]
Further improve the $(SRCS) story, allowing you to exclude certain
sources (and all of their derived components) by setting
$(EXCLUDED_SRCS).

22 years ago[project @ 2001-06-06 11:03:48 by simonmar]
simonmar [Wed, 6 Jun 2001 11:03:48 +0000 (11:03 +0000)]
[project @ 2001-06-06 11:03:48 by simonmar]
Add prototype for inputReady().

22 years ago[project @ 2001-06-06 10:44:26 by rrt]
rrt [Wed, 6 Jun 2001 10:44:26 +0000 (10:44 +0000)]
[project @ 2001-06-06 10:44:26 by rrt]
Update with more instructions on getting the IS setup working and notes on
why some of the less obvious binaries are included in the Windows dist.

22 years ago[project @ 2001-06-06 10:35:39 by rrt]
rrt [Wed, 6 Jun 2001 10:35:39 +0000 (10:35 +0000)]
[project @ 2001-06-06 10:35:39 by rrt]
Add comment about why gmp is configured differently on Windows.

22 years ago[project @ 2001-06-06 10:33:35 by rrt]
rrt [Wed, 6 Jun 2001 10:33:35 +0000 (10:33 +0000)]
[project @ 2001-06-06 10:33:35 by rrt]
Say that building packages as DLLs is now no longer supported, but may still
work.

22 years ago[project @ 2001-06-06 09:36:02 by simonmar]
simonmar [Wed, 6 Jun 2001 09:36:02 +0000 (09:36 +0000)]
[project @ 2001-06-06 09:36:02 by simonmar]
Note in the documentation for :load that you can't load a package
module, and describe how we decide what the context is set to after a
:load.

22 years ago[project @ 2001-06-05 16:45:57 by simonmar]
simonmar [Tue, 5 Jun 2001 16:45:57 +0000 (16:45 +0000)]
[project @ 2001-06-05 16:45:57 by simonmar]
Clean up the SRCS story.  This still won't fix the problem with
GhcLibsWithReadline=NO, but it's headed in the right direction.

22 years ago[project @ 2001-06-05 16:21:25 by sewardj]
sewardj [Tue, 5 Jun 2001 16:21:25 +0000 (16:21 +0000)]
[project @ 2001-06-05 16:21:25 by sewardj]
Make c_read visible on Win32.

22 years ago[project @ 2001-06-05 14:09:45 by sewardj]
sewardj [Tue, 5 Jun 2001 14:09:45 +0000 (14:09 +0000)]
[project @ 2001-06-05 14:09:45 by sewardj]
Updates for 5.01.

22 years ago[project @ 2001-06-05 10:53:36 by sewardj]
sewardj [Tue, 5 Jun 2001 10:53:36 +0000 (10:53 +0000)]
[project @ 2001-06-05 10:53:36 by sewardj]
Calculate the correct set of modules to link in the case of upsweep
partial failure.

MERGE INTO 5.00.2

22 years ago[project @ 2001-06-05 10:31:57 by sewardj]
sewardj [Tue, 5 Jun 2001 10:31:57 +0000 (10:31 +0000)]
[project @ 2001-06-05 10:31:57 by sewardj]
Improve instance Outputable Linkable (purely cosmetic).

22 years ago[project @ 2001-06-05 10:09:33 by simonpj]
simonpj [Tue, 5 Jun 2001 10:09:33 +0000 (10:09 +0000)]
[project @ 2001-06-05 10:09:33 by simonpj]
ghc/rts/gmp/configure hangs up altogether on this
rm command:
    rm -f mpn/${tmp_fn}.[Ssc] mpn/${tmp_fn}.asm
I added lots of print statements to show progress
(hence the more verbose output) and found, I think,
that expanding the [Ssc] fixes the problem.

22 years ago[project @ 2001-06-05 09:30:20 by simonpj]
simonpj [Tue, 5 Jun 2001 09:30:20 +0000 (09:30 +0000)]
[project @ 2001-06-05 09:30:20 by simonpj]
Add str002 (recursive newtype test)

22 years ago[project @ 2001-06-04 16:49:15 by simonpj]
simonpj [Mon, 4 Jun 2001 16:49:15 +0000 (16:49 +0000)]
[project @ 2001-06-04 16:49:15 by simonpj]
----------------------------------
Make exprArity give the right answer
----------------------------------

MERGE INTO 5.00.2

This fixes a fairly long-standing bug in exprArity, dating from
the time we allowed arguments to be non-atoms. If f had arity
2, it was saying that

f (factorial x)

had arity 2, as well, which is plain wrong.

22 years ago[project @ 2001-06-04 16:47:06 by simonpj]
simonpj [Mon, 4 Jun 2001 16:47:06 +0000 (16:47 +0000)]
[project @ 2001-06-04 16:47:06 by simonpj]
----------------------------------
Fix an existential-constructor bug
----------------------------------

MERGE INTO 5.00.2

This fixes a long-standing bug that made the strictness
analyser go into a loop if it met a recursive newtype:

newtype Void = MkVoid Void

22 years ago[project @ 2001-06-04 16:46:00 by simonpj]
simonpj [Mon, 4 Jun 2001 16:46:00 +0000 (16:46 +0000)]
[project @ 2001-06-04 16:46:00 by simonpj]
Import wibbles

22 years ago[project @ 2001-06-04 16:34:19 by simonmar]
simonmar [Mon, 4 Jun 2001 16:34:19 +0000 (16:34 +0000)]
[project @ 2001-06-04 16:34:19 by simonmar]
Add test for Manuel's finalizer bug.

22 years ago[project @ 2001-06-04 16:26:54 by simonmar]
simonmar [Mon, 4 Jun 2001 16:26:54 +0000 (16:26 +0000)]
[project @ 2001-06-04 16:26:54 by simonmar]
Try doing a major GC before declaring that we're deadlocked, since
there might be finalizers waiting to run that can unblock the system.

Noticed by: Manuel.

22 years ago[project @ 2001-06-04 15:42:30 by qrczak]
qrczak [Mon, 4 Jun 2001 15:42:30 +0000 (15:42 +0000)]
[project @ 2001-06-04 15:42:30 by qrczak]
Remove unused files.

22 years ago[project @ 2001-06-04 14:51:15 by simonmar]
simonmar [Mon, 4 Jun 2001 14:51:15 +0000 (14:51 +0000)]
[project @ 2001-06-04 14:51:15 by simonmar]
Hmm, thought I removed this file.  Anyway, it's now been replaced by
PrelPosix.

22 years ago[project @ 2001-06-04 13:40:39 by simonpj]
simonpj [Mon, 4 Jun 2001 13:40:39 +0000 (13:40 +0000)]
[project @ 2001-06-04 13:40:39 by simonpj]
Add storage mgt doc

22 years ago[project @ 2001-06-04 06:20:35 by qrczak]
qrczak [Mon, 4 Jun 2001 06:20:35 +0000 (06:20 +0000)]
[project @ 2001-06-04 06:20:35 by qrczak]
Don't use exitWith where exceptions are treated as errors.

22 years ago[project @ 2001-06-02 09:45:51 by qrczak]
qrczak [Sat, 2 Jun 2001 09:45:51 +0000 (09:45 +0000)]
[project @ 2001-06-02 09:45:51 by qrczak]
Don't panic on ExitException.

22 years ago[project @ 2001-06-01 17:14:07 by apt]
apt [Fri, 1 Jun 2001 17:14:08 +0000 (17:14 +0000)]
[project @ 2001-06-01 17:14:07 by apt]
added support for emiting external core format

22 years ago[project @ 2001-06-01 14:33:01 by sewardj]
sewardj [Fri, 1 Jun 2001 14:33:02 +0000 (14:33 +0000)]
[project @ 2001-06-01 14:33:01 by sewardj]
More tracking of IO lib changes.

22 years ago[project @ 2001-06-01 13:07:35 by sewardj]
sewardj [Fri, 1 Jun 2001 13:07:36 +0000 (13:07 +0000)]
[project @ 2001-06-01 13:07:35 by sewardj]
Track recent changes to lib/std for mingw.  Mostly, make all seeked-on
file handles be in binary mode.

22 years ago[project @ 2001-06-01 13:06:01 by sewardj]
sewardj [Fri, 1 Jun 2001 13:06:01 +0000 (13:06 +0000)]
[project @ 2001-06-01 13:06:01 by sewardj]
More fixups to make the new IO lib work on mingw.
* Outlaw changing the file position on a text-mode file.  After
  consideration of the mingw translation semantics I cannot see
  how to make a correct implementation.
* Add a field to Handle__ to say whether or not the handle is in
  binary mode.
* Restrict seek operations on Handles to those in binary mode.
* Export hSetBinaryMode from IO.lhs.

22 years ago[project @ 2001-05-31 17:13:30 by sof]
sof [Thu, 31 May 2001 17:13:30 +0000 (17:13 +0000)]
[project @ 2001-05-31 17:13:30 by sof]
perl config: Remove bogus test I introduced

22 years ago[project @ 2001-05-31 13:50:44 by simonmar]
simonmar [Thu, 31 May 2001 13:50:44 +0000 (13:50 +0000)]
[project @ 2001-05-31 13:50:44 by simonmar]
correct mistake in the documentation of index<blah>Array# and
index<blah>OffAddr#.  The documentation on primitives is all wildly
out of date in other ways, though.

22 years ago[project @ 2001-05-31 12:40:59 by simonmar]
simonmar [Thu, 31 May 2001 12:40:59 +0000 (12:40 +0000)]
[project @ 2001-05-31 12:40:59 by simonmar]
- document -hidir option
- move -ohi documentation to "redirecting output" section
- remove duplicate -ohi in the flags table.
- add a warning about -ohi confusing the recompilation checker.

22 years ago[project @ 2001-05-31 11:32:25 by simonmar]
simonmar [Thu, 31 May 2001 11:32:25 +0000 (11:32 +0000)]
[project @ 2001-05-31 11:32:25 by simonmar]
- add -hidir flag to control the destination for .hi files when doing
  multiple compilations (matches -odir).

- change the ml_hi_file component of ModuleLocation from Maybe FilePath to
  FilePath.  We never made use of its Maybeness.

- clear out some unused code from the Hsc phase of run_phase and clean up
  a bit.  Fix a bug with the -ohi option at the same time (I don't think
  it works in 5.xx.x before this patch).

22 years ago[project @ 2001-05-31 11:25:51 by simonmar]
simonmar [Thu, 31 May 2001 11:25:51 +0000 (11:25 +0000)]
[project @ 2001-05-31 11:25:51 by simonmar]
If we can't read the old interface file for some reason (eg. it isn't
there, or it has the wrong version), then output the error if
-ddump-hi-diffs is on.  It used to be part of -ddump-rn-trace, but
-ddump-hi-diffs seems more logical, since it covers all the other
information about why a module is being recompiled.

22 years ago[project @ 2001-05-31 11:10:30 by simonpj]
simonpj [Thu, 31 May 2001 11:10:30 +0000 (11:10 +0000)]
[project @ 2001-05-31 11:10:30 by simonpj]
More echoes; I have no idea why we get stuck, but sometimes we do

22 years ago[project @ 2001-05-31 10:59:14 by simonmar]
simonmar [Thu, 31 May 2001 10:59:14 +0000 (10:59 +0000)]
[project @ 2001-05-31 10:59:14 by simonmar]
Fix bug in the GC info for an stg_ap_1_upd closure (it was one word too short).

22 years ago[project @ 2001-05-31 10:32:28 by sewardj]
sewardj [Thu, 31 May 2001 10:32:28 +0000 (10:32 +0000)]
[project @ 2001-05-31 10:32:28 by sewardj]
Various mingw fixes.

22 years ago[project @ 2001-05-31 10:19:49 by simonpj]
simonpj [Thu, 31 May 2001 10:19:49 +0000 (10:19 +0000)]
[project @ 2001-05-31 10:19:49 by simonpj]
Add a few more echos, to avoid anxiety in the long pause when looking for files

22 years ago[project @ 2001-05-31 10:03:35 by simonmar]
simonmar [Thu, 31 May 2001 10:03:35 +0000 (10:03 +0000)]
[project @ 2001-05-31 10:03:35 by simonmar]
- don't put a TTY into RAW mode if the handle is an output-only handle (so
  if you set stdout to NoBuffering and leave stdin as it is, you don't
  lose TTY processing on stdin).

- some cleanups.

22 years ago[project @ 2001-05-31 10:01:57 by simonmar]
simonmar [Thu, 31 May 2001 10:01:57 +0000 (10:01 +0000)]
[project @ 2001-05-31 10:01:57 by simonmar]
update expected output

22 years ago[project @ 2001-05-31 09:48:54 by sewardj]
sewardj [Thu, 31 May 2001 09:48:54 +0000 (09:48 +0000)]
[project @ 2001-05-31 09:48:54 by sewardj]
Avoid use of /dev/null on mingw.

22 years ago[project @ 2001-05-31 09:46:21 by simonpj]
simonpj [Thu, 31 May 2001 09:46:21 +0000 (09:46 +0000)]
[project @ 2001-05-31 09:46:21 by simonpj]
----------------------------------
Fix an existential-constructor bug
----------------------------------

DON'T MERGE!

This fixes a bug I introduced in my
tidying up for scoped type variables.

You'll get bizarre behaviour from the HEAD if
you use existentials, until you add this fix!

22 years ago[project @ 2001-05-31 09:37:23 by simonmar]
simonmar [Thu, 31 May 2001 09:37:23 +0000 (09:37 +0000)]
[project @ 2001-05-31 09:37:23 by simonmar]
Clarify the situation with GHCi object files, and add instructions for
building one from a .a file.

22 years ago[project @ 2001-05-31 09:28:41 by simonmar]
simonmar [Thu, 31 May 2001 09:28:41 +0000 (09:28 +0000)]
[project @ 2001-05-31 09:28:41 by simonmar]
markup wibble

22 years ago[project @ 2001-05-31 09:28:22 by simonmar]
simonmar [Thu, 31 May 2001 09:28:22 +0000 (09:28 +0000)]
[project @ 2001-05-31 09:28:22 by simonmar]
markup fixes

22 years ago[project @ 2001-05-31 09:18:34 by simonmar]
simonmar [Thu, 31 May 2001 09:18:34 +0000 (09:18 +0000)]
[project @ 2001-05-31 09:18:34 by simonmar]
Clarify where we look for libraries named on the command line (-lfoo),
and mention LD_LIBRARY_PATH.

The implementation is still wrong, however.

22 years ago[project @ 2001-05-31 09:00:28 by rrt]
rrt [Thu, 31 May 2001 09:00:28 +0000 (09:00 +0000)]
[project @ 2001-05-31 09:00:28 by rrt]
Add -mwin32 -mno-cygwin to CPPFLAGS.

22 years ago[project @ 2001-05-30 16:39:48 by sewardj]
sewardj [Wed, 30 May 2001 16:39:48 +0000 (16:39 +0000)]
[project @ 2001-05-30 16:39:48 by sewardj]
Give correct output for mingw.

22 years ago[project @ 2001-05-30 16:39:22 by sewardj]
sewardj [Wed, 30 May 2001 16:39:22 +0000 (16:39 +0000)]
[project @ 2001-05-30 16:39:22 by sewardj]
Initial mods to make the Glorious New IO Library (tm) work on mingw.
Not everything works, but is compilable, and off to a good start.

22 years ago[project @ 2001-05-30 13:20:11 by simonmar]
simonmar [Wed, 30 May 2001 13:20:11 +0000 (13:20 +0000)]
[project @ 2001-05-30 13:20:11 by simonmar]
Fix a difference between the NCG implementation of the UPD_CAF() macro
and the C version.  I think the C version was changed recently but the
NCG version never caught up.  Fixes a crash in GHCi with NCG compiled
code.

22 years ago[project @ 2001-05-30 11:09:12 by simonmar]
simonmar [Wed, 30 May 2001 11:09:12 +0000 (11:09 +0000)]
[project @ 2001-05-30 11:09:12 by simonmar]
Correct the instructions for compiling a debugging RTS (-optc isn't
needed before options in GhcRtsCcOpts any more).

22 years ago[project @ 2001-05-29 17:53:59 by sof]
sof [Tue, 29 May 2001 17:53:59 +0000 (17:53 +0000)]
[project @ 2001-05-29 17:53:59 by sof]
missing whitespaces caused touch/rm to fail

22 years ago[project @ 2001-05-29 15:37:16 by simonpj]
simonpj [Tue, 29 May 2001 15:37:16 +0000 (15:37 +0000)]
[project @ 2001-05-29 15:37:16 by simonpj]
Stuff about scoped type variables

22 years ago[project @ 2001-05-29 11:39:00 by rrt]
rrt [Tue, 29 May 2001 11:39:00 +0000 (11:39 +0000)]
[project @ 2001-05-29 11:39:00 by rrt]
Don't build lndir on mingwin, which doesn't have symlinks.

22 years ago[project @ 2001-05-29 11:38:14 by rrt]
rrt [Tue, 29 May 2001 11:38:14 +0000 (11:38 +0000)]
[project @ 2001-05-29 11:38:14 by rrt]
Reimplement getCPUTime in Haskell for Windows.

22 years ago[project @ 2001-05-29 01:07:00 by sof]
sof [Tue, 29 May 2001 01:07:00 +0000 (01:07 +0000)]
[project @ 2001-05-29 01:07:00 by sof]
Deal with nested comments (HDirect sources showed up this bug)

22 years ago[project @ 2001-05-28 17:34:24 by qrczak]
qrczak [Mon, 28 May 2001 17:34:24 +0000 (17:34 +0000)]
[project @ 2001-05-28 17:34:24 by qrczak]
Fix removing temporary files.

22 years ago[project @ 2001-05-28 13:57:19 by simonmar]
simonmar [Mon, 28 May 2001 13:57:19 +0000 (13:57 +0000)]
[project @ 2001-05-28 13:57:19 by simonmar]
When we auto-load a module because the user typed a qualified name at
the prompt, we better not auto-load a home interface (because we won't
have the code to go with it).

So, introduce a new constructor in the WhereFrom datatype, namely
ImportByCmdLine for these auto-imports, and make findAndReadIface fail
if it tries to load a home interface by this route.

ToDo: GHCi should *never* demand-load a home interface under any
circumstances, but we don't have an ASSERT for this yet.

22 years ago[project @ 2001-05-28 12:56:35 by simonmar]
simonmar [Mon, 28 May 2001 12:56:35 +0000 (12:56 +0000)]
[project @ 2001-05-28 12:56:35 by simonmar]
Change the GHCi monad from type

GHCiState -> IO (GHCiState, a)
to
IORef GHCiState -> IO a

to avoid losing recent changes to the state when we receive an
exception (which would normally be harmless, except that the state
isn't purely functional: it must match some state kept by the RTS's
dynamic linker).  Asynchonous exceptions could still cause us some
difficulty.

22 years ago[project @ 2001-05-28 11:42:56 by simonpj]
simonpj [Mon, 28 May 2001 11:42:56 +0000 (11:42 +0000)]
[project @ 2001-05-28 11:42:56 by simonpj]
Wibble for scoped type variables

22 years ago[project @ 2001-05-28 07:13:54 by sof]
sof [Mon, 28 May 2001 07:13:54 +0000 (07:13 +0000)]
[project @ 2001-05-28 07:13:54 by sof]
get rid of some more cpp warnings

22 years ago[project @ 2001-05-28 05:52:55 by sof]
sof [Mon, 28 May 2001 05:52:55 +0000 (05:52 +0000)]
[project @ 2001-05-28 05:52:55 by sof]
de-ramble previous commit

22 years ago[project @ 2001-05-28 03:31:19 by sof]
sof [Mon, 28 May 2001 03:31:19 +0000 (03:31 +0000)]
[project @ 2001-05-28 03:31:19 by sof]
Misc minor changes to integrate GHC a little bit better on Win32 platforms.
Specifically, the commit does the following (assuming you've configured
fptools/ with the option --enable-minimal-unix-deps on a mingw platform):

 * when GHC uses System.system, it expects an MSDOS command processor to
   interpret the command. This implies that 'normal' UNIX shell utils will
   no longer be used, but substituted with MSDOS equivalents.
 * the GHC backend relies on gcc and perl to handle .s/.hc/.o/.a files. GHC
   will now assume that these all live in one 'tool directory', making it
   easier to bundle these backend tools with GHC.

The upshot of these changes is that it is now possible for the user not to
have to install cygwin prior to installing GHC (as the upcoming ghc-win32
binary release will prove).

22 years ago[project @ 2001-05-28 03:17:03 by sof]
sof [Mon, 28 May 2001 03:17:03 +0000 (03:17 +0000)]
[project @ 2001-05-28 03:17:03 by sof]
Avoid the use of Posix when compiling for target i386-unknown-mingw32

22 years ago[project @ 2001-05-27 23:55:07 by sof]
sof [Sun, 27 May 2001 23:55:07 +0000 (23:55 +0000)]
[project @ 2001-05-27 23:55:07 by sof]
Added GHC_TOUCHY_DIR and GHC_TOUCHY

22 years ago[project @ 2001-05-27 23:53:47 by sof]
sof [Sun, 27 May 2001 23:53:47 +0000 (23:53 +0000)]
[project @ 2001-05-27 23:53:47 by sof]
New configure script option, --enable-minimal-unix-deps, a Win32-specific
option which lets you build a compiler that doesn't depend on cygwin tools
to run. Well, you still need tools such as gcc and perl in the backend, but
these don't have to be cygwin ports.

22 years ago[project @ 2001-05-27 06:08:24 by sof]
sof [Sun, 27 May 2001 06:08:24 +0000 (06:08 +0000)]
[project @ 2001-05-27 06:08:24 by sof]
wibble

22 years ago[project @ 2001-05-27 05:00:08 by sof]
sof [Sun, 27 May 2001 05:00:08 +0000 (05:00 +0000)]
[project @ 2001-05-27 05:00:08 by sof]
'flex' or 'lex' is required to compile up fptools/ (e.g., reqd in
glafp-utils/sgmlverb). autoconf's standard macro AC_PROG_LEX just
defaults to 'lex' if 'flex' isn't found, but doesn't actually
check whether 'lex' is available along PATH.

Added AC_PROG_LEX_STRICT, which extends AC_PROG_LEX by checking
for the presence of 'lex' if 'flex' isn't found. It bails
out with an error message if 'lex' cannot be found.

22 years ago[project @ 2001-05-25 18:35:29 by sof]
sof [Fri, 25 May 2001 18:35:29 +0000 (18:35 +0000)]
[project @ 2001-05-25 18:35:29 by sof]
wibble - silence CPP warning

22 years ago[project @ 2001-05-25 18:33:46 by sof]
sof [Fri, 25 May 2001 18:33:46 +0000 (18:33 +0000)]
[project @ 2001-05-25 18:33:46 by sof]
wibble - silence CPP warnings

22 years ago[project @ 2001-05-25 18:32:51 by sof]
sof [Fri, 25 May 2001 18:32:51 +0000 (18:32 +0000)]
[project @ 2001-05-25 18:32:51 by sof]
wibble - drop a ? from a fprintf format string to avoid having it look like a trigraph seq might be present

22 years ago[project @ 2001-05-25 16:14:02 by dsyme]
dsyme [Fri, 25 May 2001 16:14:02 +0000 (16:14 +0000)]
[project @ 2001-05-25 16:14:02 by dsyme]
Minor tweaks to IlxGen backend

22 years ago[project @ 2001-05-25 13:56:25 by simonmar]
simonmar [Fri, 25 May 2001 13:56:25 +0000 (13:56 +0000)]
[project @ 2001-05-25 13:56:25 by simonmar]
Check for re_search_2() when checking whether libc has GNU regex.
This is a temporary fix until we get rid of GNU regex altogether and
do something more portable.

*** MAYBE MERGE ***

22 years ago[project @ 2001-05-25 13:50:39 by simonmar]
simonmar [Fri, 25 May 2001 13:50:39 +0000 (13:50 +0000)]
[project @ 2001-05-25 13:50:39 by simonmar]
NetBSD is ELF only now.

*** MAYBE MERGE (and the last revision) ***

22 years ago[project @ 2001-05-25 13:49:35 by simonmar]
simonmar [Fri, 25 May 2001 13:49:35 +0000 (13:49 +0000)]
[project @ 2001-05-25 13:49:35 by simonmar]
we're only supporting NetBSD/ELF now, not a.out (Lennart's suggestion)

22 years ago[project @ 2001-05-25 12:09:43 by simonpj]
simonpj [Fri, 25 May 2001 12:09:43 +0000 (12:09 +0000)]
[project @ 2001-05-25 12:09:43 by simonpj]
wibble

22 years ago[project @ 2001-05-25 10:53:59 by simonmar]
simonmar [Fri, 25 May 2001 10:53:59 +0000 (10:53 +0000)]
[project @ 2001-05-25 10:53:59 by simonmar]
Add -lm to HC_BOOT_LIBS

*** MAYBE MERGE ***

22 years ago[project @ 2001-05-25 10:50:27 by simonmar]
simonmar [Fri, 25 May 2001 10:50:27 +0000 (10:50 +0000)]
[project @ 2001-05-25 10:50:27 by simonmar]
Link with HStext_cbits in case we need regex (bug from Lennart).

*** MAYBE MERGE ***

22 years ago[project @ 2001-05-25 10:31:08 by simonmar]
simonmar [Fri, 25 May 2001 10:31:08 +0000 (10:31 +0000)]
[project @ 2001-05-25 10:31:08 by simonmar]
netbsd_aout => netbsdaout

22 years ago[project @ 2001-05-25 10:30:53 by simonmar]
simonmar [Fri, 25 May 2001 10:30:53 +0000 (10:30 +0000)]
[project @ 2001-05-25 10:30:53 by simonmar]
NetBSD <= 1.4 is a.out, apparently

22 years ago[project @ 2001-05-25 10:28:58 by simonmar]
simonmar [Fri, 25 May 2001 10:28:58 +0000 (10:28 +0000)]
[project @ 2001-05-25 10:28:58 by simonmar]
NetBSD is ELF by default.

22 years ago[project @ 2001-05-25 08:55:03 by simonpj]
simonpj [Fri, 25 May 2001 08:55:04 +0000 (08:55 +0000)]
[project @ 2001-05-25 08:55:03 by simonpj]
-------------------------------------
Wibbles to Don's runtime-types commit
-------------------------------------

There was an upside down predicate which utterly broke the compiler.

While I was about it

* I changed the global flag to
opt_RuntimeTypes
  with command line option
-fruntime-types (was -fkeep-stg-types)

* I moved isRuntimeArg, isRuntimeVar to CoreSyn

22 years ago[project @ 2001-05-25 01:15:36 by sof]
sof [Fri, 25 May 2001 01:15:36 +0000 (01:15 +0000)]
[project @ 2001-05-25 01:15:36 by sof]
Conditionally descend into touchy/

22 years ago[project @ 2001-05-25 01:15:07 by sof]
sof [Fri, 25 May 2001 01:15:07 +0000 (01:15 +0000)]
[project @ 2001-05-25 01:15:07 by sof]
'touch' replacement (for use under Win32 in a cygwin-free setup only)

22 years ago[project @ 2001-05-24 15:10:19 by dsyme]
dsyme [Thu, 24 May 2001 15:10:20 +0000 (15:10 +0000)]
[project @ 2001-05-24 15:10:19 by dsyme]
Various changes for ILX backend and type-passing compilers, code reviewed by SimonPJ

22 years ago[project @ 2001-05-24 15:01:33 by simonpj]
simonpj [Thu, 24 May 2001 15:01:33 +0000 (15:01 +0000)]
[project @ 2001-05-24 15:01:33 by simonpj]
wibble

22 years ago[project @ 2001-05-24 13:59:09 by simonpj]
simonpj [Thu, 24 May 2001 13:59:12 +0000 (13:59 +0000)]
[project @ 2001-05-24 13:59:09 by simonpj]
------------------------------------------------------
More stuff towards generalising 'foreign' declarations
------------------------------------------------------

This is the second step towards generalising 'foreign' declarations to
handle langauges other than C.  Now I can handle

  foreign import dotnet type T
  foreign import dotnet "void Foo.Baz.f( T )" f :: T -> IO ()

** WARNING **
I believe that all the foreign stuff for C should
work exactly as before, but I have not tested it
thoroughly.  Sven, Manuel, Marcin: please give it a
whirl and compare old with new output.

Lots of fiddling around with data types.  The main changes are

* HsDecls.lhs
The ForeignDecl type and its friends
Note also the ForeignType constructor to TyClDecl

* ForeignCall.lhs
Here's where the stuff that survives right through
compilation lives

* TcForeign.lhs DsForeign.lhs
Substantial changes driven by the new data types

* Parser.y ParseIface.y RnSource
Just what you'd expect

22 years ago[project @ 2001-05-24 13:49:32 by simonpj]
simonpj [Thu, 24 May 2001 13:49:32 +0000 (13:49 +0000)]
[project @ 2001-05-24 13:49:32 by simonpj]
Tiny delta towards .NET

22 years ago[project @ 2001-05-24 10:46:08 by simonmar]
simonmar [Thu, 24 May 2001 10:46:08 +0000 (10:46 +0000)]
[project @ 2001-05-24 10:46:08 by simonmar]
Fixes for the hsc2hs rules.

22 years ago[project @ 2001-05-24 10:41:13 by simonmar]
simonmar [Thu, 24 May 2001 10:41:13 +0000 (10:41 +0000)]
[project @ 2001-05-24 10:41:13 by simonmar]
Make hGetContents work on DuplexHandles, and some small cleanups.

22 years ago[project @ 2001-05-24 06:49:28 by simonpj]
simonpj [Thu, 24 May 2001 06:49:28 +0000 (06:49 +0000)]
[project @ 2001-05-24 06:49:28 by simonpj]
Import assertPanic to support the ASSERT

22 years ago[project @ 2001-05-23 16:47:09 by sewardj]
sewardj [Wed, 23 May 2001 16:47:09 +0000 (16:47 +0000)]
[project @ 2001-05-23 16:47:09 by sewardj]
Add {-# OPTION -fvia-C #-} so that the compiler can compile itself
in --make mode (yes, really!)

22 years ago[project @ 2001-05-23 15:52:12 by sewardj]
sewardj [Wed, 23 May 2001 15:52:12 +0000 (15:52 +0000)]
[project @ 2001-05-23 15:52:12 by sewardj]
-lreadline --> readline

22 years ago[project @ 2001-05-23 10:26:14 by simonmar]
simonmar [Wed, 23 May 2001 10:26:14 +0000 (10:26 +0000)]
[project @ 2001-05-23 10:26:14 by simonmar]
- hack to make getArgs return [] and getProgName return
  "<interactive>" under GHCi.

- use IO.stdout and IO.stderr instead of PrelHandle for the
  automatic flushing.

22 years ago[project @ 2001-05-23 09:59:18 by simonmar]
simonmar [Wed, 23 May 2001 09:59:18 +0000 (09:59 +0000)]
[project @ 2001-05-23 09:59:18 by simonmar]
Don't catch ExitException at the top level, just re-throw it.

22 years ago[project @ 2001-05-23 09:41:34 by rrt]
rrt [Wed, 23 May 2001 09:41:34 +0000 (09:41 +0000)]
[project @ 2001-05-23 09:41:34 by rrt]
Add -mwin32 -mno-cygwin to CPPFLAGS on Windows.

22 years ago[project @ 2001-05-23 09:28:44 by simonmar]
simonmar [Wed, 23 May 2001 09:28:44 +0000 (09:28 +0000)]
[project @ 2001-05-23 09:28:44 by simonmar]
Guess I forgot to commit this file as part of the exitWith changes
yesterday.  Anyway, commit my version now (no functional changes).

22 years ago[project @ 2001-05-22 20:49:47 by sof]
sof [Tue, 22 May 2001 20:49:47 +0000 (20:49 +0000)]
[project @ 2001-05-22 20:49:47 by sof]
wibble

22 years ago[project @ 2001-05-22 19:25:49 by qrczak]
qrczak [Tue, 22 May 2001 19:25:49 +0000 (19:25 +0000)]
[project @ 2001-05-22 19:25:49 by qrczak]
Remove module dependency loop: don't import PrelIOBase in PrelRead.
readIO is in PrelIO, remove it from PrelRead. Derive instance Read
BufferMode automatically.

22 years ago[project @ 2001-05-22 19:07:39 by sof]
sof [Tue, 22 May 2001 19:07:39 +0000 (19:07 +0000)]
[project @ 2001-05-22 19:07:39 by sof]
Added the -h (header) option; it prefixes the unlit'ed output with a pair
of line pragmas, e.g.,

  foo$ unlit -h foo.lhs foo.lhs - | head -3
  # 1 "foo.lhs"
  {-# LINE 1 "foo.lhs" #-}
  module Foo where
  foo$

Using -h saves the main user of 'unlit', GHC, from having to do the
prepending of line pragmas via shellular magic. (=> GHC is able to
drop the dependency on there being a UNIX-like shell underneath when
using System.system).

22 years ago[project @ 2001-05-22 16:45:41 by qrczak]
qrczak [Tue, 22 May 2001 16:45:41 +0000 (16:45 +0000)]
[project @ 2001-05-22 16:45:41 by qrczak]
Fix small callconv-related import mismatches etc.