head	1.2;
access;
symbols
	pkgsrc-2013Q2:1.2.0.42
	pkgsrc-2013Q2-base:1.2
	pkgsrc-2012Q4:1.2.0.40
	pkgsrc-2012Q4-base:1.2
	pkgsrc-2011Q4:1.2.0.38
	pkgsrc-2011Q4-base:1.2
	pkgsrc-2011Q2:1.2.0.36
	pkgsrc-2011Q2-base:1.2
	pkgsrc-2009Q4:1.2.0.34
	pkgsrc-2009Q4-base:1.2
	pkgsrc-2008Q4:1.2.0.32
	pkgsrc-2008Q4-base:1.2
	pkgsrc-2008Q3:1.2.0.30
	pkgsrc-2008Q3-base:1.2
	cube-native-xorg:1.2.0.28
	cube-native-xorg-base:1.2
	pkgsrc-2008Q2:1.2.0.26
	pkgsrc-2008Q2-base:1.2
	pkgsrc-2008Q1:1.2.0.24
	pkgsrc-2008Q1-base:1.2
	pkgsrc-2007Q4:1.2.0.22
	pkgsrc-2007Q4-base:1.2
	pkgsrc-2007Q3:1.2.0.20
	pkgsrc-2007Q3-base:1.2
	pkgsrc-2007Q2:1.2.0.18
	pkgsrc-2007Q2-base:1.2
	pkgsrc-2007Q1:1.2.0.16
	pkgsrc-2007Q1-base:1.2
	pkgsrc-2006Q4:1.2.0.14
	pkgsrc-2006Q4-base:1.2
	pkgsrc-2006Q3:1.2.0.12
	pkgsrc-2006Q3-base:1.2
	pkgsrc-2006Q2:1.2.0.10
	pkgsrc-2006Q2-base:1.2
	pkgsrc-2006Q1:1.2.0.8
	pkgsrc-2006Q1-base:1.2
	pkgsrc-2005Q4:1.2.0.6
	pkgsrc-2005Q4-base:1.2
	pkgsrc-2005Q3:1.2.0.4
	pkgsrc-2005Q3-base:1.2
	pkgsrc-2005Q2:1.2.0.2
	pkgsrc-2005Q2-base:1.2
	pkgsrc-2005Q1:1.1.0.4
	pkgsrc-2005Q1-base:1.1
	pkgsrc-2004Q4:1.1.0.2
	pkgsrc-2004Q4-base:1.1;
locks; strict;
comment	@# @;


1.2
date	2005.04.18.22.40.36;	author wiz;	state dead;
branches;
next	1.1;

1.1
date	2004.12.04.03.50.41;	author taya;	state Exp;
branches
	1.1.4.1;
next	;

1.1.4.1
date	2005.05.18.03.35.33;	author snj;	state dead;
branches;
next	;


desc
@@


1.2
log
@Remove mozilla-stable; not much difference to the mozilla package
itself. Okayed by the maintainer, taya@@.
@
text
@$NetBSD: patch-bx,v 1.1 2004/12/04 03:50:41 taya Exp $

--- xpcom/reflect/xptcall/src/md/unix/xptcstubs_ppc_netbsd.cpp.orig	2001-09-28 22:12:53.000000000 +0200
+++ xpcom/reflect/xptcall/src/md/unix/xptcstubs_ppc_netbsd.cpp
@@@@ -119,8 +119,10 @@@@ PrepareAndDispatch(nsXPTCStubBase* self,
                 if ((PRUint32) ap & 4) ap++; // doubles are 8-byte aligned on stack
                 dp->val.d = *(double*) ap;
                 ap += 2;
+#if __GXX_ABI_VERSION < 100
 		if (gpr < GPR_COUNT)
 		    gpr += 2;
+#endif
             }
             continue;
         }
@@@@ -130,8 +132,10 @@@@ PrepareAndDispatch(nsXPTCStubBase* self,
             else {
                 dp->val.f = *(float*) ap;
 		ap += 1;
+#if __GXX_ABI_VERSION < 100
 		if (gpr < GPR_COUNT)
 		    gpr += 1;
+#endif
             }
             continue;
         }
