[project @ 2004-09-10 14:53:44 by simonmar]
authorsimonmar <unknown>
Fri, 10 Sep 2004 14:53:47 +0000 (14:53 +0000)
committersimonmar <unknown>
Fri, 10 Sep 2004 14:53:47 +0000 (14:53 +0000)
commit6458c2c59780ea01a79f3c31b9b2545a0241606d
treed2583d13e6e58c4871f83522b422e85368e390d6
parent1b9841866c2b49484a3af10ab2d8f5bb6d68ab84
[project @ 2004-09-10 14:53:44 by simonmar]
Fix problem that shows up when building stage2 on Windows: slots of a
vector table that can never happen are normally filled with the
RtsShouldNeverHappen label, which currently prints as "0".  On systems
with leading underscores on labels, such as Windows, this turns into
"_0" which is reported as an undefined symbol.

Having a label print as "0" is a real hack, so the solution is to do
it properly.  This commit does just that.
ghc/compiler/cmm/CmmParse.y
ghc/compiler/codeGen/CgCon.lhs
ghc/compiler/codeGen/CgInfoTbls.hs
ghc/compiler/codeGen/CgMonad.lhs