From c34520dcb02df58b9cb3993ef191c53df0837544 Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 3 Jun 2005 10:20:34 +0000 Subject: [PATCH] [project @ 2005-06-03 10:20:34 by simonmar] Allow calls to __alloca in the prologue on mingw32 (previously only allowed for cygwin32, I guess it hasn't happened for a while). --- ghc/driver/mangler/ghc-asm.lprl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc/driver/mangler/ghc-asm.lprl b/ghc/driver/mangler/ghc-asm.lprl index 493c6e3..007acca 100644 --- a/ghc/driver/mangler/ghc-asm.lprl +++ b/ghc/driver/mangler/ghc-asm.lprl @@ -790,7 +790,7 @@ sub mangle_asm { $p =~ s/^\tmovl\s+\%esi,\s*\d*\(\%esp\)\n//; $p =~ s/^\tmovl\s+\%edi,\s*\d*\(\%esp\)\n//; $p =~ s/^\tsubl\s+\$\d+,\s*\%esp\n//; - $p =~ s/^\tmovl\s+\$\d+,\s*\%eax\n\tcall\s+__alloca\n// if ($TargetPlatform =~ /^.*-cygwin32/); + $p =~ s/^\tmovl\s+\$\d+,\s*\%eax\n\tcall\s+__alloca\n// if ($TargetPlatform =~ /^.*-(cygwin32|mingw32)/); # GCC 3.1 is in the habit of adding spurious writes to the # stack in the prologue. Just to be on the safe side, -- 1.7.10.4