aboutsummaryrefslogtreecommitdiff
path: root/libjava/include
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2005-03-23 20:27:12 +0000
committerTom Tromey <tromey@gcc.gnu.org>2005-03-23 20:27:12 +0000
commit85c4f26a8651192648d1d4ce37009d838abe4152 (patch)
treebd69a3ee7525a63aa54ad42136e26863f186a9df /libjava/include
parentd101034cd879822fbb76d8a2a50e4e27959e9d5b (diff)
downloadgcc-85c4f26a8651192648d1d4ce37009d838abe4152.zip
gcc-85c4f26a8651192648d1d4ce37009d838abe4152.tar.gz
gcc-85c4f26a8651192648d1d4ce37009d838abe4152.tar.bz2
jvm.h (GCJ_40_BC_ABI_VERSION): New define.
libjava: * include/jvm.h (GCJ_40_BC_ABI_VERSION): New define. (_Jv_CheckABIVersion): Use it. gcc/java: * decl.c (GCJ_CURRENT_BC_ABI_VERSION): New define. (parse_version): Use it. From-SVN: r96948
Diffstat (limited to 'libjava/include')
-rw-r--r--libjava/include/jvm.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h
index 6234788..7a5a4ea 100644
--- a/libjava/include/jvm.h
+++ b/libjava/include/jvm.h
@@ -562,14 +562,17 @@ extern void _Jv_RegisterBootstrapPackages ();
#define GCJ_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 10)
#define GCJ_BINARYCOMPAT_ADDITION 5
+// At present we know we are compatible with the BC ABI as used in GCC
+// 4.0.
+#define GCJ_40_BC_ABI_VERSION (4 * 10000 + 0 * 10 + GCJ_BINARYCOMPAT_ADDITION)
+
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.)
+ // Recognize our defined C++ ABI.
return (value == GCJ_VERSION
- || value == (GCJ_VERSION + GCJ_BINARYCOMPAT_ADDITION));
+ // At the moment this is the only BC ABI we recognize.
+ || value == GCJ_40_BC_ABI_VERSION);
}
// It makes the source cleaner if we simply always define this