[Git][ghc/ghc][wip/marge_bot_batch_merge_job] 10 commits: RTS: static check to disallow nested Begin/EndPrivate.h
Marge Bot pushed to branch wip/marge_bot_batch_merge_job at Glasgow Haskell Compiler / GHC Commits: 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> - - - - - 244 changed files: - + changelog.d/28105 - + changelog.d/T28082 - compiler/GHC/CmmToAsm/X86/CodeGen.hs - compiler/GHC/Tc/Instance/FunDeps.hs - compiler/GHC/Tc/Solver/FunDeps.hs - rts/ARMOutlineAtomicsSymbols.h - rts/Adjustor.h - rts/AllocArray.h - rts/Arena.h - − rts/BeginPrivate.h - rts/BuiltinClosures.h - rts/Capability.h - rts/CheckUnload.h - rts/CheckVectorSupport.h - rts/CloneStack.h - rts/ClosureTable.h - rts/Continuation.h - − rts/EndPrivate.h - rts/ForeignExports.h - rts/GetEnv.h - rts/GetTime.h - rts/Globals.c - rts/Hash.h - rts/Hpc.c - rts/IOManager.h - rts/IOManagerInternals.h - rts/IPE.h - rts/Interpreter.c - rts/Interpreter.h - rts/Libdw.h - rts/LibdwPool.h - rts/Linker.c - rts/LinkerInternals.h - rts/Messages.h - rts/PathUtils.h - rts/Pool.h - rts/Printer.c - rts/Printer.h - rts/ProfHeap.c - rts/ProfHeap.h - rts/ProfHeapInternal.h - rts/ProfilerReport.h - rts/ProfilerReportJson.h - rts/Profiling.h - rts/Proftimer.c - rts/Proftimer.h - rts/RaiseAsync.h - rts/ReportMemoryMap.h - rts/RetainerProfile.h - rts/RetainerSet.h - rts/RtsAPI.c - rts/RtsFlags.c - rts/RtsFlags.h - rts/RtsMessages.c - rts/RtsSignals.h - rts/RtsSymbolInfo.h - rts/RtsSymbols.c - rts/RtsSymbols.h - rts/RtsUtils.h - rts/SMPClosureOps.h - rts/STM.c - rts/STM.h - rts/Schedule.c - rts/Schedule.h - rts/Sparks.h - rts/StableName.h - rts/StablePtr.h - rts/StaticPtrTable.h - rts/Stats.c - rts/Stats.h - rts/StgPrimFloat.h - rts/Task.c - rts/Task.h - rts/ThreadLabels.h - rts/ThreadPaused.h - rts/Threads.h - rts/Ticker.h - rts/Ticky.c - rts/Ticky.h - rts/TimeoutQueue.c - rts/TimeoutQueue.h - rts/Timer.h - rts/TopHandler.h - rts/Trace.h - rts/TraverseHeap.c - rts/TraverseHeap.h - rts/TraverseHeapTest.c - rts/Updates.h - rts/WSDeque.h - rts/Weak.h - rts/adjustor/AdjustorPool.h - rts/adjustor/NativeAmd64.c - rts/eventlog/EventLog.c - rts/eventlog/EventLog.h - rts/gen_event_types.py - rts/hooks/Hooks.h - rts/include/HsFFI.h - rts/include/Rts.h - rts/include/RtsAPI.h - + rts/include/RtsPublic.h - rts/include/Stg.h - rts/include/rts/Adjustor.h - rts/include/rts/BlockSignals.h - rts/include/rts/EventLogWriter.h - rts/include/rts/ExecPage.h - rts/include/rts/FileLock.h - rts/include/rts/Flags.h - rts/include/rts/ForeignExports.h - rts/include/rts/GetTime.h - rts/include/rts/Globals.h - rts/include/rts/Hpc.h - rts/include/rts/IOInterface.h - rts/include/rts/IPE.h - rts/include/rts/Libdw.h - rts/include/rts/LibdwPool.h - rts/include/rts/Linker.h - rts/include/rts/Main.h - rts/include/rts/Messages.h - rts/include/rts/NonMoving.h - rts/include/rts/OSThreads.h - rts/include/rts/Parallel.h - rts/include/rts/PrimFloat.h - rts/include/rts/Profiling.h - rts/include/rts/RtsSymbols.h - rts/include/rts/RtsToHsIface.h - rts/include/rts/SpinLock.h - rts/include/rts/StableName.h - rts/include/rts/StablePtr.h - rts/include/rts/StaticPtrTable.h - rts/include/rts/TTY.h - rts/include/rts/Threads.h - rts/include/rts/Ticky.h - rts/include/rts/Time.h - rts/include/rts/Timer.h - rts/include/rts/Utils.h - rts/include/rts/prof/CCS.h - rts/include/rts/prof/Heap.h - rts/include/rts/storage/Block.h - rts/include/rts/storage/ClosureMacros.h - rts/include/rts/storage/GC.h - rts/include/rts/storage/Heap.h - rts/include/rts/storage/HeapAlloc.h - rts/include/rts/storage/InfoTables.h - rts/include/rts/storage/MBlock.h - rts/include/rts/storage/TSO.h - rts/include/stg/MiscClosures.h - rts/include/stg/Prim.h - rts/include/stg/Regs.h - rts/include/stg/SMP.h - rts/include/stg/Ticky.h - rts/linker/CacheFlush.h - rts/linker/Elf.h - rts/linker/InitFini.h - rts/linker/LoadNativeObjPosix.h - rts/linker/M32Alloc.c - rts/linker/M32Alloc.h - rts/linker/MMap.h - rts/linker/MachO.h - rts/linker/PEi386.h - rts/linker/ProddableBlocks.h - rts/linker/SymbolExtras.h - rts/linker/elf_got.h - rts/linker/elf_plt.h - rts/linker/elf_plt_aarch64.c - rts/linker/elf_plt_aarch64.h - rts/linker/elf_plt_riscv64.c - rts/linker/elf_plt_riscv64.h - rts/linker/elf_reloc.h - rts/linker/elf_reloc_aarch64.c - rts/linker/elf_reloc_aarch64.h - rts/linker/elf_reloc_riscv64.c - rts/linker/elf_reloc_riscv64.h - rts/linker/elf_util.h - rts/linker/macho/plt.h - rts/linker/macho/plt_aarch64.c - rts/linker/macho/plt_aarch64.h - rts/posix/FdWakeup.h - rts/posix/MIO.h - rts/posix/Poll.h - rts/posix/Select.h - rts/posix/SelectBis.h - rts/posix/Signals.c - rts/posix/Signals.h - rts/posix/Timeout.h - rts/rts.cabal - rts/sm/BlockAlloc.c - rts/sm/BlockAlloc.h - rts/sm/CNF.h - rts/sm/Compact.h - rts/sm/Evac.h - rts/sm/GC.h - rts/sm/GCTDecl.h - rts/sm/GCThread.h - rts/sm/GCUtils.h - rts/sm/MBlock.c - rts/sm/MarkStack.h - rts/sm/MarkWeak.h - rts/sm/NonMoving.c - rts/sm/NonMoving.h - rts/sm/NonMovingAllocate.h - rts/sm/NonMovingCensus.h - rts/sm/NonMovingMark.h - rts/sm/NonMovingScav.h - rts/sm/NonMovingShortcut.h - rts/sm/NonMovingSweep.h - rts/sm/OSMem.h - rts/sm/Sanity.c - rts/sm/Sanity.h - rts/sm/Scav.h - rts/sm/ShouldCompact.h - rts/sm/Storage.c - rts/sm/Storage.h - rts/wasm/JSFFI.c - rts/wasm/JSFFIGlobals.c - rts/wasm/StgRun.c - rts/win32/AsyncMIO.h - rts/win32/AsyncWinIO.h - rts/win32/AwaitEvent.h - rts/win32/ConsoleHandler.h - rts/win32/MIOManager.h - rts/win32/ThrIOManager.h - rts/win32/WorkQueue.h - rts/win32/veh_excn.h - testsuite/driver/testutil.py - + testsuite/tests/codeGen/should_compile/T28105.cmm - + testsuite/tests/codeGen/should_compile/T28105b.hs - testsuite/tests/codeGen/should_compile/all.T - testsuite/tests/concurrent/should_run/all.T - testsuite/tests/ghci/linking/dyn/A.c - testsuite/tests/ghci/linking/dyn/B.c - testsuite/tests/ghci/prog-mhu005/Makefile - testsuite/tests/ghci/prog-mhu006/Makefile - testsuite/tests/ghci/prog-mhu007/Makefile - testsuite/tests/ghci/prog020/Makefile - testsuite/tests/ghci/prog022/Makefile - testsuite/tests/ghci/prog025/Makefile - + testsuite/tests/indexed-types/should_compile/T28082.hs - testsuite/tests/indexed-types/should_compile/all.T - testsuite/tests/linters/regex-linters/check-rts-includes.py - testsuite/tests/rts/T12771/foo_dll.c - testsuite/tests/rts/T13082/foo_dll.c - testsuite/tests/rts/T14611/foo_dll.c - testsuite/tests/rts/all.T - utils/fs/fs.h The diff was not included because it is too large. View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/629428949ecbe5fbbfc3c6d3451d411... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/629428949ecbe5fbbfc3c6d3451d411... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help
participants (1)
-
Marge Bot (@marge-bot)