The restore instruction on Sparc apparently has arguments under GCC
3.1, which caused one of the patterns to break in the mangler.
I can now run simple programs compiled with GHC on Sparc using GCC
3.1, so hopefully this fixes it.
MERGE TO STABLE (and the previous one).
# toss the register-windowing save/restore/ret* instructions
# directly:
if ( $TargetPlatform =~ /^sparc-/ ) {
- $c =~ s/^\t(save.*|restore|ret|retl)\n//g;
+ $c =~ s/^\t(save.*|restore.*|ret|retl)\n//g;
# throw away PROLOGUE comments
$c =~ s/^\t!#PROLOGUE# 0\n\t!#PROLOGUE# 1\n//;
}