BSD 4_3_Net_2 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Thu, 25 May 1989 17:07:05 +0000 (09:07 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Thu, 25 May 1989 17:07:05 +0000 (09:07 -0800)
Work on file usr/src/usr.bin/g++/cc1plus/grot/endcrt0.c
Work on file usr/src/usr.bin/g++/cc1plus/stab.h

Synthesized-from: CSRG/cd2/net.2

usr/src/usr.bin/g++/cc1plus/grot/endcrt0.c [new file with mode: 0644]
usr/src/usr.bin/g++/cc1plus/stab.h [new file with mode: 0644]

diff --git a/usr/src/usr.bin/g++/cc1plus/grot/endcrt0.c b/usr/src/usr.bin/g++/cc1plus/grot/endcrt0.c
new file mode 100644 (file)
index 0000000..4a4e3c5
--- /dev/null
@@ -0,0 +1,12 @@
+#include "crt0.h"
+
+static long __dtor_prev = 0, __dtor_next = 0;
+
+#ifdef sparc
+asm (".stabs \"___CTOR_LIST__\", 0x14, 0, 0, 0\n");
+asm (".stabs \"___CTOR_LIST__\", 0x14, 0, 0, 0\n");
+asm (".stabs \"___DTOR_LIST__\", 0x18, 0, 0, ___dtor_next\n");
+asm (".stabs \"___DTOR_LIST__\", 0x18, 0, 0, ___dtor_prev\n");
+asm (".stabs \"___ZTOR_LIST__\", 0x14, 0, 0, 0\n");
+asm (".stabs \"___ZTOR_LIST__\", 0x14, 0, 0, 0\n");
+#endif
diff --git a/usr/src/usr.bin/g++/cc1plus/stab.h b/usr/src/usr.bin/g++/cc1plus/stab.h
new file mode 100644 (file)
index 0000000..77f2d41
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef __GNU_STAB__
+
+/* Indicate the GNU stab.h is in use.  */
+
+#define __GNU_STAB__
+
+#define __define_stab(NAME, CODE, STRING) NAME=CODE,
+
+enum __stab_debug_code
+{
+#include "stab.def"
+};
+
+#undef __define_stab
+
+#endif /* __GNU_STAB_ */