[Gc] [patch] gc for GNU/kFreeBSD (amd64 variant)

Petr Salinger Petr.Salinger at seznam.cz
Tue Jan 16 02:00:06 PST 2007


> I checked an approximation to this into the GC7 CVS tree.  One of the
> changes no longer had a counterpart, and I did not study in detail
> whether other patches were needed.  It would be good for someone to test
> ...

Please use attached patch to fix GC7 CVS tree.
As the libtool is already upgraded, it only remains to move
"*-*-gnu*)" case after "*-*-kfreebsd*-gnu)" in configure.ac,
and to patch moved counterpart, now in include/private/gc_priv.h.

Many thanks

Petr
-------------- next part --------------
Index: configure.ac
===================================================================
RCS file: /cvsroot/bdwgc/bdwgc/configure.ac,v
retrieving revision 1.19
diff -u -r1.19 configure.ac
--- configure.ac	11 Jan 2007 19:32:44 -0000	1.19
+++ configure.ac	16 Jan 2007 09:33:33 -0000
@@ -93,11 +93,6 @@
 	AC_DEFINE(GC_LINUX_THREADS)
 	AC_DEFINE(_REENTRANT)
 	;;
-     *-*-gnu*)
-	AC_DEFINE(GC_GNU_THREADS)
-	AC_DEFINE(_REENTRANT)
-	AC_DEFINE(THREAD_LOCAL_ALLOC)
-	;;
      *-*-aix*)
 	AC_DEFINE(GC_AIX_THREADS)
 	AC_DEFINE(_REENTRANT)
@@ -134,6 +129,11 @@
 	AC_DEFINE(THREAD_LOCAL_ALLOC)
 	AC_DEFINE(USE_COMPILER_TLS)
       	;;
+     *-*-gnu*)
+	AC_DEFINE(GC_GNU_THREADS)
+	AC_DEFINE(_REENTRANT)
+	AC_DEFINE(THREAD_LOCAL_ALLOC)
+	;;
      *-*-netbsd*)
 	AC_MSG_WARN("Only on NetBSD 2.0 or later.")
 	AC_DEFINE(GC_NETBSD_THREADS)
Index: include/private/gc_priv.h
===================================================================
RCS file: /cvsroot/bdwgc/bdwgc/include/private/gc_priv.h,v
retrieving revision 1.9
diff -u -r1.9 gc_priv.h
--- include/private/gc_priv.h	11 Jan 2007 19:32:44 -0000	1.9
+++ include/private/gc_priv.h	16 Jan 2007 09:33:35 -0000
@@ -1980,7 +1980,7 @@
 #   define NEED_FIND_LIMIT
 # endif
 
-#if defined(FREEBSD) && (defined(I386) || defined(powerpc) \
+#if defined(FREEBSD) && (defined(I386) || defined(X86_64) || defined(powerpc) \
     || defined(__powerpc__))
 #  include <machine/trap.h>
 #  if !defined(PCR)


More information about the Gc mailing list