From 1f00d6d7f75c8085fcce1cedfcf8588541f2a073 Mon Sep 17 00:00:00 2001 From: Richard Leitner Date: Fri, 27 Dec 2019 11:12:19 +0100 Subject: icedtea7-native: add patch to fix friend declaration of prefix_relocInfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following error: build/openjdk-boot/hotspot/src/share/vm/code/relocInfo.hpp:374:27: error: friend declaration of ‘relocInfo prefix_relocInfo(int)’ specifies default arguments and isn’t a definition [-fpermissive] Signed-off-by: Richard Leitner --- ...ea-hotspot-fix-prefix_relocInfo-declaration.patch | 20 ++++++++++++++++++++ recipes-core/icedtea/openjdk-7-release-03b147.inc | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 recipes-core/icedtea/openjdk-7-03b147/icedtea-hotspot-fix-prefix_relocInfo-declaration.patch diff --git a/recipes-core/icedtea/openjdk-7-03b147/icedtea-hotspot-fix-prefix_relocInfo-declaration.patch b/recipes-core/icedtea/openjdk-7-03b147/icedtea-hotspot-fix-prefix_relocInfo-declaration.patch new file mode 100644 index 0000000..bd2819f --- /dev/null +++ b/recipes-core/icedtea/openjdk-7-03b147/icedtea-hotspot-fix-prefix_relocInfo-declaration.patch @@ -0,0 +1,20 @@ +--- openjdk/hotspot/src/share/vm/code/relocInfo.hpp ++++ openjdk/hotspot/src/share/vm/code/relocInfo.hpp +@@ -371,7 +371,7 @@ + // "immediate" in the prefix header word itself. This optimization + // is invisible outside this module.) + +- inline friend relocInfo prefix_relocInfo(int datalen = 0); ++ inline friend relocInfo prefix_relocInfo(int datalen); + + protected: + // an immediate relocInfo optimizes a prefix with one 10-bit unsigned value +@@ -466,7 +466,7 @@ + return relocInfo(relocInfo::none, relocInfo::offset_limit() - relocInfo::offset_unit); + } + +-inline relocInfo prefix_relocInfo(int datalen) { ++inline relocInfo prefix_relocInfo(int datalen = 0) { + assert(relocInfo::fits_into_immediate(datalen), "datalen in limits"); + return relocInfo(relocInfo::data_prefix_tag, relocInfo::RAW_BITS, relocInfo::datalen_tag | datalen); + } diff --git a/recipes-core/icedtea/openjdk-7-release-03b147.inc b/recipes-core/icedtea/openjdk-7-release-03b147.inc index 484f124..2bc7065 100644 --- a/recipes-core/icedtea/openjdk-7-release-03b147.inc +++ b/recipes-core/icedtea/openjdk-7-release-03b147.inc @@ -90,6 +90,7 @@ OPENJDK_PATCHES = " \ file://icedtea-CVE-2014-1876-unpack.patch;apply=no \ file://icedtea-jdk-unzip.patch;apply=no \ file://icedtea-hotspot-handle-gcc7-format-overflow.patch;apply=no \ + file://icedtea-hotspot-fix-prefix_relocInfo-declaration.patch;apply=no \ " OPENJDK_HEADLESS_PATCHES = " \ @@ -113,6 +114,7 @@ export DISTRIBUTION_PATCHES = " \ patches/icedtea-CVE-2014-1876-unpack.patch \ patches/icedtea-jdk-unzip.patch \ patches/icedtea-hotspot-handle-gcc7-format-overflow.patch \ + patches/icedtea-hotspot-fix-prefix_relocInfo-declaration.patch \ ${CLEAN_X11_DISTRIBUTION_PATCH} \ " -- cgit v1.2.3-54-g00ecf