Haskell.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

ghc-commits

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
ghc-commits@haskell.org

  • 1 participants
  • 8440 discussions
[Git][ghc/ghc][wip/davide/hadrian_avoid_response_files_2] Hadrian: avoid response files when command line is short enough
by David Eichmann (@DavidEichmann) 02 Jun '26

02 Jun '26
David Eichmann pushed to branch wip/davide/hadrian_avoid_response_files_2 at Glasgow Haskell Compiler / GHC Commits: 06b7d5a1 by David Eichmann at 2026-06-02T17:23:12+01:00 Hadrian: avoid response files when command line is short enough This replaces the logic of always using response files on Windows. With the new condition based on command line lenght, reponse files can be avoided in many more cases (on windows). - - - - - 2 changed files: - hadrian/src/Builder.hs - hadrian/src/Hadrian/Utilities.hs Changes: ===================================== hadrian/src/Builder.hs ===================================== @@ -351,9 +351,10 @@ instance H.Builder Builder where -- NB: we can't put the buildArgs in a response file, because some flags require -- empty arguments (such as the -dep-suffix flag), but that isn't supported -- yet due to #26560. - withResponseFileOnWindows - (\buildInputs' -> cmd [path] buildArgs buildInputs' buildOptions) + withResponseFileIfLongCmd + (toCmdArgument [path] <> toCmdArgument buildArgs) buildInputs + (toCmdArgument buildOptions) HsCpp -> captureStdout @@ -393,9 +394,10 @@ runHaddock :: FilePath -- ^ path to @haddock@ -> [String] -> [FilePath] -- ^ input file paths -> Action () -runHaddock haddockPath flagArgs fileInputs = withResponseFileOnWindows - (cmd [haddockPath] flagArgs) +runHaddock haddockPath flagArgs fileInputs = withResponseFileIfLongCmd + (toCmdArgument [haddockPath] <> toCmdArgument flagArgs) fileInputs + (CmdArgument []) -- TODO: Some builders are required only on certain platforms. For example, -- 'Objdump' is only required on OpenBSD and AIX. Add support for platform ===================================== hadrian/src/Hadrian/Utilities.hs ===================================== @@ -1,4 +1,6 @@ +{-# LANGUAGE ImpredicativeTypes #-} {-# LANGUAGE TypeFamilies #-} + module Hadrian.Utilities ( -- * List manipulation fromSingleton, replaceEq, minusOrd, intersectOrd, lookupAll, chunksOfSize, @@ -14,7 +16,7 @@ module Hadrian.Utilities ( -- * Paths BuildRoot (..), buildRoot, buildRootRules, isGeneratedSource, - KeepResponseFiles (..), keepResponseFiles, withResponseFile, withResponseFileOnWindows, + KeepResponseFiles (..), keepResponseFiles, withResponseFile, withResponseFileIfLongCmd, -- * File system operations copyFile, copyFileUntracked, createFileLink, fixFile, @@ -50,7 +52,6 @@ import Development.Shake.Classes import Development.Shake.FilePath import GHC.ResponseFile (escapeArgs) import System.Environment (lookupEnv) -import System.Info.Extra (isWindows) import System.IO (hClose, openTempFile) import System.IO.Error (isPermissionError) @@ -61,6 +62,7 @@ import qualified System.Directory.Extra as IO import qualified System.Info.Extra as IO import qualified System.IO as IO import qualified System.FilePath.Posix as Posix +import Development.Shake.Command (CmdArgument (..), IsCmdArgument (toCmdArgument)) -- | Extract a value from a singleton list, or terminate with an error message -- if the list does not contain exactly one value. @@ -330,20 +332,26 @@ keepResponseFiles = do KeepResponseFiles keep <- userSetting (KeepResponseFiles False) return keep --- | Run an action either with command arguments direcly or by, on Windows, --- placing those arguments into a response file escaped with @GHC.ResponseFile.escapeArgs@. +-- | Run an command with the given arguments. If the command is too long then the +-- response file arguments are placed into a response file and escaped with @GHC.ResponseFile.escapeArgs@. -- -- With @--keep-response-files@, the file is left on disk (if used) -withResponseFileOnWindows :: - ([String] -> Action a) -- ^ Action to perform given arguments (of the form @["\@reponseFilePath"]@ on Windows) - -> [String] -- ^ Command arguments - -> Action a -withResponseFileOnWindows action commandArgs = do - if isWindows +withResponseFileIfLongCmd :: (CmdResult c) => + CmdArgument -- ^ Command and arguments before the response file arguments. + -> [String] -- ^ Response file aruguments. + -> CmdArgument -- ^ Command arguments after the response file arguments. + -> Action c +withResponseFileIfLongCmd argsPre argsResp argsPost = do + let cmdLineLengh = sum + [ length arg + | let CmdArgument args = argsPre <> toCmdArgument argsResp <> argsPost + , Right arg <- args + ] + if cmdLineLengh >= cmdLineLengthLimit then withResponseFile $ \tmp -> do - writeFile' tmp (escapeArgs commandArgs) - action ['@' : tmp] - else action commandArgs + writeFile' tmp (escapeArgs argsResp) + cmd argsPre ['@' : tmp] argsPost + else cmd argsPre argsResp argsPost -- | Run an action with a response file path. -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/06b7d5a1b4f3f08d6f2c30e3eca071f… -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/06b7d5a1b4f3f08d6f2c30e3eca071f… You're receiving this email because of your account on gitlab.haskell.org.
1 0
0 0
[Git][ghc/ghc][wip/davide/hadrian_avoid_response_files_2] Hadrian: avoid response files when command line is short enough
by David Eichmann (@DavidEichmann) 02 Jun '26

02 Jun '26
David Eichmann pushed to branch wip/davide/hadrian_avoid_response_files_2 at Glasgow Haskell Compiler / GHC Commits: e1578f7a by David Eichmann at 2026-06-02T16:23:12+01:00 Hadrian: avoid response files when command line is short enough This replaces the logic of always using response files on Windows. With the new condition based on command line lenght, reponse files can be avoided in many more cases (on windows). - - - - - 2 changed files: - hadrian/src/Builder.hs - hadrian/src/Hadrian/Utilities.hs Changes: ===================================== hadrian/src/Builder.hs ===================================== @@ -351,9 +351,10 @@ instance H.Builder Builder where -- NB: we can't put the buildArgs in a response file, because some flags require -- empty arguments (such as the -dep-suffix flag), but that isn't supported -- yet due to #26560. - withResponseFileOnWindows - (\buildInputs' -> cmd [path] buildArgs buildInputs' buildOptions) + withResponseFileIfLongCmd + (toCmdArgument [path] <> toCmdArgument buildArgs) buildInputs + (toCmdArgument buildOptions) HsCpp -> captureStdout @@ -393,9 +394,10 @@ runHaddock :: FilePath -- ^ path to @haddock@ -> [String] -> [FilePath] -- ^ input file paths -> Action () -runHaddock haddockPath flagArgs fileInputs = withResponseFileOnWindows - (cmd [haddockPath] flagArgs) +runHaddock haddockPath flagArgs fileInputs = withResponseFileIfLongCmd + (toCmdArgument [haddockPath] <> toCmdArgument flagArgs) fileInputs + (CmdArgument []) -- TODO: Some builders are required only on certain platforms. For example, -- 'Objdump' is only required on OpenBSD and AIX. Add support for platform ===================================== hadrian/src/Hadrian/Utilities.hs ===================================== @@ -1,4 +1,6 @@ +{-# LANGUAGE ImpredicativeTypes #-} {-# LANGUAGE TypeFamilies #-} + module Hadrian.Utilities ( -- * List manipulation fromSingleton, replaceEq, minusOrd, intersectOrd, lookupAll, chunksOfSize, @@ -14,7 +16,7 @@ module Hadrian.Utilities ( -- * Paths BuildRoot (..), buildRoot, buildRootRules, isGeneratedSource, - KeepResponseFiles (..), keepResponseFiles, withResponseFile, withResponseFileOnWindows, + KeepResponseFiles (..), keepResponseFiles, withResponseFile, withResponseFileIfLongCmd, -- * File system operations copyFile, copyFileUntracked, createFileLink, fixFile, @@ -50,7 +52,6 @@ import Development.Shake.Classes import Development.Shake.FilePath import GHC.ResponseFile (escapeArgs) import System.Environment (lookupEnv) -import System.Info.Extra (isWindows) import System.IO (hClose, openTempFile) import System.IO.Error (isPermissionError) @@ -61,6 +62,7 @@ import qualified System.Directory.Extra as IO import qualified System.Info.Extra as IO import qualified System.IO as IO import qualified System.FilePath.Posix as Posix +import Development.Shake.Command (CmdArgument (..), IsCmdArgument (toCmdArgument)) -- | Extract a value from a singleton list, or terminate with an error message -- if the list does not contain exactly one value. @@ -330,20 +332,26 @@ keepResponseFiles = do KeepResponseFiles keep <- userSetting (KeepResponseFiles False) return keep --- | Run an action either with command arguments direcly or by, on Windows, --- placing those arguments into a response file escaped with @GHC.ResponseFile.escapeArgs@. +-- | Run an command with the given arguments. If the command is too long then the +-- response file arguments are placed into a response file and escaped with @GHC.ResponseFile.escapeArgs@. -- -- With @--keep-response-files@, the file is left on disk (if used) -withResponseFileOnWindows :: - ([String] -> Action a) -- ^ Action to perform given arguments (of the form @["\@reponseFilePath"]@ on Windows) - -> [String] -- ^ Command arguments - -> Action a -withResponseFileOnWindows action commandArgs = do - if isWindows +withResponseFileIfLongCmd :: (CmdResult c) => + CmdArgument -- ^ Command and arguments before the response file arguments. + -> [String] -- ^ Response file aruguments. + -> CmdArgument -- ^ Command arguments after the response file arguments. + -> Action c +withResponseFileIfLongCmd argsPre argsResp argsPost = do + let cmdLineLengh = sum + [ length arg + | let CmdArgument args = argsPre <> toCmdArgument argsResp <> argsPost + , Right arg <- args + ] + if cmdLineLengh >= cmdLineLengthLimit then withResponseFile $ \tmp -> do - writeFile' tmp (escapeArgs commandArgs) - action ['@' : tmp] - else action commandArgs + writeFile' tmp (escapeArgs argsResp) + cmd argsPre ('@' : tmp) argsPost + else cmd argsPre argsResp argsPost -- | Run an action with a response file path. -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e1578f7a51307ea2fc9da9c1d2fb528… -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e1578f7a51307ea2fc9da9c1d2fb528… You're receiving this email because of your account on gitlab.haskell.org.
1 0
0 0
[Git][ghc/ghc][wip/davide/hadrian_avoid_response_files_2] Hadrian: avoid response files when command line is short enough
by David Eichmann (@DavidEichmann) 02 Jun '26

02 Jun '26
David Eichmann pushed to branch wip/davide/hadrian_avoid_response_files_2 at Glasgow Haskell Compiler / GHC Commits: d0df0a2a by David Eichmann at 2026-06-02T16:20:20+01:00 Hadrian: avoid response files when command line is short enough This replaces the logic of always using response files on Windows. With the new condition based on command line lenght, reponse files can be avoided in many more cases (on windows). - - - - - 2 changed files: - hadrian/src/Builder.hs - hadrian/src/Hadrian/Utilities.hs Changes: ===================================== hadrian/src/Builder.hs ===================================== @@ -351,9 +351,10 @@ instance H.Builder Builder where -- NB: we can't put the buildArgs in a response file, because some flags require -- empty arguments (such as the -dep-suffix flag), but that isn't supported -- yet due to #26560. - withResponseFileOnWindows - (\buildInputs' -> cmd [path] buildArgs buildInputs' buildOptions) + withResponseFileIfLongCmd + (toCmdArgument path <> toCmdArgument buildArgs) buildInputs + (toCmdArgument buildOptions) HsCpp -> captureStdout @@ -393,9 +394,10 @@ runHaddock :: FilePath -- ^ path to @haddock@ -> [String] -> [FilePath] -- ^ input file paths -> Action () -runHaddock haddockPath flagArgs fileInputs = withResponseFileOnWindows - (cmd [haddockPath] flagArgs) +runHaddock haddockPath flagArgs fileInputs = withResponseFileIfLongCmd + (toCmdArgument haddockPath <> toCmdArgument flagArgs) fileInputs + (CmdArgument []) -- TODO: Some builders are required only on certain platforms. For example, -- 'Objdump' is only required on OpenBSD and AIX. Add support for platform ===================================== hadrian/src/Hadrian/Utilities.hs ===================================== @@ -1,4 +1,6 @@ +{-# LANGUAGE ImpredicativeTypes #-} {-# LANGUAGE TypeFamilies #-} + module Hadrian.Utilities ( -- * List manipulation fromSingleton, replaceEq, minusOrd, intersectOrd, lookupAll, chunksOfSize, @@ -14,7 +16,7 @@ module Hadrian.Utilities ( -- * Paths BuildRoot (..), buildRoot, buildRootRules, isGeneratedSource, - KeepResponseFiles (..), keepResponseFiles, withResponseFile, withResponseFileOnWindows, + KeepResponseFiles (..), keepResponseFiles, withResponseFile, withResponseFileIfLongCmd, -- * File system operations copyFile, copyFileUntracked, createFileLink, fixFile, @@ -50,7 +52,6 @@ import Development.Shake.Classes import Development.Shake.FilePath import GHC.ResponseFile (escapeArgs) import System.Environment (lookupEnv) -import System.Info.Extra (isWindows) import System.IO (hClose, openTempFile) import System.IO.Error (isPermissionError) @@ -61,6 +62,7 @@ import qualified System.Directory.Extra as IO import qualified System.Info.Extra as IO import qualified System.IO as IO import qualified System.FilePath.Posix as Posix +import Development.Shake.Command (CmdArgument (..), IsCmdArgument (toCmdArgument)) -- | Extract a value from a singleton list, or terminate with an error message -- if the list does not contain exactly one value. @@ -330,20 +332,26 @@ keepResponseFiles = do KeepResponseFiles keep <- userSetting (KeepResponseFiles False) return keep --- | Run an action either with command arguments direcly or by, on Windows, --- placing those arguments into a response file escaped with @GHC.ResponseFile.escapeArgs@. +-- | Run an command with the given arguments. If the command is too long then the +-- response file arguments are placed into a response file and escaped with @GHC.ResponseFile.escapeArgs@. -- -- With @--keep-response-files@, the file is left on disk (if used) -withResponseFileOnWindows :: - ([String] -> Action a) -- ^ Action to perform given arguments (of the form @["\@reponseFilePath"]@ on Windows) - -> [String] -- ^ Command arguments - -> Action a -withResponseFileOnWindows action commandArgs = do - if isWindows +withResponseFileIfLongCmd :: (CmdResult c) => + CmdArgument -- ^ Command and arguments before the response file arguments. + -> [String] -- ^ Response file aruguments. + -> CmdArgument -- ^ Command arguments after the response file arguments. + -> Action c +withResponseFileIfLongCmd argsPre argsResp argsPost = do + let cmdLineLengh = sum + [ length arg + | let CmdArgument args = argsPre <> toCmdArgument argsResp <> argsPost + , Right arg <- args + ] + if cmdLineLengh >= cmdLineLengthLimit then withResponseFile $ \tmp -> do - writeFile' tmp (escapeArgs commandArgs) - action ['@' : tmp] - else action commandArgs + writeFile' tmp (escapeArgs argsResp) + cmd argsPre ('@' : tmp) argsPost + else cmd argsPre argsResp argsPost -- | Run an action with a response file path. -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d0df0a2a8083f20822c65c0e6678194… -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d0df0a2a8083f20822c65c0e6678194… You're receiving this email because of your account on gitlab.haskell.org.
1 0
0 0
[Git][ghc/ghc][wip/dcoutts/issue-27105-stopTicker] 67 commits: Move the `Text.Read` implementation into `base`
by Duncan Coutts (@dcoutts) 02 Jun '26

