[quake3-bugzilla] [Bug 4051] SIGSEGV when compiling with -march=core2 -O3 on MinGW (bt included)

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Fri May 1 02:47:18 EDT 2009


http://bugzilla.icculus.org/show_bug.cgi?id=4051





--- Comment #6 from Amanieu d'Antras <amanieu at gmail.com>  2009-05-01 02:46:55 EDT ---
See if this fixes your problem:

Index: code/qcommon/vm_x86.c
===================================================================
--- code/qcommon/vm_x86.c
+++ code/qcommon/vm_x86.c
@@ -216,12 +216,17 @@
     "0:\n\t" // system call
     "notl  %eax\n\t"
     "pushl %ecx\n\t"
+    "movl  %esp, %ecx\n\t"
+    "andl  $-16, %esp\n\t"
+    "pushl %ecx\n\t"
     "pushl %edi\n\t" // opStack
     "pushl %esi\n\t" // programStack
     "pushl %eax\n\t" // syscallNum
     "call  " CMANG(CallAsmCall) "\n\t"
     "addl  $12, %esp\n\t"
     "popl  %ecx\n\t"
+    "movl  %ecx, %esp\n\t"
+    "popl  %ecx\n\t"
     "addl  $4, %edi\n\t"
     "ret\n\t"
 #if defined __ELF__

-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list