-
e70d0f5e
by David Eichmann at 2026-11-27T19:41:24-05:00
RTS: static check to disallow nested Begin/EndPrivate.h
-
53ad660d
by David Eichmann at 2026-11-27T19:41:24-05:00
RTS: add RTS_PUBLIC macro and protect against use in Begin/EndPrivate.h group
-
46f46bae
by David Eichmann at 2026-11-27T19:41:24-05:00
RTS: tag all exported symbols with RTS_PUBLIC
-
4ec15fb2
by David Eichmann at 2026-11-27T19:41:24-05:00
RTS: Remove Begin/EndPrivate.h
Also remove PrivateIncludeLinter from the testsuite as it is nolonger
needed.
-
60aeb593
by sheaf at 2026-11-27T19:41:40-05:00
Make FunDepEqns a non-empty list
This avoids creating a 'FunDepEqns' with no equations. This means that
consumers dealing with [FunDepEqns] can reliably use "null fun_dep_eqns"
to decide whether there are any equations.
-
63d14d45
by sheaf at 2026-11-27T19:41:40-05:00
tryFamEqFunDeps: (CF1) only for closed tyfams
This commit makes (CF1) in Note [Exploiting closed type families] only
apply to *closed* type families, not *open* type families.
This allows the program reported in #28082 to continue to be accepted,
fixing a regression.
Fixes #28082
-
5f2d2045
by Sylvain Henry at 2026-11-27T19:42:07-05:00
x86-64 NCG: check that address displacements fit in 32 bits (#28105)
Three clauses of getAmode put a constant in the displacement of an
address without a valid check that it fits in a signed 32-bit integer,
so the assembler rejected the module:
- x + ((y << shift) + offset): the guard checked the offset only for
shift 3, because && binds tighter than ||.
- CmmRegOff x offset + (y << shift): no check.
- x - lit: the guard checked lit, but the displacement is -lit, which
does not fit for lit = -2^31.
Each clause now checks the constant that goes in the displacement and
narrows it to the target word width, as litToImm does: the Integer of
a CmmInt can be out of the range of its width, and truncation with the
host Int is wrong for a 64-bit host that compiles for a 32-bit target.
When the constant does not fit, the clause does not match and a later
clause computes it in a register.
See Note [Displacements fit in 32 bits].
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
-
b29c2a11
by David Eichmann at 2026-11-27T19:42:09-05:00
testsuite: fix framework failure on window for tests using all_available_io_managers_except()
-
c3dda971
by David Eichmann at 2026-11-27T19:42:09-05:00
testsuite: use `all_available_io_managers` for various tests
Affected tests:
* T10590
* T21969
* T21969a
* T21969b
* T21969c
* T21969d
* T21969e
* T21969f
-
ea95d108
by Sylvain Henry at 2026-11-27T19:42:14-05:00
testsuite: Do not pass $(WAY_FLAGS) to GHCi in Makefile tests (#28166)
Since 543c108e6a9 the driver sets WAY_FLAGS for Makefile tests. Some
GHCi tests passed $(WAY_FLAGS) to ghc --interactive, where it was empty
before. In the optasm and optllvm ways it now contains -O, and the
byte-code backend ignores -O with a -Winconsistent-flags warning. This
warning made the tests fail.
Pass $(WAY_FLAGS) to the compilation steps only. GHCi reuses the object
files that these steps make with -O, thus the tests stay useful in the
optimised ways.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>