1. 28 Jun, 2005 2 commits
    • simonmar's avatar
      [project @ 2005-06-28 13:44:28 by simonmar] · 9c1b774a
      simonmar authored
      Add a comment that grabbing all the capabilities before GC causes the
      thread->capability hash table to acquire multiple entries for the
      current thread, which seems to be harmless.
      9c1b774a
    • simonmar's avatar
      [project @ 2005-06-28 13:43:41 by simonmar] · 9e9dfae0
      simonmar authored
      Disable the assertion that checks for multiple entries with the same
      key in the hash table.  It's useful to be able to do this sometimes.
      9e9dfae0
  2. 27 Jun, 2005 4 commits
  3. 23 Jun, 2005 1 commit
    • simonmar's avatar
      [project @ 2005-06-23 09:17:30 by simonmar] · 4e448ebd
      simonmar authored
      Add a 'U' suffix to all integer literals to make them explicitly
      unsigned.  This avoids some warnings from gcc, but I don't think it
      fixes any actual bugs (I could be wrong, though).
      4e448ebd
  4. 22 Jun, 2005 2 commits
  5. 21 Jun, 2005 5 commits
    • ross's avatar
      [project @ 2005-06-21 15:11:38 by ross] · 41fef65c
      ross authored
      split Distribution.Extension between Language.Haskell.Extension (just
      the type, which will also be useful when haskell-src-exts is merged)
      and Distribution.Compiler (mappings to compiler options).
      41fef65c
    • simonmar's avatar
      [project @ 2005-06-21 12:03:25 by simonmar] · 359313f8
      simonmar authored
      Document changes to the package system.
      
      A nice side effect of the relaxed restrictions is that the
      -ignore-package flag is no longer required when compiling a package
      (unless the package is "base", and even in that case we might be able
      to get away with -hide-package base).  For now, I've removed
      references that talk about using -ignore-package when compiling a
      package, and simplified the documentation for -ignore-package.
      359313f8
    • simonmar's avatar
      [project @ 2005-06-21 11:57:00 by simonmar] · b9a1ac09
      simonmar authored
      fix Windows build
      b9a1ac09
    • simonmar's avatar
      [project @ 2005-06-21 10:44:37 by simonmar] · 0c53bd0e
      simonmar authored
      Relax the restrictions on conflicting packages.  This should address
      many of the traps that people have been falling into with the current
      package story.
      
      Now, a local module can shadow a module in an exposed package, as long
      as the package is not otherwise required by the program.  GHC checks
      for conflicts when it knows the dependencies of the module being
      compiled.
      
      Also, we now check for module conflicts in exposed packages only when
      importing a module: if an import can be satisfied from multiple
      packages, that's an error.  It's not possible to prevent GHC from
      starting by installing packages now (unless you install another base
      package).
      
      It seems to be possible to confuse GHCi by having a local module
      shadowing a package module that goes away and comes back again.  I
      think it's nearly right, but strange happenings have been observed.
      
      I'll try to merge this into the STABLE branch.
      0c53bd0e
    • simonmar's avatar
      [project @ 2005-06-21 10:30:41 by simonmar] · 93e2d5bd
      simonmar authored
      we should be using PprTyThingInContext instead of PprTyThing here
      93e2d5bd
  6. 19 Jun, 2005 3 commits
  7. 16 Jun, 2005 6 commits
  8. 15 Jun, 2005 2 commits
    • simonmar's avatar
      [project @ 2005-06-15 13:50:14 by simonmar] · 48f77ccc
      simonmar authored
      Undo accidental commit
      48f77ccc
    • simonmar's avatar
      [project @ 2005-06-15 12:03:19 by simonmar] · e6de0678
      simonmar authored
      Re-implement GHCi's :info and :browse commands in terms of TyThings
      rather than IfaceSyn.
      
      The GHC API now exposes its internal types for Haskell entities:
      TyCons, Classes, DataCons, Ids and Instances (collectively known as
      TyThings), so we can inspect these directly to pretty-print
      information about an entity.  Previously the internal representations
      were converted to IfaceSyn for passing to InteractiveUI, but we can
      now remove that code.
      
      Some of the new code comes via Visual Haskell, but I've changed it
      around a lot to fix various dark corners and properly print things
      like GADTs.
      
      The pretty-printing interfaces for TyThings are exposed by a new
      module PprTyThing, which is implemented purely in terms of the GHC API
      (and is probably a good source of sample code).  Visual Haskell should
      be able to use the functions exported by this module directly.
      
      Lots of new goodies are exported by the GHC module, mainly for
      inspecting TyThings.
      e6de0678
  9. 14 Jun, 2005 1 commit
  10. 13 Jun, 2005 11 commits
    • simonmar's avatar
      [project @ 2005-06-13 14:36:01 by simonmar] · 91314304
      simonmar authored
      - Fix up documentation for about new automatic printing semantics
      - Document :tags
      91314304
    • simonmar's avatar
      [project @ 2005-06-13 14:16:03 by simonmar] · a9842920
      simonmar authored
      fix layout in the help text
      a9842920
    • simonmar's avatar
      [project @ 2005-06-13 14:12:59 by simonmar] · f96c7c1a
      simonmar authored
      Implement :tags command
      
      Patch supplied by Claus Reinke, with some modifications by me.
      Ideally we'd like this to be a command line option too, and we'd like
      to drop the restriction that all the source files must be interpreted,
      but that needs some work elsewhere (interface files have to store
      definition source locations).
      f96c7c1a
    • simonmar's avatar
      [project @ 2005-06-13 13:46:39 by simonmar] · 7004f764
      simonmar authored
      unused imports
      7004f764
    • simonmar's avatar
      [project @ 2005-06-13 13:44:48 by simonmar] · 58b4a155
      simonmar authored
      - Eliminate some warnings, remove dead code
      - export PrintUnqualified, alwaysQualify
      58b4a155
    • simonmar's avatar
      [project @ 2005-06-13 12:29:48 by simonmar] · b07f3876
      simonmar authored
      Block allocator performance fix: instead of keeping the free list
      ordered, keep it doubly-linked, and introduce a new flag BF_FREE so we
      can tell when a block is free.  We can still coalesce blocks on the
      free list because block descriptors are kept consecutively in memory,
      so we can tell based on the BF_FREE flag whether to coalesce with the
      next higher/lower blocks when freeing a block.
      
      This (almost) make freeChain O(n) rather than O(n^2), and has been
      reported to help a lot when dealing with very large heaps.
      b07f3876
    • simonmar's avatar
      [project @ 2005-06-13 10:21:09 by simonmar] · 15e00848
      simonmar authored
      Use perl rather than sed to munge the package.conf file; avoids
      portability problems with sed (previous version didn't work on Solaris).
      15e00848
    • wolfgang's avatar
      [project @ 2005-06-13 02:44:22 by wolfgang] · c26a153c
      wolfgang authored
      Darwin:
      Deal with the fact that the code and data in a .o file might not be
      16-byte aligned even if it contains instructions that require 16-byte
      alignment.
      This fixes floating point related crashes on Darwin/x86; there might
      also have been problems on Darwin/ppc if people load .o files with
      AltiVec code into GHCi.
      c26a153c
    • wolfgang's avatar
      [project @ 2005-06-13 02:03:42 by wolfgang] · 4302b12e
      wolfgang authored
      Darwin/x86:
      Instead of aligning all literals at 16 bytes, reuse the hack from x86-64.
      4302b12e
    • wolfgang's avatar
      [project @ 2005-06-13 00:16:44 by wolfgang] · cd22d3c7
      wolfgang authored
      Darwin/x86: support GHCi.
      cd22d3c7
    • wolfgang's avatar
      [project @ 2005-06-13 00:15:58 by wolfgang] · 59177a1b
      wolfgang authored
      Darwin/x86:
      Fix two causes for crashes:
      *) align literals to 16 bytes, because Apple's GCC likes to use
         SSE instructions which require this alignment.
      *) In print_doctored, recognize global jumps that masquerade as
         local jumps by going via Lfoo$stub or Lfoo$non_lazy_ptr.
      59177a1b
  11. 10 Jun, 2005 2 commits
  12. 09 Jun, 2005 1 commit
    • wolfgang's avatar
      [project @ 2005-06-09 16:08:16 by wolfgang] · 0bb98b3e
      wolfgang authored
      Fix a typo: powerpc32_TARGET_OS -> powerpc64_TARGET_OS
      
      This didn't do any actual damage, because powerpc64 is not yet supported
      by the NCG and powerpc32 is called just 'powerpc'.
      
      MERGE TO STABLE
      0bb98b3e