1. 29 Jul, 2002 8 commits
    • simonpj's avatar
      [project @ 2002-07-29 16:12:07 by simonpj] · 90b4aa6c
      simonpj authored
      ** MERGE TO STABLE **
      
      1. Make TidyPgm forget IdInfo for exported things.  This is
         really important for the recompilation checker; see the
         commment with TidyPgm.tidyTopIdInfo
      
         Fixes a bug reported by Sigbjorn.
      
      
      2. Make CoreToStg more robust, by avoiding the duplicate
         calculation of update flag for top-level closures
      90b4aa6c
    • simonpj's avatar
      [project @ 2002-07-29 16:08:20 by simonpj] · ae54d9e7
      simonpj authored
      Comment only
      ae54d9e7
    • simonpj's avatar
      [project @ 2002-07-29 13:19:52 by simonpj] · 4bca2e7f
      simonpj authored
      ** MERGE TO STABLE **
      
      Fix an alpha-renaming bug in hoistForAlls
      4bca2e7f
    • simonpj's avatar
      [project @ 2002-07-29 12:22:37 by simonpj] · 2ddea0a8
      simonpj authored
      *** MERGE TO STABLE BRANCH ***
      
      
      Surprisingly large delta to make rebindable names work properly.
      I was sloppily not checking the type of the user-supplied name,
      and Ashley Yakeley's first experiment showed up the problem!
      
      Solution: typechecker has to check both the 'standard' name and
      the 'user' name and check the latter has a type compatible with the
      former.
      
      The main comment is with Inst.tcSyntaxName (a new function).
      2ddea0a8
    • simonmar's avatar
      [project @ 2002-07-29 11:22:31 by simonmar] · 94f8d8ae
      simonmar authored
      Back out previous commit; -static is on by default and we don't want
      to always pass -static to the linker.
      94f8d8ae
    • simonmar's avatar
      [project @ 2002-07-29 10:50:43 by simonmar] · 5bca7237
      simonmar authored
      Type variables created by the typechecker didn't have the correct
      NameSpace: they were in the Var namespace rather than the TyVar
      namespace, which can lead to strange warnings about quantified type
      variables being not mentioned in the type when DEBUG is on.
      
      Name:
      	- added mkSystemNameEncoded for use when the string
      	  is already encoded (saves re-encoding the string every
      	  time)
      
      	- added mkSystemTvNameEncoded for making a type variable
      	  name, as above
      
      Var:
      	- use mkSystemTvNameEncoded when making type variables
      
      Id:
      	- add mkSysLocalUnencoded for the (rare) case when
      	  the string needs encoding
      
      TcMType:
      	- use mkSystemTvNameEncoded rather than mkSystemName for
      	  making type variables
      
      SetLevels:
      	- use mkSysLocalUnencoded since the names generated here
      	  need encoding.
      5bca7237
    • simonmar's avatar
      [project @ 2002-07-29 10:42:29 by simonmar] · 157cecc7
      simonmar authored
      Add -static to the linker command line when -static is passed to GHC.
      
      At some point we might want a way to say that Haskell libraries should
      be linked statically but everything else should be linked as normal,
      but since we aren't really supporting dynamic Haskell libraries at
      this time, we don't need to address that yet.
      157cecc7
    • simonpj's avatar
      [project @ 2002-07-29 09:11:04 by simonpj] · ca667fbb
      simonpj authored
      More informative crash in rdrNameModule
      ca667fbb
  2. 28 Jul, 2002 3 commits
  3. 26 Jul, 2002 2 commits
    • simonmar's avatar
      [project @ 2002-07-26 09:35:46 by simonmar] · cecac854
      simonmar authored
      Always return 8-byte-aligned memory from arenaAlloc().  Fixes problems
      with profiling on sparc-sun-solaris2, and might fix problems with
      Windows too.
      
      MERGE
      cecac854
    • sof's avatar
      [project @ 2002-07-26 03:06:58 by sof] · 6b269a43
      sof authored
      interactiveLoop{mingw32}: always show prompt under mingw.
      
      hIsTerminalDevice returns True iff stdin is connected to a Console
      under Win32. Which it is when running in a command shell
      (DOS,bash etc.), but Emacs sub-shells don't get a Console of their
      own when invoked. So, just disable this feature (whose motivation
      somewhat escapes me.)
      6b269a43
  4. 25 Jul, 2002 2 commits
    • sof's avatar
      [project @ 2002-07-25 18:36:59 by sof] · d9d8ab15
      sof authored
      Expose printAllThreads() in non-DEBUG builds;
      of some use when debugging ConcHask code and
      want a dump of the current state of the system's
      threads.
      
      Not provided via a library, so to use, do
      
       foreign import call unsafe printAllThreads :: IO ()
      d9d8ab15
    • simonmar's avatar
      [project @ 2002-07-25 14:47:30 by simonmar] · 80a99ae2
      simonmar authored
      Add -ddump-minimal-imports (not sure why this was missing)
      
      MERGE
      80a99ae2
  5. 24 Jul, 2002 5 commits
  6. 23 Jul, 2002 11 commits
  7. 22 Jul, 2002 3 commits
  8. 21 Jul, 2002 1 commit
    • panne's avatar
      [project @ 2002-07-21 11:46:34 by panne] · 026fa45f
      panne authored
      Long explanation for small commit:
      
      With the recent reorganization of #includes, things get a little bit
      fragile: When gcc with -O is used, glibc's <stdio.h> defines a few
      inline functions (see <bits/stdio.h>), and "Stg.h" defines some global
      variables which reside in registers. But the latter must happen
      *before* any function definition has been seen, otherwise the
      generated code could be invalid. Consequently gcc complains like:
      
         In file included from Stg.h:182,
                          from mkNativeHdr.c:12:
         Regs.h:293: global register variable follows a function definition
         Regs.h:302: global register variable follows a function definition
      
      The solution is quite simple: Always #include "Stg.h" *before* any
      system headers.
      026fa45f
  9. 20 Jul, 2002 1 commit
  10. 19 Jul, 2002 4 commits
    • sof's avatar
      [project @ 2002-07-19 18:45:21 by sof] · 0974f1a8
      sof authored
      forkProcess():
       be less ambitious, and don't kill any main_threads.
       Killing them, and possibly replacing them on the
       main_threads with the current one, turned out to
       run into problems of its own (see comments.)
      
       The hope/wish is that the current behaviour of
       forkProcess will suffice.
      0974f1a8
    • simonmar's avatar
      [project @ 2002-07-19 11:48:20 by simonmar] · 542e4d92
      simonmar authored
      Remove the check for >4 args when doing a foreign import "wrapper" on
      Sparc: we support unlimited arguments now (from Sven Panne).
      542e4d92
    • simonmar's avatar
      [project @ 2002-07-19 11:47:30 by simonmar] · 5926dc51
      simonmar authored
      Code to make the general case of createAdjustor() work on Sparc, from
      Sven Panne.  Previously only 4 args were supported.
      5926dc51
    • simonmar's avatar
      [project @ 2002-07-19 11:46:31 by simonmar] · 541d1d89
      simonmar authored
      Sparc NCG fix from Sven Panne: 8-byte align the stack ptr when doing a ccall.
      541d1d89