/hg/icedtea6: PR639: Add missing paths and LLVM flags for Shark.

andrew at icedtea.classpath.org andrew at icedtea.classpath.org
Wed Feb 23 19:23:01 PST 2011


changeset 6e7f2c1f25df in /hg/icedtea6
details: http://icedtea.classpath.org/hg/icedtea6?cmd=changeset;node=6e7f2c1f25df
author: Andrew John Hughes <ahughes at redhat.com>
date: Thu Feb 24 03:22:54 2011 +0000

	PR639: Add missing paths and LLVM flags for Shark.

	2011-02-24 Andrew John Hughes <ahughes at redhat.com>

	 * patches/pr639-missing_shark_include.patch:
	Renamed.
		* Makefile.am: Fix name of patch.
		* NEWS: Updated.
		* patches/pr639-broken_shark_build.patch: Fix other Shark
	build issues with missing compilation of Shark files and
	lack of LLVM linker flags for the launcher.


diffstat:

5 files changed, 57 insertions(+), 14 deletions(-)
ChangeLog                                 |   11 +++++++
Makefile.am                               |    2 -
NEWS                                      |    2 -
patches/pr639-broken_shark_build.patch    |   44 +++++++++++++++++++++++++++++
patches/pr639-missing_shark_include.patch |   12 -------

diffs (106 lines):

diff -r 9b2c580934df -r 6e7f2c1f25df ChangeLog
--- a/ChangeLog	Thu Feb 24 01:40:07 2011 +0000
+++ b/ChangeLog	Thu Feb 24 03:22:54 2011 +0000
@@ -1,3 +1,14 @@ 2011-02-24  Andrew John Hughes  <ahughes
+2011-02-24  Andrew John Hughes  <ahughes at redhat.com>
+
+	* patches/pr639-missing_shark_include.patch:
+	Renamed.
+	* Makefile.am: Fix name of patch.
+	* NEWS: Updated.
+	* patches/pr639-broken_shark_build.patch:
+	Fix other Shark build issues with missing
+	compilation of Shark files and lack of
+	LLVM linker flags for the launcher.
+
 2011-02-24  Andrew John Hughes  <ahughes at redhat.com>
 
 	* Makefile.am:
diff -r 9b2c580934df -r 6e7f2c1f25df Makefile.am
--- a/Makefile.am	Thu Feb 24 01:40:07 2011 +0000
+++ b/Makefile.am	Thu Feb 24 03:22:54 2011 +0000
@@ -334,7 +334,7 @@ ICEDTEA_PATCHES += \
 	patches/openjdk/6997495-test_correction_6857159.patch
 else
 ICEDTEA_PATCHES += \
-	patches/pr639-missing_shark_include.patch
+	patches/pr639-broken_shark_build.patch
 endif
 
 if WITH_RHINO
diff -r 9b2c580934df -r 6e7f2c1f25df NEWS
--- a/NEWS	Thu Feb 24 01:40:07 2011 +0000
+++ b/NEWS	Thu Feb 24 03:22:54 2011 +0000
@@ -442,7 +442,7 @@ New in release 1.10 (2011-XX-XX):
   - PR633: IcedTea installs javaws manpages on x86 even with --disable-webstart
   - PR635: zero fails to build on icedtea6 trunk 20110217 with hs20
   - PR586: Sources missing from src.zip
-  - PR639: Add missing include line for Shark.
+  - PR639: Add missing include line, paths and LLVM flags for Shark.
 * Cleanup
   - Patches are no longer prefixed with 'icedtea-'.
   - All m4 macros are now prefixed with 'IT_' to denote their origin correctly.
diff -r 9b2c580934df -r 6e7f2c1f25df patches/pr639-broken_shark_build.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/pr639-broken_shark_build.patch	Thu Feb 24 03:22:54 2011 +0000
@@ -0,0 +1,44 @@
+--- openjdk.orig/hotspot/src/share/vm/ci/ciTypeFlow.cpp	2011-01-25 22:57:24.000000000 +0000
++++ openjdk/hotspot/src/share/vm/ci/ciTypeFlow.cpp	2011-02-24 00:28:58.000000000 +0000
+@@ -37,6 +37,9 @@
+ #include "memory/allocation.inline.hpp"
+ #include "runtime/deoptimization.hpp"
+ #include "utilities/growableArray.hpp"
++#ifdef SHARK
++#include "shark/shark_globals.hpp"
++#endif
+ 
+ // ciTypeFlow::JsrSet
+ //
+--- openjdk.orig/hotspot/make/linux/makefiles/vm.make	2011-02-23 21:28:45.000000000 +0000
++++ openjdk/hotspot/make/linux/makefiles/vm.make	2011-02-24 02:17:30.000000000 +0000
+@@ -139,13 +139,15 @@
+ COMPILER2_PATHS += $(GAMMADIR)/src/share/vm/libadt
+ COMPILER2_PATHS +=  $(GENERATED)/adfiles
+ 
++SHARK_PATHS := $(GAMMADIR)/src/share/vm/shark
++
+ # Include dirs per type.
+ Src_Dirs/CORE      := $(CORE_PATHS)
+ Src_Dirs/COMPILER1 := $(CORE_PATHS) $(COMPILER1_PATHS)
+ Src_Dirs/COMPILER2 := $(CORE_PATHS) $(COMPILER2_PATHS)
+ Src_Dirs/TIERED    := $(CORE_PATHS) $(COMPILER1_PATHS) $(COMPILER2_PATHS)
+ Src_Dirs/ZERO      := $(CORE_PATHS)
+-Src_Dirs/SHARK     := $(CORE_PATHS)
++Src_Dirs/SHARK     := $(CORE_PATHS) $(SHARK_PATHS)
+ Src_Dirs := $(Src_Dirs/$(TYPE))
+ 
+ COMPILER2_SPECIFIC_FILES := opto libadt bcEscapeAnalyzer.cpp chaitin\* c2_\* runtime_\*
+--- openjdk.orig/hotspot/make/linux/makefiles/launcher.make	2011-02-22 16:51:24.000000000 +0000
++++ openjdk/hotspot/make/linux/makefiles/launcher.make	2011-02-24 03:01:36.000000000 +0000
+@@ -52,6 +52,10 @@
+   LAUNCHER.o                 = launcher.o
+   LFLAGS_LAUNCHER           += -L `pwd`
+   LIBS_LAUNCHER             += -l$(JVM) $(LIBS)
++  ifeq ($(SHARK_BUILD), true)
++    LFLAGS_LAUNCHER += $(LLVM_LDFLAGS)
++    LIBS_LAUNCHER   += $(LLVM_LIBS)
++  endif
+ endif
+ 
+ LINK_LAUNCHER = $(LINK.c)
diff -r 9b2c580934df -r 6e7f2c1f25df patches/pr639-missing_shark_include.patch
--- a/patches/pr639-missing_shark_include.patch	Thu Feb 24 01:40:07 2011 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
---- openjdk.orig/hotspot/src/share/vm/ci/ciTypeFlow.cpp	2011-01-25 22:57:24.000000000 +0000
-+++ openjdk/hotspot/src/share/vm/ci/ciTypeFlow.cpp	2011-02-24 00:28:58.000000000 +0000
-@@ -37,6 +37,9 @@
- #include "memory/allocation.inline.hpp"
- #include "runtime/deoptimization.hpp"
- #include "utilities/growableArray.hpp"
-+#ifdef SHARK
-+#include "shark/shark_globals.hpp"
-+#endif
- 
- // ciTypeFlow::JsrSet
- //



More information about the distro-pkg-dev mailing list