1. 23 Jan, 2003 4 commits
    • simonpj's avatar
      [project @ 2003-01-23 14:08:46 by simonpj] · 37e74d84
      simonpj authored
      Improve error message
      37e74d84
    • simonmar's avatar
      [project @ 2003-01-23 12:26:04 by simonmar] · 2119bdb8
      simonmar authored
      Document +RTS -xt
      2119bdb8
    • simonmar's avatar
      [project @ 2003-01-23 12:13:10 by simonmar] · 70c1ca01
      simonmar authored
      - Add a new flag, -xt, which enables inclusion of TSOs in a heap profile.
      
      - Include large objects in heap profiles (except TSOs unless the -xt flag
        is given).
      
      - In order to make this work, I had to set the bd->free field of the
        block descriptor for a large object to the correct value.  Previously,
        it pointed to the start of the block (i.e. the same as bd->start).
        I hope this doesn't have any other consequences; it looks more
        correct this way in any case.
      70c1ca01
    • simonmar's avatar
      [project @ 2003-01-23 11:22:50 by simonmar] · 55afc498
      simonmar authored
      A nullary constructor in an argument position should refer to the
      constructor worker, not the wrapper.  In most cases they're the same,
      but when using -funbox-strict-fields (or maybe a context on a data
      type?) they can be different, leading to a crash.
      
      MERGE TO STABLE
      55afc498
  2. 20 Jan, 2003 1 commit
    • simonpj's avatar
      [project @ 2003-01-20 16:24:51 by simonpj] · 9208de5c
      simonpj authored
      Increase the size of a string literal; cures a simplifier loop
          when an application (f "x") appeared to have size 1, and so was
          inlined repeatedly.  The problem was that "x" appeared to have
          size 0.
      9208de5c
  3. 19 Jan, 2003 1 commit
  4. 17 Jan, 2003 3 commits
  5. 14 Jan, 2003 3 commits
  6. 13 Jan, 2003 8 commits
    • simonpj's avatar
      [project @ 2003-01-13 17:01:22 by simonpj] · 0877011a
      simonpj authored
      ------------------------------------
      	(a) Improve reporting of staging errors
      	(b) Tidy up the construction of dict funs
      			and default methods
      	------------------------------------
      0877011a
    • simonpj's avatar
      [project @ 2003-01-13 14:12:31 by simonpj] · 61d8dc50
      simonpj authored
      Bale out earlier if main is not in scope (fixes several test failures)
      61d8dc50
    • simonmar's avatar
      [project @ 2003-01-13 14:02:07 by simonmar] · 732cf22e
      simonmar authored
      The hook NoRunnableThreads() is not used; kill it.
      732cf22e
    • simonpj's avatar
      [project @ 2003-01-13 13:39:34 by simonpj] · a7c1d388
      simonpj authored
      wibble
      a7c1d388
    • simonpj's avatar
      [project @ 2003-01-13 13:22:58 by simonpj] · 96b7249d
      simonpj authored
      Comment
      96b7249d
    • simonpj's avatar
      [project @ 2003-01-13 13:20:37 by simonpj] · 90bf3139
      simonpj authored
      --------------------------------
      	Don't export the inlining for a foreign
      	import that has a #include directive
      	--------------------------------
      
      Reason for this change: if the inlining is imported into another
      module, the latter may not have the right #include directives.
      
      Also add notes to the documentation to explain the issues.
      90bf3139
    • simonpj's avatar
      [project @ 2003-01-13 13:19:25 by simonpj] · 67398e1b
      simonpj authored
      ------------------------------------
      	Type signature for derived con2tag
      	------------------------------------
      
      		MERGE TO STABLE
      
      The derived con2tag didn't have a type signature, so we got
      
      	con2tagFoo :: a -> Int#
      	con2tagFoo = \x -> getTag x
      
      The getTag generates a case expression, so we get a polymorphic
      case.  The polymorphic case simply does not work in *interpreted*
      GHC 5.02.3 and as a result neither does con2tag.  Alas.
      
      This commit fixes the problem, by giving a type signature for
      con2TagFoo.  But note that getTag in interpreted GHC 5.02 will continue
      to fail if used in a polymorphic context.  This problem does not arise
      in the HEAD (eval/apply) so I'm going to leave it as a wont-fix bug.
      67398e1b
    • simonpj's avatar
      [project @ 2003-01-13 13:10:19 by simonpj] · 0862ecec
      simonpj authored
      Import trimming
      0862ecec
  7. 10 Jan, 2003 7 commits
    • wolfgang's avatar
      [project @ 2003-01-10 22:08:20 by wolfgang] · e65d8f38
      wolfgang authored
      blockUserSignal() should use SIG_BLOCK instead of SIG_SETMASK, otherwise it
      would also sometimes unblock signals that should be blocked.
      
      MERGE TO STABLE
      e65d8f38
    • simonmar's avatar
      [project @ 2003-01-10 16:33:49 by simonmar] · c3fb6ff1
      simonmar authored
      Changes to the way stack checks are handled in GHCi, to fix a rare bug
      when a stack check fails in a BCO.
      
      We now aggregate all stack use from case alternatives up to the
      enclosing function/thunk BCO, and do a single stack check at the
      beginning of that BCO.  This simplifies the stack check failure code,
      because it doesn't have to cope with the case when a case alternative
      needs to restart.
      
      We still employ the trick of doing a fixed stack check before every
      BCO, only inserting an actual stack check instruction in the BCO if it
      needs more stack than this fixed amount.  The fixed stack check is now
      only done before running a function/thunk BCO.
      c3fb6ff1
    • simonpj's avatar
      [project @ 2003-01-10 16:10:00 by simonpj] · 2d6705ca
      simonpj authored
      Add notes on real-time profiling from Jan-Willhem
      2d6705ca
    • simonmar's avatar
      [project @ 2003-01-10 15:00:22 by simonmar] · e60d7bb1
      simonmar authored
      Fix GHCi breakage on the HEAD: my recent fixes to the BCO cases in
      GenApply weren't quite correct.
      e60d7bb1
    • simonpj's avatar
      [project @ 2003-01-10 14:20:41 by simonpj] · 19618439
      simonpj authored
      Export main from Main (only matters for ghci) [missed file]
      19618439
    • simonpj's avatar
      [project @ 2003-01-10 14:20:01 by simonpj] · 753d8919
      simonpj authored
      Export main from Main (only matters for ghci)
      753d8919
    • simonmar's avatar
      [project @ 2003-01-10 10:55:24 by simonmar] · f7f6daaf
      simonmar authored
      Only add -package readline if $(GhcLibsWithReadline) == YES
      
      This isn't really the correct solution, since we actually want to know
      whether the bootstrapping compiler has readline, not this one, but
      since the most common bootstrapping compiler is going to be the stage1
      compiler in this tree it's a good guess that GhcLibsWithReadline is
      correct.
      f7f6daaf
  8. 09 Jan, 2003 11 commits
  9. 08 Jan, 2003 2 commits
    • simonmar's avatar
      [project @ 2003-01-08 15:47:54 by simonmar] · 356fb38b
      simonmar authored
      Improve the missing module message in the compilation manager, too.
      356fb38b
    • simonmar's avatar
      [project @ 2003-01-08 15:28:04 by simonmar] · b1f1b152
      simonmar authored
      Improve missing-module error messages.  eg.
      
      hello2.hs:1:
          Failed to load interface for `Foo':
              Could not find interface file for `Foo'
              (use -v to see a list of the files searched for)
      
      and if we add the -v flag:
      
      hello2.hs:1:
          Failed to load interface for `Foo':
              Could not find interface file for `Foo'
              locations searched:
                  Foo.hi
                  Foo.hi-boot-6
                  Foo.hi-boot
                  /home/simonmar/builds/i386-unknown-linux/libraries/haskell-src/Foo.hi
                  /home/simonmar/builds/i386-unknown-linux/libraries/haskell98/Foo.hi
                  /home/simonmar/builds/i386-unknown-linux/libraries/readline/Foo.hi
                  /home/simonmar/builds/i386-unknown-linux/libraries/unix/Foo.hi
                  /home/simonmar/builds/i386-unknown-linux/libraries/network/Foo.hi
                  /home/simonmar/builds/i386-unknown-linux/libraries/base/Foo.hi
      b1f1b152