diff options
| author | Tom Tromey <tromey@redhat.com> | 2005-08-17 20:44:10 +0000 | 
|---|---|---|
| committer | Tom Tromey <tromey@gcc.gnu.org> | 2005-08-17 20:44:10 +0000 | 
| commit | 97b51fd08ea84c07be2c7fea17210453eef46371 (patch) | |
| tree | 3d74be0649ef589d515a0e04062b5e30115e5b80 /libjava/link.cc | |
| parent | 87bb8864f6fa4ca966e8a57aa4828d51b3f9cc72 (diff) | |
| download | gcc-97b51fd08ea84c07be2c7fea17210453eef46371.zip gcc-97b51fd08ea84c07be2c7fea17210453eef46371.tar.gz gcc-97b51fd08ea84c07be2c7fea17210453eef46371.tar.bz2  | |
class.c (make_class_data): Always emit JV_STATE_PRELOADING for class' initial state.
gcc/java:
	* class.c (make_class_data): Always emit JV_STATE_PRELOADING for
	class' initial state.
libjava:
	* java/lang/Class.h (_Jv_IsBinaryCompatibilityABI): Declare as
	friend.
	* include/jvm.h (_Jv_IsBinaryCompatibilityABI): New function.
	* testsuite/libjava.lang/bclink.java: New file.
	* testsuite/libjava.lang/bclink.out: New file.
	* link.cc (print_class_loaded): Changed ABI test to look at
	various _syms fields.
From-SVN: r103225
Diffstat (limited to 'libjava/link.cc')
| -rw-r--r-- | libjava/link.cc | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/libjava/link.cc b/libjava/link.cc index e97b31b..5411f4a 100644 --- a/libjava/link.cc +++ b/libjava/link.cc @@ -1659,11 +1659,10 @@ _Jv_Linker::print_class_loaded (jclass klass)    if (codesource == NULL)      codesource = "<no code source>"; -  // We use a somewhat bogus test for the ABI here.    char *abi;    if (_Jv_IsInterpretedClass (klass))      abi = "bytecode"; -  else if (klass->state == JV_STATE_PRELOADING) +  else if (_Jv_IsBinaryCompatibilityABI (klass))      abi = "BC-compiled";    else      abi = "pre-compiled";  | 
