1e320db38d
the community-driven continuation of the Mozilla Suite, which is no longer maintained by Mozilla.
26 lines
902 B
Text
26 lines
902 B
Text
$NetBSD: patch-cb,v 1.1.1.1 2006/03/30 19:15:51 ghen Exp $
|
|
|
|
--- xpcom/reflect/xptcall/src/md/unix/xptcinvoke_ppc_netbsd.cpp.orig 2001-09-28 22:12:52.000000000 +0200
|
|
+++ xpcom/reflect/xptcall/src/md/unix/xptcinvoke_ppc_netbsd.cpp
|
|
@@ -104,8 +104,10 @@ invoke_copy_to_stack(PRUint32* d,
|
|
if ((PRUint32) d & 4) d++; // doubles are 8-byte aligned on stack
|
|
*((double*) d) = s->val.d;
|
|
d += 2;
|
|
+#if __GXX_ABI_VERSION < 100
|
|
if (gpr < GPR_COUNT)
|
|
gpr += 2;
|
|
+#endif
|
|
}
|
|
}
|
|
else if (!s->IsPtrData() && s->type == nsXPTType::T_FLOAT) {
|
|
@@ -114,8 +116,10 @@ invoke_copy_to_stack(PRUint32* d,
|
|
else {
|
|
*((float*) d) = s->val.f;
|
|
d += 1;
|
|
+#if __GXX_ABI_VERSION < 100
|
|
if (gpr < GPR_COUNT)
|
|
gpr += 1;
|
|
+#endif
|
|
}
|
|
}
|
|
else if (!s->IsPtrData() && (s->type == nsXPTType::T_I64
|