1. 06 Sep, 2002 4 commits
    • simonmar's avatar
      [project @ 2002-09-06 13:52:21 by simonmar] · 446fbcd7
      simonmar authored
      Disallow ForeignPtr as an FFI argument type.
      446fbcd7
    • simonmar's avatar
      [project @ 2002-09-06 13:51:38 by simonmar] · 21a8a75d
      simonmar authored
      Disallow 'ForeignPtr' as an FFI argument type.  It has been deprecated
      for some time (withForeignPtr is the approved way to pass a
      ForeignPtr).  The changes I'm about to make to ForeignPtr will stop it
      working anyhow.
      21a8a75d
    • simonmar's avatar
      [project @ 2002-09-06 09:56:12 by simonmar] · f8e722a4
      simonmar authored
      Selector Thunk Fix, take II.
      
      The previous version didn't deal well with selector thunks which point
      to more selector thunks, and on closer inspection the method was
      flawed.  Now I've introduced a function
      
      	StgClosure *eval_selector_thunk( int field, StgClosure * )
      
      which evaluates a selector thunk returning its value, in from-space,
      if possible.  It blackholes the thunk during evaluation.  It might
      recursively evaluate more selector thunks, but it does this in a
      bounded way and updates the thunks with indirections (NOT forwarding
      pointers) after evaluation.
      
      This cleans things up somewhat, and I believe it deals properly with
      both types of selector-thunk loops that arise.
      
      MERGE TO STABLE
      f8e722a4
    • ken's avatar
      [project @ 2002-09-06 01:00:04 by ken] · eca38799
      ken authored
      perl made uglier to work around the perl 5.7/5.8 bug documented at
      http://bugs6.perl.org/rt2/Ticket/Display.html?id=1760 and illustrated
      by the seg fault of perl -e '("x\n" x 5000) =~ /(.*\n)+/'
      
      MERGE TO STABLE
      eca38799
  2. 05 Sep, 2002 3 commits
    • simonmar's avatar
      [project @ 2002-09-05 16:26:33 by simonmar] · 8435b2e4
      simonmar authored
      Fix for infinite loop when there is a THUNK_SELECTOR which eventually
      refers to itself, such as might be generated by code like
      
      	let x = (fst x, snd x) in ...
      
      At the same time, I re-enabled the code to traverse multiple selector
      thunks with bounded depth, because I believe it now works.
      
      MERGE TO STABLE (but test thoroughly in the HEAD first, this is
      fragile stuff)
      8435b2e4
    • simonmar's avatar
      [project @ 2002-09-05 10:25:01 by simonmar] · 5ac854ef
      simonmar authored
      In code style, print negative floating point literals in parentheses
      to avoid interacting with surrounding syntax.
      
      Fixes SourceForge bug #604849
      
      MERGE TO STABLE
      5ac854ef
    • simonmar's avatar
      [project @ 2002-09-05 08:58:55 by simonmar] · ed6e7225
      simonmar authored
      Remove RtsAPIDeprec.c, since this is causing grief.  The upshot (I
      think) is that you won't be able to do foreign import "wrapper" with
      an Addr in the type.
      ed6e7225
  3. 04 Sep, 2002 4 commits
  4. 03 Sep, 2002 6 commits
  5. 02 Sep, 2002 5 commits
  6. 01 Sep, 2002 1 commit
  7. 30 Aug, 2002 3 commits
  8. 29 Aug, 2002 5 commits
    • simonmar's avatar
      [project @ 2002-08-29 15:44:11 by simonmar] · ce9687a5
      simonmar authored
      Housekeeping:
      
        - 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
          gone.
      
          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
          compiler.
      
          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.
      ce9687a5
    • 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.
      
      		MERGE TO STABLE
      4a851c82
    • simonmar's avatar
      [project @ 2002-08-29 12:57:34 by simonmar] · c5e353d4
      simonmar authored
      Add notes about DEBUG and GHCI.
      c5e353d4
    • simonmar's avatar
      [project @ 2002-08-29 11:52:42 by simonmar] · c94ec2c0
      simonmar authored
      update (readline has moved)
      c94ec2c0
    • simonmar's avatar
      [project @ 2002-08-29 11:47:46 by simonmar] · a7ae6708
      simonmar authored
      Add a ToDo note.
      a7ae6708
  9. 28 Aug, 2002 5 commits
  10. 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
      
      MERGE TO STABLE
      c79b5b17
    • 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
      required.
      
      Reported ages ago by: Hal Duame.
      
      MERGE TO STABLE
      15e6a5e4
    • 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).
      b669d6d9
  11. 23 Aug, 2002 1 commit