[Git][ghc/ghc][wip/ghc-9.10] 13 commits: base: Use strerror_r instead of strerror

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Fri Mar 8 20:53:47 UTC 2024



Ben Gamari pushed to branch wip/ghc-9.10 at Glasgow Haskell Compiler / GHC


Commits:
2f7121b9 by Ben Gamari at 2024-03-08T13:56:35-05:00
base: Use strerror_r instead of strerror

As noted by #24344, `strerror` is not necessarily thread-safe.
Thankfully, POSIX.1-2001 has long offered `strerror_r`, which is
safe to use.

Fixes #24344.

CLC discussion: https://github.com/haskell/core-libraries-committee/issues/249

- - - - -
f5898080 by Jade at 2024-03-08T13:56:36-05:00
Error Messages: Improve response for illegal forall and GADT Syntax

forall in a type with -XNoExplicitForAll used to suggest RankNTypes.
In this patch this is changed to the correct ExplicitForAll.

using a where in a data declaration with -XNoGADTSyntax used to suggest GADTs
In this patch this is changed to the correct GADTSyntax.

Fixes: #24448

- - - - -
0d33112f by Jade at 2024-03-08T13:56:37-05:00
Error messages: Improve Error messages for Data constructors in type signatures.

This patch improves the error messages from invalid type signatures by
trying to guess what the user did and suggesting an appropriate fix.

Partially fixes: #17879

- - - - -
f646f65c by Patrick at 2024-03-08T13:56:38-05:00
HieAst: add module name #24493

The main purpose of this is to tuck the module name `xxx` in `module xxx where` into the hieAst.
It should fix #24493.

The following have been done:
1. Renamed and update the `tcg_doc_hdr :: Maybe (LHsDoc GhcRn)` to `tcg_hdr_info :: (Maybe (LHsDoc GhcRn), Maybe (XRec GhcRn ModuleName))`
   To store the located module name information.
2. update the `RenamedSource` and `RenamedStuff` with extra `Maybe (XRec GhcRn ModuleName)` located module name information.
3. add test `testsuite/tests/hiefile/should_compile/T24493.hs` to ensure the module name is added and update several relevent tests.
4. accompanied submodule haddoc test update MR in https://gitlab.haskell.org/ghc/haddock/-/merge_requests/53

- - - - -
0af6b5ea by Ben Gamari at 2024-03-08T13:56:38-05:00
rts: Drop .wasm suffix from .prof file names

This replicates the behavior on Windows, where `Hi.exe` will produce
profiling output named `Hi.prof` instead of `Hi.exe.prof`.

While in the area I also fixed the extension-stripping logic, which
incorrectly rewrote `Hi.exefoo` to `Hi.foo`.

Closes #24515.

- - - - -
33f16f40 by Cheng Shao at 2024-03-08T13:56:38-05:00
testsuite: drop exe extension from .hp & .prof filenames

See #24515 for details.

- - - - -
a7c876e3 by Ben Gamari at 2024-03-08T13:56:39-05:00
rts/linker: Enable GOT support on all platforms

There is nothing platform-dependent about our GOT implementation and
GOT support is needed by `T24171` on i386.

- - - - -
c2c039ae by Ben Gamari at 2024-03-08T15:52:01-05:00
ci-images: Bump Alpine image to bootstrap with 9.8.2

- - - - -
8c456113 by Ben Gamari at 2024-03-08T15:52:01-05:00
testsuite: Mark T24171 as fragile due to #24512

I will fix this but not in time for 9.10.1-alpha1

- - - - -
773c4d58 by Ben Gamari at 2024-03-08T15:52:01-05:00
testsuite: Mark linker_unload_native as fragile

In particular this fails on platforms without `dlinfo`. I plan to
address this but not before 9.10.1-alpha1.

- - - - -
9f2df4c4 by Ben Gamari at 2024-03-08T15:52:01-05:00
configure: Bump version to 9.10

- - - - -
4913e54c by Ben Gamari at 2024-03-08T15:52:01-05:00
Bump transformers submodule to 0.6.1.1

- - - - -
ec4d01fe by Ben Gamari at 2024-03-08T15:52:01-05:00
testsuite: Increase ulimit for T18623

1 MByte was just too tight and failed intermittently on some platforms
(e.g. CentOS 7). Bumping the limit to 8 MByte should provide sufficient
headroom.

Fixes #23139.

- - - - -


30 changed files:

- .gitlab-ci.yml
- compiler/GHC.hs
- compiler/GHC/HsToCore/Docs.hs
- compiler/GHC/Iface/Ext/Ast.hs
- compiler/GHC/Parser/Errors/Ppr.hs
- compiler/GHC/Parser/Errors/Types.hs
- compiler/GHC/Parser/PostProcess.hs
- compiler/GHC/Tc/Module.hs
- compiler/GHC/Tc/Types.hs
- compiler/GHC/Tc/Utils/Backpack.hs
- compiler/GHC/Tc/Utils/Monad.hs
- compiler/GHC/Types/Hint.hs
- compiler/GHC/Types/Hint/Ppr.hs
- configure.ac
- libraries/base/changelog.md
- + libraries/ghc-internal/cbits/strerror.c
- libraries/ghc-internal/configure.ac
- libraries/ghc-internal/ghc-internal.cabal
- libraries/ghc-internal/jsbits/errno.js
- libraries/ghc-internal/src/GHC/Internal/Foreign/C/Error.hs
- libraries/transformers
- rts/ProfHeap.c
- rts/Profiling.c
- rts/RtsUtils.c
- rts/RtsUtils.h
- rts/linker/Elf.c
- testsuite/driver/testlib.py
- testsuite/tests/dependent/should_fail/T16326_Fail7.stderr
- + testsuite/tests/hiefile/should_compile/T24493.hs
- + testsuite/tests/hiefile/should_compile/T24493.stderr


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/ea2615f4d12f8d4fa5a1fe3824ed9a2ee588469f...ec4d01feec804f80aef03f97f75f9095903e65d5

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/ea2615f4d12f8d4fa5a1fe3824ed9a2ee588469f...ec4d01feec804f80aef03f97f75f9095903e65d5
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240308/ef40d7d9/attachment.html>


More information about the ghc-commits mailing list