[patch] rfc: shark llvm2.7 hotspot macros.hpp NOT_X86 patch

View: New views
2 Messages — Rating Filter:   Alert me  

[patch] rfc: shark llvm2.7 hotspot macros.hpp NOT_X86 patch

by Xerxes Rånby :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Shark require the NOT_X86 macro to build with llvm 2.7 and later, the
attached patch adds this new macro to hotspot.
ok to push?

Xerxes

diff -r b412bab45028 patches/icedtea-shark.patch
--- a/patches/icedtea-shark.patch Wed Nov 11 16:08:49 2009 +0000
+++ b/patches/icedtea-shark.patch Thu Nov 12 15:55:33 2009 +0100
@@ -388,3 +388,23 @@
    ((CodeBlob*)(this))->flush();
 
    CodeCache::free(this);
+Index: openjdk/hotspot/src/share/vm/utilities/macros.hpp
+===================================================================
+--- openjdk.orig/ports/hotspot/src/share/vm/utilities/macros.hpp 2009-11-12 15:17:14.458064088 +0100
++++ openjdk/hotspot/src/share/vm/utilities/macros.hpp 2009-11-12 15:19:18.097063844 +0100
+@@ -146,12 +146,14 @@
+ #define NOT_WINDOWS(code) code
+ #endif
+
+-#if defined(IA32) || defined(AMD64)
++#if defined(IA32) || defined(IA64) || defined(AMD64)
+ #define X86
+ #define X86_ONLY(code) code
++#define NOT_X86(code)
+ #else
+ #undef X86
+ #define X86_ONLY(code)
++#define NOT_X86(code) code
+ #endif
+
+ #ifdef IA32

Re: [patch] rfc: shark llvm2.7 hotspot macros.hpp NOT_X86 patch

by Gary Benson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Xerxes Rånby wrote:
> Shark require the NOT_X86 macro to build with llvm 2.7 and later,
> the attached patch adds this new macro to hotspot.  ok to push?

Push away :)

Cheers,
Gary

--
http://gbenson.net/