02 Jun '26
Duncan Coutts pushed to branch wip/dcoutts/issue-27105-stopTicker at Glasgow Haskell Compiler / GHC Commits: 44cf9cd7 by Wolfgang Jeltsch at 2026-05-12T09:48:18-04:00 Move the `Text.Read` implementation into `base` - - - - - 4ac3f7d6 by Vladislav Zavialov at 2026-05-12T09:49:03-04:00 EPA: Use AnnParen for tuples and sums Summary of changes * Do not use AnnParen in XListTy, replace it with EpToken "[" and "]" * Specialise AnnParen to tuple/sums by dropping the AnnParensSquare and keeping only AnnParens and AnnParensHash * Use AnnParen in XExplicitTuple * Use AnnParen in XExplicitTupleTy * Use AnnParen in XTuplePat * Use AnnParen in XExplicitSum (via AnnExplicitSum) * Use AnnParen in XSumPat (via EpAnnSumPat) This is a refactoring with no user-facing changes. - - - - - 1bdcddec by Duncan Coutts at 2026-05-12T09:49:48-04:00 Add minimal dlltool support to ghc-toolchain The dlltool is a tool that can create dll import libraries from .def files. These .def files list the exported symbols of dlls. Its somewhat like gnu linker scripts, but more limited. We will need dlltool to build the rts and ghc-internal libraries as DLLs on Windows. The rts and ghc-internal libraries have a recursive dependency on each other. Import libraries can be used to resolve recursive dependencies between dlls. We will use an import library for the rts when linking the ghc-internal library. - - - - - f7fc3770 by Duncan Coutts at 2026-05-12T09:49:48-04:00 Add minimal dlltool support into ./configure Find dlltool, and hopefully support finding it within the bundled llvm toolchain on windows. - - - - - e4e22bfb by Duncan Coutts at 2026-05-12T09:49:48-04:00 Update the default host and target files for dlltool support - - - - - 5666c8f9 by Duncan Coutts at 2026-05-12T09:49:48-04:00 Add dlltool as a hadrian builder Optional except on windows. - - - - - 5e14fe3f by Duncan Coutts at 2026-05-12T09:49:48-04:00 Update and generate libHSghc-internal.def from .def.in file The only symbol that the rts imports from the ghc-internal package now is init_ghc_hs_iface. So the rts only needs an import lib that defines that one symbol. Also, remove the libHSghc-prim.def because it is redundant. The rts no longer imports anything from ghc-prim. Keep libHSffi.def for now. We may yet need it once it is clear how libffi is going to be built/used for ghc. - - - - - 3d91e4a6 by Duncan Coutts at 2026-05-12T09:49:48-04:00 Add rule to build libHSghc-internal.dll.a and link into the rts On windows only, with dynamic linking. This is needed because on windows, all symbols in dlls must be resolved. No dangling symbols allowed. References to external symbols must be explicit. We resolve this with an import library. We create an import library for ghc-internal, a .dll.a file. This is a static archive containing .o files that define the symbols we need, and crucially have ".idata" sections that specifies the symbols the dll imports and from where. Note that we do not install this libHSghc-internal.dll.a, and it does not need to list all the symbols exported by that package. We create a special purpose import lib and only use it when linking the rts dll, so it only has to list the symbols that the rts uses from ghc-internal (which is exactly one symbol: init_ghc_hs_iface). - - - - - c8dae539 by Alice Rixte at 2026-05-12T09:50:52-04:00 Script for downloading and copying `base-exports` file - - - - - 5fab2238 by Wolfgang Jeltsch at 2026-05-12T21:24:27+03:00 Introduce a cache of home module name providers This contribution introduces to the module graph a cache that maps home module names to sets of units providing them and changes the finder to use that cache. This is a performance optimization, especially for multi-home-unit builds. The particular changes are as follows: * In `GHC.Unit.Module.Graph`, `ModuleGraph` is extended with a new field `mg_home_module_name_providers_map`, exposed as `mgHomeModuleNameProvidersMap`. This is a cache that assigns to each home module name the set of IDs of home units that define it. Operations that construct module graphs are updated such that this cache stays synchronized. * In `GHC.Unit.Finder`, `findImportedModule` is changed to pull `mgHomeModuleNameProvidersMap` from `hsc_mod_graph` and pass it to `findImportedModuleNoHsc`, which now does not search home units in arbitrary order but prioritizes those units that the cache mentions as potential providers of the requested module. In addition, this contribution adds variants of the two multi-component compiler performance tests that use 100 units instead of 20, because with just 20 units the benefits from caching of home module name providers are still negligible. The following table shows the total time needed for running both multi-component tests before and after this contribution and with different numbers of units: | # of units | Before | After | |-----------:|-------:|------:| | 20 | 0:12 | 0:12 | | 100 | 0:47 | 0:42 | | 200 | 3:05 | 2:08 | Note that there seems to be a general overhead of 12 seconds that is not attributable to the actual tests, so that the real running times should be 12 seconds smaller than shown above. Resolves #27055. Metric Decrease: MultiComponentModules MultiComponentModulesRecomp Co-authored-by: Matthew Pickering <matthewtpickering(a)gmail.com> Co-authored-by: Fendor <fendor(a)posteo.de> - - - - - 38b76b2f by Cheng Shao at 2026-05-13T17:48:48-04:00 testsuite: mark T22159 as fragile This patch marks T22159 as fragile on Windows for issue described in #27248. Before we get to the bottom of those failures, this unblocks newer Windows runners. - - - - - 50188615 by Ian Duncan at 2026-05-14T13:45:07+02:00 AArch64: use ASR not LSR for MO_U_Shr at W8/W16 The unsigned right shift (MO_U_Shr) for sub-word widths (W8, W16) with a variable shift amount was emitting ASR (arithmetic/signed shift right) after zero-extending with UXTB/UXTH. This should be LSR (logical/unsigned shift right). After zero-extension the upper bits happen to be 0 so ASR produces the same result, but it is semantically wrong and would break if the zero-extension were ever optimized away. Includes assembly output test (grep for lsr) and runtime test verifying unsigned right shift of Word8 and Word16 values. - - - - - 28666fbf by Vladislav Zavialov at 2026-05-19T12:44:05-04:00 Add type families: Tuple, Constraints, Tuple#, Sum# (#27179) These type families map tuples of types to the corresponding Tuple<N>, Tuple<N>#, CTuple<N>, and Sum<N># types. Some examples at N=2: Tuple (Int, Bool) = Tuple2 Int Bool Constraints (Show a, Eq a) = CTuple2 (Show a) (Eq a) Tuple# (Int#, Float#) = Tuple2# Int# Float# Sum# (Int#, Float#) = Sum2# Int# Float# See GHC Proposal #145 "Non-punning list and tuple syntax". To make the Sum# instance at N=64 possible, this patch also introduces the Sum64# constructor declaration and bumps mAX_SUM_SIZE from 63 to 64. Metric Increase: ghc_experimental_dir - - - - - 41c2448b by Wen Kokke at 2026-05-19T12:44:53-04:00 rts: Add IPE event class for -l This commit adds a new IPE event class to the -l RTS flag. Previously, IPE events were enabled unconditionally. However, the IPE events can easily grow to hundreds or thousands of megabytes. With the new event class you can pass, e.g., -l-I to disable IPE events. - - - - - 62536551 by Wen Kokke at 2026-05-19T12:44:53-04:00 ghc-internal: Add TraceFlags.traceIPE - - - - - e45312d1 by Wen Kokke at 2026-05-19T12:44:53-04:00 testsuite: Add test for TraceFlags.traceIpe - - - - - 4768d9aa by Wen Kokke at 2026-05-19T12:44:53-04:00 ghc-internal: Add DebugFlags.ipe - - - - - bc1b5c69 by Wen Kokke at 2026-05-19T12:44:53-04:00 testsuite: Add test for DebugFlags.ipe - - - - - 0da1543f by Duncan Coutts at 2026-05-19T12:45:37-04:00 Document removal of the signal-based interval timer Update mentions within the RTS section of the users guide. Add a changelog entry. - - - - - b2911514 by Duncan Coutts at 2026-05-19T12:45:37-04:00 Fix section for an recent changelog entry - - - - - d6d76a7a by David Eichmann at 2026-05-19T12:46:19-04:00 ghc-toolchain: implement llvm program versioning logic - - - - - 2dd36fa3 by Wolfgang Jeltsch at 2026-05-20T04:49:52-04:00 Turn `Trustworthy` into `Safe` in `base` where possible - - - - - f4399dd1 by Wolfgang Jeltsch at 2026-05-20T04:50:37-04:00 Make the current `base` buildable with GHC 10.0 - - - - - 1a7de232 by Duncan Coutts at 2026-05-20T12:26:25-04:00 Hadrian: remove legacy rts .so symlinks For compatibility with the old makefile based build system, hadrian had rules to generate symlinks from unversioned to versioned names for the rts .so/.dynlib file, like libHSrts-ghcx.y.so -> libHSrts-1.0.3-ghcx.y.so We no longer need these symlinks since the makefile build system has been retired some time ago. The need for these symlinks is awkward on windows where we cannot (in practice) create symlinks. So rather than make them conditional (non-windows), just remove them entirely. - - - - - 286f1adf by fendor at 2026-05-20T12:27:09-04:00 Fix regression T27202: `:load` and `:add` work in GHCi To fix the regression there are conceptually two major things that we fix: * We don't remove the `importDirs` from `interactive-session` * When `:add`ing a module, we don't try to find them via PackageImports * The PackageImport is wrong as we can't know the package-name at this stage in ghc/UI.hs What does it mean to not remove the `importDirs` from `interactive-session`? It means that, given some initial `DynFlags`, we will use those `importDirs` in `interactive-session`. The initial `DynFlags`, however, depend on how you initialise the GHC session. For a simple session, initialised by ghc -isrc -this-unit-id main It is simple, just use the `DynFlags` given on the cli. Thus, `main` and `interactive-session` will have the same `DynFlags`, except for the `homeUnitId` and `interactive-session` depends on `main` by construction of the GHCi session. What about a multiple home unit session, though? ghc -unit @unit1 -unit @unit2 What are the `DynFlags` in this cli invocation? It shouldn't be either `@unti1` nor `@unit2`, as the order shouldn't matter or any other implicit condition. For consistency, we decide that the initial `DynFlags` are the top `DynFlags` on the cli, ignoring `-unit` flags. Thus, in this example, there are no `importsDirs` regardless of what we might find in `@unit1` and `@unit2`. But in this invocation: ghc -isrc -unit @unit1 -unit @unit2 The `interactive-session` will have the `importsDirs` `src`. Note, `-isrc` will be inherited in `@unit1` and `@unit2`, so you need to explicitly use `-i` to clear the `importsDirs`, in order to avoid accidentally adding `src` as an import directory to all other home units. This fix has been made possible by the improvements introduced in !15888, which avoids ambiguity when a home unit shares the `importsDirs` with the `interactive-session`, on top of being much faster for multiple home units. Adds regression tests for T27202 for `:load`ing and `:add`ing modules that are located in import directories. - - - - - 728662de by fendor at 2026-05-20T12:27:09-04:00 Use home unit package db stacks in GHCi prompt and session unit In order to import modules from home unit dependencies (e.g., `Data.Map`), the ghci prompt unit needs to populate its `UnitState`. This is tricky to handle correctly, which `PackageDBFlag`s should we use to populate the `UnitState`? We decide, the most intuitive solution for users is to depend on all `PackageDBFlag`s, so that any dependency can be imported in GHCi. This assumes consistency in the `PackageDBFlag`s, so no two home units specify `PackageDBFlag`s that are inconsistent with each other. We could simply concat all the `PackageDBFlag`s of the existing home units, but later `PackageDBFlag`s shadow earlier ones, leading to the last processed home units' `PackageDBFlag`s to shadow the earlier ones. This is hard to fix, we need to give users the capability to provide ghc options for the ghci prompt home unit. However, as this is considerably more work, we decided on an approximation that should work out most of the time. Package Db stacks in cabal and stack follow a certain structure: -no-user-package-db > -package-db $cabal-store > -package-db $local-db The first two arguments are always the same, namely the `-no-user-package-db` and `-package-db`. We compute the longest common prefix over all home units, and use that as the start of the package db stack. Then, over the rest of the `PackageDBFlag`s, we simply take the union and append them to our initial stack. We assume, that the rest of package dbs only defines very few, "local" units that are usually not shadowing each other. This allows us to get a relatively consistent package database stack for the ghci prompt home unit. Similar reasoning applies to the session unit in order to add modules to the session and have dependencies available in the module. We do something similar for `-package` flags, to make sure only the correct units are actually visible in the ghci session. This time, we simply take the union of all `PackageFlag`s, allowing us to import modules from the home unit dependencies. In the future, it would be beneficial to allow the user to provide the exact ghc options to control the visibilities. For now, this will have to do. - - - - - 740d89a0 by Simon Peyton Jones at 2026-05-20T17:20:44-04:00 Do not use mkCast during typechecking This commit fixes #27219. The problem was that the typechecker was using `mkCast`, whose assertion checks legitimately fail when applied to types that contain unification variables. - - - - - a50fdb06 by Simon Peyton Jones at 2026-05-20T17:20:45-04:00 Major refactor of the Simplifier The main payload of this patch is to refactor the Simplifer to avoid repeated simplification when using Plan (AFTER) for rule rewrites. The need for this was shown up by #26989. See Note [Avoid repeated simplification] in GHC.Core.Opt.Simplify.Iteration. Related refactoring: * Refactor the two fields `sc_dup` and `sc_env` in `ApplyToVal` into one, `sc_env`. Reason: the envt is irrelevant in the "simplified" case, so the data type describes the possiblitiies much more accurately now. * Some refactoring in `knownCon` to split off `wrapDataConFloats`. * Refactor `lookupRule` and its auxiliary functions to return `RuleMatch`, a new data type. See Note [data RuleMatch] in GHC.Core. Ditto for BuiltinRule. This RuleMatch returns fragments of the target in rm_args and rm_floats, leaving `rm_rhs` to be the stuff from the RULE itself. Doing this has routine consequences in GHC.Core.Opt.ConstantFold. Many changes there but all routine. * When doing occurrence analysis on RULEs, make the occ-info on the rule binders relate just to the RHS, not the LHS. See (OUR1) in Note Note [OccInfo in unfoldings and rules] This means that Lint must not complain about the fact that the patterns in the RULE mentions binders that are marked dead. See Note [Dead occurrences] in GHC.Core.Lint. I changed the Core pretty-printer so that it didn't suppress dead binders, else I can't see those binders in RULEs. That led to quite a lot of testsuite wibbles. * Refactor FloatBinds, so that it is used both by `exprIsConApp_mabye` and by `lookupRule` * Move the definition of FloatBinds out of GHc.Core.Make, into GHC.Core. * Add FloatTick as an extra constructor. * Refactor `lookupRule` to use `FloatBinds` instead of `BindWrapper`. This refactor just shares more code. (Rename GHC.Core.Opt.FloatOut.FloatBinds to FloatLets, to avoid gratuitious name clash with GHC.Core.FloatBinds.) Corecion optimisation * In simpleOpt, when composing coercions, call new function `optTransCo`. This is much lighter weight than full blown coercion optimisation. * Make `GHC.Core.Opt.Arity.pushCoValArg` and `pushCoTyArg` return the coercionLKind of the coercion. This saves recomputing that coercionLKind at the key call sites in GHC.Core.Opt.Simplify.Iteration.pushCast. * Rename `addCoerce` in GHC.Core.Simplify.Iteration to become `pushCast`. * In the `ApplyToVal` case of `pushCast` we had a very unsavoury call to `simplArg`. I eliminated it by adding a field `sc_cast` to `ApplyToVal` that records any pending casts. Much nicer now. See Note [The sc_cast field of ApplyToVal]. * Don't optimise coercions if the type-substitution is empty. See Note [Optimising coercions] in GHC.Core.Opt.Simplify.Iteration. The fix for #26838 is dramatic. For the test in perf/compiler/T26839 we have Compiler allocs: Before: 7,363M After: 688M Compile time goes down generally. Here are compiler-alloc changes over 0.5%: CoOpt_Read(normal) 729,184,920 -0.7% CoOpt_Singletons(normal) 666,916,960 -4.6% GOOD LargeRecord(normal) 1,227,056,876 +1.1% T12227(normal) 256,827,604 -4.6% GOOD T12425(optasm) 76,879,410 -0.8% T12545(normal) 787,826,918 -10.8% GOOD T12707(normal) 775,186,464 -0.9% T13253(normal) 318,599,596 -0.8% T14766(normal) 685,857,320 -1.0% T15304(normal) 1,123,333,422 -2.2% T15630(normal) 123,142,330 -2.6% T15630a(normal) 123,092,100 -2.6% T15703(normal) 299,751,682 -2.9% GOOD T17516(normal) 964,072,280 +1.0% T18223(normal) 367,016,820 -6.2% GOOD T18730(optasm) 130,643,770 -3.3% GOOD T20261(normal) 535,608,584 -0.7% T21839c(normal) 340,340,436 -0.9% T24984(normal) 85,568,392 -1.9% T3064(normal) 174,631,992 -1.2% T3294(normal) 1,215,886,432 -0.7% T5030(normal) 141,449,704 -17.2% GOOD T5321Fun(normal) 258,484,744 -1.9% T8095(normal) 770,532,232 -2.7% T9630(normal) 858,423,408 -14.5% GOOD T9872c(normal) 1,591,709,448 +0.7% info_table_map_perf(normal) 19,700,614,458 -1.3% geo. mean -0.7% minimum -17.2% maximum +1.1% However, strangely there seems to be a 5.0% increase in CoOpt_Read in the x86_64-linux-fedora43-validate+debug_info+ubsan job, although there generally a /decrease/ in this test in other builds. The baseline value looks strange. Anyway I'll just accept it. Metric Decrease: CoOpt_Singletons T12227 T12545 T12707 T15703 T18223 T18730 T21839c T5030 T9630 Metric Increase: CoOpt_Read - - - - - 834623d4 by Mrjtjmn at 2026-05-20T17:21:41-04:00 users-guide: Fix weird notation in "Summary of stolen syntax" - - - - - 6f9d7c71 by Markus Läll at 2026-05-21T15:25:34-04:00 Use "grimily" instead of "grimly" Fixes https://gitlab.haskell.org/ghc/ghc/-/issues/27221 - - - - - 50e999ca by fendor at 2026-05-21T15:26:18-04:00 Speed up 'closure' computation in `ghc-pkg` Cache the set of already seen `UnitId`s and use `Set` operations to speed up 'closure' computation. Further simplify the implementation of 'closure' to account for the actual usage. As a consequence, we rename 'closure' to 'brokenPackages' to reflect its purpose better after the simplification. - - - - - 7ecc6184 by sheaf at 2026-05-21T15:27:10-04:00 TcMPluginHandling: be more lenient when no plugins This change ensures that, if a function such as 'typecheckModule' was invoked with 'NoTcMPlugins', GHC doesn't spuriously complain about TcM plugins having already been stopped, as there were none to start with. - - - - - 72c8de5c by Simon Jakobi at 2026-05-23T18:41:42-04:00 Implement List.elem via foldr ...in order to allow specialization to Eq instances. The implementation of notElem is updated for consistency.` Corresponding CLC proposal: https://github.com/haskell/core-libraries-committee/issues/412 Addresses #27096. - - - - - 3268c610 by Alan Zimmerman at 2026-05-23T18:42:30-04:00 EPA: Fix span for qualified multiline string Fix the span for a qualified multiline string like Text.""" I'm a multiline Text value ! """ to extend to the end of the entire string, not just the first line. Closes #27274 - - - - - 1f096790 by Alan Zimmerman at 2026-05-23T18:43:20-04:00 EPA: Fix exact printing namespace-specified wildcards Ensures correct printing of imports of the form import Data.Bool (data True(data ..)) import Data.Bool (data True(type ..)) Closes #27291 - - - - - 56ada7c0 by Mrjtjmn at 2026-05-23T18:44:19-04:00 Fix ambiguous syntax of BangPatterns in users guide Update documentation for the BangPatterns extension to specify how surrounding whitespace affects interpretation of `!`. * Only when there is whitespace before `!` and no whitespace after, it is recognized as a BangPattern. * Other cases `⟨varid⟩!⟨varid⟩`, `⟨varid⟩ ! ⟨varid⟩`, `⟨varid⟩! ⟨varid⟩` are treated as infix operators. - - - - - 579aa0b7 by Simon Jakobi at 2026-05-25T16:31:26-04:00 Ensure that SetOps.{minusList,unionListsOrd} can be specialized ...by marking them INLINABLE. Haddock allocates 0.1–0.3% less as a result. This also removes some redundant constraints on unionListsOrd. - - - - - cccf45da by Cheng Shao at 2026-05-25T16:32:13-04:00 wasm: ensure post-linker output is synchronous ESM This patch fixes wasm backend's post-linker output script to ensure it's synchronous ESM and doesn't use top-level await, which doesn't work in ServiceWorkers. Fixes #27257. - - - - - 8db331a3 by Zubin Duggal at 2026-05-26T04:54:03-04:00 Update to semaphore-compat 2.0.0 using v2 of the protocol On Linux and other POSIX platforms, GHC's -jsem jobserver client now speaks v2 of the semaphore-compat protocol, which uses Unix domain sockets in place of POSIX named semaphores. This avoids the libc-ABI issues that affected the old implementation. Windows is unaffected and continues to use the v1 protocol (Win32 named semaphores); its reported protocol version remains v1. When GHC receives a -jsem name whose protocol version it does not support, it emits a -Wsemaphore-version-mismatch warning and falls back to -j<N> rather than crashing. ghc --info exposes the supported version in a new "Semaphore version" entry so cabal-install can detect a mismatch before invoking GHC. Users on a cabal-install that predates the v2 update will continue to build successfully on Linux/POSIX, but will lose the cross-process -jsem coordination and fall back to -j<N> per GHC invocation. Users must upgrade to a cabal-install that supports protocol v2 to recover full parallelism. Also fix a leak in cleanupSem (#27253): cleanupSem used to snapshot heldTokens and release them before killing the loop, while the loop's in-flight acquire/release children could still be mutating it. Cleanup now runs inside the loop's own exit handler, after draining the active child via a new activeChild TVar, so the snapshot has no concurrent mutator. See also: - GHC proposal amendment: https://github.com/ghc-proposals/ghc-proposals/pull/673 - cabal-install patch: https://github.com/haskell/cabal/pull/11628 - semaphore-compat MR: https://gitlab.haskell.org/ghc/semaphore-compat/-/merge_requests/8 Bump semaphore-compat submodule to 2.0.0 Fixes #25087 and #27253 - - - - - 17be4f1f by Alan Zimmerman at 2026-05-26T04:54:52-04:00 EPA: Record semicolons in HsModifier Ensure the semi colons are captured in the ParsedSource for code like %True;; %False; instance C D It makes HsModifier (and hence HsModifierOf) LocatedA, so the semi colons can be recorded as [TrailingAnn] Also rename pprHsModifiers to pprLHsModifiers to match. Closes #27294 - - - - - 8f991755 by fendor at 2026-05-26T11:02:52-04:00 Revert prog003 acceptance We thought the commit 286f1adff3e78d775ff325caff71d0cee25d710b fixed the test, but due to changes to ghci, modules loaded during the GHCi session, the test was actually no longer testing what it set out to do, "fixing" the broken test. As modules are added to the `interactive-session` home unit, the object code needs to be compiled with `-this-unit-id interactive-session`, otherwise the object code won't be used. Once this has been fixed in the test, the test fails as expected again. - - - - - 277a3687 by mangoiv at 2026-05-26T11:03:40-04:00 libraries/process: bump submodule to v1.6.29.0 This submodule bump resolves a segfault on macos 15. Fixes #27144 - - - - - 6779bb0c by mangoiv at 2026-05-26T11:03:40-04:00 libraries/unix: in submodule, don't pick branch 2.7 The 2.7 branch is outdated and the module has been advanced far beyond it anyway, so remove that line. - - - - - 4a645683 by Simon Peyton Jones at 2026-05-27T21:41:59-04:00 Trim the continuation in mkDupableContWithDmds When there are no remaining argument demands, it means the application is bottoming. In this case, we can trim the continuation to avoid the panic that was observed in #27261. See Note [Trimming the continuation for bottoming functions] in GHC.Core.Opt.Simplify.Iteration. - - - - - 8ab506ff by Cheng Shao at 2026-05-27T21:42:47-04:00 ghci: fix module name string lifetime in hs_hpc_module invocation This patch makes hpcAddModule pass a properly malloced module name string to hs_hpc_module, instead of using useAsCString which causes use-after-free of module name string. Fixes #27297. Co-authored-by: Codex <codex(a)openai.com> - - - - - b0233814 by sheaf at 2026-05-27T21:43:31-04:00 Relax acceptance threshold for T10421 As seen in #27289, the 1% acceptance threshold for this text was overly narrow, resulting in spurious test failures. This commit widens the acceptance threshold to 2%. Fixes #27289. - - - - - 63ce5770 by Luite Stegeman at 2026-05-28T12:23:35-04:00 Fixes for black holes - suspend duplicate work for eager black holes - detect eager black holes in checkBlockingQueues - don't overwrite existing black holes even if they're not in an eager blackhole frame - don't deadlock on self when thunk is already blackholed Fixes #26936 - - - - - 037a80dc by Tom McLaughlin at 2026-05-28T12:24:36-04:00 Event/Windows.hsc: rethrow exceptions in overlapped IO This prevents the WinIO manager from swallowing exceptions in overlapped IO. It was added to make WinIO support possible in the `network` library. See https://gitlab.haskell.org/ghc/ghc/-/issues/27283. We also bump __IO_MANAGER_WINIO__ to 2 so libraries can gate on this using CPP. - - - - - 2d53bcdb by Wolfgang Jeltsch at 2026-05-28T12:25:21-04:00 Allow `downsweep` to use nodes of an existing module graph To this end, `downsweep` has not been able to use the nodes of a module graph obtained from a previous downsweeping round. In some GHC API applications, downsweeping is performed somewhat incrementally and therefore could profit from reusing such existing results. This contribution makes this possible. Resolves #27054. Co-authored-by: Matthew Pickering <matthewtpickering(a)gmail.com> - - - - - f4fbb583 by Simon Jakobi at 2026-05-28T12:26:04-04:00 Add regression test for T11226 Closes #11226. - - - - - ed29a5e6 by Sven Tennie at 2026-05-28T17:30:36-04:00 Add optional config setting for LibDir (#19174) Previously, the `libDir` was derived from `topDir`. This won't work for inplace stage2 cross-compilers where binaries and libraries are in different stage dirs (`_build/stage1/` for executables and `_build/stage2` for libraries). `LibDir` is set in the inplace `settings` files. For bindists, we generate a new `settings` file with no `LibDir` entry. GHC then defaults to use `topDir` as `libDir` again. This keeps the bindist relocatable. If `LibDir` is a relative path, it is interpreted relatively to `topDir`. The global package db is part of the `lib/` folder. If we want to point for inplace cross-compilers to the succeeding stage's folder, this is done by setting `LibDir`. Thus, the global package db must be found relative to `libDir`` (which may default to `topDir` or be set by `LibDir`). The complexity of settings becomes scary. So, add a test to ensure `LibDir` works as expected. - - - - - 8339cf8f by Sven Tennie at 2026-05-28T17:30:36-04:00 Add Haddock to FileSettings Helping to understand the fields' meanings without deeper analyses. - - - - - 4ce251e4 by Sylvain Henry at 2026-05-28T17:31:39-04:00 foundation test: skip signed minBound `quot` (-1) (#27222) `minBound `quot` (-1)` for fixed-width signed integers is platform dependent: the mathematical result -minBound is not representable in the type. On x86, IDIV traps; LLVM's sdiv is undefined behaviour in this case; on AArch64/RISC-V, SDIV wraps to minBound. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply(a)anthropic.com> - - - - - b8ba7e61 by Simon Jakobi at 2026-05-28T17:32:23-04:00 Prevent dictionary-passing in checkTyEqRhs ...by pre-specializing it to TcM. Previously, wherever checkTyEqRhs was used in other modules, the Core showed dictionary passing ($fMonadIOEnv). The added SPECIALIZE pragma prevents this. - - - - - d603477f by David Eichmann at 2026-05-29T13:17:12-04:00 Hadrian: create a ghc-internal .def file per ghc-internal dll The .def file generated from rts/win32/libHSghc-internal.def.in contains the name of the ghc-internal dll. The correct dll name differs based on if the dll is inplace/final and if using the Dynamic way. Previously, this was not accounted for and inconsistent dlls names where used. That led to failure when loading dlls at runtime in experiments with windows dynamic linking. - - - - - 1fc21753 by Sylvain Henry at 2026-05-29T13:18:14-04:00 ghc-bignum: copy backend interface haddocks to Native backend (#27305) The haddock comments documenting the BigNat backend interface (function contracts, expected MutableWordArray# sizes, return-value semantics, etc.) were attached to the FFI backend module. Copy them to the Native backend so they remain in tree once the FFI backend is removed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply(a)anthropic.com> - - - - - 717059df by Sylvain Henry at 2026-05-29T13:18:14-04:00 ghc-bignum: remove FFI backend (#27305) The FFI backend of ghc-bignum (now part of ghc-internal) had no known users and is easy to recreate by relinking ghc-internal with a custom backend. Remove the backend module, the bignum-ffi cabal flag, and the ffi option from Hadrian's --bignum selector. The backend interface documentation now lives in the Native backend module. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply(a)anthropic.com> - - - - - 4bb3b1d8 by Sylvain Henry at 2026-05-29T13:18:14-04:00 ghc-bignum: remove Check backend (#27305) The Check backend of ghc-bignum (now part of ghc-internal) compared the selected backend's output against the Native backend for validation. It had no known users. Remove the backend module, the bignum-check cabal flag, the bignumCheck Hadrian flavour field, and the check- prefix in Hadrian's --bignum selector. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply(a)anthropic.com> - - - - - 6b3044a0 by David Eichmann at 2026-05-30T11:58:48-04:00 Add code comments to allocator code - - - - - f4e04210 by Matthew Pickering at 2026-05-30T11:59:34-04:00 hadrian: Refactor system-cxx-std-lib rules I noticed a few things wrong with the hadrian rules for `system-cxx-std-lib` rules. * For `text` there is an ad-hoc check to depend on `system-cxx-std-lib` outside of `configurePackage`. * The `system-cxx-std-lib` dependency is not read from cabal files. * Recache is not called on the packge database after the `.conf` file is generated, a more natural place for this rule is `registerRules`. Treating this uniformly like other packages is complicated by it not having any source code or a cabal file. However we can do a bit better by reporting the dependency firstly in `PackageData` and then needing the `.conf` file in the same place as every other package in `configurePackage`. This commit increases the `shakeVersion`, to provide backwards compatibility to previous builds with different PackageData. Fixes #25303 Co-authored-by: Sven Tennie <sven.tennie(a)gmail.com> - - - - - 576987d0 by Simon Jakobi at 2026-06-02T04:53:36-04:00 compiler: use nubOrd from containers Address #27103 by replacing GHC.Utils.Misc.ordNub[On] with Data.Containers.ListUtils.nubOrd[On]. Note that nubOrd suffers from a small inefficiency, a fix for which will be included in the next containers release: https://github.com/haskell/containers/issues/1202 - - - - - deea53c3 by David Eichmann at 2026-06-02T04:54:22-04:00 Hadrian: disable response files for GHC/Haddock builders on non-Windows This makes debugging build errors easier on non-windows hosts. See issue #27230 - - - - - e75d1cee by Duncan Coutts at 2026-06-02T15:52:36+01:00 Add a test for thread scheduler fairness It also tests that the interval timer and context switching works. We also test that fairness is lost when the context switching interval is too coarse for the duration of the test. We add this test before doing surgery on the interval timer, so we have decent coverage. - - - - - 74637754 by Duncan Coutts at 2026-06-02T15:52:36+01:00 Fix for RTS stopTicker not being synchronous Fixes issue #27105. The stopTicker() action was asynchronous (on both posix and win32) but it was being used in several places as if it were synchronous. It turns out there are two uses for stopTicker: 1. for concurrency safety: to avoid the tick handler running concurrently with some other critical section. 2. for efficiency: to reduce CPU wakeups when the RTS goes idle. The first case is where it relies on the stopTicker() being synchronous (which it wasn't), while the second case can be asynchronous for performance. In fact it _must_ be asynchronous because it is called within the tick handler itself, and it cannot wait on itself. So in this patch we deprecate stopTicker/startTicker and replace it with two pairs: block/unblockTicker for case 1, and pause/unpauseTicker for case 2. We update all calls of stop/startTicker with the appropriate replacement. In the posix implementation, we take care to keep the tick action cheap. Since block/unblock are used very infrequently, we make them more expensive and complicated to allow the normal hot path in the tick action to be cheap. We avoid locks and atomic memory ops in the hot path. We use message passing via an eventfd or pipe. In the win32 implementation, we continue to use the TimerQueue API, and we make use of its ability to delete timers synchronously or asynchronously. Add a changelog entry. - - - - - e488748d by Duncan Coutts at 2026-06-02T15:52:37+01:00 Make win32 ticker wait interval for initial tick too There is no need to tick immediately. This is consistent with the posix implementation. - - - - - 2d3b7c90 by Duncan Coutts at 2026-06-02T15:52:37+01:00 Remove now-unnecessary layer of RTS ticker block/unblocking There was an atomic variable used to block *part* of the actions of the tick handler. This still did not make stopTimer synchronous, even for the part of the the handle_tick actions it covered. It also added a more expensive (sequentuially consistent) atomic operation in the hot path for the handle_tick action, whereas our new design requires no atomic ops at all. Now that we have a proper synchronous solution, we don't need this not-quite-working-anyway atomic protocol. - - - - - fd599caf by Duncan Coutts at 2026-06-02T15:52:37+01:00 Add TODOs about issue #27250: too much being done from handle_tick The handle_tick should not perform I/O, block, perform long-running operations or call arbitrary user code. Unfortunately, everything to do with the eventlog (at the moment) falls into all those categories. - - - - - 411 changed files: - .gitmodules - + changelog.d/T26979 - + changelog.d/T27105 - + changelog.d/T27202 - + changelog.d/T27261 - + changelog.d/bump-process - changelog.d/dynamic-trace-flags - + changelog.d/elem-via-foldr-27096 - + changelog.d/fix-blackhole-handling - + changelog.d/ghc-api-epa-parens - + changelog.d/ghc-pkg-faster-closure - + changelog.d/hadrian-system-cxx-std-lib-25303 - + changelog.d/ipe-event-class - + changelog.d/jobserver-leak-fix - + changelog.d/lib-add-tuple-tyfam-27179 - + changelog.d/libdir-setting - + changelog.d/module-graph-reuse-in-downsweep - + changelog.d/more-efficient-home-unit-imports-finding - + changelog.d/no-more-timer-signal - + changelog.d/remove-bignum-check-backend - + changelog.d/remove-bignum-ffi-backend - + changelog.d/rts_symlinks.md - + changelog.d/semaphore-v2 - + changelog.d/wasm-fix-serviceworker - + changelog.d/windows-rethrow-overlapped-exception - compiler/GHC/CmmToAsm/AArch64/CodeGen.hs - compiler/GHC/CmmToAsm/BlockLayout.hs - compiler/GHC/CmmToLlvm/Base.hs - compiler/GHC/Core.hs - compiler/GHC/Core/Coercion.hs - compiler/GHC/Core/Coercion/Opt.hs - compiler/GHC/Core/Lint.hs - compiler/GHC/Core/Make.hs - compiler/GHC/Core/Opt/Arity.hs - compiler/GHC/Core/Opt/ConstantFold.hs - compiler/GHC/Core/Opt/FloatIn.hs - compiler/GHC/Core/Opt/FloatOut.hs - compiler/GHC/Core/Opt/Monad.hs - compiler/GHC/Core/Opt/OccurAnal.hs - compiler/GHC/Core/Opt/Simplify/Env.hs - compiler/GHC/Core/Opt/Simplify/Iteration.hs - compiler/GHC/Core/Opt/Simplify/Utils.hs - compiler/GHC/Core/Opt/SpecConstr.hs - compiler/GHC/Core/Opt/Specialise.hs - compiler/GHC/Core/Ppr.hs - compiler/GHC/Core/Rules.hs - compiler/GHC/Core/SimpleOpt.hs - compiler/GHC/Core/TyCo/Subst.hs - compiler/GHC/CoreToStg/Prep.hs - compiler/GHC/Data/List/SetOps.hs - compiler/GHC/Driver/Backpack.hs - compiler/GHC/Driver/Config/Core/Lint.hs - compiler/GHC/Driver/Config/Interpreter.hs - compiler/GHC/Driver/Downsweep.hs - compiler/GHC/Driver/DynFlags.hs - compiler/GHC/Driver/Errors/Ppr.hs - compiler/GHC/Driver/Errors/Types.hs - compiler/GHC/Driver/Flags.hs - compiler/GHC/Driver/Make.hs - compiler/GHC/Driver/MakeAction.hs - compiler/GHC/Driver/MakeSem.hs - compiler/GHC/Driver/Session.hs - compiler/GHC/Driver/Session/Units.hs - compiler/GHC/Hs/Binds.hs - compiler/GHC/Hs/Decls.hs - compiler/GHC/Hs/Dump.hs - compiler/GHC/Hs/Expr.hs - compiler/GHC/Hs/Pat.hs - compiler/GHC/Hs/Type.hs - compiler/GHC/HsToCore/Errors/Ppr.hs - compiler/GHC/HsToCore/Errors/Types.hs - compiler/GHC/HsToCore/Foreign/JavaScript.hs - compiler/GHC/HsToCore/Pmc/Solver.hs - compiler/GHC/HsToCore/Quote.hs - compiler/GHC/HsToCore/Usage.hs - compiler/GHC/Iface/Binary.hs - compiler/GHC/Iface/Ext/Ast.hs - compiler/GHC/IfaceToCore.hs - compiler/GHC/Linker/Unit.hs - compiler/GHC/Parser.y - compiler/GHC/Parser/Annotation.hs - compiler/GHC/Parser/Errors/Ppr.hs - compiler/GHC/Parser/Errors/Types.hs - compiler/GHC/Parser/Lexer.x - compiler/GHC/Parser/PostProcess.hs - compiler/GHC/Parser/Types.hs - compiler/GHC/Rename/HsType.hs - compiler/GHC/Rename/Pat.hs - compiler/GHC/Settings.hs - compiler/GHC/Settings/Constants.hs - compiler/GHC/Settings/IO.hs - compiler/GHC/Stg/Pipeline.hs - compiler/GHC/StgToJS/Ids.hs - compiler/GHC/SysTools/Cpp.hs - compiler/GHC/Tc/Gen/App.hs - compiler/GHC/Tc/Gen/Bind.hs - compiler/GHC/Tc/Gen/HsType.hs - compiler/GHC/Tc/Gen/Sig.hs - compiler/GHC/Tc/Types.hs - compiler/GHC/Tc/Types/Evidence.hs - compiler/GHC/Tc/Utils/Monad.hs - compiler/GHC/Tc/Utils/Unify.hs - compiler/GHC/ThToHs.hs - compiler/GHC/Types/Error/Codes.hs - compiler/GHC/Types/Hint.hs - compiler/GHC/Types/Hint/Ppr.hs - compiler/GHC/Types/Id/Make.hs - compiler/GHC/Types/Name/Cache.hs - compiler/GHC/Types/Unique.hs - compiler/GHC/Types/Unique/Supply.hs - compiler/GHC/Unit/Finder.hs - compiler/GHC/Unit/Info.hs - compiler/GHC/Unit/Module/Graph.hs - compiler/GHC/Unit/State.hs - compiler/GHC/Utils/Misc.hs - compiler/Language/Haskell/Syntax/Binds.hs - compiler/Language/Haskell/Syntax/Decls.hs - compiler/Language/Haskell/Syntax/Decls/Foreign.hs - compiler/Language/Haskell/Syntax/Pat.hs - compiler/Language/Haskell/Syntax/Type.hs - configure.ac - distrib/configure.ac.in - docs/users_guide/exts/stolen_syntax.rst - docs/users_guide/exts/template_haskell.rst - docs/users_guide/profiling.rst - docs/users_guide/runtime_control.rst - docs/users_guide/using-warnings.rst - docs/users_guide/using.rst - ghc/GHCi/UI.hs - ghc/Main.hs - hadrian/README.md - hadrian/cfg/default.host.target.in - hadrian/cfg/default.target.in - hadrian/doc/user-settings.md - hadrian/src/Builder.hs - hadrian/src/CommandLine.hs - hadrian/src/Flavour.hs - hadrian/src/Flavour/Type.hs - hadrian/src/Hadrian/Haskell/Cabal/Parse.hs - hadrian/src/Hadrian/Haskell/Cabal/Type.hs - hadrian/src/Hadrian/Utilities.hs - hadrian/src/Main.hs - hadrian/src/Rules/BinaryDist.hs - hadrian/src/Rules/Generate.hs - hadrian/src/Rules/Library.hs - hadrian/src/Rules/Register.hs - hadrian/src/Rules/Rts.hs - hadrian/src/Settings.hs - hadrian/src/Settings/Builders/RunTest.hs - hadrian/src/Settings/Default.hs - hadrian/src/Settings/Packages.hs - libraries/base/changelog.md - libraries/base/src/Control/Exception.hs - libraries/base/src/Control/Monad/IO/Class.hs - libraries/base/src/Data/Data.hs - libraries/base/src/Data/Fixed.hs - libraries/base/src/Data/Functor/Classes.hs - libraries/base/src/Data/Functor/Compose.hs - libraries/base/src/Data/List/NonEmpty.hs - libraries/base/src/Data/Version.hs - libraries/base/src/GHC/Base.hs - libraries/base/src/GHC/ByteOrder.hs - libraries/base/src/GHC/Exts.hs - libraries/base/src/Numeric.hs - libraries/base/src/Prelude.hs - libraries/base/src/System/IO.hs - libraries/base/src/System/Timeout.hs - libraries/base/src/Text/Read.hs - libraries/base/tests/perf/ElemNoFusion_O1.stderr - libraries/base/tests/perf/ElemNoFusion_O2.stderr - libraries/ghc-bignum/ghc-bignum.cabal - + libraries/ghc-boot/GHC/Data/ShortByteString.hs - libraries/ghc-boot/GHC/Settings/Utils.hs - libraries/ghc-boot/ghc-boot.cabal.in - libraries/ghc-experimental/src/Data/Sum/Experimental.hs - libraries/ghc-experimental/src/Data/Tuple/Experimental.hs - libraries/ghc-internal/bignum-backend.rst - libraries/ghc-internal/ghc-internal.cabal.in - libraries/ghc-internal/src/GHC/Internal/Base.hs - libraries/ghc-internal/src/GHC/Internal/Bignum/Backend.hs - − libraries/ghc-internal/src/GHC/Internal/Bignum/Backend/Check.hs - − libraries/ghc-internal/src/GHC/Internal/Bignum/Backend/FFI.hs - libraries/ghc-internal/src/GHC/Internal/Bignum/Backend/Native.hs - − libraries/ghc-internal/src/GHC/Internal/Bignum/Backend/Selected.hs - libraries/ghc-internal/src/GHC/Internal/Event/Windows.hsc - libraries/ghc-internal/src/GHC/Internal/Exts.hs - libraries/ghc-internal/src/GHC/Internal/IO/Encoding.hs - libraries/ghc-internal/src/GHC/Internal/List.hs - libraries/ghc-internal/src/GHC/Internal/RTS/Flags.hsc - − libraries/ghc-internal/src/GHC/Internal/Text/Read.hs - libraries/ghc-internal/src/GHC/Internal/Types.hs - libraries/ghci/GHCi/Coverage.hs - libraries/ghci/GHCi/Run.hs - libraries/process - libraries/semaphore-compat - m4/find_llvm_prog.m4 - m4/fp_setup_windows_toolchain.m4 - m4/ghc_toolchain.m4 - m4/prep_target_file.m4 - rts/.gitignore - rts/Capability.c - rts/IPE.c - rts/Messages.c - rts/RtsFlags.c - rts/RtsStartup.c - rts/Schedule.c - rts/ThreadPaused.c - rts/Threads.c - rts/Ticker.h - rts/Timer.c - rts/Timer.h - rts/Trace.c - rts/Trace.h - rts/Updates.h - rts/include/rts/EventLogWriter.h - rts/include/rts/Flags.h - rts/include/rts/Timer.h - rts/include/rts/storage/ClosureMacros.h - rts/include/stg/SMP.h - rts/posix/Ticker.c - rts/sm/BlockAlloc.c - rts/sm/MBlock.c - rts/win32/Ticker.c - + rts/win32/libHSghc-internal.def.in - testsuite/tests/MiniQuickCheck.hs - testsuite/tests/codeGen/should_compile/T25177.stderr - + testsuite/tests/codeGen/should_gen_asm/aarch64-shl-subword.asm - + testsuite/tests/codeGen/should_gen_asm/aarch64-shl-subword.hs - + testsuite/tests/codeGen/should_gen_asm/aarch64-ushr-subword.asm - + testsuite/tests/codeGen/should_gen_asm/aarch64-ushr-subword.hs - testsuite/tests/codeGen/should_gen_asm/all.T - + testsuite/tests/codeGen/should_run/aarch64-subword-ops.hs - + testsuite/tests/codeGen/should_run/aarch64-subword-ops.stdout - + testsuite/tests/codeGen/should_run/aarch64-ushr-subword-run.hs - + testsuite/tests/codeGen/should_run/aarch64-ushr-subword-run.stdout - testsuite/tests/codeGen/should_run/all.T - + testsuite/tests/concurrent/should_run/T27105.hs - testsuite/tests/concurrent/should_run/all.T - testsuite/tests/deSugar/should_compile/T13208.stdout - testsuite/tests/diagnostic-codes/codes.stdout - testsuite/tests/driver/fat-iface/fat014.stdout - testsuite/tests/ffi/should_run/all.T - testsuite/tests/ghc-api/T25121_status.stdout - + testsuite/tests/ghc-api/T27273.hs - testsuite/tests/ghc-api/all.T - + testsuite/tests/ghc-api/downsweep/IncrementalDownsweep.hs - + testsuite/tests/ghc-api/downsweep/IncrementalDownsweep.modules/A.hs - + testsuite/tests/ghc-api/downsweep/IncrementalDownsweep.modules/B.hs - + testsuite/tests/ghc-api/downsweep/IncrementalDownsweep.modules/C.hs - + testsuite/tests/ghc-api/downsweep/IncrementalDownsweep.modules/D.hs - + testsuite/tests/ghc-api/downsweep/IncrementalDownsweep.modules/X.hs - + testsuite/tests/ghc-api/downsweep/IncrementalDownsweep.modules/Y.hs - + testsuite/tests/ghc-api/downsweep/IncrementalDownsweep.modules/Z.hs - + testsuite/tests/ghc-api/downsweep/IncrementalDownsweep.stdout - testsuite/tests/ghc-api/downsweep/OldModLocation.hs - testsuite/tests/ghc-api/downsweep/PartialDownsweep.hs - testsuite/tests/ghc-api/downsweep/all.T - testsuite/tests/ghc-api/fixed-nodes/InterfaceModuleGraph.hs - + testsuite/tests/ghc-api/settings/LibDir.hs - + testsuite/tests/ghc-api/settings/LibDir.stdout - + testsuite/tests/ghc-api/settings/all.T - + testsuite/tests/ghci/prog-mhu006/Makefile - + testsuite/tests/ghci/prog-mhu006/a/A.hs - + testsuite/tests/ghci/prog-mhu006/all.T - + testsuite/tests/ghci/prog-mhu006/b/B.hs - + testsuite/tests/ghci/prog-mhu006/prog-mhu006a.script - + testsuite/tests/ghci/prog-mhu006/prog-mhu006a.stdout - + testsuite/tests/ghci/prog-mhu006/unitA - + testsuite/tests/ghci/prog-mhu006/unitB - testsuite/tests/ghci/prog003/prog003.script - testsuite/tests/ghci/prog018/prog018.stdout - testsuite/tests/ghci/prog020/Makefile - testsuite/tests/ghci/prog020/all.T - testsuite/tests/ghci/prog020/ghci.prog020.script → testsuite/tests/ghci/prog020/ghci.prog020a.script - testsuite/tests/ghci/prog020/ghci.prog020.stderr → testsuite/tests/ghci/prog020/ghci.prog020a.stderr - testsuite/tests/ghci/prog020/ghci.prog020.stdout → testsuite/tests/ghci/prog020/ghci.prog020a.stdout - + testsuite/tests/ghci/prog020/ghci.prog020b.script - + testsuite/tests/ghci/prog020/ghci.prog020b.stderr - + testsuite/tests/ghci/prog020/ghci.prog020b.stdout - + testsuite/tests/ghci/prog023/Makefile - + testsuite/tests/ghci/prog023/all.T - + testsuite/tests/ghci/prog023/prog023a.script - + testsuite/tests/ghci/prog023/prog023a.stdout - + testsuite/tests/ghci/prog023/prog023b.script - + testsuite/tests/ghci/prog023/prog023b.stdout - + testsuite/tests/ghci/prog023/src/A.hs - + testsuite/tests/ghci/prog024/Makefile - + testsuite/tests/ghci/prog024/all.T - + testsuite/tests/ghci/prog024/prog024a.script - + testsuite/tests/ghci/prog024/prog024a.stdout - + testsuite/tests/ghci/prog024/prog024b.script - + testsuite/tests/ghci/prog024/prog024b.stdout - + testsuite/tests/ghci/prog024/prog024c.script - + testsuite/tests/ghci/prog024/prog024c.stderr - + testsuite/tests/ghci/prog024/prog024c.stdout - + testsuite/tests/ghci/prog024/prog024d.script - + testsuite/tests/ghci/prog024/prog024d.stderr - + testsuite/tests/ghci/prog024/prog024d.stdout - + testsuite/tests/ghci/prog024/prog024e.script - + testsuite/tests/ghci/prog024/prog024e.stdout - + testsuite/tests/ghci/prog024/prog024f.script - + testsuite/tests/ghci/prog024/prog024f.stdout - + testsuite/tests/ghci/prog024/src/A.hs - + testsuite/tests/ghci/prog024/src/B.hs - + testsuite/tests/ghci/prog025/Makefile - + testsuite/tests/ghci/prog025/a/A.hs - + testsuite/tests/ghci/prog025/all.T - + testsuite/tests/ghci/prog025/prog025a.script - + testsuite/tests/ghci/prog025/prog025a.stdout - + testsuite/tests/ghci/prog025/prog025b.script - + testsuite/tests/ghci/prog025/prog025b.stdout - + testsuite/tests/ghci/prog025/testpkg/Test.hs - + testsuite/tests/ghci/prog025/testpkg/testpkg-0.1.0.0.pkg - + testsuite/tests/ghci/prog025/testpkg/testpkg-0.2.0.0.pkg - + testsuite/tests/ghci/prog025/unitA - testsuite/tests/ghci/scripts/ListTuplePunsPprNoAbbrevTuple.stdout - testsuite/tests/ghci/scripts/T13997.stdout - testsuite/tests/ghci/scripts/T1914.stdout - testsuite/tests/ghci/scripts/T20217.stdout - testsuite/tests/ghci/scripts/T8042.stdout - testsuite/tests/ghci/scripts/T8042recomp.stdout - testsuite/tests/ghci/scripts/all.T - testsuite/tests/ghci/should_run/T10920.stderr - + testsuite/tests/interface-stability/.gitignore - testsuite/tests/interface-stability/README.mkd - testsuite/tests/interface-stability/base-exports.stdout - testsuite/tests/interface-stability/base-exports.stdout-javascript-unknown-ghcjs - testsuite/tests/interface-stability/base-exports.stdout-mingw32 - + testsuite/tests/interface-stability/download-base-exports.sh - testsuite/tests/interface-stability/ghc-experimental-exports.stdout - testsuite/tests/interface-stability/ghc-experimental-exports.stdout-mingw32 - testsuite/tests/interface-stability/ghc-prim-exports.stdout - testsuite/tests/interface-stability/ghc-prim-exports.stdout-mingw32 - testsuite/tests/linters/notes.stdout - testsuite/tests/numeric/should_compile/T15547.stderr - testsuite/tests/numeric/should_compile/T20347.stderr - testsuite/tests/numeric/should_compile/T20374.stderr - testsuite/tests/numeric/should_compile/T20376.stderr - testsuite/tests/numeric/should_run/foundation.hs - testsuite/tests/parser/should_compile/DumpParsedAst.stderr - testsuite/tests/parser/should_compile/DumpRenamedAst.stderr - testsuite/tests/parser/should_compile/KindSigs.stderr - testsuite/tests/parser/should_compile/ListTuplePunsSuccess1.hs - testsuite/tests/parser/should_compile/T20452.stderr - testsuite/tests/parser/should_compile/all.T - + testsuite/tests/parser/should_fail/ListTuplePunsFail6.hs - + testsuite/tests/parser/should_fail/ListTuplePunsFail6.stderr - testsuite/tests/parser/should_fail/all.T - testsuite/tests/parser/should_run/ListTuplePunsConstraints.hs - testsuite/tests/perf/compiler/Makefile - + testsuite/tests/perf/compiler/T26989.hs - + testsuite/tests/perf/compiler/T26989a.hs - testsuite/tests/perf/compiler/all.T - testsuite/tests/perf/compiler/genMultiComp.py - + testsuite/tests/perf/should_run/T11226.hs - + testsuite/tests/perf/should_run/T11226.stdout - testsuite/tests/perf/should_run/all.T - testsuite/tests/printer/Makefile - testsuite/tests/printer/PprModifiers.hs - + testsuite/tests/printer/PprQualifiedStrings.hs - testsuite/tests/printer/T18052a.stderr - + testsuite/tests/printer/Test27291.hs - testsuite/tests/printer/all.T - testsuite/tests/profiling/should_run/callstack001.stdout - + testsuite/tests/rts/T25275/DebugIpe.hs - + testsuite/tests/rts/T25275/T25275_A.stdout - + testsuite/tests/rts/T25275/T25275_B.stdout - + testsuite/tests/rts/T25275/T25275_C.stdout - + testsuite/tests/rts/T25275/T25275_D.stdout - + testsuite/tests/rts/T25275/TraceIpe.hs - + testsuite/tests/rts/T25275/all.T - testsuite/tests/simplCore/should_compile/DsSpecPragmas.stderr - testsuite/tests/simplCore/should_compile/RewriteHigherOrderPatterns.stderr - testsuite/tests/simplCore/should_compile/T15205.stderr - testsuite/tests/simplCore/should_compile/T18668.stderr - testsuite/tests/simplCore/should_compile/T19246.stderr - testsuite/tests/simplCore/should_compile/T19599.stderr - testsuite/tests/simplCore/should_compile/T19599a.stderr - testsuite/tests/simplCore/should_compile/T21917.stderr - testsuite/tests/simplCore/should_compile/T23074.stderr - testsuite/tests/simplCore/should_compile/T24359a.stderr - testsuite/tests/simplCore/should_compile/T25160.stderr - testsuite/tests/simplCore/should_compile/T25718c.stderr-ws-32 - testsuite/tests/simplCore/should_compile/T25718c.stderr-ws-64 - testsuite/tests/simplCore/should_compile/T26051.stderr - testsuite/tests/simplCore/should_compile/T26116.stderr - + testsuite/tests/simplCore/should_compile/T27261.hs - + testsuite/tests/simplCore/should_compile/T27261_aux.hs - testsuite/tests/simplCore/should_compile/T8331.stderr - testsuite/tests/simplCore/should_compile/T8848a.stderr - testsuite/tests/simplCore/should_compile/all.T - testsuite/tests/simplCore/should_compile/spec004.stderr - testsuite/tests/th/T24111.stdout - testsuite/tests/typecheck/should_compile/T13032.stderr - + testsuite/tests/typecheck/should_compile/T23135.hs - testsuite/tests/typecheck/should_compile/all.T - testsuite/tests/typecheck/should_compile/subsumption_sort_hole_fits.stderr - testsuite/tests/typecheck/should_fail/T21130.stderr - utils/check-exact/ExactPrint.hs - utils/check-exact/Main.hs - utils/ghc-pkg/Main.hs - utils/ghc-toolchain/exe/Main.hs - utils/ghc-toolchain/src/GHC/Toolchain/Program.hs - utils/ghc-toolchain/src/GHC/Toolchain/Target.hs - utils/haddock/haddock-api/src/Haddock/Backends/LaTeX.hs - utils/haddock/haddock-api/src/Haddock/Backends/Xhtml/Decl.hs - utils/haddock/haddock-api/src/Haddock/Convert.hs - utils/haddock/haddock-api/src/Haddock/Interface/Rename.hs - utils/haddock/haddock-api/src/Haddock/Interface/RenameType.hs - utils/haddock/haddock-api/src/Haddock/Types.hs - utils/jsffi/prelude.mjs The diff was not included because it is too large. View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/f51bed08926666ffbd4639b3deb67e… -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/f51bed08926666ffbd4639b3deb67e… You're receiving this email because of your account on gitlab.haskell.org.
1 0
0 0
[Git][ghc/ghc][ghc-9.12] release 9.12.5: update hadrian bootstrap plans; move to proper file name
by Magnus (@MangoIV) 02 Jun '26

