1. 29 Aug, 2002 5 commits
    • simonmar's avatar
      [project @ 2002-08-29 15:44:11 by simonmar] · ce9687a5
      simonmar authored
        - The main goal is to remove dependencies on hslibs for a
          bootstrapped compiler, leaving only a requirement that the
          packages base, haskell98 and readline are built in stage 1 in
          order to bootstrap.  We're almost there: Posix is still required
          for signal handling, but all other dependencies on hslibs are now
          Uses of Addr and ByteArray/MutableByteArray array are all gone
          from the compiler.  PrimPacked defines the Ptr type for GHC 4.08
          (which didn't have it), and it defines simple BA and MBA types to
          replace uses of ByteArray and MutableByteArray respectively.
        - Clean up import lists.  HsVersions.h now defines macros for some
          modules which have moved between GHC versions.  eg. one now
          imports 'GLAEXTS' to get at unboxed types and primops in the
          Many import lists have been sorted as per the recommendations in
          the new style guidelines in the commentary.
      I've built the compiler with GHC 4.08.2, 5.00.2, 5.02.3, 5.04 and
      itself, and everything still works here.  Doubtless I've got something
      wrong, though.
    • simonpj's avatar
      [project @ 2002-08-29 13:38:45 by simonpj] · 4a851c82
      simonpj authored
      Fix eta-expansion bug, which led to an infinite loop in
      CoreUtils.etaExpand. This showed up when compiling FranTk.
    • simonmar's avatar
      [project @ 2002-08-29 12:57:34 by simonmar] · c5e353d4
      simonmar authored
      Add notes about DEBUG and GHCI.
    • simonmar's avatar
      [project @ 2002-08-29 11:52:42 by simonmar] · c94ec2c0
      simonmar authored
      update (readline has moved)
    • simonmar's avatar
      [project @ 2002-08-29 11:47:46 by simonmar] · a7ae6708
      simonmar authored
      Add a ToDo note.
  2. 28 Aug, 2002 5 commits
  3. 27 Aug, 2002 3 commits
    • simonmar's avatar
      [project @ 2002-08-27 09:38:43 by simonmar] · c79b5b17
      simonmar authored
      - If the same module is defined in multiple "root" source files, then
        complain.  Before, the compiler would silently ignore one of them.
      - Remove some unuseed imports
    • simonmar's avatar
      [project @ 2002-08-27 09:34:20 by simonmar] · 15e6a5e4
      simonmar authored
      Fix a bug in the cleaning up of temporary files: we were wrongly
      cleaning the temporary pre-processed source files for stable modules,
      with the result that the compiler would panic the next time they were
      Reported ages ago by: Hal Duame.
    • simonmar's avatar
      [project @ 2002-08-27 09:12:53 by simonmar] · b669d6d9
      simonmar authored
      Replace "Funny global thing" with a better error message, as suggested
      by Alastair Reid.  The message is:
        Warning: retaining unknown function `$_' in output from C compiler
      ("unknown function" is a bit vague, but I couldn't come up with an
      alternative that wasn't misleading).
  4. 23 Aug, 2002 1 commit
  5. 21 Aug, 2002 4 commits
  6. 20 Aug, 2002 1 commit
    • simonmar's avatar
      [project @ 2002-08-20 10:32:48 by simonmar] · a4ac1436
      simonmar authored
      Fix a buglet in CorePrep:  an expression such as
      	case __coerce (\x -> e) :: T of { ... }
      would be left as is, but the lambda expression should really be
      abstracted as a let (causes a panic later in srtExpr; shown up by
      the dynamic001 test).  There was a missing call to deLam in the case
      for Case expressions in corePrepExprFloat.
      In addition, I made a new version of deLam, deLamFloat, which can
      float any bindings generated.  This helps to generate slightly cleaner
      code in the above case (the binding is floated out of the scrutinee).
      Also: GC unused imports while I'm here.
  7. 19 Aug, 2002 2 commits
  8. 16 Aug, 2002 5 commits
  9. 14 Aug, 2002 1 commit
  10. 13 Aug, 2002 1 commit
  11. 12 Aug, 2002 1 commit
  12. 09 Aug, 2002 4 commits
  13. 06 Aug, 2002 1 commit
  14. 05 Aug, 2002 3 commits
    • simonmar's avatar
      [project @ 2002-08-05 11:11:44 by simonmar] · d31d3e06
      simonmar authored
      - Update the old coding style document
      - Move it to the commentary under the "RTS & libs" section
    • simonmar's avatar
      [project @ 2002-08-05 10:11:03 by simonmar] · 3c5a4f17
      simonmar authored
      Overhaul the debugging flags.  The old bitfield mechanism was a bit
      silly, so now instead of writing -D129 (the one I use most) you can
      now write -DSs.  Each debugging option has a single character assigned
      to it, documented in the -? help text.
    • simonmar's avatar
      [project @ 2002-08-05 09:18:27 by simonmar] · bb905676
      simonmar authored
      We have to turn off the buffering on stdout, stdin & stderr after
      every time we revert all CAFs, not just when starting up GHCi.
  15. 02 Aug, 2002 3 commits
    • simonmar's avatar
      [project @ 2002-08-02 13:08:33 by simonmar] · 259be9ef
      simonmar authored
      PrimRep Cleanup
         - Remove all PrimReps which were just different flavours of
           PtrRep.  Now, everything which is a pointer to a closure of
           some kind is always a PtrRep.
         - Three of the deleted PrimReps, namely ArrayRep, ByteArrayRep,
           and ForeignObj rep, had a subtle reason for their existence:
           the abstract C pretty-printer(!) used them to decide whether
           to apply a shim to an outgoing C-call argument: a ByteArrayRep
           argument would be adjusted to point past the object header,
           for example.
           I've changed this to happen in a much more reasonable and
           obvious way: there are now explict macros in AbsCSyn to do the
           adjustment, and the code generator makes calls to these as
           necessary.  Slightly less hackery is necessary in the NCG as
           a result.
    • simonmar's avatar
      [project @ 2002-08-02 12:24:04 by simonmar] · 226413e1
      simonmar authored
      Pass -fno-builtin to gcc when compiling .hc files, because this avoids
      a common cause of running out of registers when foreign calls to
      functions like memcpy(), strlen() are made from Haskell.
    • simonmar's avatar
      [project @ 2002-08-02 11:17:15 by simonmar] · 801e81a7
      simonmar authored
      Remove out-of-date comment