1. 13 Jun, 2019 3 commits
    • Ben Gamari's avatar
      PrelRules: Ensure that string unpack/append rule fires with source notes · a657543c
      Ben Gamari authored
      Previously the presence of source notes could hide nested applications
      of `unpackFoldrCString#` from our constant folding logic. For instance,
      consider the expression:
      
      ```haskell
      unpackFoldrCString# "foo" c (unpackFoldrCString# "baz" c n)
      ```
      
      Specifically, ticks appearing in two places can defeat the rule:
      
        a. Surrounding the inner application of `unpackFoldrCString#`
        b. Surrounding the fold function, `c`
      
      The latter caused the `str_rules` testcase to fail when `base` was built
      with `-g3`.
      
      Fixes #16740.
      a657543c
    • Phuong Trinh's avatar
      Fix #16525: ObjectCode freed wrongly because of lack of info header check · fc6b23be
      Phuong Trinh authored
      `checkUnload` currently doesn't check the info header of static objects.
      Thus, it may free an `ObjectCode` struct wrongly even if there's still a
      live static object whose info header lies in a mapped section of that
      `ObjectCode`. This fixes the issue by adding an appropriate check.
      fc6b23be
    • Ben Gamari's avatar
      Add a few missing llvm-targets · 5ffc266e
      Ben Gamari authored
      This should finally fix #14261.
      
      [skip ci]
      5ffc266e
  2. 12 Jun, 2019 36 commits
  3. 11 Jun, 2019 1 commit
    • Alp Mestanogullari's avatar
      testsuite/mk/boilerplate.mk: rename 'ghc-config-mk' to 'ghc_config_mk' · aad6115a
      Alp Mestanogullari authored
      Make/shell variable names which contain dashes can cause problems under
      some conditions. The 'ghc-config-mk' variable from testsuite/mk/boilerplate.mk
      that I made overridable (by Hadrian) in ba0aed2e was working as expected when
      our Hadrian/Linux job was based off the deb8 Docker image, but broke when
      I switched the job to use our deb9-based image, in 3d97bad6. The exact
      circumstances/tool versions that trigger this problem are unknown, but
      changing the variable's name to 'ghc_config_mk' lets us work around the issue.
      
      This fixes the annth_compunits and annth_make test failures that showed up
      when we switched the Hadrian/Linux job to use the deb9 environment.
      aad6115a