@@@@ -195,7 +199,9 @@@@ PrepareAndDispatch(nsXPTCStubBase* self,
 // however, it's quick, dirty, and'll break when the ABI changes on
 // us, which is what we want ;-).
 
-#define STUB_ENTRY(n)                                       \
+#if __GXX_ABI_VERSION < 100
+// gcc-2 version
+# define STUB_ENTRY(n)                                       \
 __asm__ (                                                   \
         ".section \".text\" \n\t"                           \
         ".align 2 \n\t"                                     \
@@@@ -206,6 +212,46 @@@@ __asm__ (                               
 	"li     11,"#n" \n\t"                               \
 	"b      SharedStub@@local \n"                        \
 );
+#else
+// gcc-3 version
+//
+// As G++3 ABI contains the length of the functionname in the mangled
+// name, it is difficult to get a generic assembler mechanism like
+// in the G++ 2.95 case.
+// Create names would be like:
+// _ZN14nsXPTCStubBase5Stub1Ev
+// _ZN14nsXPTCStubBase6Stub12Ev
+// _ZN14nsXPTCStubBase7Stub123Ev
+// _ZN14nsXPTCStubBase8Stub1234Ev
+// etc.
+// Use assembler directives to get the names right...
+
+# define STUB_ENTRY(n)							\
+__asm__ (								\
+	".align	2 \n\t"							\
+	".if	"#n" < 10 \n\t"						\
+	".globl	_ZN14nsXPTCStubBase5Stub"#n"Ev \n\t"			\
+	".type	_ZN14nsXPTCStubBase5Stub"#n"Ev,@@function \n\n"		\
+"_ZN14nsXPTCStubBase5Stub"#n"Ev: \n\t"					\
+									\
+	".elseif "#n" < 100 \n\t"					\
+	".globl	_ZN14nsXPTCStubBase6Stub"#n"Ev \n\t"			\
+	".type	_ZN14nsXPTCStubBase6Stub"#n"Ev,@@function \n\n"		\
+"_ZN14nsXPTCStubBase6Stub"#n"Ev: \n\t"					\
+									\
+	".elseif "#n" < 1000 \n\t"					\
+	".globl	_ZN14nsXPTCStubBase7Stub"#n"Ev \n\t"			\
+	".type	_ZN14nsXPTCStubBase7Stub"#n"Ev,@@function \n\n"		\
+"_ZN14nsXPTCStubBase7Stub"#n"Ev: \n\t"					\
+									\
+	".else \n\t"							\
+	".err	\"stub number "#n" >= 1000 not yet supported\"\n"	\
+	".endif \n\t"							\
+									\
+	"li	11,"#n" \n\t"						\
+	"b	SharedStub@@local \n"					\
+);
+#endif
 
 #define SENTINEL_ENTRY(n)                            \
 nsresult nsXPTCStubBase::Sentinel##n()               \
@


1.1
log
@
update mozilla-stable to 1.7.3
stable branch of mozilla was switched to 1.7-branch

mostly copied from www/mozilla
@
text
@d1 1
a1 1
$NetBSD: patch-bx,v 1.2 2004/07/07 09:08:31 aymeric Exp $
@


1.1.4.1
log
@Pullup ticket 508 - requested by Lubomir Sedlacik
remove mozilla-stable

  Module Name:    pkgsrc
  Committed By:   wiz
  Date:           Mon Apr 18 22:40:36 UTC 2005

  Modified Files:
          pkgsrc/www: Makefile
  Removed Files:
          pkgsrc/www/mozilla-stable: DESCR Makefile PLIST buildlink3.mk distinfo
          pkgsrc/www/mozilla-stable/files: moz-install mozilla-ELF.in
              mozilla-Mach-O.in mozilla-a.out.in xptcinvoke_asm_sparc64_netbsd.s
              xptcinvoke_sparc64_netbsd.cpp xptcstubs_asm_sparc64_netbsd.s
              xptcstubs_sparc64_netbsd.cpp
          pkgsrc/www/mozilla-stable/patches: patch-aa patch-ab patch-ac patch-ad
              patch-ae patch-af patch-ag patch-ah patch-ai patch-aj patch-ak
              patch-al patch-an patch-ao patch-aw patch-ax patch-ba patch-bb
              patch-bm patch-bo patch-bq patch-br patch-bs patch-bt patch-bu
              patch-bv patch-bw patch-bx patch-by patch-bz patch-ca patch-cb
              patch-cc

  Log Message:
  Remove mozilla-stable; not much difference to the mozilla package
  itself. Okayed by the maintainer, taya@@.
@
text
@d1 1
a1 1
$NetBSD: patch-bx,v 1.1 2004/12/04 03:50:41 taya Exp $
@


