c348be20ae
PR libgcj/21692 * sysdep/pa/descriptor.h: New file. * configure.host: Use sysdep/pa/descriptor.h on hppa*-*. From-SVN: r103306
8 lines
337 B
C
8 lines
337 B
C
// 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))
|