Skip to content
Snippets Groups Projects
  1. Apr 03, 2024
  2. Apr 02, 2024
    • Andrei Borzenkov's avatar
      Merge tc_infer_hs_type and tc_hs_type into one function using ExpType philosophy (#24299, #23639) · a1c18c7b
      Andrei Borzenkov authored and Marge Bot's avatar Marge Bot committed
      This patch implements refactoring which is a prerequisite to
      updating kind checking of type patterns. This is a huge simplification
      of the main worker that checks kind of HsType.
      
      It also fixes the issues caused by previous code duplication, e.g.
      that we didn't add module finalizers from splices in inference mode.
      a1c18c7b
    • Cheng Shao's avatar
      ci: improve TSAN CI jobs · 07cb627c
      Cheng Shao authored and Marge Bot's avatar Marge Bot committed
      - Run TSAN jobs with +thread_sanitizer_cmm which enables Cmm
        instrumentation as well.
      - Run TSAN jobs in deb12 which ships gcc-12, a reasonably recent gcc
        that @bgamari confirms he's using in #GHC:matrix.org. Ideally we
        should be using latest clang release for latest improvements in
        sanitizers, though that's left as future work.
      - Mark TSAN jobs as manual+allow_failure in validate pipelines. The
        purpose is to demonstrate that we have indeed at least fixed
        building of TSAN mode in CI without blocking the patch to land, and
        once merged other people can begin playing with TSAN using their own
        dev setups and feature branches.
      07cb627c
    • Cheng Shao's avatar
      compiler: fix github link to __tsan_memory_order in a comment · 865bd717
      Cheng Shao authored and Marge Bot's avatar Marge Bot committed
      865bd717
    • Cheng Shao's avatar
      rts: fix clang-specific errors when compiling with TSAN · a9ab9455
      Cheng Shao authored and Marge Bot's avatar Marge Bot committed
      This commit fixes clang-specific rts compilation errors when compiling
      with TSAN:
      
      - clang doesn't have -Wtsan flag
      - Fix prototype of ghc_tsan_* helper functions
      - __tsan_atomic_* functions aren't clang built-ins and
        sanitizer/tsan_interface_atomic.h needs to be included
      - On macOS, TSAN runtime library is
        libclang_rt.tsan_osx_dynamic.dylib, not libtsan. -fsanitize-thread
        as a link-time flag will take care of linking the TSAN runtime
        library anyway so remove tsan as an rts extra library
      a9ab9455
    • Cheng Shao's avatar
      rts: fix errors when compiling with TSAN · e91dad93
      Cheng Shao authored and Marge Bot's avatar Marge Bot committed
      This commit fixes rts compilation errors when compiling with TSAN:
      
      - xxx_FENCE macros are redefined and trigger CPP warnings.
      - Use SIZEOF_W. WORD_SIZE_IN_BITS is provided by MachDeps.h which
        Cmm.h doesn't include by default.
      e91dad93
    • Ben Gamari's avatar
      rts: Fix TSAN_ENABLED CPP guard · c8a4c050
      Ben Gamari authored and Marge Bot's avatar Marge Bot committed
      This should be `#if defined(TSAN_ENABLED)`, not `#if TSAN_ENABLED`,
      lest we suffer warnings.
      c8a4c050
  3. Apr 01, 2024
  4. Mar 29, 2024
  5. Mar 27, 2024
  6. Mar 26, 2024
  7. Mar 25, 2024
  8. Mar 23, 2024
  9. Mar 22, 2024
  10. Mar 21, 2024
    • Andrei Borzenkov's avatar
      Fix TH handling in `pat_to_type_pat` function (#24571) · 6fafc51e
      Andrei Borzenkov authored and Marge Bot's avatar Marge Bot committed
      There was missing case for `SplicePat` in `pat_to_type_at` function,
      hence patterns with splicing that checked against `forall->` doesn't work
      properly because they fall into the "illegal pattern" case.
      
      Code example that is now accepted:
      
        g :: forall a -> ()
        g $([p| a |]) = ()
      6fafc51e
    • Preetham Gujjula's avatar
      docs: Remove mention of non-existent Ord instance for Complex · 247fc0fa
      Preetham Gujjula authored and Marge Bot's avatar Marge Bot committed
      The documentation for Data.Complex says that the Ord instance for Complex Float
      is deficient, but there is no Ord instance for Complex a. The Eq instance for
      Complex Float is similarly deficient, so we use that as an example instead.
      247fc0fa
    • Vladislav Zavialov's avatar
      Type operators in promoteOccName (#24570) · da2a10ce
      Vladislav Zavialov authored and Marge Bot's avatar Marge Bot committed
      Type operators differ from term operators in that they are lexically
      classified as (type) constructors, not as (type) variables.
      
      Prior to this change, promoteOccName did not account for this
      difference, causing a scoping issue that affected RequiredTypeArguments.
      
        type (!@#) = Bool
        f = idee (!@#)      -- Not in scope: ‘!@#’  (BUG)
      
      Now we have a special case in promoteOccName to account for this.
      da2a10ce
    • Alan Zimmerman's avatar
      EPA: Clean up Exactprint helper functions a bit · 5f275176
      Alan Zimmerman authored and Marge Bot's avatar Marge Bot committed
      - Introduce a helper lens to compose on `EpAnn a` vs `a` versions
      - Rename some prime versions of functions back to non-prime
        They were renamed during the rework
      5f275176
  11. Mar 20, 2024
    • Simon Peyton Jones's avatar
      97a2bb1c
    • Hannes Siebenhandl's avatar
      Compact serialisation of IfaceAppArgs · cdfe6e01
      Hannes Siebenhandl authored and Marge Bot's avatar Marge Bot committed
      In #24563, we identified that IfaceAppArgs serialisation tags each
      cons cell element with a discriminator byte. These bytes add up
      quickly, blowing up interface files considerably when
      '-fwrite-if-simplified-core' is enabled.
      
      We compact the serialisation by writing out the length of
      'IfaceAppArgs', followed by serialising the elements directly without
      any discriminator byte.
      
      This improvement can decrease the size of some interface files by up
      to 35%.
      cdfe6e01
    • Zubin's avatar
      Revert "Apply shellcheck suggestion to SUBST_TOOLDIR" · 576f8b7e
      Zubin authored and Marge Bot's avatar Marge Bot committed
      This reverts commit c82770f5.
      
      The shellcheck suggestion is spurious and results in SUBST_TOOLDIR being a
      no-op. `set` sets positional arguments for bash, but we want to set the variable
      given as the first autoconf argument.
      
      Fixes #24542
      
      Metric decreases because the paths in the settings file are now shorter,
      so we allocate less when we read the settings file.
      
      -------------------------
      Metric Decrease:
          T12425
          T13035
          T9198
      -------------------------
      576f8b7e
    • Ben Gamari's avatar
      ghcup-metadata: Don't populate dlOutput unless necessary · 6d398066
      Ben Gamari authored and Marge Bot's avatar Marge Bot committed
      ghcup can apparently infer the output name of an artifact from its URL.
      Consequently, we should only include the `dlOutput` field when it would
      differ from the filename of `dlUri`.
      
      Fixes #24547.
      6d398066
    • Ben Gamari's avatar
      mk-ghcup-metadata: Fix directory of testsuite tarball · 9d936c57
      Ben Gamari authored and Marge Bot's avatar Marge Bot committed
      As reported in #24546, the `dlTest` artifact should be extracted into
      the `testsuite` directory.
      9d936c57
Loading