1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
From 18cc03a4713ff7c69a909950f9e3aca5de7db38e Mon Sep 17 00:00:00 2001
From: Christopher Larson <chris_larson@mentor.com>
Date: Tue, 6 Nov 2018 02:18:35 +0500
Subject: [PATCH] 8184309, PR3596: Build warnings from GCC 7.1 on Fedora 26
Another patch from upstream icedtea.
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
Makefile.am | 3 ++-
patches/8184309-pr3596.patch | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)
create mode 100644 patches/8184309-pr3596.patch
Index: icedtea-2.1.3/Makefile.am
===================================================================
--- icedtea-2.1.3.orig/Makefile.am
+++ icedtea-2.1.3/Makefile.am
@@ -279,7 +279,8 @@ endif
# Apply additional HotSpot patches against same patch base
ICEDTEA_PATCHES += \
- patches/pr3597.patch
+ patches/pr3597.patch \
+ patches/8184309-pr3596.patch
ICEDTEA_PATCHES += $(DISTRIBUTION_PATCHES)
Index: icedtea-2.1.3/patches/8184309-pr3596.patch
===================================================================
--- /dev/null
+++ icedtea-2.1.3/patches/8184309-pr3596.patch
@@ -0,0 +1,22 @@
+# HG changeset patch
+# User ysuenaga
+# Date 1527498573 -3600
+# Mon May 28 10:09:33 2018 +0100
+# Node ID ef176cb429c49d1c330d9575938f66b04e3fb730
+# Parent 6915dc9ae18cce5625d3a3fc74b37da70a5b4215
+8184309, PR3596: Build warnings from GCC 7.1 on Fedora 26
+Reviewed-by: kbarrett, vlivanov
+
+Index: openjdk/hotspot/src/share/vm/code/dependencies.cpp
+===================================================================
+--- openjdk.orig/hotspot/src/share/vm/code/dependencies.cpp
++++ openjdk/hotspot/src/share/vm/code/dependencies.cpp
+@@ -488,7 +488,7 @@ void Dependencies::write_dependency_to(x
+ if (j == 1) {
+ xtty->object("x", args[j]);
+ } else {
+- char xn[10]; sprintf(xn, "x%d", j);
++ char xn[12]; sprintf(xn, "x%d", j);
+ xtty->object(xn, args[j]);
+ }
+ }
|