[Bug 295431] CURRENT compiler miscompiles lang/mit-scheme
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 May 2026 19:24:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295431
--- Comment #9 from Dimitry Andric <dim@FreeBSD.org> ---
(In reply to Dimitry Andric from comment #8)
> Do you mean that the "mov %rcx, 0" goes away, or also that the whole port then builds?
Never mind, I built llvm main with:
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -4589,7 +4589,7 @@ void SelectionDAGBuilder::visitGetElementPtr(const User
&I) {
// offset, also interpreted as an unsigned number, does not wrap the
// pointer index type (add nuw).
SDNodeFlags AddFlags;
- AddFlags.setNoUnsignedWrap(NW.hasNoUnsignedWrap());
+ //AddFlags.setNoUnsignedWrap(NW.hasNoUnsignedWrap());
AddFlags.setInBounds(NW.isInBounds());
N = DAG.getMemBasePlusOffset(N, IdxN, dl, AddFlags);
and the lang/mit-scheme build no longer segfaults. (I still get the 'Generating
SCode for file: "blowfish.scm" => "blowfish.bin"... aborted' error though,
wonder what's up with that.)
--
You are receiving this mail because:
You are the assignee for the bug.