patch applied (ghc-6.8/ghc): FIX #2047: Windows (and older Unixes):
align info tables to 4 bytes, not 2
Ian Lynagh
igloo at earth.li
Thu Feb 7 23:24:50 EST 2008
Tue Feb 5 02:14:25 PST 2008 Simon Marlow <simonmar at microsoft.com>
* FIX #2047: Windows (and older Unixes): align info tables to 4 bytes, not 2
Perhaps in the past '.align 2' meant align to 4 bytes, but nowadays it
means align to 2 bytes. The compacting collector requires info tables
to be aligned to 4 bytes, because it stores tag bits in the low 2
bits.
This only affects -fvia-C - the native code generator was already
emitting the correct alignment. The incorrect alignment might well
have been adversely affecting performance with -fvia-C on Windows.
M ./driver/mangler/ghc-asm.lprl -7 +7
More information about the Cvs-ghc
mailing list