summaryrefslogtreecommitdiffstats
path: root/editors/openoffice-1.0
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2003-03-27 23:13:08 +0000
committermbr <mbr@FreeBSD.org>2003-03-27 23:13:08 +0000
commitb7258b783f14ebf1261f020d29ef0a6f8886a56b (patch)
treef6f9baaa792b677e2d688ee0406a1cd791f67818 /editors/openoffice-1.0
parent8d56b5e349b21f1e28db1b4b063bafcfcbd456fc (diff)
downloadFreeBSD-ports-b7258b783f14ebf1261f020d29ef0a6f8886a56b.zip
FreeBSD-ports-b7258b783f14ebf1261f020d29ef0a6f8886a56b.tar.gz
Fix gcc3.2.2 compile
Diffstat (limited to 'editors/openoffice-1.0')
-rw-r--r--editors/openoffice-1.0/files/patch-bridges+source+cpp_uno+gcc3_freebsd_intel12
1 files changed, 6 insertions, 6 deletions
diff --git a/editors/openoffice-1.0/files/patch-bridges+source+cpp_uno+gcc3_freebsd_intel b/editors/openoffice-1.0/files/patch-bridges+source+cpp_uno+gcc3_freebsd_intel
index 20b13ea..777286e 100644
--- a/editors/openoffice-1.0/files/patch-bridges+source+cpp_uno+gcc3_freebsd_intel
+++ b/editors/openoffice-1.0/files/patch-bridges+source+cpp_uno+gcc3_freebsd_intel
@@ -1255,7 +1255,9 @@
+ if (! pThis) dummy_can_throw_anything("xxx"); // address something
+
+ volatile long edx = 0, eax = 0; // for register returns
++ void * stackptr;
+ asm volatile (
++ "mov %%esp, %6\n\t"
+ // copy values
+ "mov %0, %%eax\n\t"
+ "mov %%eax, %%edx\n\t"
@@ -1279,13 +1281,11 @@
+ "mov %%eax, %4\n\t"
+ "mov %%edx, %5\n\t"
+ // cleanup stack
-+ "mov %0, %%eax\n\t"
-+ "shl $2, %%eax\n\t"
-+ "add %%eax, %%esp\n\t"
++ "mov %6, %%esp\n\t"
+ :
-+ : "m"(nStackLongs), "m"(pStackLongs), "m"(pThis), "m"(nVtableIndex), "m"(eax), "m"(edx)
-+ : "eax", "edx" );
-+
++ : "m"(nStackLongs), "m"(pStackLongs), "m"(pThis), "m"(nVtableIndex),
++ "m"(eax), "m"(edx), "m"(stackptr)
++ : "eax", "edx" );
+ switch( eReturnType )
+ {
+ case typelib_TypeClass_HYPER:
OpenPOWER on IntegriCloud