This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[Patch] No special treatment for boehm-gc when cross compiling.
- From: David Daney <ddaney at avtrex dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: Wed, 17 Jan 2007 14:49:24 -0800
- Subject: [Patch] No special treatment for boehm-gc when cross compiling.
This is a precursor for the heap dump support I will submit shortly.
The upstream GC sources already do the same thing.
I think Tom Tromey may have already oked this patch, but I can't find
anything to confirm that, so I am submitting it again.
The heap dump code uses the GC interfaces that are disabled when cross
compiling. Under the principle that cross compiles should not differ
from native builds, I removed this disabling code.
Tested on x86_64-linux.
OK to commit?
2007-01-17 David Daney <ddaney@avtrex.com>
* configure.ac: Don't define NO_SIGSET and NO_DEBUGGING while
cross-compiling.
* configure: Regenerated.
* include/gc_config.h.in: Regenerated.
Index: boehm-gc/configure.ac
===================================================================
--- boehm-gc/configure.ac (revision 120765)
+++ boehm-gc/configure.ac (working copy)
@@ -488,14 +488,6 @@ AC_DEFINE(JAVA_FINALIZATION,1,[make it s
AC_DEFINE(GC_GCJ_SUPPORT,1,[include support for gcj])
AC_DEFINE(ATOMIC_UNCOLLECTABLE,1,[include code for GC_malloc_atomic_uncollectable])
-dnl This is something of a hack. When cross-compiling we turn off
-dnl some functionality. These is only correct when targetting an
-dnl embedded system. FIXME.
-if test -n "${with_cross_host}"; then
- AC_DEFINE(NO_SIGSET,1,[use empty GC_disable_signals and GC_enable_signals])
- AC_DEFINE(NO_DEBUGGING,1,[removes GC_dump])
-fi
-
AC_ARG_ENABLE(gc-debug,
[ --enable-gc-debug include full support for pointer backtracing etc.],
[ if test "$enable_gc_debug" = "yes"; then