Skip to content
Snippets Groups Projects
  1. Nov 16, 2023
  2. Nov 15, 2023
    • Alan Zimmerman's avatar
      EPA: splitLHsForAllTyInvis does not return ann · 27981fac
      Alan Zimmerman authored and Marge Bot's avatar Marge Bot committed
      We did not use the annotations returned from splitLHsForAllTyInvis, so
      do not return them.
      27981fac
    • Zubin's avatar
      users-guide: Fix links to libraries from the users-guide. · 2aff2361
      Zubin authored and Marge Bot's avatar Marge Bot committed
      The unit-ids generated in c1a3ecde include the
      package name, so we don't need to explicitly add it to the links.
      
      Fixes #24151
      2aff2361
    • Krzysztof Gogolewski's avatar
      Remove loopy superclass solve mechanism · 99ced73b
      Krzysztof Gogolewski authored and Marge Bot's avatar Marge Bot committed
      Programs with a -Wloopy-superclass-solve warning will now fail with an error.
      
      Fixes #23017
      99ced73b
    • Luite Stegeman's avatar
      JS: Fix missing variable declarations · 2125c176
      Luite Stegeman authored and Marge Bot's avatar Marge Bot committed
      The JStg IR update was missing some local variable declarations
      that were present earlier, causing global variables to be used
      implicitly (or an error in JavaScript strict mode).
      
      This adds the local variable declarations again.
      2125c176
    • Rodrigo Mesquita's avatar
      configure: check target (not build) understands -no_compact_unwind · af261ccd
      Rodrigo Mesquita authored and Marge Bot's avatar Marge Bot committed
      Previously, we were branching on whether the build system was darwin to
      shortcut this check, but we really want to branch on whether the target
      system (which is what we are configuring ld_prog for) is darwin.
      af261ccd
    • Rodrigo Mesquita's avatar
      testsuite: Skip MultiLayerModulesTH_Make on darwin · 929ba2f9
      Rodrigo Mesquita authored and Marge Bot's avatar Marge Bot committed
      The recent toolchain upgrade on darwin machines resulted in the
      MultiLayerModulesTH_Make test metrics varying too much from the
      baseline, ultimately blocking the CI pipelines.
      
      This commit skips the test on darwin to temporarily avoid failures due
      to the environment change in the runners. However, the metrics
      divergence is being investigated still (tracked in #24177)
      929ba2f9
    • Rodrigo Mesquita's avatar
      darwin: Fix single_module is obsolete warning · e6c803f7
      Rodrigo Mesquita authored and Marge Bot's avatar Marge Bot committed
      In XCode 15's linker, -single_module is the default and otherwise
      passing it as a flag results in a warning being raised:
      
          ld: warning: -single_module is obsolete
      
      This patch fixes this warning by, at configure time, determining whether
      the linker supports -single_module (which is likely false for all
      non-darwin linkers, and true for darwin linkers in previous versions of
      macOS), and using that information at runtime to decide to pass or not
      the flag in the invocation.
      
      Fixes #24168
      e6c803f7
    • Rodrigo Mesquita's avatar
      testsuite: Update to LC_ALL=C no longer being ignored in darwin · ce7fe5a9
      Rodrigo Mesquita authored and Marge Bot's avatar Marge Bot committed
      MacOS seems to have fixed an issue where it used to ignore the variable
      `LC_ALL` in program invocations and default to using Unicode.
      
      Since the behaviour seems to be fixed to account for the locale
      variable, we mark tests that were previously broken in spite of it as
      fragile (since they now pass in recent macOS distributions)
      
      See #24161
      ce7fe5a9
    • Rodrigo Mesquita's avatar
      testsuite: Encoding test witnesses recent iconv bug is fragile · c411c431
      Rodrigo Mesquita authored and Marge Bot's avatar Marge Bot committed
      A regression in the new iconv() distributed with XCode 15 and MacOS
      Sonoma causes the test 'encoding004' to fail in the CP936 roundrip.
      
      We mark this test as fragile until this is fixed upstream (rather than
      broken, since previous versions of iconv pass the test)
      
      See #24161
      c411c431
    • Rodrigo Mesquita's avatar
      Suppress duplicate librares linker warning of new macOS linker · e98051a5
      Rodrigo Mesquita authored and Marge Bot's avatar Marge Bot committed
      Fixes #24167
      
      XCode 15 introduced a new linker which warns on duplicate libraries being
      linked. To disable this warning, we pass -Wl,-no_warn_duplicate_libraries as
      suggested by Brad King in CMake issue #25297.
      
      This flag isn't necessarily available to other linkers on darwin, so we must
      only configure it into the CC linker arguments if valid.
      e98051a5
  3. Nov 13, 2023
  4. Nov 12, 2023
    • Alan Zimmerman's avatar
      EPA: get rid of AnchorOperation · a7492048
      Alan Zimmerman authored
      Now that the Anchor type is an alias for EpaLocation, remove
      AnchorOperation.
      
      Updates haddock submodule
      a7492048
    • Alan Zimmerman's avatar
      EPA: Replace Anchor with EpaLocation · 3f0036ec
      Alan Zimmerman authored and Marge Bot's avatar Marge Bot committed
      An Anchor has a location and an operation, which is either that it is
      unchanged or that it has moved with a DeltaPos
      
          data Anchor = Anchor { anchor :: RealSrcSpan
                               , anchor_op :: AnchorOperation }
      
      An EpaLocation also has either a location or a DeltaPos
      
          data EpaLocation = EpaSpan !RealSrcSpan !(Strict.Maybe BufSpan)
                           | EpaDelta !DeltaPos ![LEpaComment]
      
      Now that we do not care about always having a location in the anchor,
      we remove Anchor and replace it with EpaLocation
      
      We do this with a type alias initially, to ease the transition.
      The alias will be removed in time.
      
      We also have helpers to reconstruct the AnchorOperation from an
      EpaLocation. This is also temporary.
      
      Updates Haddock submodule
      3f0036ec
    • Teo Camarasu's avatar
      nofib: bump submodule · 7ae517a0
      Teo Camarasu authored and Marge Bot's avatar Marge Bot committed
      This includes changes that:
      - fix building a benchmark with HEAD
      - remove a Makefile-ism that causes errors in bash scripts
      
      Resolves #24178
      7ae517a0
  5. Nov 11, 2023
  6. Nov 10, 2023
    • Simon Peyton Jones's avatar
      Add an extra check in kcCheckDeclHeader_sig · 6dbab180
      Simon Peyton Jones authored and Marge Bot's avatar Marge Bot committed
      Fix #24083 by checking for a implicitly-scoped type variable that is not
      actually bound.  See Note [Disconnected type variables] in GHC.Tc.Gen.HsType
      
      For some reason, on aarch64-darwin we saw a 2.8% decrease in compiler
      allocations for MultiLayerModulesTH_Make; but 0.0% on other architectures.
      
      Metric Decrease:
          MultiLayerModulesTH_Make
      6dbab180
    • PHO's avatar
      Use '[' instead of '[[' because the latter is a Bash-ism · 7233b3b1
      PHO authored and Marge Bot's avatar Marge Bot committed
      It doesn't work on platforms where /bin/sh is something other than Bash.
      7233b3b1
    • PHO's avatar
      Don't assume the current locale is *.UTF-8, set the encoding explicitly · 52c0fc69
      PHO authored and Marge Bot's avatar Marge Bot committed
      primops.txt contains Unicode characters:
      > LC_ALL=C ./genprimopcode --data-decl < ./primops.txt
      > genprimopcode: <stdin>: hGetContents: invalid argument (cannot decode byte sequence starting from 226)
      
      Hadrian must also avoid using readFile' to read primops.txt because it
      tries to decode the file with a locale-specific encoding.
      52c0fc69
  7. Nov 09, 2023
  8. Nov 07, 2023
  9. Nov 06, 2023
  10. Nov 05, 2023
  11. Nov 03, 2023
    • Vladislav Zavialov's avatar
      T2T in Expressions (#23738) · 0dfb1fa7
      Vladislav Zavialov authored and Marge Bot's avatar Marge Bot committed
      This patch implements the T2T (term-to-type) transformation in
      expressions. Given a function with a required type argument
      	vfun :: forall a -> ...
      
      the user can now call it as
      	vfun (Maybe Int)
      
      instead of
      	vfun (type (Maybe Int))
      
      The Maybe Int argument is parsed and renamed as a term (HsExpr), but then
      undergoes a conversion to a type (HsType).
      See the new function expr_to_type in compiler/GHC/Tc/Gen/App.hs
      and Note [RequiredTypeArguments and the T2T mapping]
      
      Left as future work: checking for puns.
      0dfb1fa7
    • Jaro Reinders's avatar
      Add NCG support for common 64bit operations to the x86 backend. · 6755d833
      Jaro Reinders authored and Andreas Klebinger's avatar Andreas Klebinger committed
      These used to be implemented via C calls which was obviously quite bad
      for performance for operations like simple addition.
      
      Co-authored-by: Andreas Klebinger
      6755d833
  12. Nov 02, 2023
Loading