From 99bd206eb1c8ca285e676886a7d6329b40ae4c66 Mon Sep 17 00:00:00 2001 From: Steffen Sledz Date: Fri, 5 Oct 2012 15:22:33 +0200 Subject: icedtea6-native: fix compile error Don't return booleans from methods returning pointers. see also: - commit was modified, removed the 1.7 version stuff Signed-off-by: Steffen Sledz Signed-off-by: Henning Heinold --- .../icedtea-hotspot-dont-return-booleans.patch | 12 ++++++++++++ recipes-core/icedtea/icedtea6-native_1.8.11.bb | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 recipes-core/icedtea/icedtea6-native-1.8.11/icedtea-hotspot-dont-return-booleans.patch diff --git a/recipes-core/icedtea/icedtea6-native-1.8.11/icedtea-hotspot-dont-return-booleans.patch b/recipes-core/icedtea/icedtea6-native-1.8.11/icedtea-hotspot-dont-return-booleans.patch new file mode 100644 index 0000000..73f90b3 --- /dev/null +++ b/recipes-core/icedtea/icedtea6-native-1.8.11/icedtea-hotspot-dont-return-booleans.patch @@ -0,0 +1,12 @@ +diff -Nurd openjdk/hotspot/src/share/vm/opto/loopnode.cpp openjdk/hotspot/src/share/vm/opto/loopnode.cpp +--- openjdk/hotspot/src/share/vm/opto/loopnode.cpp 2012-10-05 14:18:19.725747261 +0200 ++++ openjdk/hotspot/src/share/vm/opto/loopnode.cpp 2012-10-05 14:18:40.751035242 +0200 +@@ -534,7 +534,7 @@ + Node* CountedLoopNode::match_incr_with_optional_truncation( + Node* expr, Node** trunc1, Node** trunc2, const TypeInt** trunc_type) { + // Quick cutouts: +- if (expr == NULL || expr->req() != 3) return false; ++ if (expr == NULL || expr->req() != 3) return NULL; + + Node *t1 = NULL; + Node *t2 = NULL; diff --git a/recipes-core/icedtea/icedtea6-native_1.8.11.bb b/recipes-core/icedtea/icedtea6-native_1.8.11.bb index 7c2e6ea..65f29ea 100644 --- a/recipes-core/icedtea/icedtea6-native_1.8.11.bb +++ b/recipes-core/icedtea/icedtea6-native_1.8.11.bb @@ -4,7 +4,7 @@ require ${PN}.inc LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" -PR = "${INC_PR}.2" +PR = "${INC_PR}.3" SRC_URI = "\ http://icedtea.classpath.org/download/source/icedtea6-${PV}.tar.gz;name=iced \ @@ -44,6 +44,7 @@ ICEDTEA_PATCHES = "\ file://icedtea-jdk-sane-x86-arch.patch;apply=no \ file://icedtea-unbreak-float.patch;apply=no \ file://icedtea-jdk-avoid-cdef-collision.patch;apply=no \ + file://icedtea-hotspot-dont-return-booleans.patch;apply=no \ " export DISTRIBUTION_PATCHES = "\ @@ -54,6 +55,7 @@ export DISTRIBUTION_PATCHES = "\ patches/icedtea-jdk-sane-x86-arch.patch \ patches/icedtea-unbreak-float.patch \ patches/icedtea-jdk-avoid-cdef-collision.patch \ + patches/icedtea-hotspot-dont-return-booleans.patch \ " EXTRA_OECONF += " --with-jaxws-drop-zip=${DL_DIR}/jdk6-jaxws-2009_10_27.zip \ -- cgit v1.2.3-54-g00ecf