<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>



<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<h3>
Ben Gamari pushed to branch wip/backports-9.0
at <a href="https://gitlab.haskell.org/ghc/ghc">Glasgow Haskell Compiler / GHC</a>
</h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/824332c47098bcf5031050e1c2807686f3fbf214">824332c4</a></strong>
<div>
<span>by Andreas Klebinger</span>
<i>at 2020-11-30T18:56:35-05:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">WinIO: Small changes related to atomic request swaps.

Move the atomix exchange over the Ptr type to an internal module.

Fix a bug caused by us passing ptr-to-ptr instead of ptr to
atomic exchange.

Renamed interlockedExchange to exchangePtr.

I've also added an cas primitive. It turned out we don't need it
for WinIO but I'm leaving it in as it's useful for other things.

(cherry picked from commit 401a64b80fb210fa1b403afe5b28d16f961f21bc)
</pre>
</li>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/7cb92decf49c8b76092f5dc33a885e6b300a9b7e">7cb92dec</a></strong>
<div>
<span>by Krzysztof Gogolewski</span>
<i>at 2020-11-30T18:56:35-05:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">Force argument in setIdMult (#18925)

(cherry picked from commit 5506f1342e51bad71a7525ddad0650d1ac63afeb)
</pre>
</li>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/77a239ecea7307a38740378f90417a83e0f1e809">77a239ec</a></strong>
<div>
<span>by Moritz Angermann</span>
<i>at 2020-11-30T18:56:35-05:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">AArch64/arm64 adjustments

This addes the necessary logic to support aarch64 on elf, as well
as aarch64 on mach-o, which Apple calls arm64.

We change architecture name to AArch64, which is the official arm
naming scheme.

(cherry picked from commit 8887102fc4ed8ed1089c1aafd19bab424ad706f3)
</pre>
</li>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/7da4e5882e9f3f91201d7eda02c44883e1e89435">7da4e588</a></strong>
<div>
<span>by Krzysztof Gogolewski</span>
<i>at 2020-11-30T18:56:35-05:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">Export indexError from GHC.Ix (#18579)

(cherry picked from commit 165352a2d163537afb01a835bccc7cd0a667410a)
</pre>
</li>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/4b83b6a8f8ac08e81b6e75c47f133e3ed6bdea95">4b83b6a8</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2020-11-30T18:56:35-05:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">rts/linker: Align bssSize to page size when mapping symbol extras

We place symbol_extras right after bss. We also need
to ensure that symbol_extras can be mprotect'd independently from the
rest of the image. To ensure this we round up the size of bss to a page
boundary, thus ensuring that symbol_extras is also page-aligned.

(cherry picked from commit 9f40cf6ca9fb24dbc55f7eae43e2b89aa12bf251)
</pre>
</li>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/e0d7563a5ec5d6f0d9c9b12806df46b0e56c821e">e0d7563a</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2020-11-30T18:56:35-05:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">testsuite: Add testcase for #18733

(cherry picked from commit 787e93ae141ae0f33bc36895494d48a2a5e49e08)
</pre>
</li>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/3d59089bed6b48b71d68b4d0ec6d3e0c477732b3">3d59089b</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2020-11-30T18:56:35-05:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">compiler: Fix recompilation checking

In ticket #18733 we noticed a rather serious deficiency in the current
fingerprinting logic for recursive groups. I have described the old
fingerprinting story and its problems in Note [Fingerprinting recursive
groups] and have reworked the story accordingly to avoid these issues.

Fixes #18733.

(cherry picked from commit 5353fd500b1e92636cd9d45274585fd88a915ff6)
</pre>
</li>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/eaa632ba10744dfda39190c3a9374458d60aabe9">eaa632ba</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2020-11-30T18:56:35-05:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">rts: Allocate MBlocks with MAP_TOP_DOWN on Windows

As noted in #18991, we would previously allocate heap in low memory.
Due to this the linker, which typically *needs* low memory, would end up
competing with the heap. In longer builds we end up running out of
low memory entirely, leading to linking failures.

(cherry picked from commit a1a75aa9be2c133dd1372a08eeb6a92c31688df7)
</pre>
</li>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/0bba65169d7f13788d7f7b834ade5203eb3f093e">0bba6516</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2020-11-30T18:56:35-05:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">gitlab-ci: Run LLVM job on appropriately-labelled MRs

