From 99eae78b79b33464f50ee5a89d1681fbf5f60b42 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Wed, 6 Dec 2006 03:00:09 +0000 Subject: [PATCH] Bug 322806 ARM crash [@ XPTC_InvokeByIndex] patch by apm@dna.fi eabi arm assembly didn't warn that a variable was a memory operand so the newer gcc compilers (e.g. gcc4) started optimizing things away... I tried to get someone to vouch for this code but the people I poked never got back to me. moa=timeless git-svn-id: svn://10.0.0.236/trunk@216536 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp b/mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp index ac4a031de94..34f47843c49 100644 --- a/mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp +++ b/mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp @@ -212,7 +212,7 @@ XPTC_InvokeByIndex(nsISupports* that, PRUint32 methodIndex, "add sp, sp, r4 \n\t" /* restore stack pointer */ "mov %0, r0 \n\t" /* the result... */ : "=r" (result) - : "r" (&my_params) + : "r" (&my_params), "m" (my_params) : "r0", "r1", "r2", "r3", "r4", "ip", "lr", "sp" );