Disable -Wcast-align when building the rts
authorbenl@cse.unsw.edu.au <unknown>
Wed, 3 Feb 2010 02:46:05 +0000 (02:46 +0000)
committerbenl@cse.unsw.edu.au <unknown>
Wed, 3 Feb 2010 02:46:05 +0000 (02:46 +0000)
commit1be45d7baf6fafacd60e345c423c1025d8813111
tree6dede344575f3aad9f27e8cdf869173ecaed96d6
parentb0beadabbe180e3bc729e27a5de79f9f1fc3bd0a
Disable -Wcast-align when building the rts
This flag seems buggy on GCC 4.1.2, which is the only GCC version we
have that can bootstrap the SPARC build. We end up with lots of supurious
warnings of the form "cast increases required alignment of target type".
Some legitimate warnings can be fixed by adding an intermediate cast to
(void*), but we get others in rts/sm/GCUtils.c concerning the gct var
that look innocuous to me. We could enable this again once we deprecate
support for registerised builds on this arch.
rts/ghc.mk