FIX #2047: Windows (and older Unixes): align info tables to 4 bytes, not 2
authorSimon Marlow <simonmar@microsoft.com>
Tue, 5 Feb 2008 10:14:25 +0000 (10:14 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 5 Feb 2008 10:14:25 +0000 (10:14 +0000)
commit07f4b8136574357e0d8d50496b535de5c9735dc5
tree0930356fee3707b60f597b9d7d24c2511cde08fc
parentdb54c49c5bbff861e1b8172b7d5477ce99223cae
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.
driver/mangler/ghc-asm.lprl