1. 11 May, 2004 2 commits
  2. 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.
      
      MERGE TO STABLE
      318f8bc4
    • 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.
      d28ae8e1
    • 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.
      0181a93d
  3. 09 May, 2004 1 commit
  4. 08 May, 2004 2 commits
  5. 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
           definition.
      
      Let's hope that the current syntax is backwards compatible...
      70b3bd34
    • 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
      250be0a3
    • simonpj's avatar
      [project @ 2004-05-07 14:06:12 by simonpj] · cd837518
      simonpj authored
      White space
      cd837518
    • 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"
      ea480db3
  6. 06 May, 2004 15 commits
  7. 05 May, 2004 9 commits
  8. 04 May, 2004 1 commit
  9. 30 Apr, 2004 2 commits
  10. 27 Apr, 2004 1 commit
    • simonpj's avatar
      [project @ 2004-04-27 12:47:13 by simonpj] · 74e0bdb6
      simonpj authored
      ----------------------------------------
           1. Make primOpIsCheap do something sensible
           2. Make the state hack work better
           ----------------------------------------
      
      1.  In March 2001, we changed primOpIsCheap to
      	primOpIsCheap op = False
      thereby making *no* primops seem cheap.  But this killed eta
      expansion on case (x ==# y) of True -> \s -> ...
      which is bad.  In particular a loop like
        doLoop n = loop 0
          where
            loop i | i == n    = return ()
                   | otherwise = bar i >> loop (i+1)
      allocated a closure every time round because it didn't eta expand.
      
      The problem that made us set primOpIsCheap to False was
      		let x = a +# b *# c in x +# x
      where we don't want to inline x. But primopIsCheap doesn't control
      that (it's exprIsDupable that does) so the problem doesn't occur
      even if primOpIsCheap sometimes says 'True'.  I think that perhaps
      something changed since March 2001.
      
      
      2.  Consider this
      	case x of
      	  True  -> \(s:RealWorld) -> e
      	  False -> foo
      where foo has arity 1.  If we are using the "state hack" we want to
      eta expand here.  This commit fixes arityType in the Var case (for foo)
      to take account of foo's type.
      
      Also add -fno-state-hack to the static flags, to allow the state hack to
      be switched off.
      74e0bdb6