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
This commit is contained in:
John David Anglin 2005-08-20 20:26:26 +00:00 committed by John David Anglin
parent 3c0764fc1e
commit c348be20ae
3 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR libgcj/21692
* sysdep/pa/descriptor.h: New file.
* configure.host: Use sysdep/pa/descriptor.h on hppa*-*.
2005-08-19 Andrew Pinski <pinskia@physics.uc.edu>
* Makefile.am (extra_ldflags_libjava): New variable to

View File

@ -278,10 +278,14 @@ case "${host}" in
esac
case "${host}" in
ia64-* | hppa*-*)
ia64-*)
descriptor_h=sysdep/descriptor-y.h
;;
hppa*-*)
descriptor_h=sysdep/pa/descriptor.h
;;
rs6000-* | powerpc*-*)
descriptor_h=sysdep/powerpc/descriptor.h
;;

View File

@ -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))