Commit 56e3dd2c by Andrew Haley Committed by Tom Tromey

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
parent 4f76382d
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment