[project @ 2002-03-02 18:02:30 by sof]
authorsof <unknown>
Sat, 2 Mar 2002 18:02:31 +0000 (18:02 +0000)
committersof <unknown>
Sat, 2 Mar 2002 18:02:31 +0000 (18:02 +0000)
commita249439bdc7e5c7cbee9f761d15b52011742a8f9
treec551e9d770b459c9361504c1a82b50824910f2af
parent0b7c9ee4d319f10c3b166d7064bb125f6f8add12
[project @ 2002-03-02 18:02:30 by sof]
Urk, code generator assumed reversed info tables
in its implementation of dataToTag# - broke a
compiler built unregisterised rather weirdly
(and only, none of the code in testsuite/ nor
nofib/ showed up this bug.)

This commit assumes that unregisterised==
info_tables_not_next_to_code & calls upon
a trusty old PrimOps.h macro to locate the tag
in the info table (the reasons for doing it
this way is explained in AbsCUtils.lhs
comments).

To help the poor sod who has to debug a break
like this sometime in the future, I'm trying to
come up with a repro case smaller than
ghc/compiler/ -- not yet successful.

Anyway, this concludes the fixes to the
unregisterised bits; I hereby claim that it
is now working again.
ghc/compiler/absCSyn/AbsCSyn.lhs
ghc/compiler/absCSyn/AbsCUtils.lhs
ghc/compiler/absCSyn/PprAbsC.lhs