mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
re PR libgcj/21692 (unexpected java.lang.NoClassDefFoundError)
PR libgcj/21692
* sysdep/descriptor-n.h: New file.
* sysdep/descriptor-y.h: New file.
* sysdep/powerpc/descriptor.h: New file.
* configure.host: Set $descriptor_h appropriate for the host.
* configure.ac: Link it.
* configure: Regenerate.
* stacktrace.cc: Include sysdep/descriptor.h.
(_Jv_StackTrace::UpdateNCodeMap): Use UNWRAP_FUNCTION_DESCRIPTOR.
From-SVN: r100173
This commit is contained in:
committed by
Richard Henderson
parent
2f828272d8
commit
eb2925b676
3
libjava/sysdep/descriptor-n.h
Normal file
3
libjava/sysdep/descriptor-n.h
Normal file
@@ -0,0 +1,3 @@
|
||||
// Given a function pointer, return the code address.
|
||||
|
||||
#define UNWRAP_FUNCTION_DESCRIPTOR(X) (X)
|
||||
5
libjava/sysdep/descriptor-y.h
Normal file
5
libjava/sysdep/descriptor-y.h
Normal file
@@ -0,0 +1,5 @@
|
||||
// Given a function pointer, return the code address.
|
||||
|
||||
// The function descriptor is actually multiple words,
|
||||
// but we don't care about anything except the first.
|
||||
#define UNWRAP_FUNCTION_DESCRIPTOR(X) (*(void **)(X))
|
||||
9
libjava/sysdep/powerpc/descriptor.h
Normal file
9
libjava/sysdep/powerpc/descriptor.h
Normal file
@@ -0,0 +1,9 @@
|
||||
// Given a function pointer, return the code address.
|
||||
|
||||
#ifdef _CALL_AIX
|
||||
// The function descriptor is actually multiple words,
|
||||
// but we don't care about anything except the first.
|
||||
# define UNWRAP_FUNCTION_DESCRIPTOR(X) (*(void **)(X))
|
||||
#else
|
||||
# define UNWRAP_FUNCTION_DESCRIPTOR(X) (X)
|
||||
#endif
|
||||
Reference in New Issue
Block a user