patch applied (ghc): Comment out deeply suspicious (and unused)
function insertStableSymbol
Simon Peyton Jones
simonpj at microsoft.com
Tue Nov 7 12:15:38 EST 2006
Tue Nov 7 09:13:36 PST 2006 simonpj at microsoft.com
* Comment out deeply suspicious (and unused) function insertStableSymbol
The function insertStableSymbol looks utterly wrong, because it
coerces a value of type 'a' to an Addr#! That was in turn making the
code generator get confused (now improved), but since insertStableSymbol
isn't used at all, I'm just commenting it out.
Meanwhile, this patch also enhances CoreToStg to report the most egregious
cases where an unsafe coerce is going to confuse the code generator.
M ./compiler/ghci/ObjLink.lhs -3 +7
M ./compiler/stgSyn/CoreToStg.lhs +15
More information about the Cvs-ghc
mailing list