OpenBSD/sparc: checking size of __int64... 0

Todd T. Fries toddf at acm.org
Thu Dec 25 21:28:02 PST 1997


...I see this during the configure phase .. I've applied the following
patches, as well, to get it to compile for OpenBSD/sparc .. is the above
output from configure correct? (after being re-generated by autoconf from
the following patch)...
-- 
Todd Fries .. toddf at acm.org


diff -Nur config/sparc/openbsd2/jit-md.h config/sparc/openbsd2/jit-md.h
--- config/sparc/openbsd2/jit-md.h	Wed Dec 31 18:00:00 1969
+++ config/sparc/openbsd2/jit-md.h	Tue Dec 23 03:31:19 1997
@@ -0,0 +1,37 @@
+/*
+ * sparc/openbsd2/jit-md.h
+ * OpenBSD sparc JIT configuration information.
+ *
+ */
+
+#ifndef __sparc_openbsd2_jit_md_h
+#define __sparc_openbsd2_jit_md_h
+
+/**/
+/* Include common information. */
+/**/
+#include "sparc/jit.h"
+
+#undef	FLUSH_DCACHE
+#define FLUSH_DCACHE(beg, end)						\
+	do {								\
+		int *_p = (int *)(beg), *_e = (int *)(end);		\
+		while (_p < _e) {					\
+			asm volatile("iflush %0+0" : : "r"(_p++));	\
+		}							\
+	} while (0)
+
+/**/
+/* Extra exception handling information. */
+/**/
+
+/* Function prototype for signal handlers */
+#define	EXCEPTIONPROTO							\
+	int sig, int code, struct sigcontext* ctx
+
+/* Get the first exception frame from a signal handler */
+#define	EXCEPTIONFRAME(f, c)						\
+	(f).retbp = (c)->sc_sp;						\
+	(f).retpc = (c)->sc_pc
+
+#endif
diff -Nur config/sparc/openbsd2/md.c config/sparc/openbsd2/md.c
--- config/sparc/openbsd2/md.c	Wed Dec 31 18:00:00 1969
+++ config/sparc/openbsd2/md.c	Tue Dec 23 03:18:11 1997
@@ -0,0 +1,5 @@
+/*
+ * sparc/openbsd2/md.c
+ * OpenBSD sparc specific functions.
+ *
+ */
diff -Nur config/sparc/openbsd2/md.h config/sparc/openbsd2/md.h
--- config/sparc/openbsd2/md.h	Wed Dec 31 18:00:00 1969
+++ config/sparc/openbsd2/md.h	Tue Dec 23 03:32:14 1997
@@ -0,0 +1,16 @@
+/*
+ * sparc/openbsd2/md.h
+ * OpenBSD sparc configuration information.
+ *
+ */
+
+#ifndef __sparc_openbsd2_md_h
+#define __sparc_openbsd2_md_h
+
+#include "sparc/threads.h"
+
+#if defined(TRANSLATOR)
+#include "jit-md.h"
+#endif
+
+#endif
diff -Nur test/regression/TestScript test/regression/TestScript
--- configure.in.orig	Thu Dec 25 22:58:24 1997
+++ configure.in	Thu Dec 25 22:57:55 1997
@@ -82,6 +82,14 @@
 	LIBSHARE=-Bshareable
 	LIBEXT=.so
 	;;
+sparc-openbsd*)
+	host_cpu=sparc
+	host_os=openbsd2
+	PIC=-fpic
+	LIBSHARE=-Bshareable
+	LIBEXT=.so
+	;;
+
 
 i[3456]86-bsdi*)
 	host_cpu=i386



More information about the kaffe mailing list