1. 27 May, 2004 3 commits
    • simonmar's avatar
      [project @ 2004-05-27 15:21:37 by simonmar] · e663fcfa
      simonmar authored
      Remove part of previous patch which was for debugging only.
    • simonmar's avatar
      [project @ 2004-05-27 15:18:31 by simonmar] · 86e487a2
      simonmar authored
      Fix a nasty bug: when saving errno in the TSO after running a thread,
      beware that the TSO might have moved, e.g. if the thread made a safe
      foreign call in the threaded RTS and a GC happened.
      We have to grab the new location of the TSO *before* saving errno.
      This was the most interesting bug hunt I've had in a while.  The crash
      only showed up in about 1 in 4 runs of a program with 1000 Haskell
      threads, running on the threaded RTS.  To make things worse, gdb
      doesn't support watchpoints in programs with multiple threads... :-/
    • simonmar's avatar
      [project @ 2004-05-27 09:29:28 by simonmar] · d2a09365
      simonmar authored
      Make getAllocations() return an Int64 to avoid Int overflow.
  2. 25 May, 2004 2 commits
    • simonpj's avatar
      [project @ 2004-05-25 09:06:38 by simonpj] · dc9ffb20
      simonpj authored
      	Decent error on re-use of built-in syntax
      Make the renamer complain nicely on stupid stuff like
      	data T = []
      (except in the Prelude, of course!)
    • simonpj's avatar
      [project @ 2004-05-25 08:09:37 by simonpj] · c6713d35
      simonpj authored
      	Improve location info on unused-import warnings
      Improving the location involves plumbing the location of the import a bit
      more assiduously -- hence change to imp_mods in TcRnTypes
  3. 24 May, 2004 3 commits
  4. 22 May, 2004 2 commits
    • panne's avatar
      [project @ 2004-05-22 12:27:38 by panne] · 4a41cd9a
      panne authored
      Reverse the order in which DLLs are loaded. This makes more sense in general and
      should fix the trouble with the broken OpenGL libs on Gentoo. This fix has been
      tested on x86 Linux, but reports from other platforms (WinDoze, MacOS X, ...)
      are highly welcome, dynamic linking is quite platform-specific and surprising
      things can happen from time to time...
      Merge to STABLE when tested on other platforms
    • dons's avatar
      [project @ 2004-05-22 01:43:37 by dons] · 94b639b8
      dons authored
      Add x86_64-*-openbsd* as synonym for amd64-*-openbsd.
      Which one you get depends on which config.sub we have, and newer
      (2004-*) config.subs normalise all amd64s to x86_64s.
  5. 21 May, 2004 2 commits
    • simonmar's avatar
      [project @ 2004-05-21 13:28:59 by simonmar] · 89f9f089
      simonmar authored
      Fix yet another bug in the THUNK_SELECTOR code.  Interestingly, I
      spotted this one earlier but left a ToDo in the code rather than
      fixing it (I think I wasn't sure whether it could happen or not).
      The bug is to close another another way that eval_thunk_selector()
      could return a pointer into to-space.  See comments for details.
    • geoffw's avatar
      [project @ 2004-05-21 09:25:03 by geoffw] · 0479146d
      geoffw authored
      mingw/msys fix: keep .lcomm directives
  6. 20 May, 2004 1 commit
  7. 19 May, 2004 1 commit
  8. 18 May, 2004 1 commit
  9. 15 May, 2004 1 commit
  10. 12 May, 2004 2 commits
    • simonpj's avatar
      [project @ 2004-05-12 13:01:30 by simonpj] · 3d4c49bb
      simonpj authored
      Tidy-up only; behaviour unchanged
    • simonpj's avatar
      [project @ 2004-05-12 12:55:12 by simonpj] · 825fba2a
      simonpj authored
      	Another delicate fix to the way that the
      	Dreaded Monomorpism Restriction is handled
           I think this should merge nicely to the STABLE branch
      In TcSimplify 1.130 I changed tcSimplifyRestricted (used for
      declarations that fall under the monomorphism restriction) to use Plan
      C.  Unfortunately, it later transpired that George Russel and Serge
      Mechveliani both made somewhat-dubious use of overlapping instances
      that conflicted with this change. Here's the example
        instance (HasBinary ty IO) => HasCodedValue ty
        foo :: HasCodedValue a => String -> IO a
        doDecodeIO :: HasCodedValue a => () -> () -> IO a
        doDecodeIO codedValue view = let { act = foo "" } in  act
      You might think this should work becuase the call to 'foo' in the last
      line gives rise to a constraint (HasCodedValue t), which can be
      satisfied by the type sig for doDecodeIO.  But the restricted binding
      act = ... calls tcSimplifyRestricted, and Plan C simplifies the
      constraint using the (rather bogus) instance declaration, and now we
      are stuffed.
      This commit implements Plan D, which is like plan B except that it does no
      improvement, and hence avoids plan B's flaw.  See the comments with Plan D.
      The only criticism one might make of Plan D is that it may sometimes quantify
      a restricted binding over "too few" type variables; but one can solve that
      by adding a type sig.  So this seems better than the very subtle problems
      with Plan C.
      All of this is very much at the margin: George and Sergey are pushing
      their luck.
  11. 11 May, 2004 2 commits
  12. 10 May, 2004 3 commits
    • simonmar's avatar
      [project @ 2004-05-10 11:53:41 by simonmar] · 318f8bc4
      simonmar authored
      Fix mishandling of the BF_COMPACTED flag, which could lead to problems
      when using the compacting collector (+RTS -c, or +RTS -M<size>).  In
      fact, I'm not sure how it worked at all.
    • simonmar's avatar
      [project @ 2004-05-10 10:26:07 by simonmar] · d28ae8e1
      simonmar authored
      Hack to generate correct dependencies for the RTS.  We now #define
      PROFILING, THREADED_RTS and DEBUG when generating dependencies so that
      we get (hopefully) a superset of all the deps.
    • simonmar's avatar
      [project @ 2004-05-10 10:05:34 by simonmar] · 0181a93d
      simonmar authored
      In multiple declaration errors, give the location of one of the
      declarations as the location of the error message, instead of the
      top-level of the file.
  13. 09 May, 2004 1 commit
  14. 08 May, 2004 2 commits
  15. 07 May, 2004 4 commits
    • panne's avatar
      [project @ 2004-05-07 21:19:21 by panne] · 70b3bd34
      panne authored
      GCC's __attribute__ handling seems to be a little bit stricter with GCC 3.3.3:
         * When a function declaration uses it, the corresponding definition has to
           use it, too.
         * Syntactically it is allowed only at the beginning of the function
      Let's hope that the current syntax is backwards compatible...
    • simonpj's avatar
      [project @ 2004-05-07 14:06:45 by simonpj] · 250be0a3
      simonpj authored
      	Make sure that GHCi loads all
      	necessary orphan-instance modules
      When you do :m A, we need to load any orphan-instance modules
      below A.  That's easily done, but had been forgotten.
      	Do not merge to stable: the fix is different there
    • simonpj's avatar
      [project @ 2004-05-07 14:06:12 by simonpj] · cd837518
      simonpj authored
      White space
    • simonmar's avatar
      [project @ 2004-05-07 11:23:56 by simonmar] · ea480db3
      simonmar authored
      make a SrcSpan for the whole file that is not "unhelpful"
  16. 06 May, 2004 10 commits