1. 04 Jan, 2017 3 commits
    • Ben Gamari's avatar
      Release 8.0.2 · 8c725037
      Ben Gamari authored
    • Ben Gamari's avatar
      A few last-minute Changelog entries · 2b746c81
      Ben Gamari authored
    • Sergei Trofimovich's avatar
      revert '-Wl' prefixing to *_LD_OPTS · f6e8d45d
      Sergei Trofimovich authored
      This reverts f48f5a9e
      The prefixing does not work as comma
      is stripped by $(addprefix) macro:
      The following call
          $$(addprefix -optl-Wl, $$($1_$2_$3_ALL_LD_OPTS))
      prefixes options with "-optl-Wl" not with "-optl-Wl,"
      The simplest breakage can be seen by adding
          SRC_LD_OPTS += -O1
      to mk/build.mk:
        <no location info>: error:
          Warning: Couldn't figure out linker information!
                   Make sure you're using GNU ld, GNU gold
                   or the built in OS X linker, etc.
        gcc: error: unrecognized command line option '-Wl-O1'
      Another problem with original change is loss of ability
      to pass options to gcc as a linker driver, for example:
          SRC_LD_OPTS += -flto
      Signed-off-by: default avatarSergei Trofimovich <siarheit@google.com>
      (cherry picked from commit a6657bd0)
  2. 23 Dec, 2016 2 commits
    • Ben Gamari's avatar
      UniqSupply: Use full range of machine word · b85dc18f
      Ben Gamari authored
      Currently uniques are 32-bits wide. 8 of these bits are for the unique
      class, leaving only 24 for the unique number itself. This seems
      dangerously small for a large project. Let's use the full range of the
      native machine word.
      We also add (now largely unnecessary) overflow check to ensure that the
      unique number doesn't overflow.
      Test Plan: Validate
      Reviewers: simonmar, austin, niteria
      Reviewed By: niteria
      Subscribers: mpickering, thomie
      Differential Revision: https://phabricator.haskell.org/D2844
      GHC Trac Issues: #12944
      (cherry picked from commit 0d213c18)
    • Ben Gamari's avatar
      Revert "nativeGen: Allow -fregs-graph to be used" · 55dfd21e
      Ben Gamari authored
      This reverts commit 6a5d13c4 due to
      breakage on PPC AIX while compiling unordered-containers. See #13033.
  3. 18 Dec, 2016 1 commit
  4. 17 Dec, 2016 2 commits
  5. 16 Dec, 2016 1 commit
  6. 15 Dec, 2016 2 commits
  7. 13 Dec, 2016 3 commits
  8. 02 Dec, 2016 6 commits
  9. 29 Nov, 2016 1 commit
  10. 20 Nov, 2016 1 commit
    • Ben Gamari's avatar
      Merge cpe_ExprIsTrivial and exprIsTrivial · 58d9f9b7
      Ben Gamari authored
      Strangely my previous attempts at resolving this all seemed to end in
      perplexing segmentation faults in the GHC testsuite (including some
      rather recent attempts). Somehow this attempt miraculously works.
      However, there was one wrinkle that I still need to work out fully: we
      need to consider Lits as non-trivial in cpeArg. Failure to do this means
      that we would transform something like,
          $trModule = TrModule "HelloWorld"#
          $trModule = case "HelloWorld"# of x { __DEFAULT -> TrModule x }
      Which then fails the consistentStgInfo check in CoreToStg for reasons
      that I am still trying to work out.
      Mark T12757 as fixed
      Reviewers: simonmar, simonpj, austin
      Reviewed By: simonpj
      Subscribers: thomie
      Differential Revision: https://phabricator.haskell.org/D2666
      GHC Trac Issues: #11158
      (cherry picked from commit 967dd5c9)
  11. 19 Nov, 2016 1 commit
  12. 18 Nov, 2016 2 commits
  13. 17 Nov, 2016 2 commits
    • Edward Z. Yang's avatar
      Remove fancy shadowing logic; always override in package database order. · b5b9cf3a
      Edward Z. Yang authored
      This is a stopgap fix for GHC 8.0 bug #12485: in particular,
      it relaxes need for -package-db flags to be given in
      dependency order.  The trade-off is that we are a lot more
      unsafe when there are packages with duplicate 'id's in
      the database stack: the new code will not do an ABI compatibility
      check: if two packages have the same 'id', they are assumed to
      be ABI compatible.  If this is not true, GHC may build
      segfaulting executables.
      Missing test updates, but I'm putting it up so people can
      take a look.
      In GHC 8.2, we'll record ABIs for all dependencies, allowing
      GHC to make better decisions about shadowing.
      Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
      Test Plan: validate
      Reviewers: austin, niteria, bgamari, simonmar
      Reviewed By: simonmar
      Subscribers: thomie
      Differential Revision: https://phabricator.haskell.org/D2613
      GHC Trac Issues: #12485
    • Facundo Domínguez's avatar
      Have reify work for local variables with functional dependencies. · e7c12cda
      Facundo Domínguez authored
      It turned out that finalizers were run too early and information
      resulting from simplifying constraints was not available.
      This patch runs finalizers after a first call to simplifyTop, and
      then calls simplifyTop a second time to deal with constraints
      that could result from running the finalizers.
      Fixes T12777
      Test Plan: ./validate
      Reviewers: goldfire, simonpj, bgamari, austin
      Reviewed By: simonpj
      Subscribers: mpickering, mboes, thomie
      Differential Revision: https://phabricator.haskell.org/D2659
      GHC Trac Issues: #12777
      (cherry picked from commit 231a3ae1)
  14. 16 Nov, 2016 1 commit
  15. 15 Nov, 2016 1 commit
  16. 14 Nov, 2016 9 commits
  17. 11 Nov, 2016 2 commits
    • Ben Gamari's avatar
      ghc-pkg: Munge dynamic library directories · e7017ca8
      Ben Gamari authored
      Otherwise we end up looking in the wrong place for dynamic libraries on
      Windows. This addresses a regression introduced by D2611. See #12479.
      Test Plan: validate across platforms
      Reviewers: austin
      Subscribers: thomie
      Differential Revision: https://phabricator.haskell.org/D2640
      GHC Trac Issues: #12479
      (cherry picked from commit 75e69edb498511cf2b28dec4e14e6d11232f3e32)
    • David Feuer's avatar
      Read parentheses better · cca8ceec
      David Feuer authored
      Instead of pulling a token and looking for `'('` or `')'`,
      just look for the character itself. This prevents us from
      lexing every single item twice, once to see if it's a
      left parenthesis and once to actually parse it.
      Partially fixes #12665
      Test Plan: Validate
      Reviewers: austin, bgamari, hvr
      Reviewed By: bgamari
      Subscribers: thomie
      Differential Revision: https://phabricator.haskell.org/D2623
      GHC Trac Issues: #12665