1. 16 May, 2005 9 commits
    • simonmar's avatar
      [project @ 2005-05-16 14:39:54 by simonmar] · 37c4e49e
      simonmar authored
      Set BINDIST_DOC_WAYS appropriately depending on which doc-building
      tools are available.  The default is to build all of html, ps & pdf if
      possible.
      37c4e49e
    • simonmar's avatar
      [project @ 2005-05-16 14:27:07 by simonmar] · 33a84b8c
      simonmar authored
      Allow the amount of idle time which must pass before we force a major
      GC to be configured at runtime with the +RTS -I<secs> option.
      
      The idle GC only happens in the threaded RTS, and it is useful because
      it can make finalizers run more promptly, and also detect cases of
      deadlock.  Without the idle GC, Haskell computation must be taking
      place in order for finalizers to run or deadlock to be detected, and
      the only way some Haskell computation can take place is usually by
      in-calls.
      
      +RTS -I0 turns off the idle GC, the default is +RTS -I0.3.
      
      We might need to add more tuning if it turns out that the idle GC is
      problematic, for example we don't check how long the GC actually took,
      and we should probably back off if major GCs are taking too long and
      adversely affecting interactive responsiveness.
      33a84b8c
    • simonmar's avatar
      [project @ 2005-05-16 13:47:57 by simonmar] · 34c2b1b2
      simonmar authored
      Implement -x <suffix> flag to override the suffix of a filename for
      the purposes of determinig how it should be compiled.  The usage is
      similar to gcc, except that we just use a suffix rather than a name
      for the language. eg.
      
         ghc -c -x hs hello.blah
      
      will pretend hello.blah is a .hs file.  Another possible use is -x
      hspp, which skips preprocessing.
      
      This works for one-shot compilation, --make, GHCi, and ghc -e.  The
      original idea was to make it possible to use runghc on a file that
      doesn't end in .hs, so changes to runghc will follow.
      
      Also, I made it possible to specify .c files and other kinds of files
      on the --make command line; these will be compiled to objects as
      normal and linked into the final executable.
      
      GHC API change: I had to extend the Target type to include an optional
      start phase, and also GHC.guessTarget now takes a (Maybe Phase) argument.
      
      I thought this would be half an hour, in fact it took half a day, and
      I still haven't documented it.  Sigh.
      34c2b1b2
    • krasimir's avatar
      [project @ 2005-05-16 13:21:11 by krasimir] · afdca09f
      krasimir authored
      added modInfoIsExportedName & modInfoLookupName functions
      afdca09f
    • simonpj's avatar
      [project @ 2005-05-16 12:40:14 by simonpj] · 94cc5f40
      simonpj authored
      Better debug-printing for -ddump-inlinings
      94cc5f40
    • simonpj's avatar
      [project @ 2005-05-16 12:39:55 by simonpj] · 7f668158
      simonpj authored
      Dont print result type for Core case-expressions (too voluminous)
      7f668158
    • simonpj's avatar
      [project @ 2005-05-16 12:39:15 by simonpj] · 4898649c
      simonpj authored
      Add assertions (only)
      4898649c
    • simonpj's avatar
      [project @ 2005-05-16 12:38:38 by simonpj] · edaedc5b
      simonpj authored
      Newtype representation
      
      		Merge to STABLE
      
      This commit fixes a long-standing bug (simple clerical error) in mkNewTyConRep,
      which for some reason had gone un-discovered for years.
      
      tc183 tests it.
      edaedc5b
    • simonmar's avatar
      [project @ 2005-05-16 09:24:53 by simonmar] · 313797f8
      simonmar authored
      - re-initalise cap on returning from STG land, because we might now
        have a different capability.  ToDo: we should pass it back somehow,
        rather than looking it up in the hash table
      
      - export unblockOneLocked (we'll need this later)
      313797f8
  2. 15 May, 2005 2 commits
  3. 14 May, 2005 2 commits
  4. 13 May, 2005 10 commits
  5. 12 May, 2005 7 commits
  6. 11 May, 2005 7 commits
  7. 10 May, 2005 3 commits
    • simonmar's avatar
      [project @ 2005-05-10 13:25:41 by simonmar] · bf821981
      simonmar authored
      Two SMP-related changes:
      
        - New storage manager interface:
      
          bdescr *allocateLocal(StgRegTable *reg, nat words)
      
          which allocates from the current thread's nursery (being careful
          not to clash with the heap pointer).  It can do this without
          taking any locks; the lock only has to be taken if a block needs
          to be allocated.  allocateLocal() is now used instead of allocate()
          in a few PrimOps.
      
          This removes locks from most Integer operations, cutting down
          the overhead for SMP a bit more.
      
          To make this work, we have to be able to grab the current thread's
          Capability out of thin air (i.e. when called from GMP), so the
          Capability subsystem needs to keep a hash from thread IDs to
          Capabilities.
      
        - Small MVar optimisation: instead of taking the global
          storage-manager lock, do our own locking of MVars with a bit of
          inline assembly (x86 only for now).
      bf821981
    • simonmar's avatar
      [project @ 2005-05-10 10:41:00 by simonmar] · 24928a55
      simonmar authored
      Mangler support for GNU/Hurd.
      
      From: Thomas Schwinge
      24928a55
    • simonmar's avatar
      [project @ 2005-05-10 10:35:57 by simonmar] · 723fb29b
      simonmar authored
      Add -I options to SRC_CC_OPTS for bootstrapping
      
      From: Thomas Schwinge
      723fb29b