Switch branches/tags
Commits on Jun 25, 2009
  1. Fix Trac #3323: naughty record selectors again committed Jun 25, 2009
    I boobed when I decoupled record selectors from their data types.
    The most straightforward and robust fix means attaching the TyCon
    of a record selector to its IfaceIdInfo, so 
       you'll need to rebuild all .hi files
    That said, the fix is easy.
Commits on Jun 24, 2009
  1. Make C and CMM objects way-dependent

    igfoo committed Jun 24, 2009
    In particular, in the integer-gmp package the C and CMM code depends
    on the size of STG structures, which vary between ways.
Commits on Jun 23, 2009
  1. Fix buffering problem when GHCi is using the new IO library

    simonmar committed Jun 23, 2009
    Behind the scenes, the new IO library always does buffering for read
    Handles regardless of NoBuffering.  Normally this isn't visible, but
    it causes a problem in GHCi where there are two stdin Handles.
    This should fix those ghci test failures that sprung up in full
    testsuite runs recently.
  2. Optimise the %.hi : %.o rule

    simonmar committed Jun 23, 2009
    Previously this rule had a sanity check for the existence of the .o
    file.  However, the sanity check is expensive, especially on Windows,
    because it requires spawning a shell.  So now we use an empty command
    This change reduced the time to do 'make' in an up-to-date tree on
    Windows from 33s to 16s for me.  (the actual saving depends on how
    much rebuilding you've been doing, and how many .hi files are older
    than their .o files).
    The comments in this file now describe various versions of the rule
    that don't work.
Commits on Jun 22, 2009
  1. fix comment

    simonmar committed Jun 22, 2009
  2. Follow Integer changes

    igfoo committed Jun 22, 2009
  3. Add the integer package

    igfoo committed Jun 22, 2009
    integer-gmp's Integer is now wrapped by an Integer type in integer.
  4. Add a couple more symbols to the Linker.c table

    igfoo committed Jun 22, 2009
    Fixes ghci loading gmp on Windows
Commits on Jun 17, 2009
  1. fix 'make 1'

    simonmar committed Jun 17, 2009
  2. makefile tweak

    igfoo committed Jun 17, 2009
Commits on Jun 16, 2009
  1. Remove more GMP bits

    igfoo committed Jun 16, 2009
Commits on Jun 15, 2009
  1. Make sure we aren't passing -Werror in the CFLAGS for configure scripts

    igfoo committed Jun 15, 2009
    When configure tests for a feature it may not generate warning-free C
    code, and thus may think that the feature doesn't exist if -Werror is
Commits on Jun 14, 2009
Commits on Jun 13, 2009
  1. Stop building the rts against gmp

    dcoutts committed Jun 13, 2009
    Nothing from gmp is used in the rts anymore.
  2. Stop setting the gmp memory functions in the rts

    dcoutts committed Jun 13, 2009
    and remove the implementations of stg(Alloc|Realloc|Dealloc)ForGMP
  3. Remove the gmp/Integer primops from the compiler

    dcoutts committed Jun 13, 2009
    The implementations are still in the rts.
  4. Exports a few rts things we need for cmm code in external packages

    dcoutts committed Jun 13, 2009
    In particular we need alloc_blocks and alloc_blocks_lim for MAYBE_GC.
    The gmp cmm primops also use stg_ARR_WORDS_info.
Commits on Jun 12, 2009
  1. Add and export rts_unsafeGetMyCapability from rts

    dcoutts committed Jun 12, 2009
    We need this, or something equivalent, to be able to implement
    stgAllocForGMP outside of the rts. That's because we want to use
    allocateLocal which allocates from the given capability without
    having to take any locks. In the gmp primops we're basically in
    an unsafe foreign call, that is a context where we hold a current
    capability. So it's safe for us to use allocateLocal. We just
    need a way to get the current capability. The method to get the
    current capability varies depends on whether we're using the
    threaded rts or not. When stgAllocForGMP is built inside the rts
    that's ok because we can do it conditionally on THREADED_RTS.
    Outside the rts we need a single api we can call without knowing
    if we're talking to a threaded rts or not, hence this addition.
Commits on Jun 11, 2009
  1. Require GHCForeignImportPrim for "foreign import prim"

    dcoutts committed Jun 11, 2009
    In practise currently you also need UnliftedFFITypes, however
    the restriction to just unlifted types may be lifted in future.
  2. Add missing StgPrimCallOp case in repCCallConv

    dcoutts committed Jun 11, 2009
    We don't handle "foreign import prim" in TH stuff.
Commits on Jun 3, 2009
  1. remove unused cruft

    simonmar committed Jun 3, 2009