Namely, those marked with the ~"LLVM backend" label

(cherry picked from commit 7c03cc5010999d0f0f9dfc549984023b3a1f2c8d)
</pre>
</li>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/be408b86c9125dedd2f83e9701ea9f2e499c8dd4">be408b86</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2020-11-30T18:56:35-05:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">rts/linker: Ensure that .rodata is aligned to 16 bytes

Pulled out of !4310.
</pre>
</li>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/3a09acdc0d8a3e34ad417211a3169f3ffec5a595">3a09acdc</a></strong>
<div>
<span>by Ömer Sinan Ağacan</span>
<i>at 2020-11-30T18:56:35-05:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">Fix and enable object unloading in GHCi

Fixes #16525 by tracking dependencies between object file symbols and
marking symbol liveness during garbage collection

See Note [Object unloading] in CheckUnload.c for details.

(cherry picked from commit c34a4b98b1f09ea3096d39a839a86f2d7185c796)
</pre>
</li>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/01f5126b05828df10ba56c22b074def956d6e3f5">01f5126b</a></strong>
<div>
<span>by Ray Shih</span>
<i>at 2020-11-30T18:56:35-05:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">Add loadNativeObj and unloadNativeObj

(This change is originally written by niteria)

This adds two functions:
* `loadNativeObj`
* `unloadNativeObj`
and implements them for Linux.

They are useful if you want to load a shared object with Haskell code
using the system linker and have GHC call dlclose() after the
code is no longer referenced from the heap.

Using the system linker allows you to load the shared object
above outside the low-mem region. It also loads the DWARF sections
in a way that `perf` understands.

`dl_iterate_phdr` is what makes this implementation Linux specific.

(cherry picked from commit 2782487f5f6ad9df4dc8725226a47f07fec77f9f)
</pre>
</li>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/a1a0ec3389543667884788649c228300b96f6f48">a1a0ec33</a></strong>
<div>
<span>by GHC GitLab CI</span>
<i>at 2020-11-30T18:56:35-05:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">rts: Introduce highMemDynamic

(cherry picked from commit 7a65f9e140906087273ce95f062775f18f6a708d)
</pre>
</li>
<li>
<strong><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/cae06fc404b8be27bf0bab2b51e4343b23b896e9">cae06fc4</a></strong>
<div>
<span>by GHC GitLab CI</span>
<i>at 2020-11-30T18:56:35-05:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">Introduce test for dynamic library unloading

This uses the highMemDynamic flag introduced earlier to verify that
dynamic objects are properly unloaded.

(cherry picked from commit e9e1b2e75de17be47ab887a26943f5517a8463ac)
</pre>
</li>
</ul>
<h4>30 changed files:</h4>
<ul>
<li class="file-stats">
<a href="#587d266bb27a4dc3022bbed44dfa19849df3044c">
.gitlab-ci.yml
</a>
</li>
<li class="file-stats">
<a href="#9ab3868b23ed5d5a6e12ef902049902556fa4009">
aclocal.m4
</a>
</li>
<li class="file-stats">
<a href="#10b61652f9817945bb54ccf8fc40f8a664ca3c30">
compiler/GHC/CmmToAsm.hs
</a>
</li>
<li class="file-stats">
<a href="#70e6dda2b94c6f8cdd584c1b68c5af73bb1f64e3">
compiler/GHC/CmmToAsm/Reg/Graph/TrivColorable.hs
</a>
</li>
<li class="file-stats">
<a href="#83a3b2df5c77503c3a8c6df05a7654333d30cac3">
compiler/GHC/CmmToAsm/Reg/Linear.hs
</a>
</li>
<li class="file-stats">
<a href="#3225e35c655b58843bc349bd56680268cdf059ed">
compiler/GHC/CmmToAsm/Reg/Linear/FreeRegs.hs
</a>
</li>
<li class="file-stats">
<a href="#d521a7e9ecba2e084a32cf4aa6c27fa59efbab32">
compiler/GHC/CmmToAsm/Reg/Target.hs
</a>
</li>
<li class="file-stats">
<a href="#2bae5947e9412f6deebf4db7dcb89d780913130f">
compiler/GHC/CmmToAsm/X86/CodeGen.hs
</a>
</li>
<li class="file-stats">
<a href="#76664ab267df4fc0bec2465efd78bf0afacfe3a7">
compiler/GHC/CmmToC.hs
</a>
</li>
<li class="file-stats">
<a href="#b8e6af642e56019828828dc679683c04afb81867">
compiler/GHC/Driver/Pipeline.hs
</a>
</li>
<li class="file-stats">
<a href="#774d88050336ef660c7a219fb06c480c2fc639bc">
compiler/GHC/Driver/Session.hs
</a>
</li>
<li class="file-stats">
<a href="#a8e6b17fc507589522323d8dd20d9713e8c06760">
compiler/GHC/Iface/Recomp.hs
</a>
</li>
<li class="file-stats">
<a href="#1adbcc64a2498c9d32013a6d0ba279c97f3bac05">
compiler/GHC/Platform/ARM64.hs

