aboutsummaryrefslogtreecommitdiff
path: root/libjava/configure.ac
diff options
context:
space:
mode:
authorHans Boehm <Hans_Boehm@hp.com>2004-08-28 00:45:56 +0000
committerHans Boehm <hboehm@gcc.gnu.org>2004-08-28 00:45:56 +0000
commited3479983db246f3126c12c441659ef6b8ed027e (patch)
tree3ffbf3d3e391be4b78a46bc6acfcb0fbb12af641 /libjava/configure.ac
parent3c1cbf58a609a29362ed15c322d588797f3f4cc5 (diff)
downloadgcc-ed3479983db246f3126c12c441659ef6b8ed027e.zip
gcc-ed3479983db246f3126c12c441659ef6b8ed027e.tar.gz
gcc-ed3479983db246f3126c12c441659ef6b8ed027e.tar.bz2
configure.ac: Handle --enable-gc-debug.
* configure.ac: Handle --enable-gc-debug. * configure: Regenerate. * include/config.h.in (LIBGCJ_GC_DEBUG): Add. * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files. Rearrange include file order. (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set. (GC_finalize_all, GC_debug_generic_malloc): Don't declare. (disable_gc_mutex): Delete along with all references. (_Jv_MarkObj, _Jv_MarkArray): Use public types, adjust for debug header size. (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for debug case. (_Jv_AllocArray): Declare min_heap_addr only if needed. (gcj_describe_type_fn): New. (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind. Register gcj_describe_type_fn. * include/boehm-gc.h: (_Jv_AllocObj, _Jv_allocPtrFreeObj): Don't define, but declare, for debug case. * java/lang/natObject.cc: (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set. From-SVN: r86686
Diffstat (limited to 'libjava/configure.ac')
-rw-r--r--libjava/configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/libjava/configure.ac b/libjava/configure.ac
index 0085b47..72f2549 100644
--- a/libjava/configure.ac
+++ b/libjava/configure.ac
@@ -253,6 +253,13 @@ AC_ARG_ENABLE(libgcj-debug,
LIBGCJDEBUG="true"
fi])
+# Check for gc debugging. This option is handled both here and in the GC.
+AC_ARG_ENABLE(gc-debug,
+[ --enable-gc-debug include full support for pointer backtracing etc.],
+[ if test "$enable_gc_debug" = "yes"; then
+ AC_DEFINE(LIBGCJ_GC_DEBUG)
+ fi])
+
# See if the user has the interpreter included.
AC_ARG_ENABLE(interpreter,
AS_HELP_STRING([--enable-interpreter],