This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: Configure boehm_gc the same for cross-build as native...
- From: David Daney <ddaney at avtrex dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Hans Boehm <hans_boehm at hp dot com>
- Date: Tue, 06 Jun 2006 16:14:05 -0700
- Subject: Patch: Configure boehm_gc the same for cross-build as native...
Under the principle that Mark Mitchell outlined in this message:
http://gcc.gnu.org/ml/gcc-patches/2006-06/msg00229.html
That "cross-compilation of GCC behaves the same as native
compilation.", I submit the following patch to the boehm_gc.
Currently when cross compiling, some of the debugging capabilities of
the GC are disabled. This patch removes these differences.
Currently building/testing on mipsel-linux cross compiler, and
i686-pc-linux-gnu native build.
OK to commit if no regressions?
David Daney
boehm_gc:
2006-06-06 David Daney <ddaney@avtrex.com>
* configure.ac: Remove NO_SIGSET and NO_DEBUGGING AC_DEFINEs
when cross compiling.
* include/gc_config.h.in: Regenerate.
* configure: Regenerate.
Index: configure.ac
===================================================================
--- configure.ac (revision 114394)
+++ configure.ac (working copy)
@@ -455,14 +455,6 @@
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
Index: include/gc_config.h.in
===================================================================
--- include/gc_config.h.in (revision 114394)
+++ include/gc_config.h.in (working copy)
@@ -111,9 +111,6 @@
/* Enable GC_PRINT_BACK_HEIGHT environment variable */
#undef MAKE_BACK_GRAPH
-/* removes GC_dump */
-#undef NO_DEBUGGING
-
/* cause some or all of the heap to not have execute permission */
#undef NO_EXECUTE_PERMISSION
@@ -123,9 +120,6 @@
/* does not disable signals */
#undef NO_SIGNALS
-/* use empty GC_disable_signals and GC_enable_signals */
-#undef NO_SIGSET
-
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
Index: configure
===================================================================
--- configure (revision 114394)
+++ configure (working copy)
@@ -7245,19 +7245,6 @@
_ACEOF
-if test -n "${with_cross_host}"; then
-
-cat >>confdefs.h <<\_ACEOF
-#define NO_SIGSET 1
-_ACEOF
-
-
-cat >>confdefs.h <<\_ACEOF
-#define NO_DEBUGGING 1
-_ACEOF
-
-fi
-
# Check whether --enable-gc-debug or --disable-gc-debug was given.
if test "${enable_gc_debug+set}" = set; then
enableval="$enable_gc_debug"