compiler/GHC/Platform/AArch64.hs
</a>
</li>
<li class="file-stats">
<a href="#e3a03c426f641066d2459c6507317b572a19e0f9">
compiler/GHC/Platform/Regs.hs
</a>
</li>
<li class="file-stats">
<a href="#3556223cd3ef45d787321b5290bf33535a361873">
compiler/GHC/Runtime/Linker.hs
</a>
</li>
<li class="file-stats">
<a href="#5dac619989e8509003cf7b463c100f5cc56072a3">
compiler/GHC/Types/Var.hs
</a>
</li>
<li class="file-stats">
<a href="#0f33fd88c617246c7f89c4477d2d1d24f942df23">
compiler/ghc.cabal.in
</a>
</li>
<li class="file-stats">
<a href="#66cdb80eea3a52b51a885f3b1514f5cc3fd8d7d5">
config.sub
</a>
</li>
<li class="file-stats">
<a href="#cea726e2d7b4e04eca93c7e852da5602585a471b">
includes/CodeGen.Platform.hs
</a>
</li>
<li class="file-stats">
<a href="#241971342cd0c394b24e67a781cf7e3d2f01aa72">
includes/rts/Flags.h
</a>
</li>
<li class="file-stats">
<a href="#ae6b27fda1cc1591738c66625518d3472c48163f">
includes/rts/Linker.h
</a>
</li>
<li class="file-stats">
<a href="#94ca41c5afbb3d932bd6f37ee16458322988fb69">
includes/rts/storage/GC.h
</a>
</li>
<li class="file-stats">
<a href="#c23bed179e65cee1485463017184f320e3184b8f">
libraries/base/GHC/Event/Internal.hs
</a>
</li>
<li class="file-stats">
<a href="#a244a38181401b1a8d77645c71b6e87cf6d2a4ba">
libraries/base/GHC/Event/Windows.hsc
</a>
</li>
<li class="file-stats">
<a href="#3fa2c84abf41d4ea2b1b32c3501dc8f8e716e253">
libraries/base/GHC/Ix.hs
</a>
</li>
<li class="file-stats">
<a href="#2d838bb8165073c4e5672387ae3340ad8d483b01">
libraries/base/GHC/Ptr.hs
</a>
</li>
<li class="file-stats">
<a href="#16d4aae095d0e0435922b23d0affed0fbcec1dba">
libraries/ghc-boot/GHC/Platform.hs
</a>
</li>
<li class="file-stats">
<a href="#927e517609328fa6b579b614ef9222a3410724f5">
libraries/ghci/GHCi/InfoTable.hsc
</a>
</li>
<li class="file-stats">
<a href="#3038e2d06a896e58c8bd2f609694dfd16c75d8df">
llvm-targets
</a>
</li>
<li class="file-stats">
<a href="#0b253e92adaa919538e3e14a7e6434f3d71a0a12">
rts/Adjustor.c
</a>
</li>
</ul>
<h5>The diff was not included because it is too large.</h5>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">

<br>
<a href="https://gitlab.haskell.org/ghc/ghc/-/compare/65ea34e932a8b42c94228bebc636730aeac1b32e...cae06fc404b8be27bf0bab2b51e4343b23b896e9">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.haskell.org.
If you'd like to receive fewer emails, you can
adjust your notification settings.



</p>
</div>
</body>
</html>