02 Jun '26
Magnus pushed to branch ghc-9.12 at Glasgow Haskell Compiler / GHC Commits: 8bba0d57 by mangoiv at 2026-06-02T14:54:36+02:00 release 9.12.5: update hadrian bootstrap plans; move to proper file name - - - - - 2 changed files: - hadrian/bootstrap/plan-9_10_5.json → hadrian/bootstrap/plan-9_12_5.json - hadrian/bootstrap/plan-bootstrap-9_10_5.json → hadrian/bootstrap/plan-bootstrap-9_12_5.json Changes: ===================================== hadrian/bootstrap/plan-9_10_5.json → hadrian/bootstrap/plan-9_12_5.json ===================================== ===================================== hadrian/bootstrap/plan-bootstrap-9_10_5.json → hadrian/bootstrap/plan-bootstrap-9_12_5.json ===================================== View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8bba0d57c52055793ea048741ca3b34… -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8bba0d57c52055793ea048741ca3b34… You're receiving this email because of your account on gitlab.haskell.org.
1 0
0 0
[Git][ghc/ghc][ghc-9.12] release 9.12.5: update hadrian bootstrap plans
by Magnus (@MangoIV) 02 Jun '26

02 Jun '26
Magnus pushed to branch ghc-9.12 at Glasgow Haskell Compiler / GHC Commits: 7ed997de by mangoiv at 2026-06-02T14:26:03+02:00 release 9.12.5: update hadrian bootstrap plans - - - - - 2 changed files: - + hadrian/bootstrap/plan-9_10_5.json - + hadrian/bootstrap/plan-bootstrap-9_10_5.json Changes: ===================================== hadrian/bootstrap/plan-9_10_5.json ===================================== @@ -0,0 +1,905 @@ +{ + "arch": "x86_64", + "cabal-lib-version": "3.16.1.0", + "cabal-version": "3.16.1.0", + "compiler-abi": "inplace", + "compiler-id": "ghc-9.12.4", + "install-plan": [ + { + "depends": [ + "Cabal-syntax-3.14.2.0-inplace", + "array-0.5.8.0-inplace", + "base-4.21.2.0-inplace", + "bytestring-0.12.2.0-inplace", + "containers-0.7-inplace", + "deepseq-1.5.1.0-inplace", + "directory-1.3.10.1-inplace", + "filepath-1.5.5.0-inplace", + "mtl-2.3.2-inplace", + "parsec-3.1.18.0-inplace", + "pretty-1.1.3.6-inplace", + "process-1.6.29.0-inplace", + "time-1.14-inplace", + "transformers-0.6.3.0-inplace", + "unix-2.8.8.0-inplace" + ], + "id": "Cabal-3.14.2.0-inplace", + "pkg-name": "Cabal", + "pkg-version": "3.14.2.0", + "type": "pre-existing" + }, + { + "depends": [ + "array-0.5.8.0-inplace", + "base-4.21.2.0-inplace", + "binary-0.8.9.3-inplace", + "bytestring-0.12.2.0-inplace", + "containers-0.7-inplace", + "deepseq-1.5.1.0-inplace", + "directory-1.3.10.1-inplace", + "filepath-1.5.5.0-inplace", + "mtl-2.3.2-inplace", + "parsec-3.1.18.0-inplace", + "pretty-1.1.3.6-inplace", + "text-2.1.4-inplace", + "time-1.14-inplace", + "transformers-0.6.3.0-inplace" + ], + "id": "Cabal-syntax-3.14.2.0-inplace", + "pkg-name": "Cabal-syntax", + "pkg-version": "3.14.2.0", + "type": "pre-existing" + }, + { + "depends": [ + "base-4.21.2.0-inplace" + ], + "id": "array-0.5.8.0-inplace", + "pkg-name": "array", + "pkg-version": "0.5.8.0", + "type": "pre-existing" + }, + { + "depends": [ + "ghc-internal-9.1204.0-inplace", + "ghc-prim-0.13.0-inplace" + ], + "id": "base-4.21.2.0-inplace", + "pkg-name": "base", + "pkg-version": "4.21.2.0", + "type": "pre-existing" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace", + "bytestring-0.12.2.0-inplace" + ], + "exe-depends": [], + "flags": {}, + "id": "base16-bytestring-1.0.2.0-029e6bf896c721d9d1021a15af04f6feac96dde18feb482f94ebd10018b5e39b", + "pkg-cabal-sha256": "a694e88f9ec9fc79f0b03f233d3fea592b68f70a34aac2ddb5bcaecb6562e2fd", + "pkg-name": "base16-bytestring", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "1d5a91143ef0e22157536093ec8e59d226a68220ec89378d5dcaeea86472c784", + "pkg-version": "1.0.2.0", + "style": "global", + "type": "configured" + }, + { + "depends": [ + "array-0.5.8.0-inplace", + "base-4.21.2.0-inplace", + "bytestring-0.12.2.0-inplace", + "containers-0.7-inplace" + ], + "id": "binary-0.8.9.3-inplace", + "pkg-name": "binary", + "pkg-version": "0.8.9.3", + "type": "pre-existing" + }, + { + "depends": [ + "base-4.21.2.0-inplace", + "deepseq-1.5.1.0-inplace", + "ghc-prim-0.13.0-inplace", + "template-haskell-2.23.0.0-inplace" + ], + "id": "bytestring-0.12.2.0-inplace", + "pkg-name": "bytestring", + "pkg-version": "0.12.2.0", + "type": "pre-existing" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace" + ], + "exe-depends": [], + "flags": { + "llvm": false + }, + "id": "clock-0.8.4-f226bfe6d6e3f50283c0949cda03f13d20dcafa0ee7734847260154ee87ac460", + "pkg-cabal-sha256": "b938655b00cf204ce69abfff946021bed111d2609a9f7a9c22e28a1a202e9115", + "pkg-name": "clock", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "6ae9898afe788a5e334cd5fad5d18a3c2e8e59fa09aaf7b957dbb38a4767df2e", + "pkg-version": "0.8.4", + "style": "global", + "type": "configured" + }, + { + "depends": [ + "array-0.5.8.0-inplace", + "base-4.21.2.0-inplace", + "deepseq-1.5.1.0-inplace", + "template-haskell-2.23.0.0-inplace" + ], + "id": "containers-0.7-inplace", + "pkg-name": "containers", + "pkg-version": "0.7", + "type": "pre-existing" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace", + "bytestring-0.12.2.0-inplace" + ], + "exe-depends": [], + "flags": { + "exe": false, + "use-cbits": true + }, + "id": "cryptohash-sha256-0.11.102.1-d69d56466297d4d6e5ef30098ea0fb161d4566ba54cd70216b195de5030c0ced", + "pkg-cabal-sha256": "0e9de2ccce261e7a5b027e842f6f47f50eb0e6059a0de98a5479f75aa8164107", + "pkg-name": "cryptohash-sha256", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "73a7dc7163871a80837495039a099967b11f5c4fe70a118277842f7a713c6bf6", + "pkg-version": "0.11.102.1", + "style": "global", + "type": "configured" + }, + { + "depends": [ + "base-4.21.2.0-inplace", + "ghc-prim-0.13.0-inplace" + ], + "id": "deepseq-1.5.1.0-inplace", + "pkg-name": "deepseq", + "pkg-version": "1.5.1.0", + "type": "pre-existing" + }, + { + "depends": [ + "base-4.21.2.0-inplace", + "file-io-0.1.6-inplace", + "filepath-1.5.5.0-inplace", + "os-string-2.0.10-inplace", + "time-1.14-inplace", + "unix-2.8.8.0-inplace" + ], + "id": "directory-1.3.10.1-inplace", + "pkg-name": "directory", + "pkg-version": "1.3.10.1", + "type": "pre-existing" + }, + { + "depends": [ + "base-4.21.2.0-inplace", + "mtl-2.3.2-inplace", + "stm-2.5.3.1-inplace", + "template-haskell-2.23.0.0-inplace", + "transformers-0.6.3.0-inplace" + ], + "id": "exceptions-0.10.12-inplace", + "pkg-name": "exceptions", + "pkg-version": "0.10.12", + "type": "pre-existing" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace", + "clock-0.8.4-f226bfe6d6e3f50283c0949cda03f13d20dcafa0ee7734847260154ee87ac460", + "directory-1.3.10.1-inplace", + "filepath-1.5.5.0-inplace", + "process-1.6.29.0-inplace", + "time-1.14-inplace", + "unix-2.8.8.0-inplace" + ], + "exe-depends": [], + "flags": {}, + "id": "extra-1.8-977907dfa22da03a16664abb7030addd3e2178a6c631ea4aebfacd68b5a30f4a", + "pkg-cabal-sha256": "57d9200fbea2e88e05e0be35925511764827b1c86d3214106b0b610f331fc40c", + "pkg-name": "extra", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "2fa4ce5eae50560bba80f1883913cf2ed52b3d87fd290dae27d838c94f5389a1", + "pkg-version": "1.8", + "style": "global", + "type": "configured" + }, + { + "depends": [ + "base-4.21.2.0-inplace", + "bytestring-0.12.2.0-inplace", + "deepseq-1.5.1.0-inplace", + "filepath-1.5.5.0-inplace", + "os-string-2.0.10-inplace", + "unix-2.8.8.0-inplace" + ], + "id": "file-io-0.1.6-inplace", + "pkg-name": "file-io", + "pkg-version": "0.1.6", + "type": "pre-existing" + }, + { + "depends": [ + "base-4.21.2.0-inplace", + "bytestring-0.12.2.0-inplace", + "deepseq-1.5.1.0-inplace", + "exceptions-0.10.12-inplace", + "os-string-2.0.10-inplace", + "template-haskell-2.23.0.0-inplace" + ], + "id": "filepath-1.5.5.0-inplace", + "pkg-name": "filepath", + "pkg-version": "1.5.5.0", + "type": "pre-existing" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace", + "directory-1.3.10.1-inplace", + "extra-1.8-977907dfa22da03a16664abb7030addd3e2178a6c631ea4aebfacd68b5a30f4a", + "filepath-1.5.5.0-inplace" + ], + "exe-depends": [], + "flags": {}, + "id": "filepattern-0.1.3-6c5edacccf4aba266d29f7bb4b04b4433afb5789e4038283608ab21b5055b36e", + "pkg-cabal-sha256": "372c1733d83b90045eb29da9f010fed79bfef8771ce65eb126a1d83ecc54a9a2", + "pkg-name": "filepattern", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "cc445d439ea2f65cac7604d3578aa2c3a62e5a91dc989f4ce5b3390db9e59636", + "pkg-version": "0.1.3", + "style": "global", + "type": "configured" + }, + { + "depends": [ + "ghc-prim-0.13.0-inplace" + ], + "id": "ghc-bignum-1.3-inplace", + "pkg-name": "ghc-bignum", + "pkg-version": "1.3", + "type": "pre-existing" + }, + { + "depends": [ + "base-4.21.2.0-inplace", + "ghc-internal-9.1204.0-inplace", + "ghc-prim-0.13.0-inplace", + "pretty-1.1.3.6-inplace" + ], + "id": "ghc-boot-th-9.12.4-inplace", + "pkg-name": "ghc-boot-th", + "pkg-version": "9.12.4", + "type": "pre-existing" + }, + { + "depends": [ + "ghc-bignum-1.3-inplace", + "ghc-prim-0.13.0-inplace", + "rts-1.0.3" + ], + "id": "ghc-internal-9.1204.0-inplace", + "pkg-name": "ghc-internal", + "pkg-version": "9.1204.0", + "type": "pre-existing" + }, + { + "build-info": "/home/mangoiv/Devel/wt/ghc-work/ghc-devops/hadrian/dist-newstyle/build/x86_64-linux/ghc-9.12.4/ghc-platform-0.1.0.0/build-info.json", + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace" + ], + "dist-dir": "/home/mangoiv/Devel/wt/ghc-work/ghc-devops/hadrian/dist-newstyle/build/x86_64-linux/ghc-9.12.4/ghc-platform-0.1.0.0", + "exe-depends": [], + "flags": {}, + "id": "ghc-platform-0.1.0.0-inplace", + "pkg-name": "ghc-platform", + "pkg-src": { + "path": "/home/mangoiv/Devel/wt/ghc-work/ghc-devops/hadrian/../libraries/ghc-platform", + "type": "local" + }, + "pkg-version": "0.1.0.0", + "style": "local", + "type": "configured" + }, + { + "depends": [ + "rts-1.0.3" + ], + "id": "ghc-prim-0.13.0-inplace", + "pkg-name": "ghc-prim", + "pkg-version": "0.13.0", + "type": "pre-existing" + }, + { + "build-info": "/home/mangoiv/Devel/wt/ghc-work/ghc-devops/hadrian/dist-newstyle/build/x86_64-linux/ghc-9.12.4/ghc-toolchain-0.1.0.0/build-info.json", + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace", + "directory-1.3.10.1-inplace", + "filepath-1.5.5.0-inplace", + "ghc-platform-0.1.0.0-inplace", + "process-1.6.29.0-inplace", + "text-2.1.4-inplace", + "transformers-0.6.3.0-inplace" + ], + "dist-dir": "/home/mangoiv/Devel/wt/ghc-work/ghc-devops/hadrian/dist-newstyle/build/x86_64-linux/ghc-9.12.4/ghc-toolchain-0.1.0.0", + "exe-depends": [], + "flags": {}, + "id": "ghc-toolchain-0.1.0.0-inplace", + "pkg-name": "ghc-toolchain", + "pkg-src": { + "path": "/home/mangoiv/Devel/wt/ghc-work/ghc-devops/hadrian/../utils/ghc-toolchain", + "type": "local" + }, + "pkg-version": "0.1.0.0", + "style": "local", + "type": "configured" + }, + { + "bin-file": "/home/mangoiv/Devel/wt/ghc-work/ghc-devops/hadrian/dist-newstyle/build/x86_64-linux/ghc-9.12.4/hadrian-0.1.0.0/x/hadrian/build/hadrian/hadrian", + "build-info": "/home/mangoiv/Devel/wt/ghc-work/ghc-devops/hadrian/dist-newstyle/build/x86_64-linux/ghc-9.12.4/hadrian-0.1.0.0/x/hadrian/build-info.json", + "component-name": "exe:hadrian", + "depends": [ + "Cabal-3.14.2.0-inplace", + "base-4.21.2.0-inplace", + "base16-bytestring-1.0.2.0-029e6bf896c721d9d1021a15af04f6feac96dde18feb482f94ebd10018b5e39b", + "bytestring-0.12.2.0-inplace", + "containers-0.7-inplace", + "cryptohash-sha256-0.11.102.1-d69d56466297d4d6e5ef30098ea0fb161d4566ba54cd70216b195de5030c0ced", + "directory-1.3.10.1-inplace", + "extra-1.8-977907dfa22da03a16664abb7030addd3e2178a6c631ea4aebfacd68b5a30f4a", + "filepath-1.5.5.0-inplace", + "ghc-platform-0.1.0.0-inplace", + "ghc-toolchain-0.1.0.0-inplace", + "mtl-2.3.2-inplace", + "parsec-3.1.18.0-inplace", + "shake-0.19.8-05edf53af47ca5f0e29c2d9ab0e25780e735c387e3d5ffa68c553ffc1551a68e", + "text-2.1.4-inplace", + "time-1.14-inplace", + "transformers-0.6.3.0-inplace", + "unordered-containers-0.2.20-1479746157f443820685e23af5f829e7ed87fadd58e3e8cbecef7d3329b7be42" + ], + "dist-dir": "/home/mangoiv/Devel/wt/ghc-work/ghc-devops/hadrian/dist-newstyle/build/x86_64-linux/ghc-9.12.4/hadrian-0.1.0.0/x/hadrian", + "exe-depends": [], + "flags": { + "selftest": false, + "threaded": true + }, + "id": "hadrian-0.1.0.0-inplace-hadrian", + "pkg-name": "hadrian", + "pkg-src": { + "path": "/home/mangoiv/Devel/wt/ghc-work/ghc-devops/hadrian/.", + "type": "local" + }, + "pkg-version": "0.1.0.0", + "style": "local", + "type": "configured" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace", + "bytestring-0.12.2.0-inplace", + "containers-0.7-inplace", + "deepseq-1.5.1.0-inplace", + "filepath-1.5.5.0-inplace", + "ghc-bignum-1.3-inplace", + "ghc-prim-0.13.0-inplace", + "os-string-2.0.10-inplace", + "text-2.1.4-inplace" + ], + "exe-depends": [], + "flags": { + "arch-native": false, + "random-initial-seed": false + }, + "id": "hashable-1.5.0.0-aa6230f7ed5b298a0bbcb7b4bfefb3ac5eeda8551501c0cd2cf375ff1f1d8653", + "pkg-cabal-sha256": "2f23146cbe0325029927b221647695a4c7d6e97548ff731110979e34361f58ef", + "pkg-name": "hashable", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "e58b3a8e18da5f6cd7e937e5fd683e500bb1f8276b3768269759119ca0cddb6a", + "pkg-version": "1.5.0.0", + "style": "global", + "type": "configured" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace" + ], + "exe-depends": [], + "flags": {}, + "id": "heaps-0.4.1-c218e6de55d4b76303626c9f791980162dfcc8ea7a71210a11f549f76a525cf4", + "pkg-cabal-sha256": "74ce60a23b8ef247b8bca71eeb38289e82b3b5e83b2383600b2c838a68218068", + "pkg-name": "heaps", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "8763a4663a2d0b3c912400a547d66ae11b46a954403b6747272148e950aa0382", + "pkg-version": "0.4.1", + "style": "global", + "type": "configured" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace" + ], + "exe-depends": [], + "flags": {}, + "id": "js-dgtable-0.5.2-bedc90198c4c6f66d1811817fbda73e9c4a3dc55d7d45124ab34b93b0dbba03f", + "pkg-cabal-sha256": "f75cb4fa53c88c65794becdd48eb0d3b2b8abd89a3d5c19e87af91f5225c15e4", + "pkg-name": "js-dgtable", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "e28dd65bee8083b17210134e22e01c6349dc33c3b7bd17705973cd014e9f20ac", + "pkg-version": "0.5.2", + "style": "global", + "type": "configured" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace" + ], + "exe-depends": [], + "flags": {}, + "id": "js-flot-0.8.3-712bc8b4a7ab937e5909f24838cb5a85e2800d69a1f31252149f6fdec40270bc", + "pkg-cabal-sha256": "4c1c447a9a2fba0adba6d30678302a30c32b9dfde9e7aa9e9156483e1545096d", + "pkg-name": "js-flot", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "1ba2f2a6b8d85da76c41f526c98903cbb107f8642e506c072c1e7e3c20fe5e7a", + "pkg-version": "0.8.3", + "style": "global", + "type": "configured" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace" + ], + "exe-depends": [], + "flags": {}, + "id": "js-jquery-3.3.1-73a3a595ce1fd7f078acdf1dd61dad2929c510aeb9c9246f62c4c25b97cc1e5b", + "pkg-cabal-sha256": "59ab6c79159549ef94b584abce8e6d3b336014c2cce1337b59a8f637e2856df5", + "pkg-name": "js-jquery", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "e0e0681f0da1130ede4e03a051630ea439c458cb97216cdb01771ebdbe44069b", + "pkg-version": "3.3.1", + "style": "global", + "type": "configured" + }, + { + "depends": [ + "base-4.21.2.0-inplace", + "transformers-0.6.3.0-inplace" + ], + "id": "mtl-2.3.2-inplace", + "pkg-name": "mtl", + "pkg-version": "2.3.2", + "type": "pre-existing" + }, + { + "depends": [ + "base-4.21.2.0-inplace", + "bytestring-0.12.2.0-inplace", + "deepseq-1.5.1.0-inplace", + "exceptions-0.10.12-inplace", + "template-haskell-2.23.0.0-inplace" + ], + "id": "os-string-2.0.10-inplace", + "pkg-name": "os-string", + "pkg-version": "2.0.10", + "type": "pre-existing" + }, + { + "depends": [ + "base-4.21.2.0-inplace", + "bytestring-0.12.2.0-inplace", + "mtl-2.3.2-inplace", + "text-2.1.4-inplace" + ], + "id": "parsec-3.1.18.0-inplace", + "pkg-name": "parsec", + "pkg-version": "3.1.18.0", + "type": "pre-existing" + }, + { + "depends": [ + "base-4.21.2.0-inplace", + "deepseq-1.5.1.0-inplace", + "ghc-prim-0.13.0-inplace" + ], + "id": "pretty-1.1.3.6-inplace", + "pkg-name": "pretty", + "pkg-version": "1.1.3.6", + "type": "pre-existing" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace", + "deepseq-1.5.1.0-inplace", + "template-haskell-2.23.0.0-inplace", + "transformers-0.6.3.0-inplace" + ], + "exe-depends": [], + "flags": {}, + "id": "primitive-0.9.0.0-00afb511d4713a0075eea45a4a33da1f8a7364d1c10fe669a94dc332e4c85b0d", + "pkg-cabal-sha256": "de20bf4eff1f972088854c8efda6eaca2d3147aff62232c3707f059152638759", + "pkg-name": "primitive", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "696d4bd291c94d736142d6182117dca4258d3ef28bfefdb649ac8b5ecd0999c7", + "pkg-version": "0.9.0.0", + "style": "global", + "type": "configured" + }, + { + "depends": [ + "base-4.21.2.0-inplace", + "deepseq-1.5.1.0-inplace", + "directory-1.3.10.1-inplace", + "filepath-1.5.5.0-inplace", + "os-string-2.0.10-inplace", + "unix-2.8.8.0-inplace" + ], + "id": "process-1.6.29.0-inplace", + "pkg-name": "process", + "pkg-version": "1.6.29.0", + "type": "pre-existing" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace", + "bytestring-0.12.2.0-inplace", + "deepseq-1.5.1.0-inplace", + "mtl-2.3.2-inplace", + "splitmix-0.1.1-fd0ef8cc3cda46dfde88d2baa94b5ce20ce9daea57642c55112ae54ed2f00e5e", + "transformers-0.6.3.0-inplace" + ], + "exe-depends": [], + "flags": {}, + "id": "random-1.3.0-8b1fa4b98f797c05422943e3093502e37e69e90e47b10ab3eed2af6ca3867ba3", + "pkg-cabal-sha256": "e5b7016e43a8f4822ebcf8cacaaa737beb62d370b988b5c69e95105d9f0fd582", + "pkg-name": "random", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "6b5067e65625d777e31f151f5fcec351091d9de832183ca2a2a864e1cfd4f1b1", + "pkg-version": "1.3.0", + "style": "global", + "type": "configured" + }, + { + "depends": [], + "id": "rts-1.0.3", + "pkg-name": "rts", + "pkg-version": "1.0.3", + "type": "pre-existing" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace", + "binary-0.8.9.3-inplace", + "bytestring-0.12.2.0-inplace", + "deepseq-1.5.1.0-inplace", + "directory-1.3.10.1-inplace", + "extra-1.8-977907dfa22da03a16664abb7030addd3e2178a6c631ea4aebfacd68b5a30f4a", + "filepath-1.5.5.0-inplace", + "filepattern-0.1.3-6c5edacccf4aba266d29f7bb4b04b4433afb5789e4038283608ab21b5055b36e", + "hashable-1.5.0.0-aa6230f7ed5b298a0bbcb7b4bfefb3ac5eeda8551501c0cd2cf375ff1f1d8653", + "heaps-0.4.1-c218e6de55d4b76303626c9f791980162dfcc8ea7a71210a11f549f76a525cf4", + "js-dgtable-0.5.2-bedc90198c4c6f66d1811817fbda73e9c4a3dc55d7d45124ab34b93b0dbba03f", + "js-flot-0.8.3-712bc8b4a7ab937e5909f24838cb5a85e2800d69a1f31252149f6fdec40270bc", + "js-jquery-3.3.1-73a3a595ce1fd7f078acdf1dd61dad2929c510aeb9c9246f62c4c25b97cc1e5b", + "primitive-0.9.0.0-00afb511d4713a0075eea45a4a33da1f8a7364d1c10fe669a94dc332e4c85b0d", + "process-1.6.29.0-inplace", + "random-1.3.0-8b1fa4b98f797c05422943e3093502e37e69e90e47b10ab3eed2af6ca3867ba3", + "time-1.14-inplace", + "transformers-0.6.3.0-inplace", + "unix-2.8.8.0-inplace", + "unordered-containers-0.2.20-1479746157f443820685e23af5f829e7ed87fadd58e3e8cbecef7d3329b7be42", + "utf8-string-1.0.2-8a5669c19af8e64fd07c2c2191c6cee5dd304a99e6beef43b3337dc3c8e42e01" + ], + "exe-depends": [], + "flags": { + "cloud": false, + "embed-files": false, + "portable": false, + "threaded": true + }, + "id": "shake-0.19.8-05edf53af47ca5f0e29c2d9ab0e25780e735c387e3d5ffa68c553ffc1551a68e", + "pkg-cabal-sha256": "03c8f06de478e07ad6fde95984c9206920106d0d8432ecb7ab825ef108d45382", + "pkg-name": "shake", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "6384e33a26a2590bf33719e88881076b899ac4b5340c1c9271e4caa37e9d6535", + "pkg-version": "0.19.8", + "style": "global", + "type": "configured" + }, + { + "bin-file": "/home/mangoiv/.cabal/store/ghc-9.12.4-inplace/shake-0.19.8-e-shake-d8c56bb977b917163397a4e2bb927d692f80e5266903f72e1345fb6e3cf8a462/bin/shake", + "component-name": "exe:shake", + "depends": [ + "base-4.21.2.0-inplace", + "binary-0.8.9.3-inplace", + "bytestring-0.12.2.0-inplace", + "deepseq-1.5.1.0-inplace", + "directory-1.3.10.1-inplace", + "extra-1.8-977907dfa22da03a16664abb7030addd3e2178a6c631ea4aebfacd68b5a30f4a", + "filepath-1.5.5.0-inplace", + "filepattern-0.1.3-6c5edacccf4aba266d29f7bb4b04b4433afb5789e4038283608ab21b5055b36e", + "hashable-1.5.0.0-aa6230f7ed5b298a0bbcb7b4bfefb3ac5eeda8551501c0cd2cf375ff1f1d8653", + "heaps-0.4.1-c218e6de55d4b76303626c9f791980162dfcc8ea7a71210a11f549f76a525cf4", + "js-dgtable-0.5.2-bedc90198c4c6f66d1811817fbda73e9c4a3dc55d7d45124ab34b93b0dbba03f", + "js-flot-0.8.3-712bc8b4a7ab937e5909f24838cb5a85e2800d69a1f31252149f6fdec40270bc", + "js-jquery-3.3.1-73a3a595ce1fd7f078acdf1dd61dad2929c510aeb9c9246f62c4c25b97cc1e5b", + "primitive-0.9.0.0-00afb511d4713a0075eea45a4a33da1f8a7364d1c10fe669a94dc332e4c85b0d", + "process-1.6.29.0-inplace", + "random-1.3.0-8b1fa4b98f797c05422943e3093502e37e69e90e47b10ab3eed2af6ca3867ba3", + "time-1.14-inplace", + "transformers-0.6.3.0-inplace", + "unix-2.8.8.0-inplace", + "unordered-containers-0.2.20-1479746157f443820685e23af5f829e7ed87fadd58e3e8cbecef7d3329b7be42", + "utf8-string-1.0.2-8a5669c19af8e64fd07c2c2191c6cee5dd304a99e6beef43b3337dc3c8e42e01" + ], + "exe-depends": [], + "flags": { + "cloud": false, + "embed-files": false, + "portable": false, + "threaded": true + }, + "id": "shake-0.19.8-e-shake-d8c56bb977b917163397a4e2bb927d692f80e5266903f72e1345fb6e3cf8a462", + "pkg-cabal-sha256": "03c8f06de478e07ad6fde95984c9206920106d0d8432ecb7ab825ef108d45382", + "pkg-name": "shake", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "6384e33a26a2590bf33719e88881076b899ac4b5340c1c9271e4caa37e9d6535", + "pkg-version": "0.19.8", + "style": "global", + "type": "configured" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace", + "deepseq-1.5.1.0-inplace" + ], + "exe-depends": [], + "flags": { + "optimised-mixer": false + }, + "id": "splitmix-0.1.1-fd0ef8cc3cda46dfde88d2baa94b5ce20ce9daea57642c55112ae54ed2f00e5e", + "pkg-cabal-sha256": "8f92088f1c51c8d4569279a07565f8aa6b534a6735615b2295d2961dec8f1783", + "pkg-name": "splitmix", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "d678c41a603a62032cf7e5f8336bb8222c93990e4b59c8b291b7ca26c7eb12c7", + "pkg-version": "0.1.1", + "style": "global", + "type": "configured" + }, + { + "depends": [ + "array-0.5.8.0-inplace", + "base-4.21.2.0-inplace" + ], + "id": "stm-2.5.3.1-inplace", + "pkg-name": "stm", + "pkg-version": "2.5.3.1", + "type": "pre-existing" + }, + { + "depends": [ + "base-4.21.2.0-inplace", + "ghc-boot-th-9.12.4-inplace", + "ghc-internal-9.1204.0-inplace" + ], + "id": "template-haskell-2.23.0.0-inplace", + "pkg-name": "template-haskell", + "pkg-version": "2.23.0.0", + "type": "pre-existing" + }, + { + "depends": [ + "array-0.5.8.0-inplace", + "base-4.21.2.0-inplace", + "binary-0.8.9.3-inplace", + "bytestring-0.12.2.0-inplace", + "deepseq-1.5.1.0-inplace", + "ghc-prim-0.13.0-inplace", + "template-haskell-2.23.0.0-inplace" + ], + "id": "text-2.1.4-inplace", + "pkg-name": "text", + "pkg-version": "2.1.4", + "type": "pre-existing" + }, + { + "depends": [ + "base-4.21.2.0-inplace", + "deepseq-1.5.1.0-inplace", + "template-haskell-2.23.0.0-inplace" + ], + "id": "time-1.14-inplace", + "pkg-name": "time", + "pkg-version": "1.14", + "type": "pre-existing" + }, + { + "depends": [ + "base-4.21.2.0-inplace" + ], + "id": "transformers-0.6.3.0-inplace", + "pkg-name": "transformers", + "pkg-version": "0.6.3.0", + "type": "pre-existing" + }, + { + "depends": [ + "base-4.21.2.0-inplace", + "bytestring-0.12.2.0-inplace", + "filepath-1.5.5.0-inplace", + "os-string-2.0.10-inplace", + "time-1.14-inplace" + ], + "id": "unix-2.8.8.0-inplace", + "pkg-name": "unix", + "pkg-version": "2.8.8.0", + "type": "pre-existing" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace", + "deepseq-1.5.1.0-inplace", + "hashable-1.5.0.0-aa6230f7ed5b298a0bbcb7b4bfefb3ac5eeda8551501c0cd2cf375ff1f1d8653", + "template-haskell-2.23.0.0-inplace" + ], + "exe-depends": [], + "flags": { + "debug": false + }, + "id": "unordered-containers-0.2.20-1479746157f443820685e23af5f829e7ed87fadd58e3e8cbecef7d3329b7be42", + "pkg-cabal-sha256": "233cbcdda6c2698932bb391ce0935fb44f80c115621ee815a21ed33ac8ede422", + "pkg-name": "unordered-containers", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "d9cfb287cf00592d39dc9c3cac8b99627ea08f2c01798e70130fc39f7c90f11d", + "pkg-version": "0.2.20", + "style": "global", + "type": "configured" + }, + { + "component-name": "lib", + "depends": [ + "base-4.21.2.0-inplace", + "bytestring-0.12.2.0-inplace" + ], + "exe-depends": [], + "flags": {}, + "id": "utf8-string-1.0.2-8a5669c19af8e64fd07c2c2191c6cee5dd304a99e6beef43b3337dc3c8e42e01", + "pkg-cabal-sha256": "79416292186feeaf1f60e49ac5a1ffae9bf1b120e040a74bf0e81ca7f1d31d3f", + "pkg-name": "utf8-string", + "pkg-src": { + "repo": { + "type": "secure-repo", + "uri": "https://hackage.haskell.org/" + }, + "type": "repo-tar" + }, + "pkg-src-sha256": "ee48deada7600370728c4156cb002441de770d0121ae33a68139a9ed9c19b09a", + "pkg-version": "1.0.2", + "style": "global", + "type": "configured" + } + ], + "os": "linux" +} ===================================== hadrian/bootstrap/plan-bootstrap-9_10_5.json ===================================== @@ -0,0 +1,328 @@ +{ + "builtin": [ + { + "package": "rts", + "version": "1.0.3" + }, + { + "package": "ghc-prim", + "version": "0.13.0" + }, + { + "package": "ghc-bignum", + "version": "1.3" + }, + { + "package": "ghc-internal", + "version": "9.1204.0" + }, + { + "package": "base", + "version": "4.21.2.0" + }, + { + "package": "array", + "version": "0.5.8.0" + }, + { + "package": "deepseq", + "version": "1.5.1.0" + }, + { + "package": "pretty", + "version": "1.1.3.6" + }, + { + "package": "ghc-boot-th", + "version": "9.12.4" + }, + { + "package": "template-haskell", + "version": "2.23.0.0" + }, + { + "package": "bytestring", + "version": "0.12.2.0" + }, + { + "package": "containers", + "version": "0.7" + }, + { + "package": "binary", + "version": "0.8.9.3" + }, + { + "package": "transformers", + "version": "0.6.3.0" + }, + { + "package": "mtl", + "version": "2.3.2" + }, + { + "package": "stm", + "version": "2.5.3.1" + }, + { + "package": "exceptions", + "version": "0.10.12" + }, + { + "package": "os-string", + "version": "2.0.10" + }, + { + "package": "filepath", + "version": "1.5.5.0" + }, + { + "package": "time", + "version": "1.14" + }, + { + "package": "unix", + "version": "2.8.8.0" + }, + { + "package": "file-io", + "version": "0.1.6" + }, + { + "package": "directory", + "version": "1.3.10.1" + }, + { + "package": "text", + "version": "2.1.4" + }, + { + "package": "parsec", + "version": "3.1.18.0" + }, + { + "package": "Cabal-syntax", + "version": "3.14.2.0" + }, + { + "package": "process", + "version": "1.6.29.0" + }, + { + "package": "Cabal", + "version": "3.14.2.0" + } + ], + "dependencies": [ + { + "cabal_sha256": "a694e88f9ec9fc79f0b03f233d3fea592b68f70a34aac2ddb5bcaecb6562e2fd", + "component": "lib:base16-bytestring", + "flags": [], + "package": "base16-bytestring", + "revision": 1, + "source": "hackage", + "src_sha256": "1d5a91143ef0e22157536093ec8e59d226a68220ec89378d5dcaeea86472c784", + "version": "1.0.2.0" + }, + { + "cabal_sha256": "b938655b00cf204ce69abfff946021bed111d2609a9f7a9c22e28a1a202e9115", + "component": "lib:clock", + "flags": [ + "-llvm" + ], + "package": "clock", + "revision": 0, + "source": "hackage", + "src_sha256": "6ae9898afe788a5e334cd5fad5d18a3c2e8e59fa09aaf7b957dbb38a4767df2e", + "version": "0.8.4" + }, + { + "cabal_sha256": "0e9de2ccce261e7a5b027e842f6f47f50eb0e6059a0de98a5479f75aa8164107", + "component": "lib:cryptohash-sha256", + "flags": [ + "-exe", + "+use-cbits" + ], + "package": "cryptohash-sha256", + "revision": 6, + "source": "hackage", + "src_sha256": "73a7dc7163871a80837495039a099967b11f5c4fe70a118277842f7a713c6bf6", + "version": "0.11.102.1" + }, + { + "cabal_sha256": "57d9200fbea2e88e05e0be35925511764827b1c86d3214106b0b610f331fc40c", + "component": "lib:extra", + "flags": [], + "package": "extra", + "revision": 0, + "source": "hackage", + "src_sha256": "2fa4ce5eae50560bba80f1883913cf2ed52b3d87fd290dae27d838c94f5389a1", + "version": "1.8" + }, + { + "cabal_sha256": "372c1733d83b90045eb29da9f010fed79bfef8771ce65eb126a1d83ecc54a9a2", + "component": "lib:filepattern", + "flags": [], + "package": "filepattern", + "revision": 0, + "source": "hackage", + "src_sha256": "cc445d439ea2f65cac7604d3578aa2c3a62e5a91dc989f4ce5b3390db9e59636", + "version": "0.1.3" + }, + { + "cabal_sha256": null, + "component": "lib:ghc-platform", + "flags": [], + "package": "ghc-platform", + "revision": null, + "source": "local", + "src_sha256": null, + "version": "0.1.0.0" + }, + { + "cabal_sha256": null, + "component": "lib:ghc-toolchain", + "flags": [], + "package": "ghc-toolchain", + "revision": null, + "source": "local", + "src_sha256": null, + "version": "0.1.0.0" + }, + { + "cabal_sha256": "2f23146cbe0325029927b221647695a4c7d6e97548ff731110979e34361f58ef", + "component": "lib:hashable", + "flags": [ + "-arch-native", + "-random-initial-seed" + ], + "package": "hashable", + "revision": 1, + "source": "hackage", + "src_sha256": "e58b3a8e18da5f6cd7e937e5fd683e500bb1f8276b3768269759119ca0cddb6a", + "version": "1.5.0.0" + }, + { + "cabal_sha256": "74ce60a23b8ef247b8bca71eeb38289e82b3b5e83b2383600b2c838a68218068", + "component": "lib:heaps", + "flags": [], + "package": "heaps", + "revision": 0, + "source": "hackage", + "src_sha256": "8763a4663a2d0b3c912400a547d66ae11b46a954403b6747272148e950aa0382", + "version": "0.4.1" + }, + { + "cabal_sha256": "f75cb4fa53c88c65794becdd48eb0d3b2b8abd89a3d5c19e87af91f5225c15e4", + "component": "lib:js-dgtable", + "flags": [], + "package": "js-dgtable", + "revision": 0, + "source": "hackage", + "src_sha256": "e28dd65bee8083b17210134e22e01c6349dc33c3b7bd17705973cd014e9f20ac", + "version": "0.5.2" + }, + { + "cabal_sha256": "4c1c447a9a2fba0adba6d30678302a30c32b9dfde9e7aa9e9156483e1545096d", + "component": "lib:js-flot", + "flags": [], + "package": "js-flot", + "revision": 0, + "source": "hackage", + "src_sha256": "1ba2f2a6b8d85da76c41f526c98903cbb107f8642e506c072c1e7e3c20fe5e7a", + "version": "0.8.3" + }, + { + "cabal_sha256": "59ab6c79159549ef94b584abce8e6d3b336014c2cce1337b59a8f637e2856df5", + "component": "lib:js-jquery", + "flags": [], + "package": "js-jquery", + "revision": 0, + "source": "hackage", + "src_sha256": "e0e0681f0da1130ede4e03a051630ea439c458cb97216cdb01771ebdbe44069b", + "version": "3.3.1" + }, + { + "cabal_sha256": "de20bf4eff1f972088854c8efda6eaca2d3147aff62232c3707f059152638759", + "component": "lib:primitive", + "flags": [], + "package": "primitive", + "revision": 2, + "source": "hackage", + "src_sha256": "696d4bd291c94d736142d6182117dca4258d3ef28bfefdb649ac8b5ecd0999c7", + "version": "0.9.0.0" + }, + { + "cabal_sha256": "8f92088f1c51c8d4569279a07565f8aa6b534a6735615b2295d2961dec8f1783", + "component": "lib:splitmix", + "flags": [ + "-optimised-mixer" + ], + "package": "splitmix", + "revision": 0, + "source": "hackage", + "src_sha256": "d678c41a603a62032cf7e5f8336bb8222c93990e4b59c8b291b7ca26c7eb12c7", + "version": "0.1.1" + }, + { + "cabal_sha256": "e5b7016e43a8f4822ebcf8cacaaa737beb62d370b988b5c69e95105d9f0fd582", + "component": "lib:random", + "flags": [], + "package": "random", + "revision": 0, + "source": "hackage", + "src_sha256": "6b5067e65625d777e31f151f5fcec351091d9de832183ca2a2a864e1cfd4f1b1", + "version": "1.3.0" + }, + { + "cabal_sha256": "233cbcdda6c2698932bb391ce0935fb44f80c115621ee815a21ed33ac8ede422", + "component": "lib:unordered-containers", + "flags": [ + "-debug" + ], + "package": "unordered-containers", + "revision": 4, + "source": "hackage", + "src_sha256": "d9cfb287cf00592d39dc9c3cac8b99627ea08f2c01798e70130fc39f7c90f11d", + "version": "0.2.20" + }, + { + "cabal_sha256": "79416292186feeaf1f60e49ac5a1ffae9bf1b120e040a74bf0e81ca7f1d31d3f", + "component": "lib:utf8-string", + "flags": [], + "package": "utf8-string", + "revision": 0, + "source": "hackage", + "src_sha256": "ee48deada7600370728c4156cb002441de770d0121ae33a68139a9ed9c19b09a", + "version": "1.0.2" + }, + { + "cabal_sha256": "03c8f06de478e07ad6fde95984c9206920106d0d8432ecb7ab825ef108d45382", + "component": "lib:shake", + "flags": [ + "-cloud", + "-embed-files", + "-portable", + "+threaded" + ], + "package": "shake", + "revision": 0, + "source": "hackage", + "src_sha256": "6384e33a26a2590bf33719e88881076b899ac4b5340c1c9271e4caa37e9d6535", + "version": "0.19.8" + }, + { + "cabal_sha256": null, + "component": "exe:hadrian", + "flags": [ + "-selftest", + "+threaded" + ], + "package": "hadrian", + "revision": null, + "source": "local", + "src_sha256": null, + "version": "0.1.0.0" + } + ] +} View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7ed997deb71a9d20986bd5e0ef7a3f6… -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7ed997deb71a9d20986bd5e0ef7a3f6… You're receiving this email because of your account on gitlab.haskell.org.
1 0
0 0
[Git][ghc/ghc][wip/sjakobi/T25450-march-native] Add mrs field to march-native changelog entry
by Simon Jakobi (@sjakobi2) 02 Jun '26

02 Jun '26
Simon Jakobi pushed to branch wip/sjakobi/T25450-march-native at Glasgow Haskell Compiler / GHC Commits: fca6d9dc by Simon Jakobi at 2026-06-02T14:07:23+02:00 Add mrs field to march-native changelog entry The changelog validator requires the mrs field. This change is part of MR !16126. Co-Authored-By: Claude Opus 4.7 <noreply(a)anthropic.com> - - - - - 1 changed file: - changelog.d/march-native Changes: ===================================== changelog.d/march-native ===================================== @@ -1,6 +1,7 @@ section: compiler synopsis: Add -march=native flag issues: #25450 +mrs: !16126 description: GHC now supports ``-march=native`` on x86 and x86_64. It probes the CPU of the View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/fca6d9dca2dc4164f14209d43138ce0… -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/fca6d9dca2dc4164f14209d43138ce0… You're receiving this email because of your account on gitlab.haskell.org.
1 0
0 0
[Git][ghc/ghc][wip/sjakobi/T25450-march-native] 2 commits: Mark -march=native as expected-undocumented for the flag linter
by Simon Jakobi (@sjakobi2) 02 Jun '26

02 Jun '26
Simon Jakobi pushed to branch wip/sjakobi/T25450-march-native at Glasgow Haskell Compiler / GHC Commits: a0369c82 by Simon Jakobi at 2026-06-02T13:59:36+02:00 Mark -march=native as expected-undocumented for the flag linter --show-options emits the full token "-march=native", but compare-flags.py strips documented flags at "=", so the ghc-flag directive reduces to "-march" and never matches. List the full token here, consistent with other value-variant flags such as -rtsopts=all and -fdiagnostics-color=always. Issue reported in #27321. Co-Authored-By: Claude Opus 4.7 <noreply(a)anthropic.com> - - - - - d4cf9ff9 by Simon Jakobi at 2026-06-02T14:03:20+02:00 Remove redundant Data.Bits import in CpuFeatures testBit is already in scope via GHC.Prelude, which re-exports all of Data.Bits. The explicit import tripped -Werror=unused-imports. Co-Authored-By: Claude Opus 4.7 <noreply(a)anthropic.com> - - - - - 2 changed files: - compiler/GHC/Driver/CpuFeatures.hs - docs/users_guide/expected-undocumented-flags.txt Changes: ===================================== compiler/GHC/Driver/CpuFeatures.hs ===================================== @@ -7,7 +7,6 @@ module GHC.Driver.CpuFeatures import GHC.Prelude -import Data.Bits (testBit) import Data.Word (Word64) import System.IO.Unsafe (unsafePerformIO) ===================================== docs/users_guide/expected-undocumented-flags.txt ===================================== @@ -75,6 +75,7 @@ -instantiated-with -keep-hi-file -keep-o-file +-march=native -n -no-keep-hi-file -no-keep-o-file View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/ab044331be6b319ed609fa0023eb38… -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/ab044331be6b319ed609fa0023eb38… You're receiving this email because of your account on gitlab.haskell.org.
1 0
0 0
[Git][ghc/ghc][wip/davide/hadrian_avoid_response_files_2] 9 commits: Hadrian: create a ghc-internal .def file per ghc-internal dll
by David Eichmann (@DavidEichmann) 02 Jun '26

02 Jun '26
David Eichmann pushed to branch wip/davide/hadrian_avoid_response_files_2 at Glasgow Haskell Compiler / GHC Commits: d603477f by David Eichmann at 2026-05-29T13:17:12-04:00 Hadrian: create a ghc-internal .def file per ghc-internal dll The .def file generated from rts/win32/libHSghc-internal.def.in contains the name of the ghc-internal dll. The correct dll name differs based on if the dll is inplace/final and if using the Dynamic way. Previously, this was not accounted for and inconsistent dlls names where used. That led to failure when loading dlls at runtime in experiments with windows dynamic linking. - - - - - 1fc21753 by Sylvain Henry at 2026-05-29T13:18:14-04:00 ghc-bignum: copy backend interface haddocks to Native backend (#27305) The haddock comments documenting the BigNat backend interface (function contracts, expected MutableWordArray# sizes, return-value semantics, etc.) were attached to the FFI backend module. Copy them to the Native backend so they remain in tree once the FFI backend is removed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply(a)anthropic.com> - - - - - 717059df by Sylvain Henry at 2026-05-29T13:18:14-04:00 ghc-bignum: remove FFI backend (#27305) The FFI backend of ghc-bignum (now part of ghc-internal) had no known users and is easy to recreate by relinking ghc-internal with a custom backend. Remove the backend module, the bignum-ffi cabal flag, and the ffi option from Hadrian's --bignum selector. The backend interface documentation now lives in the Native backend module. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply(a)anthropic.com> - - - - - 4bb3b1d8 by Sylvain Henry at 2026-05-29T13:18:14-04:00 ghc-bignum: remove Check backend (#27305) The Check backend of ghc-bignum (now part of ghc-internal) compared the selected backend's output against the Native backend for validation. It had no known users. Remove the backend module, the bignum-check cabal flag, the bignumCheck Hadrian flavour field, and the check- prefix in Hadrian's --bignum selector. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply(a)anthropic.com> - - - - - 6b3044a0 by David Eichmann at 2026-05-30T11:58:48-04:00 Add code comments to allocator code - - - - - f4e04210 by Matthew Pickering at 2026-05-30T11:59:34-04:00 hadrian: Refactor system-cxx-std-lib rules I noticed a few things wrong with the hadrian rules for `system-cxx-std-lib` rules. * For `text` there is an ad-hoc check to depend on `system-cxx-std-lib` outside of `configurePackage`. * The `system-cxx-std-lib` dependency is not read from cabal files. * Recache is not called on the packge database after the `.conf` file is generated, a more natural place for this rule is `registerRules`. Treating this uniformly like other packages is complicated by it not having any source code or a cabal file. However we can do a bit better by reporting the dependency firstly in `PackageData` and then needing the `.conf` file in the same place as every other package in `configurePackage`. This commit increases the `shakeVersion`, to provide backwards compatibility to previous builds with different PackageData. Fixes #25303 Co-authored-by: Sven Tennie <sven.tennie(a)gmail.com> - - - - - 576987d0 by Simon Jakobi at 2026-06-02T04:53:36-04:00 compiler: use nubOrd from containers Address #27103 by replacing GHC.Utils.Misc.ordNub[On] with Data.Containers.ListUtils.nubOrd[On]. Note that nubOrd suffers from a small inefficiency, a fix for which will be included in the next containers release: https://github.com/haskell/containers/issues/1202 - - - - - deea53c3 by David Eichmann at 2026-06-02T04:54:22-04:00 Hadrian: disable response files for GHC/Haddock builders on non-Windows This makes debugging build errors easier on non-windows hosts. See issue #27230 - - - - - 4f08ab89 by David Eichmann at 2026-06-02T12:30:01+01:00 Hadrian: avoid response files when command line is short enough This replaces the logic of always using response files on Windows. With the new condition based on command line lenght, reponse files can be avoided in many more cases (on windows). - - - - - 42 changed files: - + changelog.d/hadrian-system-cxx-std-lib-25303 - + changelog.d/remove-bignum-check-backend - + changelog.d/remove-bignum-ffi-backend - compiler/GHC/CmmToAsm/BlockLayout.hs - compiler/GHC/Driver/Backpack.hs - compiler/GHC/Driver/Session/Units.hs - compiler/GHC/HsToCore/Usage.hs - compiler/GHC/Linker/Unit.hs - compiler/GHC/Rename/Pat.hs - compiler/GHC/Unit/Info.hs - compiler/GHC/Unit/State.hs - compiler/GHC/Utils/Misc.hs - ghc/GHCi/UI.hs - hadrian/README.md - hadrian/doc/user-settings.md - hadrian/src/Builder.hs - hadrian/src/CommandLine.hs - hadrian/src/Flavour/Type.hs - hadrian/src/Hadrian/Builder/Ar.hs - hadrian/src/Hadrian/Haskell/Cabal/Parse.hs - hadrian/src/Hadrian/Haskell/Cabal/Type.hs - hadrian/src/Hadrian/Utilities.hs - hadrian/src/Main.hs - hadrian/src/Rules/Generate.hs - hadrian/src/Rules/Library.hs - hadrian/src/Rules/Register.hs - hadrian/src/Rules/Rts.hs - hadrian/src/Settings.hs - hadrian/src/Settings/Builders/RunTest.hs - hadrian/src/Settings/Default.hs - hadrian/src/Settings/Packages.hs - libraries/ghc-bignum/ghc-bignum.cabal - libraries/ghc-internal/bignum-backend.rst - libraries/ghc-internal/ghc-internal.cabal.in - libraries/ghc-internal/src/GHC/Internal/Bignum/Backend.hs - − libraries/ghc-internal/src/GHC/Internal/Bignum/Backend/Check.hs - − libraries/ghc-internal/src/GHC/Internal/Bignum/Backend/FFI.hs - libraries/ghc-internal/src/GHC/Internal/Bignum/Backend/Native.hs - − libraries/ghc-internal/src/GHC/Internal/Bignum/Backend/Selected.hs - rts/sm/BlockAlloc.c - rts/sm/MBlock.c - rts/win32/libHSghc-internal.def.in The diff was not included because it is too large. View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/aea1d1d8d26c101990eb1af1f36ae2… -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/aea1d1d8d26c101990eb1af1f36ae2… You're receiving this email because of your account on gitlab.haskell.org.
1 0
0 0
[Git][ghc/ghc][wip/davide/hadrian_avoid_response_files_2] Hadrian: avoid response files when command line is short enough
by David Eichmann (@DavidEichmann) 02 Jun '26

02 Jun '26
David Eichmann pushed to branch wip/davide/hadrian_avoid_response_files_2 at Glasgow Haskell Compiler / GHC Commits: aea1d1d8 by David Eichmann at 2026-06-02T12:27:26+01:00 Hadrian: avoid response files when command line is short enough This replaces the logic of always using response files on Windows. With the new condition based on command line lenght, reponse files can be avoided in many more cases (on windows). - - - - - 3 changed files: - hadrian/src/Builder.hs - hadrian/src/Hadrian/Builder/Ar.hs - hadrian/src/Hadrian/Utilities.hs Changes: ===================================== hadrian/src/Builder.hs ===================================== @@ -304,7 +304,7 @@ instance H.Builder Builder where case builder of Ar Pack stg -> do useTempFile <- arSupportsAtFile stg - if useTempFile then runAr path buildArgs buildInputs buildOptions + if useTempFile then runAr output path buildArgs buildInputs buildOptions else runArWithoutTempFile path buildArgs buildInputs buildOptions Ar Unpack _ -> cmd' [Cwd output] [path] buildArgs buildOptions @@ -343,7 +343,7 @@ instance H.Builder Builder where Exit _ <- cmd' [path] (buildArgs ++ [input]) buildOptions return () - Haddock BuildPackage -> runHaddock path buildArgs buildInputs + Haddock BuildPackage -> runHaddock output path buildArgs buildInputs Ghc _ _ -> -- Use a response file for ghc invocations to avoid issues with command line @@ -351,9 +351,11 @@ instance H.Builder Builder where -- NB: we can't put the buildArgs in a response file, because some flags require -- empty arguments (such as the -dep-suffix flag), but that isn't supported -- yet due to #26560. - withResponseFileOnWindows - (\buildInputs' -> cmd [path] buildArgs buildInputs' buildOptions) + withResponseFileIfLongCmd + output + (toCmdArgument path <> toCmdArgument buildArgs) buildInputs + (toCmdArgument buildOptions) HsCpp -> captureStdout @@ -389,13 +391,16 @@ instance H.Builder Builder where -- | Invoke @haddock@ given a path to it and a list of arguments. On Windows, -- the input file arguments are passed as a response file. -runHaddock :: FilePath -- ^ path to @haddock@ +runHaddock :: FilePath -- ^ output file path + -> FilePath -- ^ path to @haddock@ -> [String] -> [FilePath] -- ^ input file paths -> Action () -runHaddock haddockPath flagArgs fileInputs = withResponseFileOnWindows - (cmd [haddockPath] flagArgs) +runHaddock outputFilePath haddockPath flagArgs fileInputs = withResponseFileIfLongCmd + outputFilePath + (toCmdArgument haddockPath <> toCmdArgument flagArgs) fileInputs + (CmdArgument []) -- TODO: Some builders are required only on certain platforms. For example, -- 'Objdump' is only required on OpenBSD and AIX. Add support for platform ===================================== hadrian/src/Hadrian/Builder/Ar.hs ===================================== @@ -35,12 +35,13 @@ instance NFData ArMode -- to be archived is passed via a temporary response file. Passing arguments -- via a response file is not supported by some versions of @ar@, in which -- case you should use 'runArWithoutTempFile' instead. -runAr :: FilePath -- ^ path to @ar@ +runAr :: FilePath -- ^ Output file path + -> FilePath -- ^ path to @ar@ -> [String] -- ^ other arguments -> [FilePath] -- ^ input file paths -> [CmdOption] -- ^ Additional options -> Action () -runAr arPath flagArgs fileArgs buildOptions = withResponseFile $ \tmp -> do +runAr outputFile arPath flagArgs fileArgs buildOptions = withResponseFile outputFile $ \tmp -> do writeFile' tmp $ unwords fileArgs cmd [arPath] flagArgs ('@' : tmp) buildOptions ===================================== hadrian/src/Hadrian/Utilities.hs ===================================== @@ -1,4 +1,6 @@ +{-# LANGUAGE ImpredicativeTypes #-} {-# LANGUAGE TypeFamilies #-} + module Hadrian.Utilities ( -- * List manipulation fromSingleton, replaceEq, minusOrd, intersectOrd, lookupAll, chunksOfSize, @@ -14,7 +16,7 @@ module Hadrian.Utilities ( -- * Paths BuildRoot (..), buildRoot, buildRootRules, isGeneratedSource, - KeepResponseFiles (..), keepResponseFiles, withResponseFile, withResponseFileOnWindows, + KeepResponseFiles (..), keepResponseFiles, withResponseFile, withResponseFileIfLongCmd, -- * File system operations copyFile, copyFileUntracked, createFileLink, fixFile, @@ -50,7 +52,6 @@ import Development.Shake.Classes import Development.Shake.FilePath import GHC.ResponseFile (escapeArgs) import System.Environment (lookupEnv) -import System.Info.Extra (isWindows) import System.IO (hClose, openTempFile) import System.IO.Error (isPermissionError) @@ -61,6 +62,7 @@ import qualified System.Directory.Extra as IO import qualified System.Info.Extra as IO import qualified System.IO as IO import qualified System.FilePath.Posix as Posix +import Development.Shake.Command (CmdArgument (..), IsCmdArgument (toCmdArgument)) -- | Extract a value from a singleton list, or terminate with an error message -- if the list does not contain exactly one value. @@ -330,26 +332,33 @@ keepResponseFiles = do KeepResponseFiles keep <- userSetting (KeepResponseFiles False) return keep --- | Run an action either with command arguments direcly or by, on Windows, --- placing those arguments into a response file escaped with @GHC.ResponseFile.escapeArgs@. +-- | Run an command with the given arguments. If the command is too long then the +-- response file arguments are placed into a response file and escaped with @GHC.ResponseFile.escapeArgs@. -- -- With @--keep-response-files@, the file is left on disk (if used) -withResponseFileOnWindows :: - ([String] -> Action a) -- ^ Action to perform given arguments (of the form @["\@reponseFilePath"]@ on Windows) - -> [String] -- ^ Command arguments - -> Action a -withResponseFileOnWindows action commandArgs = do - if isWindows - then withResponseFile $ \tmp -> do - writeFile' tmp (escapeArgs commandArgs) - action ['@' : tmp] - else action commandArgs +withResponseFileIfLongCmd :: (CmdResult c) => + FilePath -- ^ Output file path. The response file is kept next to this with extension .rsp. + -> CmdArgument -- ^ Command and arguments before the response file arguments. + -> [String] -- ^ Response file aruguments. + -> CmdArgument -- ^ Command arguments after the response file arguments. + -> Action c +withResponseFileIfLongCmd outputFile argsPre argsResp argsPost = do + let cmdLineLengh = sum + [ length arg + | let CmdArgument args = argsPre <> toCmdArgument argsResp <> argsPost + , Right arg <- args + ] + if cmdLineLengh >= cmdLineLengthLimit + then withResponseFile outputFile $ \tmp -> do + writeFile' tmp (escapeArgs argsResp) + cmd argsPre ('@' : tmp) argsPost + else cmd argsPre argsResp argsPost -- | Run an action with a response file path. -- -- With @--keep-response-files@, the file is left on disk. -withResponseFile :: (FilePath -> Action a) -> Action a -withResponseFile action = do +withResponseFile :: FilePath -> (FilePath -> Action a) -> Action a +withResponseFile outputFile action = do keep <- keepResponseFiles let putVerboseResponseFile tmp = do verbosity <- getVerbosity @@ -358,7 +367,9 @@ withResponseFile action = do putVerbose (tmp <> " (use hadrian flag --keep-response-files to keep this file):\n" <> tmpContent) if keep then do - (tmp, h) <- liftIO $ openTempFile "." "hadrian-rsp" + let dir = takeDirectory outputFile + file = takeFileName outputFile <.> "rsp" + (tmp, h) <- liftIO $ openTempFile dir file liftIO $ hClose h putInfo $ "Keeping response file: " ++ tmp result <- action tmp View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/aea1d1d8d26c101990eb1af1f36ae22… -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/aea1d1d8d26c101990eb1af1f36ae22… You're receiving this email because of your account on gitlab.haskell.org.
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • ...
  • 844
  • Older →

HyperKitty Powered by HyperKitty version 1.3.9.