[Git][ghc/ghc][ghc-9.10] 9 commits: GHCi: Support local Prelude

Andreas Klebinger (@AndreasK) gitlab at gitlab.haskell.org
Mon Dec 23 12:43:29 UTC 2024



Andreas Klebinger pushed to branch ghc-9.10 at Glasgow Haskell Compiler / GHC


Commits:
6c1bf036 by Max Ulidtko at 2024-12-20T13:28:23+01:00
GHCi: Support local Prelude

Fixes #10920, an issue where GHCi bails out when started alongside a
file named Prelude.hs or Prelude.lhs (even empty file suffices).

The in-source Note [GHCi and local Preludes] documents core reasoning.

Supplementary changes:

 * add debug traces for module lookups under -ddump-if-trace;
 * drop stale comment in GHC.Iface.Load;
 * reduce noise in -v3 traces from GHC.Utils.TmpFs;
 * new test, which also exercizes HomeModError.

(cherry picked from commit 977b6b64e184795f3f12ac5b2637707f0696457c)

- - - - -
03727a8e by Cheng Shao at 2024-12-20T13:30:00+01:00
compiler: emit NaturallyAligned when element type & index type are the same width

This commit fixes a subtle mistake in alignmentFromTypes that used to
generate Unaligned when element type & index type are the same width.
Fixes #24930.

(cherry picked from commit 0cff083abb24701530974872b21cf897c9955a9a)

- - - - -
487c8c8d by qqwy at 2024-12-20T13:32:00+01:00
Replace '?callStack' implicit param with HasCallStack in GHC.Internal.Exception.throw

(cherry picked from commit edfe6140be64f0d9365f7e954d3db534d63bb04f)

- - - - -
33ee13b5 by Cheng Shao at 2024-12-20T13:32:54+01:00
rts: use page sized mblocks on wasm

This patch changes mblock size to page size on wasm. It allows us to
simplify our wasi-libc fork, makes it much easier to test third party
libc allocators like emmalloc/mimalloc, as well as experimenting with
threaded RTS in wasm.

(cherry picked from commit 558353f4e22643b94b9710a45c3364c518d57b46)

- - - - -
71115f23 by Simon Peyton Jones at 2024-12-20T13:40:27+01:00
Localise a case-binder in SpecConstr.mkSeqs

This small change fixes #24944

See (SCF1) in Note [SpecConstr and strict fields]

(cherry picked from commit 246bc3a43a57b7c9ea907bd9ef15b7ef7c490681)

- - - - -
e417441e by Andreas Klebinger at 2024-12-20T13:43:40+01:00
Expand the `inline` rule to look through casts/ticks.

Fixes #24808

(cherry picked from commit a593f28426ca508a72b49d0112ef934ce9f453fd)

- - - - -
113e76d3 by Simon Peyton Jones at 2024-12-20T13:51:19+01:00
Fix a float-out error

Ticket #24768 showed that the Simplifier was accidentally destroying
a join point.  It turned out to be that we were sending a bottoming
join point to the top, accidentally abstracting over /other/ join
points.

Easily fixed.

(cherry picked from commit 03c5dfbf52969504ca3473cb2eb7b3f7cf96d4b3)

- - - - -
d39bdab8 by Peter Trommler at 2024-12-20T13:58:28+01:00
PPC NCG: Fix sign hints in C calls

Sign hints for parameters are in the second component of the pair.

Fixes #23034

(cherry picked from commit 7fe85b1354a13749f14d588e3cc742b8ae2d8da9)

- - - - -
a92613c2 by Andreas Klebinger at 2024-12-20T16:00:28+01:00
More 9.10.2 Changelog notes.

- - - - -


30 changed files:

- compiler/GHC.hs
- compiler/GHC/CmmToAsm/PPC/CodeGen.hs
- compiler/GHC/Core/Opt/ConstantFold.hs
- compiler/GHC/Core/Opt/SetLevels.hs
- compiler/GHC/Core/Opt/SpecConstr.hs
- compiler/GHC/Iface/Env.hs
- compiler/GHC/Iface/Load.hs
- compiler/GHC/StgToCmm/Prim.hs
- compiler/GHC/Utils/TmpFs.hs
- docs/users_guide/9.10.2-notes.rst
- ghc/GHCi/UI.hs
- + libraries/ghc-compact/tests/T18757.stdout-wasm32-unknown-wasi
- libraries/ghc-internal/src/GHC/Internal/Exception.hs
- rts/include/rts/Constants.h
- rts/sm/NonMoving.h
- rts/wasm/OSMem.c
- + testsuite/tests/codeGen/should_run/T23034.h
- + testsuite/tests/codeGen/should_run/T23034.hs
- + testsuite/tests/codeGen/should_run/T23034.stdout
- + testsuite/tests/codeGen/should_run/T23034_c.c
- testsuite/tests/codeGen/should_run/all.T
- testsuite/tests/diagnostic-codes/codes.stdout
- + testsuite/tests/ghci/should_run/LocalPrelude/Prelude.hs
- + testsuite/tests/ghci/should_run/T10920.hs
- + testsuite/tests/ghci/should_run/T10920.script
- + testsuite/tests/ghci/should_run/T10920.stderr
- + testsuite/tests/ghci/should_run/T10920.stdout
- testsuite/tests/ghci/should_run/all.T
- testsuite/tests/interface-stability/base-exports.stdout
- testsuite/tests/interface-stability/base-exports.stdout-javascript-unknown-ghcjs


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/1a7a0500b165a5f746691a37df1329c421b08b19...a92613c21bc0d728d87fb48eb0a3f9bff20e04f5

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/1a7a0500b165a5f746691a37df1329c421b08b19...a92613c21bc0d728d87fb48eb0a3f9bff20e04f5
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/20241223/74b23c77/attachment.html>


More information about the ghc-commits mailing list