1. 24 Jul, 2001 2 commits
    • ken's avatar
      [project @ 2001-07-24 04:39:31 by ken] · af27ab5c
      ken authored
      Make the Time module thread-safe by calling the reentrant functions
      gmtime_r and localtime_r instead of gmtime and localtime wherever
      they are available.
      (This is necessary to make Time work at all on our Alpha machine --
      perhaps GHC tickles the reentrancy of the C library or something?)
    • ken's avatar
      [project @ 2001-07-24 04:35:36 by ken] · aaf39182
      ken authored
      Fixed: The type of sec and usec in struct timeval are always 32 bits,
      but not always a CLong.  (On Alphas, CLong is 64 bits.)
  2. 23 Jul, 2001 34 commits
    • andy's avatar
      [project @ 2001-07-23 23:37:35 by andy] · 567381a2
      andy authored
      Adding the -Pa flag. This allows you to see all the cost centres
    • ken's avatar
      [project @ 2001-07-23 23:29:47 by ken] · 67ee0c1b
      ken authored
      Removed 32-bit assumptions.
    • ken's avatar
      [project @ 2001-07-23 23:27:50 by ken] · 2e04f72e
      ken authored
      - Added recommended gcc warning flag: -Wcast-align
        - Fixed: "make distclean" would run in the gmp subdirectory multiple
          times, once for each way.  The second time, the Makefile in there
          is gone, causing an error.
    • ken's avatar
      [project @ 2001-07-23 23:26:14 by ken] · 670eeb09
      ken authored
      Changed comment to reflect reality: We now use 32-bit thread IDs, not
      64-bit ones.
    • ken's avatar
      [project @ 2001-07-23 23:14:58 by ken] · f060e56b
      ken authored
      Removed 32-bit assumptions in info table macros (mostly replacing
      StgWord32 with StgWord).
    • ken's avatar
      [project @ 2001-07-23 23:13:07 by ken] · 6d478f56
      ken authored
      Brought the mangler up-to-date for the Alpha.
    • ken's avatar
      [project @ 2001-07-23 23:10:03 by ken] · 25893c9c
      ken authored
      Fixed: The second-stage compilation in this script should use the compiler
      built in the first stage.  Also, configure wants to find Happy, so we feed
      it fake-happy (presuming that the ghc-less machine also does not have happy).
    • sof's avatar
      [project @ 2001-07-23 23:08:41 by sof] · 4a1bea89
      sof authored
      lex_demand: added a couple of missing cases for new demand type
    • ken's avatar
      [project @ 2001-07-23 23:08:04 by ken] · fb40b8b1
      ken authored
      Rearranged the usage help message to move --no-compile to the bottom.
      More importantly-- Fixed: hsc2hs was translating
          #def inline ... function(...) { ... }
      into (assuming defined(__GNUC__))
          [in the _hsc.h file:]  extern inline ... function(...)
          [in the _hsc.c file:]  inline ... function(...)
      while it should really be translated into
          [in the _hsc.h file:]  extern inline ... function(...)
          [in the _hsc.c file:]  ... function(...)
      (without the "inline" in the _hsc.c file).  Quoting the gcc documentation
      for "inline":
      >    If you specify both `inline' and `extern' in the function
      > definition, then the definition is used only for inlining.  In no case
      > is the function compiled on its own, not even if you refer to its
      > address explicitly.  Such an address becomes an external reference, as
      > if you had only declared the function, and had not defined it.
      >    This combination of `inline' and `extern' has almost the effect of a
      > macro.  The way to use it is to put a function definition in a header
      > file with these keywords, and put another copy of the definition
      > (lacking `inline' and `extern') in a library file.  The definition in
      > the header file will cause most calls to the function to be inlined.
      > If any uses of the function remain, they will refer to the single copy
      > in the library.
    • ken's avatar
      [project @ 2001-07-23 23:02:37 by ken] · 1a6d581f
      ken authored
      Added documentation for hsc2hs "--no-compile" option.
    • ken's avatar
      [project @ 2001-07-23 22:56:44 by ken] · b17b6a01
      ken authored
      Add the *.a.list "list of object files to archive" file
    • ken's avatar
      [project @ 2001-07-23 22:52:33 by ken] · e99733ff
      ken authored
      Improved how we build library archives:
      On Digital UNIX (or where otherwise available), use the "Z" option to
      compress archives as we build them.
      On Digital UNIX 5 (or where otherwise available), use the "-input" option,
      which reads from a specified file the list of objects to archive.  This is
      significantly faster than piping the list of objects to xargs when the
      number of objects to archive is large.
    • ken's avatar
      [project @ 2001-07-23 22:38:02 by ken] · 97e3db03
      ken authored
      Fixed: making dependencies for Haskell source files fails if -split-objs
      is present in $(HC_OPTS).
    • ken's avatar
      [project @ 2001-07-23 22:33:52 by ken] · 27d13cb6
      ken authored
      Added "--enable-hc-boot-unregisterised" option to configure,
      for bootstrapping from unregisterised HC files.
    • ken's avatar
      [project @ 2001-07-23 22:26:18 by ken] · 5f613352
      ken authored
      Teach configure.in to canonicalise new-fangled Alpha system names,
      such as alphaev67-dec-osf5.0, to alpha-dec-osf3.
    • ken's avatar
      [project @ 2001-07-23 22:22:58 by ken] · b123b6eb
      ken authored
      Added a helper script "fake-happy" that fakes "happy -v" output.
      It is useful for bootstrapping on new platforms.
    • ken's avatar
      [project @ 2001-07-23 22:19:59 by ken] · 52fe4859
      ken authored
      Grab the latest versions of config.guess and config.sub from GNU.
    • sof's avatar
      [project @ 2001-07-23 21:31:00 by sof] · b4d63035
      sof authored
      ranlib gmp/libgmp.a - needed for a.out plats (OpenBSD in particular).
    • sof's avatar
      [project @ 2001-07-23 20:19:53 by sof] · b7a226fd
      sof authored
      Handle leading underscores for PrelMain undefineds
    • sof's avatar
      [project @ 2001-07-23 18:25:48 by sof] · 42e2be6d
      sof authored
      Get rid off DEBUG - prev commit didn't attack the real problem
    • simonmar's avatar
      [project @ 2001-07-23 17:28:33 by simonmar] · d6a3df3d
      simonmar authored
      Back out change that tried to sneak in with the new garbage collector.
    • simonmar's avatar
      [project @ 2001-07-23 17:23:19 by simonmar] · dfd7d6d0
      simonmar authored
      Add a compacting garbage collector.
      It isn't enabled by default, as there are still a couple of problems:
      there's a fallback case I haven't implemented yet which means it will
      occasionally bomb out, and speed-wise it's quite a bit slower than the
      copying collector (about 1.8x slower).
      Until I can make it go faster, it'll only be useful when you're
      actually running low on real memory.
      '+RTS -c' to enable it.
      Oh, and I cleaned up a few things in the RTS while I was there, and
      fixed one or two possibly real bugs in the existing GC.
    • simonpj's avatar
      [project @ 2001-07-23 16:27:41 by simonpj] · 9528fa3e
      simonpj authored
    • sof's avatar
      [project @ 2001-07-23 16:16:47 by sof] · 5c408765
      sof authored
      Mismatched module name in non-DEBUG case
    • simonmar's avatar
      [project @ 2001-07-23 15:11:55 by simonmar] · 1fdd21b3
      simonmar authored
      Grrr.  Do not #include "Stg.h" in plain C code, because that enables
      all the global register variables.  #include "Rts.h" directly instead.
      This was correct in the original StgLongLong.c, why on earth it was
      changed is beyond me.
    • simonmar's avatar
      [project @ 2001-07-23 13:49:49 by simonmar] · 083e4450
      simonmar authored
      add a couple of missing ';'
    • qrczak's avatar
      [project @ 2001-07-23 11:44:15 by qrczak] · 8fe4dbdd
      qrczak authored
      import qualified Demand
    • simonpj's avatar
      [project @ 2001-07-23 10:54:46 by simonpj] · f6cd95ff
      simonpj authored
      	Switch to the new demand analyser
      This commit makes the new demand analyser the main beast,
      with the old strictness analyser as a backup.  When
      DEBUG is on, the old strictness analyser is run too, and the
      results compared.
      WARNING: this isn't thorougly tested yet, so expect glitches.
      Delay updating for a few days if the HEAD is mission critical
      for you.
      But do try it out.  I'm away for 2.5 weeks from Thursday, so
      it would be good to shake out any glaring bugs before then.
    • simonpj's avatar
      [project @ 2001-07-23 10:48:56 by simonpj] · 9c220935
      simonpj authored
      block/unblockAsynchExns have arity 2
    • simonmar's avatar
      [project @ 2001-07-23 10:47:16 by simonmar] · 6f83fbc0
      simonmar authored
      Small changes to improve GC performance slightly:
        - store the generation *number* in the block descriptor rather
          than a pointer to the generation structure, since the most
          common operation is to pull out the generation number, and
          it's one less indirection this way.
        - cache the generation number in the step structure too, which
          avoids an extra indirection in several places.
    • simonmar's avatar
      [project @ 2001-07-23 10:43:42 by simonmar] · 9a6296aa
      simonmar authored
      The real version of this file is in ghc/includes/.
    • simonmar's avatar
      [project @ 2001-07-23 10:43:18 by simonmar] · f94afcba
      simonmar authored
      merge in changes from rts/Linker.h
    • simonmar's avatar
      [project @ 2001-07-23 10:42:37 by simonmar] · c7d7f33a
      simonmar authored
      Small fixes to the help text for the -i heap profiling interval option.
    • simonpj's avatar
      [project @ 2001-07-23 10:24:57 by simonpj] · b20ad447
      simonpj authored
      Yet another newtype-squashing bug; this time TcType.unifyTyX
  3. 22 Jul, 2001 2 commits
    • chak's avatar
      [project @ 2001-07-22 03:28:25 by chak] · 6ea86573
      chak authored
      ELF_TARGET_386 has to be #defined for x86/Solaris.
    • chak's avatar
      [project @ 2001-07-22 03:19:51 by chak] · 02f8658b
      chak authored
      Solaris system headers contain function definitions (not just prototypes) for
      some functions; eg, stat().  WDP decided to toss (some of) them out during
      mangling.  I think, this is wrong, as the list of these functions changes with
      varying Solaris releases and it makes foreign importing these functions more
      complicated; in particular, it broke Directory.hsc and PosixFiles on
  4. 21 Jul, 2001 2 commits