1. 25 Jan, 2002 2 commits
  2. 24 Jan, 2002 8 commits
    • simonmar's avatar
      [project @ 2002-01-24 16:55:35 by simonmar] · 03b874e7
      simonmar authored
      Add support for Hugs's :browse (or :b) command.  There are two forms:
      	- :b M   (interpreted modules only) shows everything
                defined in M - the types of top-level functions,
      	  and definitions of classes and datatypes.
      	- :b *M  shows everything exported from module M.
      	  Available for both compiled and interpreted modules.
      The user interface is subject to change, but for now it is consistent
      with the new semantics of the :module command.
      The implementation is a little tricky, since for a package module we
      have to be sure to slurp in all the required declarations first.
    • sewardj's avatar
      [project @ 2002-01-24 16:55:04 by sewardj] · d8ef45a3
      sewardj authored
      This is one of those commits where the commit message is hundreds of
      times, in bytes, larger than the fix.  If you count pixels, it's
      probably more like thousands of times larger, since the fix involves
      adding a missing apostrophe.
      In compiling let bindings, when filtering the free vars of each RHS
      against the supplied on-stack environment p, filter against p after it
      has been augmented with the binders in this let (viz, p'), rather than
      before.  Without this, letrec-bound binders can never "get started" in
      the environment.
      This fixes the HEAD crash for [(i,1) | i <- [1]].  Stable branch
      is ok since the free-var machinery works a different way there.
    • sof's avatar
      [project @ 2002-01-24 07:50:01 by sof] · 373fabef
      sof authored
      SMP: misc tasks timing stats fixes
    • sof's avatar
      [project @ 2002-01-24 02:15:19 by sof] · 2a59f826
      sof authored
      SMP: hack-and-slash to bring BaseReg into scope
    • sof's avatar
      [project @ 2002-01-24 02:06:48 by sof] · 797d6341
      sof authored
      SMP: disable spark support (only a little bit of header file re-jigging is reqd to get it going again, I suspect.)
    • sof's avatar
      [project @ 2002-01-24 01:45:55 by sof] · b502893a
      sof authored
      SMP: bunch of triv. changes to account for the fact that a Capability is no longer just a RegTable
    • sof's avatar
      [project @ 2002-01-24 00:53:18 by sof] · 533633e4
      sof authored
      Way 's': add -DSMP to HC_ and CC_OPTS
    • sof's avatar
      [project @ 2002-01-24 00:40:28 by sof] · affd9133
      sof authored
      SMP: move link field from StgRegTable to Capability
  3. 23 Jan, 2002 5 commits
    • sof's avatar
      [project @ 2002-01-23 23:53:54 by sof] · 6d4c5bff
      sof authored
      make it compile when GHCI aint
    • lewie's avatar
      [project @ 2002-01-23 17:51:46 by lewie] · d3bd93cf
      lewie authored
      Add special case for installing shared libs (which need the execute bit set).
    • simonmar's avatar
      [project @ 2002-01-23 16:50:46 by simonmar] · 92cdc09e
      simonmar authored
      - Implement an alternative :module syntax so we can play around with it.
      - Implement ':show bindings' and ':show modules'
      - Fix a bug whereby doing :info on a local binding would cause a panic
        (this needs to be merged to STABLE - the change is part of the patch
        to HscMain).
      - Some cleanups in InteractiveUI.hs
    • sewardj's avatar
      [project @ 2002-01-23 11:29:12 by sewardj] · 830c1108
      sewardj authored
      Fix two problems with the ELF linker:
      1.  Determine section attributes by examining various bits in the
          section header tables, rather than from the section names.  This
          makes it robust against future changes / additions to the set of
          section names.
      2.  Handle local symbols differently.  Do not add them to our own
          local symbol table for this object, since that's
          (a) wrong -- multiple local symbols can have the same name so long
              as each is in a different section, so if we just dump them into
              the local symbol table we'll wind up with apparently duplicate
          (b) totally unnecessary, since the relocations against local symbols
              simply specify an index into the ELF symbol table for the object,
              from whence the address can be calculated without reference to the
      TODO: Test on sparc-solaris
            Investigate whether PEi386 linker needs fixing similarly
      and then
    • simonmar's avatar
      [project @ 2002-01-23 11:11:13 by simonmar] · c8d89540
      simonmar authored
      Revert to running command-line statements in the context of the
      current thread, so that ^C exceptions get delivered to the right
      Now that a deadlock generates an exception this is not so bad, but it
      would be nice to do it the "right" way so I've left the old code in a
      comment for now.
  4. 22 Jan, 2002 8 commits
    • simonmar's avatar
      [project @ 2002-01-22 16:58:37 by simonmar] · d98d9004
      simonmar authored
      More wibbles, sigh.  Must have been typing with my elbows when I made
      that change.
    • simonmar's avatar
      [project @ 2002-01-22 16:50:29 by simonmar] · 37f0db38
      simonmar authored
      CmRunDeadlocked no longer exists
    • simonmar's avatar
      [project @ 2002-01-22 15:55:59 by simonmar] · 4b5ef150
      simonmar authored
      Fix wibbles in previous commit.
    • simonmar's avatar
      [project @ 2002-01-22 14:47:52 by simonmar] · 46c2362e
      simonmar authored
      Strip whitespace from the beginning of the line when looking for
      OPTIONS pragmas.
    • simonmar's avatar
      [project @ 2002-01-22 13:54:22 by simonmar] · 33a7aa8b
      simonmar authored
      Deadlock is now an exception instead of a return status from
      The current behaviour is as follows, and can be changed if necessary:
      in the event of a deadlock, the top main thread is taken from the main
      thread queue, and if it is blocked on an MVar or an Exception (for
      throwTo), then it receives a Deadlock exception.  If it is blocked on
      a BLACKHOLE, we instead send it the NonTermination exception.  Note
      that only the main thread gets the exception: it is the responsibility
      of the main thread to unblock other threads if necessary.
      There's a slight difference in the SMP build: *all* the main threads
      get an exception, because clearly none of them may make progress
      (compared to the non-SMP situation, where all but the top main thread
      are usually blocked).
    • simonmar's avatar
      [project @ 2002-01-22 13:35:36 by simonmar] · 483817dd
      simonmar authored
      Attempt to fix the problems with missing instances once more.
      The current problem is that in the case where a ModDetails is being
      constructed from its interface (in compilation manager modes) we
      weren't getting any instances because the instances are gotten from
      the [InstInfo] returned from tcInstDecls1, which only contains
      *source* instance declarations.  Fix: return a list of DFuns defined
      in the current module from tcInstDecls1, to be plugged into the
      ModDetails later.
      Also: revert the previous change to the isLocalThing predicate,
      because now we really want to know which dfuns come from the current
      module.  The comment about the iface_dfuns containing only package and
      local instances is incorrect in batch-compile mode, because we also
      demand-load stuff from home package interfaces, so I deleted this
      comment and fixed up some of the other commentary.
    • simonmar's avatar
      [project @ 2002-01-22 13:09:36 by simonmar] · c1980f1d
      simonmar authored
      Fix for a change in CPP's behaviour in gcc 2.96 relative to 2.95.
      Unlit used to inject '# <line> <file>' at the beginning of the output
      file, but in gcc 2.96 this is ignored.  Instead we have to inject
      '#line <line> <file>', which in turn means that GHC's lexer has to
      understand this kind of pragma in addition to the plain '#' form, in
      the case when we aren't running CPP after unlitting.
    • simonmar's avatar
      [project @ 2002-01-22 13:04:13 by simonmar] · 0da14097
      simonmar authored
      Import wibbles
  5. 21 Jan, 2002 2 commits
  6. 18 Jan, 2002 2 commits
  7. 17 Jan, 2002 3 commits
  8. 16 Jan, 2002 1 commit
  9. 15 Jan, 2002 1 commit
  10. 11 Jan, 2002 1 commit
  11. 10 Jan, 2002 3 commits
  12. 09 Jan, 2002 3 commits
    • simonmar's avatar
      [project @ 2002-01-09 12:41:45 by simonmar] · f587e76c
      simonmar authored
      First cut at enhancing the facilities for manipulating the scope in
      GHCi.  The scope now consists of
        1. the full top-level scope of zero or more interpreted modules
        2. the exports from zero or more modules
        3. the temporary bindings
      The sets 1 & 2 are manipulated using an extended :m command: eg :m +A
      will add module A to either set 1 or two depending on whether A is
      interpreted, and :m -A will remove it.  The user interface may change,
      pending feedback from the punters on the mailing list.
      'Prelude' is automatically added to the scope if set 1 is empty and
      set 2 doesn't already contain it.
      We now cache the GlobalRdrEnv for the current scope between
      evaluations in the InteractiveContext, and also the current
      PrintUnqualified setting (which also depends on the scope).
      Cvs: ----------------------------------------------------------------------
    • simonmar's avatar
      [project @ 2002-01-09 10:29:32 by simonmar] · 1c424fdb
      simonmar authored
      Back out previous fix, I've hacked it in a different place which is at
      least closer to the source of the problem.
    • simonmar's avatar
      [project @ 2002-01-09 10:27:41 by simonmar] · fc7496ec
      simonmar authored
      Don't add -package-name if $(PACKAGE) == "rts".  THis is a HACK and we
      need to fix the mess in ghc/rts/Makefile properly.
  13. 08 Jan, 2002 1 commit
    • simonmar's avatar
      [project @ 2002-01-08 17:31:30 by simonmar] · bee714f2
      simonmar authored
      Fix a problem which lead to home-package instances ending up in the
      package instance table in GHCi, which results in strange duplicate
      instance errors when reloading modules.  See the comments for details.