This project is mirrored from https://gitlab.haskell.org/ghc/ghc.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Last successful update .
  1. 19 Dec, 2002 11 commits
    • panne's avatar
      [project @ 2002-12-19 17:57:39 by panne] · 5af1a666
      panne authored
      Fixed #ifdefery for GCC >= 3.x
      5af1a666
    • simonmar's avatar
      [project @ 2002-12-19 15:12:01 by simonmar] · e5f943eb
      simonmar authored
      GHCi needs to link in packages eagerly if they're specified on the
      command line.
      e5f943eb
    • simonmar's avatar
      [project @ 2002-12-19 14:33:22 by simonmar] · 0d27d151
      simonmar authored
      Terrible hack to restore CAF handling behaviour in GHCi (it's
      currently broken).
      
      The story used to be this: in newCAF(), if the CAF is in dynamically
      loaded code, then we save the CAF's info ptr in a spare slot in the
      closure, and add the CAF to the caf_list.  The GC will retain
      everything on the caf_list.  At any point the CAFs can all be reverted
      by replacing their info pointers from the saved copies.
      
      CAFs need to be retained for GHCi because they might be required in a
      future execution; an optimisation would be to avoid retaining the CAFs
      if we're in "revert mode"; i.e. the CAFs are all going to be reverted
      after execution anyway.  Also, this only applies to CAFs in compiled
      code; CAFs in interpreted code are currently always retained.
      
      Anyway, the old story is harder now that I removed the code that
      checks whether a pointer is dynamically loaded or not (:-)).  Rather
      than re-instate that code, I created a new version of newCAF
      (newDynCAF), and arranged that the dynamic linker redirects any
      references to newCAF to point to newDynCAF instead.  The result is
      more efficient than before, and takes less code.
      0d27d151
    • simonmar's avatar
      [project @ 2002-12-19 14:25:04 by simonmar] · ae131923
      simonmar authored
      Include a static version of deRefStablePtr in case the code that uses
      it was compiled without optimisation (and therefore doesn't get the
      inlined version).
      ae131923
    • simonmar's avatar
      [project @ 2002-12-19 14:23:35 by simonmar] · af09c6af
      simonmar authored
      comment wibble
      af09c6af
    • simonmar's avatar
      [project @ 2002-12-19 12:49:27 by simonmar] · 7394408f
      simonmar authored
      Make this compile again
      7394408f
    • simonmar's avatar
      [project @ 2002-12-19 12:24:49 by simonmar] · 78f2d7dd
      simonmar authored
      Freshly generated by autoheader.
      78f2d7dd
    • simonmar's avatar
      [project @ 2002-12-19 12:21:36 by simonmar] · 8d4e95a2
      simonmar authored
      Using AC_CHECK_FUNCS rather than AC_CHECK_FUNC seems to allow
      autoheader to pick up HAVE_LCHOWN.  Don't know why.
      8d4e95a2
    • simonmar's avatar
      [project @ 2002-12-19 12:06:41 by simonmar] · 875b2a60
      simonmar authored
      - remove unused CODE_BEFORE_DATA
      - remove duplicate symbols
      - kill extra whitespace
      - add missing HAVE_FRAMEWORK_HASKELLSUPPORT and HAVE_IN_ADDR_T
      875b2a60
    • simonmar's avatar
      [project @ 2002-12-19 11:28:58 by simonmar] · 45859a43
      simonmar authored
      Avoid using a variable for the first argument of AC_DEFINE_UNQUOTED,
      because autoheader doesn't like it.
      45859a43
    • simonmar's avatar
      [project @ 2002-12-19 09:37:32 by simonmar] · 70baf4b5
      simonmar authored
      oops, thought I compiled this before committing.  Oh well.
      70baf4b5
  2. 18 Dec, 2002 6 commits
    • igloo's avatar
      [project @ 2002-12-18 17:45:30 by igloo] · ab63ff1b
      igloo authored
      Context predicates start with a tcon name, not a type variable
      ab63ff1b
    • igloo's avatar
      [project @ 2002-12-18 17:28:17 by igloo] · d53da8f2
      igloo authored
      Convert Tup [e] and Pat [p] and e, p respectively.
      d53da8f2
    • simonmar's avatar
      [project @ 2002-12-18 16:29:25 by simonmar] · 854ab9a4
      simonmar authored
      "Auto" packages.
      
      The big change here is that it is no longer necessary to explicitly
      say '-package X' on the command line if X is a package containing
      hierarchical Haskell modules.  All packages marked "auto" contribute
      to the import path, so their modules are always available.  At link
      time, the compiler knows which packages are actually used by the
      program, and it links in only those libraries needed.
      
      There's one exception: one-shot linking.  If you link a program using
      
          ghc -o prog A.o B.o ...
      
      then you need to explicitly add -package flags for each package
      required (except base & haskell98) because the compiler has no
      information about the package dependencies in this case.
      
      Package configs have a new field: auto, which is either True or False.
      Non-auto packages must be mentioned on the command-line as usual.
      Non-auto packages are still required for:
      
        - non-hierarchical libraries (to avoid polluting the module namespace)
      
        - packages with no Haskell content
      
        - if you want more than one version of a package, or packages
          providing overlapping functionality where the user must decide
          which one to use.
      
      Doc changes to follow...
      854ab9a4
    • simonmar's avatar
      [project @ 2002-12-18 16:15:43 by simonmar] · f6ba57ea
      simonmar authored
      Comment fix.
      f6ba57ea
    • simonmar's avatar
      [project @ 2002-12-18 11:17:15 by simonmar] · 9ae23eae
      simonmar authored
      Correctly describe the stack during a GHCi CCALL instruction to the
      RTS.  The previous hack, temporarily truncating the stack to the
      topmost valid stack frame, didn't work because stack-squeezing tends
      to move the stack around before the call.
      
      The right thing to do is correctly describe the chunk of ccall args
      with an info table, which is what this change does.  We use a RET_DYN
      info table with the number of non-ptrs from the CCALL instruction.
      9ae23eae
    • mthomas's avatar
      [project @ 2002-12-18 01:13:37 by mthomas] · 7d434183
      mthomas authored
      Do a George Bush on unused macro arg irritating rich western programmer.
      7d434183
  3. 17 Dec, 2002 5 commits
    • simonmar's avatar
      [project @ 2002-12-17 13:56:00 by simonmar] · f319fdf9
      simonmar authored
      Document -no-link.
      f319fdf9
    • simonmar's avatar
      [project @ 2002-12-17 13:50:28 by simonmar] · a0928e35
      simonmar authored
      - add -no-link flag (omits link step, except in GHCi)
      - tidy up some informmational messages
      a0928e35
    • simonmar's avatar
      [project @ 2002-12-17 12:29:48 by simonmar] · 840871d4
      simonmar authored
      On second thoughts, use memcmp instead.
      840871d4
    • simonmar's avatar
      [project @ 2002-12-17 12:27:30 by simonmar] · 931f16bb
      simonmar authored
      Oops, cmpFS uses strcmp() to compare strings, so it has a '\0'
      terminator requirement.  Fix it to use strncmp() instead.
      931f16bb
    • simonmar's avatar
      [project @ 2002-12-17 11:39:41 by simonmar] · 4be8b8b3
      simonmar authored
      Fix recent breakage on the HEAD.  This was caused by the fix to
      Lex.lhs to treat primitive strings as "narrow" FastStrings in all
      cases, rather than Unicode ("wide") FastStrings if the string
      contained a '\0'.  The problem is that narrow FastStrings aren't set
      up to handle strings containing '\0'.  They used to be, but it got
      broken somewhere along the line.
      
      This commit:
      
       - remove the '\0' test from unpackCStringBA (it takes a length
         argument anyway), and rename it to unpackNBytesBA.  This fixes
         the bug.
      
       - remove the '\0' terminator from all strings generated by the
         functions in PrimPacked.  The terminators aren't required,
         as far as I can tell.  This should have a tiny but positive
         effect on compile times.
      
      MERGE TO STABLE
      4be8b8b3
  4. 13 Dec, 2002 5 commits
    • wolfgang's avatar
      [project @ 2002-12-13 19:17:02 by wolfgang] · 419f4bd4
      wolfgang authored
      Remove Mac OS X-specific code for determining memory layout (no longer needed).
      419f4bd4
    • wolfgang's avatar
      [project @ 2002-12-13 19:14:58 by wolfgang] · baa5c1a0
      wolfgang authored
      Add missing 'const's
      baa5c1a0
    • simonmar's avatar
      [project @ 2002-12-13 16:04:56 by simonmar] · a634e563
      simonmar authored
      When lexing a primitive string, always make a "narrow" FastString.
      Otherwise when the string contains zeros we get a Unicode string,
      which luckily turns into the right thing when compiled but confuses the
      byte-code generator.
      
      So this fixes the symptom (byte-code generator can't load files
      generated with happy -ag), but not the real bug (byte-code generator
      can't handle unicode strings).
      a634e563
    • simonmar's avatar
      [project @ 2002-12-13 15:16:29 by simonmar] · c986ed0b
      simonmar authored
      Shortcut when switching evaluators: instead of going round the normal
      scheduler loop, just cut to the chase and run the thread using the
      other evaluator.
      
      This avoids doing stack squeezing each time we switch evaluators,
      which is an O(n) operation these days, whereas it used to be O(n) the
      first time, and O(1) thereafter if the stack hadn't changed too much.
      This is a problem that we should perhaps address separately, but for
      now the workaround should provide a speed boost to GHCi on the HEAD.
      c986ed0b
    • simonmar's avatar
      [project @ 2002-12-13 14:43:06 by simonmar] · dcf930ca
      simonmar authored
      Fix bug in stack_frame_sizeW
      dcf930ca
  5. 12 Dec, 2002 10 commits
    • simonmar's avatar
      [project @ 2002-12-12 17:36:16 by simonmar] · b3016a12
      simonmar authored
      A modification to the way we build link lines.
      
      Currently the link line is constructed like this, for packages p1, p2 etc.:
      
        libraries p1 ++ extra_libs p1 ++
        libraries p2 ++ extra_libs p2 ++
        ...
        extra_ld_opts p1 ++
        extra_ld_opts p2 ++
        ..
      
      This change makes it follow this pattern:
      
        libraries p1 ++ extra_libs p1 ++ extra_ld_opts p1 ++
        libraries p2 ++ extra_libs p2 ++ extra_ld_opts p2 ++
        ...
      
      which seems more useful: in particular it means that using foo-config
      (eg. gtk-config) to populate extra_ld_opts should now work properly,
      and extra_libs is no longer strictly speaking needed (you can just use
      -l options in extra_ld_opts and get the same effect).
      
      Also:
      
        - There's now no difference between -l<lib> and -optl-l<lib>
        - GHCi grabs libs from extra_ld_opts as well as extra_libs
      b3016a12
    • simonmar's avatar
      [project @ 2002-12-12 16:35:14 by simonmar] · 6d353fcb
      simonmar authored
      Fix to build with 4.08.x
      6d353fcb
    • simonmar's avatar
      [project @ 2002-12-12 15:17:52 by simonmar] · a0fafeff
      simonmar authored
      Fix some issues with hschooks.c, and hopefully clear up (or at least
      document) the mess regarding which versions of Rts.h and RtsFlags.h
      are included.
      a0fafeff
    • simonmar's avatar
      [project @ 2002-12-12 15:03:42 by simonmar] · 01774b09
      simonmar authored
      Sigh, I thought I could keep this file private to the RTS, but sadly
      it's needed in order to #include RtsFlags.h, and we advertise
      RtsFlags.h as a way to tweak flags through defaultsHook().  Oh well.
      01774b09
    • simonmar's avatar
      [project @ 2002-12-12 14:35:57 by simonmar] · 16d34c16
      simonmar authored
      - Don't use non-portable autoconfery (this configure script was broken
        with newer autoconfs)
      
      - Use FPTOOLS_SHEBANG_PERL from aclocal.m4 rather than local copy.
      16d34c16
    • simonmar's avatar
      [project @ 2002-12-12 13:28:35 by simonmar] · 3f61e22d
      simonmar authored
      Also install <package>.haddock when we install the docs.
      3f61e22d
    • ross's avatar
      [project @ 2002-12-12 13:21:46 by ross] · dc813469
      ross authored
      Use ioError instead of throw for IOErrors, in anticipation of
      a change from IOError = Exception to IOError = IOException.
      dc813469
    • simonmar's avatar
      [project @ 2002-12-12 11:53:11 by simonmar] · 7d599828
      simonmar authored
      Make the new info-table construction code word without instance Bits
      Int (i.e. GHC 4.08.x).  This probably makes it more correct, too.
      7d599828
    • mthomas's avatar
      [project @ 2002-12-12 03:19:12 by mthomas] · d096b315
      mthomas authored
      Towards a complete binary package.
      d096b315
    • mthomas's avatar
      [project @ 2002-12-12 03:15:41 by mthomas] · 7c6bd4d7
      mthomas authored
      Towards a MinGW32 binary distribution with all accessories + compiler.
      7c6bd4d7
  6. 11 Dec, 2002 3 commits