mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
6953477: Increase portability and flexibility of building Hotspot
A collection of portability improvements including shared code support for PPC, ARM platforms, software floating point, cross compilation support and improvements in error crash detail. Reviewed-by: phh, never, coleenp, dholmes
This commit is contained in:
parent
c45761e2a8
commit
b95c7e9523
113 changed files with 1669 additions and 559 deletions
|
@ -216,8 +216,16 @@ extern "C" {
|
|||
|
||||
#define DEBUG_EXCEPTION ::abort();
|
||||
|
||||
#ifdef ARM
|
||||
#ifdef SOLARIS
|
||||
#define BREAKPOINT __asm__ volatile (".long 0xe1200070")
|
||||
#else
|
||||
#define BREAKPOINT __asm__ volatile (".long 0xe7f001f0")
|
||||
#endif
|
||||
#else
|
||||
extern "C" void breakpoint();
|
||||
#define BREAKPOINT ::breakpoint()
|
||||
#endif
|
||||
|
||||
// checking for nanness
|
||||
#ifdef SOLARIS
|
||||
|
@ -235,6 +243,12 @@ inline int g_isnan(double f) { return isnan(f); }
|
|||
#error "missing platform-specific definition here"
|
||||
#endif
|
||||
|
||||
// GCC 4.3 does not allow 0.0/0.0 to produce a NAN value
|
||||
#if (__GNUC__ == 4) && (__GNUC_MINOR__ > 2)
|
||||
#define CAN_USE_NAN_DEFINE 1
|
||||
#endif
|
||||
|
||||
|
||||
// Checking for finiteness
|
||||
|
||||
inline int g_isfinite(jfloat f) { return finite(f); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue