1. 02 Feb, 2019 1 commit
  2. 01 Feb, 2019 3 commits
  3. 31 Jan, 2019 23 commits
  4. 30 Jan, 2019 13 commits
    • Zejun Wu's avatar
      Don't use X86_64_ELF_NONPIC_HACK for +RTS -xp · 6e96aa2d
      Zejun Wu authored
      When `+RTS -xp` is passed, when don't need the X86_64_ELF_NONPIC_HACK,
      becasue the relocation offset should only be out of range if
      * the object file was not compiled with `-fPIC -fexternal-dynamic-refs`;
      * ghc generates non-pic code while it should (e.g. #15723)
      In either case, we should print an error message rather that silently
      attempt to use a hacky workaround that may not work.
      This could have made debugging #15723 and #15729 much easier.
      Test Plan:
      Run this in a case where ghci used to crash becasue of T15723. Now we
      see helpful message like:
      ghc-iserv-prof: R_X86_64_PC32 relocation out of range:
      = 9b95ffac
      Reviewers: simonmar, bgamari, erikd
      Reviewed By: simonmar, bgamari
      Subscribers: rwbarton, carter
      Differential Revision: https://phabricator.haskell.org/D5233
    • Zejun Wu's avatar
      Allocate bss section within proper range of other sections · 740534d4
      Zejun Wu authored
      This re-applies {D5195} and {D5235}, they were reverted as part of diff
      stack to unbreak i386. The proper fix is done in {D5289}.
      Allocate bss section within proper range of other sections:
      * when `+RTS -xp` is passed, allocate it contiguously as we did for
        jump islands
      * when we mmap the code to lower 2Gb, we should allocate bss section
        there too
      Test Plan:
      1. `./validate`
      `TEST="T15729" make test` passed in both linux (both i386 and x86_64) and macos.
      Also test in a use case where we used to encouter error like:
      ghc-iserv-prof: R_X86_64_PC32 relocation out of range: (noname) =
      and now, everything works fine.
      Reviewers: simonmar, bgamari, angerman, erikd
      Reviewed By: simonmar
      Subscribers: rwbarton, carter
      GHC Trac Issues: #15729
      Differential Revision: https://phabricator.haskell.org/D5290
    • Zejun Wu's avatar
      Add a RTS option -xp to load PIC object anywhere in address space · e29b1ee7
      Zejun Wu authored
      This re-applies {D5195} with fixes for i386:
      * Fix unused label warnings, see {D5230} or {D5273}
      * Fix a silly bug introduced by moving `#if`
      Add a RTS option -xp to load PIC object anywhere in address space. We do
      this by relaxing the requirement of <0x80000000 result of
      `mmapForLinker` and implying USE_CONTIGUOUS_MMAP.
      We also need to change calls to `ocInit` and `ocGetNames` to avoid
      dangling pointers when the address of `oc->image` is changed by
      Test Plan:
      See {D5195}, also test under i386:
      $ uname -a
      Linux watashi-arch32 4.18.5-arch1-1.0-ARCH #1 SMP PREEMPT Tue Aug 28
      20:45:30 CEST 2018 i686 GNU/Linux
      $ cd testsuite/tests/th/ && make test
      will run `./validate` on stacked diff.
      Reviewers: simonmar, bgamari, alpmestan, trommler, hvr, erikd
      Reviewed By: simonmar
      Subscribers: rwbarton, carter
      Differential Revision: https://phabricator.haskell.org/D5289
    • Alan Zimmerman's avatar
      API Annotations: Parens not attached correctly for ClassDecl · 4bf35da4
      Alan Zimmerman authored
      The parens around the kinded tyvars should be attached to the class
      declaration as a whole, they are attached to the tyvar instead,
      outside the span.
      An annotation must always be within or after the span it is contained
      Closes #16212
    • Matthew Pickering's avatar
      Only build vanilla way in devel2 flavour · e7e5f4ae
      Matthew Pickering authored
      Fixes #16210
    • Alec Theriault's avatar
      Include type info for only some exprs in HIE files · 5ed48d25
      Alec Theriault authored
      This commit relinquishes some some type information in `.hie` files in
      exchange for better performance. See #16233 for more on this.
      Using `.hie` files to generate hyperlinked sources is a crucial milestone
      towards Hi Haddock (the initiative to move Haddock to work over `.hi`
      files and embed docstrings in those). Unfortunately, even after much
      optimization on the Haddock side, the `.hie` based solution is still
      considerably slower and more memory hungry than the existing implementation
      - and the @.hie@ code is to blame.
      This changes `.hie` file generation to track type information for only
      a limited subset of expressions (specifically, those that might eventually
      turn into hyperlinks in the Haddock's hyperlinker backend).
    • Alec Theriault's avatar
      Use `NameEnv Id` instead of `Map Name Id` · 6fa38663
      Alec Theriault authored
      This is more consistent with the rest of the GHC codebase.
    • Moritz Angermann's avatar
      make ghc-pkg shut up · f00b35f4
      Moritz Angermann authored
    • Neil Mitchell's avatar
    • Neil Mitchell's avatar
    • Ben Gamari's avatar
      gitlab-ci: Use build cleanup logic on Darwin as well · cfbd39bd
      Ben Gamari authored
      We use the shell executor on Darwin as well as Windows.
      See https://gitlab.com/gitlab-org/gitlab-runner/issues/3856.
    • Dmitry Ivanov's avatar
      Compile count{Leading,Trailing}Zeros to corresponding x86_64 instructions under -mbmi2 · c1d9416f
      Dmitry Ivanov authored
      This works similarly to existing implementation for popCount.
      Trac ticket: #16086.
    • David Eichmann's avatar
      Performance tests: recover a baseline from ancestor commits and CI results. · cc2261d4
      David Eichmann authored
      gitlab-ci: push performance metrics as git notes to the "GHC Performance Notes" repository.