diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-25 23:24:07 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-25 23:24:07 +0000 |
commit | 4887ae62f644d984e3831571126c604252d9a5da (patch) | |
tree | decadfd6855f01f7f2fa5b72d94ed6ce6e6edfea /libjava/sysdep/descriptor-y.h | |
parent | 3187c1c2eb495763026ecf1fff5972c049447a2c (diff) | |
download | gcc-4887ae62f644d984e3831571126c604252d9a5da.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100173 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/sysdep/descriptor-y.h')
-rw-r--r-- | libjava/sysdep/descriptor-y.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libjava/sysdep/descriptor-y.h b/libjava/sysdep/descriptor-y.h new file mode 100644 index 00000000000..ca615505d83 --- /dev/null +++ b/libjava/sysdep/descriptor-y.h @@ -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)) |