diff options
author | Tom Tromey <tromey@redhat.com> | 2005-01-24 19:05:34 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2005-01-24 19:05:34 +0000 |
commit | 8bf04387959a7eea3d3e58f9e25a70fa67da641a (patch) | |
tree | 0ee3307d0e89506b5d2eddd057065bf2334d4ace /libjava/include/jvm.h | |
parent | 635b0f2a72770f39f07df01048baec5271b5c44f (diff) | |
download | gcc-8bf04387959a7eea3d3e58f9e25a70fa67da641a.zip gcc-8bf04387959a7eea3d3e58f9e25a70fa67da641a.tar.gz gcc-8bf04387959a7eea3d3e58f9e25a70fa67da641a.tar.bz2 |
Class.h (next): Updated documentation.
* java/lang/Class.h (next): Updated documentation. Renamed to
'next_or_version'.
* java/lang/natClassLoader.cc (_Jv_RegisterClasses): Use
_Jv_CheckABIVersion.
(_Jv_RegisterClasses_Counted): Likewise.
(_Jv_RegisterClassHookDefault): Fix starting condition of
duplicate-checking loop.
* include/jvm.h (GCJ_VERSION): New define.
(GCJ_BINARYCOMPAT_ADDITION): Likewise.
(_Jv_CheckABIVersion): New function.
From-SVN: r94173
Diffstat (limited to 'libjava/include/jvm.h')
-rw-r--r-- | libjava/include/jvm.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index 67a4b18..cf4d7d6 100644 --- a/libjava/include/jvm.h +++ b/libjava/include/jvm.h @@ -566,4 +566,19 @@ extern void (*_Jv_JVMPI_Notify_THREAD_END) (JVMPI_Event *event); extern void _Jv_RegisterBootstrapPackages (); + +// This is used to find ABI versions we recognize. +#define GCJ_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 10) +#define GCJ_BINARYCOMPAT_ADDITION 5 + +inline bool +_Jv_CheckABIVersion (unsigned long value) +{ + // For this release, recognize just our defined C++ ABI and our + // defined BC ABI. (In the future we may recognize past BC ABIs as + // well.) + return (value == GCJ_VERSION + || value == (GCJ_VERSION + GCJ_BINARYCOMPAT_ADDITION)); +} + #endif /* __JAVA_JVM_H__ */ |