diff options
Diffstat (limited to 'recipes-core/openjdk/patches-openjdk-8/1008-hotspot-handle-format-error-for-GCC-7.patch')
-rw-r--r-- | recipes-core/openjdk/patches-openjdk-8/1008-hotspot-handle-format-error-for-GCC-7.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes-core/openjdk/patches-openjdk-8/1008-hotspot-handle-format-error-for-GCC-7.patch b/recipes-core/openjdk/patches-openjdk-8/1008-hotspot-handle-format-error-for-GCC-7.patch new file mode 100644 index 0000000..bdeb766 --- /dev/null +++ b/recipes-core/openjdk/patches-openjdk-8/1008-hotspot-handle-format-error-for-GCC-7.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From b620c78bbe2b10b952d8f291f345bab12cfe4b5e Mon Sep 17 00:00:00 2001 | ||
2 | From: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com> | ||
3 | Date: Fri, 21 Sep 2018 10:44:06 +0200 | ||
4 | Subject: [PATCH 1008/1013] hotspot: handle format error for GCC >= 7 | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com> | ||
9 | Signed-off-by: Richard Leitner <richard.leitner@skidata.com> | ||
10 | --- | ||
11 | src/share/vm/adlc/output_c.cpp | 6 ++++-- | ||
12 | 1 file changed, 4 insertions(+), 2 deletions(-) | ||
13 | |||
14 | diff --git a/hotspot/src/share/vm/adlc/output_c.cpp b/hotspot/src/share/vm/adlc/output_c.cpp | ||
15 | index 199169046..889b785c1 100644 | ||
16 | --- a/hotspot/src/share/vm/adlc/output_c.cpp | ||
17 | +++ b/hotspot/src/share/vm/adlc/output_c.cpp | ||
18 | @@ -419,9 +419,11 @@ static int pipeline_res_mask_initializer( | ||
19 | for (i = maxcycleused; i > 0; i /= 10) | ||
20 | cycledigit++; | ||
21 | |||
22 | - int maskdigit = 0; | ||
23 | - for (i = rescount; i > 0; i /= 10) | ||
24 | + int maskdigit = 1; | ||
25 | + for (i = rescount / 10; i > 0; i /= 10) | ||
26 | maskdigit++; | ||
27 | + if (maskdigit > 10) | ||
28 | + maskdigit = 10; | ||
29 | |||
30 | static const char* pipeline_use_cycle_mask = "Pipeline_Use_Cycle_Mask"; | ||
31 | static const char* pipeline_use_element = "Pipeline_Use_Element"; | ||
32 | -- | ||
33 | 2.26.2 | ||
34 | |||