ieeefp.h: Handle ia64, fr30, mcore.
* java/lang/ieeefp.h: Handle ia64, fr30, mcore. * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace. From-SVN: r34667
This commit is contained in:
parent
4f76382d2f
commit
56e3dd2cea
3 changed files with 26 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2000-06-23 Andrew Haley <aph@cygnus.com>
|
||||
|
||||
* java/lang/ieeefp.h: Handle ia64, fr30, mcore.
|
||||
* java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
|
||||
|
||||
2000-06-23 Tom Tromey <tromey@cygnus.com>
|
||||
|
||||
* java/lang/reflect/natMethod.cc: Include <alloca.h>.
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#else
|
||||
#define __IEEE_BIG_ENDIAN
|
||||
#endif
|
||||
|
||||
#ifdef __SH3E__
|
||||
#define _DOUBLE_IS_32BITS
|
||||
#endif
|
||||
|
@ -62,6 +63,7 @@
|
|||
#ifdef __MIPSEL__
|
||||
#define __IEEE_LITTLE_ENDIAN
|
||||
#endif
|
||||
|
||||
#ifdef __MIPSEB__
|
||||
#define __IEEE_BIG_ENDIAN
|
||||
#endif
|
||||
|
@ -104,6 +106,23 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __fr30__
|
||||
#define __IEEE_BIG_ENDIAN
|
||||
#endif
|
||||
|
||||
#ifdef __mcore__
|
||||
#define __IEEE_BIG_ENDIAN
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __ia64__
|
||||
#ifdef __BIG_ENDIAN__
|
||||
#define __IEEE_BIG_ENDIAN
|
||||
#else
|
||||
#define __IEEE_LITTLE_ENDIAN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef __IEEE_BIG_ENDIAN
|
||||
#ifndef __IEEE_LITTLE_ENDIAN
|
||||
#error Endianess not declared!!
|
||||
|
|
|
@ -40,7 +40,7 @@ details. */
|
|||
#include <name-finder.h>
|
||||
|
||||
#ifdef __ia64__
|
||||
extern "C" int _Jv_ia64_backtrace (void **array, int size);
|
||||
extern "C" int __ia64_backtrace (void **array, int size);
|
||||
#endif
|
||||
|
||||
/* FIXME: size of the stack trace is limited to 128 elements. It's
|
||||
|
@ -56,7 +56,7 @@ java::lang::Throwable::fillInStackTrace (void)
|
|||
// We subtract 1 from the number of elements because we don't want
|
||||
// to include the call to fillInStackTrace in the trace.
|
||||
#if defined (__ia64__)
|
||||
int n = _Jv_ia64_backtrace (p, 128) - 1;
|
||||
int n = __ia64_backtrace (p, 128) - 1;
|
||||
#else
|
||||
int n = backtrace (p, 128) - 1;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue