-#! /usr/local/bin/perl
+#! /usr/bin/perl
# a simple wrapper to test a .s-file mangler
# reads stdin, writes stdout
-$which = $ARGV[0]; shift; # nice error checking, Will
+push(@INC,"/net/dazdak/BUILDS/gransim-4.04/i386-unknown-linux/ghc/driver");
-require("ghc-asm-$which.prl") || die "require mangler failed!\n";
+$TargetPlatform = $ARGV[0]; shift; # nice error checking, Will
+
+require("ghc-asm.prl") || die "require mangler failed!\n";
$SpX86Mangling = 1;
-$StolenX86Regs = 5;
+$StolenX86Regs = 4;
open(INP, "> /tmp/mangle1.$$") || die "Can't open tmp file 1\n";
while (<>) {