Comment out deeply suspicious (and unused) function insertStableSymbol
authorsimonpj@microsoft.com <unknown>
Tue, 7 Nov 2006 17:13:36 +0000 (17:13 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 7 Nov 2006 17:13:36 +0000 (17:13 +0000)
commit6ef2fc2ebf11755a54386f8e317d83cb19913be1
treee57aa149463a07c234abdf0740059054d5e3a61e
parent604121dfc02eaf2ba60d018bbc7f4c7b3e0698dd
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.
compiler/ghci/ObjLink.lhs
compiler/stgSyn/CoreToStg.lhs