diff options
author | taya <taya@pkgsrc.org> | 2004-08-15 01:33:58 +0000 |
---|---|---|
committer | taya <taya@pkgsrc.org> | 2004-08-15 01:33:58 +0000 |
commit | e7d62f8a24cfedd75cb434da197a52e892ce1761 (patch) | |
tree | 289a4f2b7bc665c01dfbae62664869e01cbf57f0 /www/mozilla/patches | |
parent | db4fee9cd20defb477311b90999069aa96fd5c65 (diff) | |
download | pkgsrc-e7d62f8a24cfedd75cb434da197a52e892ce1761.tar.gz |
make mozilla work on NetBSD-current/alpha
Diffstat (limited to 'www/mozilla/patches')
-rw-r--r-- | www/mozilla/patches/patch-cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/www/mozilla/patches/patch-cc b/www/mozilla/patches/patch-cc new file mode 100644 index 00000000000..b8ad5481195 --- /dev/null +++ b/www/mozilla/patches/patch-cc @@ -0,0 +1,16 @@ +$NetBSD: patch-cc,v 1.1 2004/08/15 01:33:58 taya Exp $ + +--- /mnt/local/src/mozilla-1.7rc3/mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_linux_alpha.cpp 2004-08-13 01:24:00.000000000 +0900 ++++ ./xpcom/reflect/xptcall/src/md/unix/xptcinvoke_linux_alpha.cpp 2004-08-13 01:23:35.000000000 +0900 +@@ -163,7 +163,11 @@ + "bis $16,$16,$1\n\t" /* load "this" */ + "ldq $2,16($15)\n\t" /* load "methodIndex" */ + "ldq $1,0($1)\n\t" /* load vtable */ ++#if defined(__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 /* G++ V3 ABI */ ++ "s8addq $2,0,$2\n\t" /* vtable index = "methodIndex" * 8 */ ++#else /* G++2.95 ABI */ + "s8addq $2,16,$2\n\t" /* vtable index = "methodIndex" * 8 + 16 */ ++#endif + "addq $1,$2,$1\n\t" + "ldq $27,0($1)\n\t" /* load address of function */ + "jsr $26,($27),0\n\t" /* call virtual function */ |