diff options
author | David Daney <ddaney@avtrex.com> | 2007-07-31 16:17:21 +0000 |
---|---|---|
committer | David Daney <daney@gcc.gnu.org> | 2007-07-31 16:17:21 +0000 |
commit | 86acf60c5b442da37c863d0ac3c4e00f12e12d85 (patch) | |
tree | 6dc577fa9ea387e1b09b0eeec8e6facca682d8c6 /libjava/include | |
parent | 68ae229af3fb05bb303d5f1386baef1529219858 (diff) | |
download | gcc-86acf60c5b442da37c863d0ac3c4e00f12e12d85.tar.gz |
configure.ac (INTERPRETER): New AM_CONDITIONAL.
* configure.ac (INTERPRETER): New AM_CONDITIONAL.
* scripts/makemake.tcl (package_map): Mark jdwp and jvmti packages
as being for interpreter only. Place interpreter related files in
'if INTERPRETER' block.
(interpreter_package_files): New list.
(interpreter_header_vars): Ditto.
(emit_package_rule_to_list): Renamed from emit_package_rule with
new target list parameter.
(emit_package_rule): Rewritten to call emit_package_rule_to_list.
(emit_interpreter_rule): New function.
(emit_source_var): Place interpreter related files in
interpreter_header_vars.
* Makefile.am (ACLOCAL_AMFLAGS): Add -I libltdl.
(libgcj_interpret_source_files): New variable.
(libgcj_la_SOURCES): Move jvmti.cc and interpret.cc to
libgcj_interpret_source_files and include
libgcj_interpret_source_files.
(nat_jdwp_source_files): New variable.
(nat_jvmti_source_files): Ditto.
(nat_source_files): Move jdwp and jvmti related files to
nat_jdwp_source_files and nat_jvmti_source_files and include
nat_jdwp_source_files and nat_jvmti_source_files.
* Makefile.in: Regenerate.
* include/Makefile.in: Ditto.
* testsuite/Makefile.in: Ditto.
* gcj/Makefile.in: Ditto.
* sources.am: Ditto.
* configure: Ditto.
* include/config.h.in: Ditto.
* interpret.cc: Remove #ifdef INTERPRETER block.
* stacktrace.cc (UnwindTraceFn): Do not handle proxy frames if
interpreter disabled.
* include/java-interp.h (_Jv_FrameType): Move outside of
#ifdef INTERPRETER block.
* include/execution.h (_Jv_IndirectCompiledEngine::do_get_closure_list,
_Jv_InterpreterEngine, _Jv_soleInterpreterEngine): Place in
#ifdef INTERPRETER block.
* jni.cc (jvmti.h, jvmti-int.h): Only include if INTERPRETER is
defined.
(_Jv_JNI_PopSystemFrame, _Jv_JNI_GetEnv): Only do jvmti processing
if INTERPRETER is defined.
* prims.cc (jvmti.h, jvmti-int.h, Jdwp.h, VMVirtualMachine.h): Only
include if INTERPRETER is defined.
(defaultJdwpOptions, jdwpOptions, jvmti_agent_onload_func,
jvmti_agent_onunload_func, jvmti_agentonload, jvmti_agentonunload,
jvmti_agent_opts, load_jvmti_agent): Only define if INTERPRETER is
defined.
(parse_x_arg): Only process 'runjdwp:' if INTERPRETER is defined.
(parse_init_args): Only process jvmti related options if
INTERPRETER is defined.
(_Jv_CreateJavaVM): Only call _Jv_JVMTI_Init if INTERPRETER is
defined.
(_Jv_RunMain): Only do jvmti and jdwp processing if INTERPRETER is
defined.
* link.cc (jvmti.h, jvmti-int.h): Only include if INTERPRETER is
defined.
(_Jv_ThrowNoClassDefFoundError, _Jv_Linker::create_error_method):
Define if if INTERPRETER is not defined.
(_Jv_Linker::wait_for_state): Only do jvmti proccessing if
INTERPRETER is defined.
* boehm.cc (closure_list_pointer, finalize_closure_list,
_Jv_ClosureListFinalizer): Only define if INTERPRETER is
defined.
* java/lang/natThread.cc (jvmti.h, jvmti-int.h): Only include if
INTERPRETER is defined.
(finish_, _Jv_NotifyThreadStart): Only do jvmti proccessing if
INTERPRETER is defined.
* java/lang/Class.h (_Jv_InterpreterEngine): Move declaration
and friend declaration inside #ifdef INTERPRETER block.
* java/lang/natClass.cc (_Jv_ClosureList::releaseClosures,
_Jv_ClosureList::registerClosure, _Jv_GetInterpClassSourceFile):
Only define if INTERPRETER is defined.
* java/lang/reflect/natVMProxy.cc (UnsupportedOperationException.h):
Include.
(generateProxyClass): Throw UnsupportedOperationException unless
INTERPRETER is defined.
From-SVN: r127097
Diffstat (limited to 'libjava/include')
-rw-r--r-- | libjava/include/Makefile.in | 15 | ||||
-rw-r--r-- | libjava/include/config.h.in | 7 | ||||
-rw-r--r-- | libjava/include/execution.h | 7 | ||||
-rw-r--r-- | libjava/include/java-interp.h | 14 |
4 files changed, 29 insertions, 14 deletions
diff --git a/libjava/include/Makefile.in b/libjava/include/Makefile.in index bd2d95d3bec..49f8767e09c 100644 --- a/libjava/include/Makefile.in +++ b/libjava/include/Makefile.in @@ -41,7 +41,9 @@ subdir = include DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/config.h.in $(tool_include__HEADERS) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/libltdl/acinclude.m4 \ + $(top_srcdir)/../config/acx.m4 \ + $(top_srcdir)/../config/confsubdir.m4 \ $(top_srcdir)/../config/depstand.m4 \ $(top_srcdir)/../config/enable.m4 \ $(top_srcdir)/../config/gxx-include-dir.m4 \ @@ -56,10 +58,11 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \ $(top_srcdir)/../config/no-executables.m4 \ $(top_srcdir)/../config/tls.m4 \ $(top_srcdir)/../config/unwind_ipinfo.m4 \ - $(top_srcdir)/../libtool.m4 $(top_srcdir)/../ltoptions.m4 \ - $(top_srcdir)/../ltsugar.m4 $(top_srcdir)/../ltversion.m4 \ - $(top_srcdir)/mingwld.m4 $(top_srcdir)/pkg.m4 \ - $(top_srcdir)/shlibpath.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/../libtool.m4 $(top_srcdir)/../ltgcc.m4 \ + $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \ + $(top_srcdir)/../ltversion.m4 $(top_srcdir)/mingwld.m4 \ + $(top_srcdir)/pkg.m4 $(top_srcdir)/shlibpath.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) CONFIG_HEADER = config.h $(top_builddir)/gcj/libgcj-config.h @@ -149,6 +152,8 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTERPRETER = @INTERPRETER@ +INTERPRETER_FALSE = @INTERPRETER_FALSE@ +INTERPRETER_TRUE = @INTERPRETER_TRUE@ JAR = @JAR@ JAVA_HOME = @JAVA_HOME@ JAVA_HOME_SET_FALSE = @JAVA_HOME_SET_FALSE@ diff --git a/libjava/include/config.h.in b/libjava/include/config.h.in index b47f248686e..99da702417c 100644 --- a/libjava/include/config.h.in +++ b/libjava/include/config.h.in @@ -46,6 +46,9 @@ /* Define to 1 if you have the <bstring.h> header file. */ #undef HAVE_BSTRING_H +/* Define to 1 if the target assembler supports thread-local storage. */ +#undef HAVE_CC_TLS + /* Define to 1 if you have the `chmod' function. */ #undef HAVE_CHMOD @@ -379,6 +382,10 @@ library search path. */ #undef LTDL_SHLIBPATH_VAR +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#undef LT_OBJDIR + /* Define if MinGW libgcj uses the Windows UNICODE OS API. */ #undef MINGW_LIBGCJ_UNICODE diff --git a/libjava/include/execution.h b/libjava/include/execution.h index eac6133c5b7..c48b2fc3273 100644 --- a/libjava/include/execution.h +++ b/libjava/include/execution.h @@ -199,6 +199,7 @@ struct _Jv_IndirectCompiledEngine : public _Jv_CompiledEngine _Jv_Free (aux->field_initializers); } +#ifdef INTERPRETER static _Jv_ClosureList **do_get_closure_list (jclass klass) { _Jv_IndirectCompiledClass *aux = get_aux_info (klass); @@ -208,9 +209,10 @@ struct _Jv_IndirectCompiledEngine : public _Jv_CompiledEngine return aux->closures; } +#endif }; - +#ifdef INTERPRETER // This handles interpreted code. class _Jv_InterpreterEngine : public _Jv_ExecutionEngine @@ -266,8 +268,9 @@ class _Jv_InterpreterEngine : public _Jv_ExecutionEngine } }; - extern _Jv_InterpreterEngine _Jv_soleInterpreterEngine; +#endif // INTERPRETER + extern _Jv_CompiledEngine _Jv_soleCompiledEngine; extern _Jv_IndirectCompiledEngine _Jv_soleIndirectCompiledEngine; #endif // __JAVA_EXECUTION_H__ diff --git a/libjava/include/java-interp.h b/libjava/include/java-interp.h index f0b77f97b35..b0d0da411c1 100644 --- a/libjava/include/java-interp.h +++ b/libjava/include/java-interp.h @@ -15,6 +15,13 @@ details. */ #include <java-cpool.h> #include <gnu/gcj/runtime/NameFinder.h> +enum _Jv_FrameType +{ + frame_native, + frame_interpreter, + frame_proxy +}; + #ifdef INTERPRETER #pragma interface @@ -373,13 +380,6 @@ public: } }; -enum _Jv_FrameType -{ - frame_native, - frame_interpreter, - frame_proxy -}; - // The composite call stack as represented by a linked list of frames class _Jv_Frame { |