From c348be20ae22608c1b61cc377ae58125b5583c97 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sat, 20 Aug 2005 20:26:26 +0000 Subject: re PR libgcj/21692 (unexpected java.lang.NoClassDefFoundError) PR libgcj/21692 * sysdep/pa/descriptor.h: New file. * configure.host: Use sysdep/pa/descriptor.h on hppa*-*. From-SVN: r103306 --- libjava/sysdep/pa/descriptor.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 libjava/sysdep/pa/descriptor.h (limited to 'libjava/sysdep') diff --git a/libjava/sysdep/pa/descriptor.h b/libjava/sysdep/pa/descriptor.h new file mode 100644 index 00000000000..d9888516d9c --- /dev/null +++ b/libjava/sysdep/pa/descriptor.h @@ -0,0 +1,7 @@ +// Given a function pointer, return the code address. +// If the plabel bit is set, mask it off and return the code from the +// first word of the function descriptor. Otherwise, the function +// pointer is the code address. + +#define UNWRAP_FUNCTION_DESCRIPTOR(X) \ + (((unsigned int)(X)) & 2 ? *(void **)(((unsigned int)(X)) & ~3) : (X)) -- cgit v1.2.1