From 13f5eecde7819443da3b2a049365ecdf200c5caa Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Tue, 2 Nov 2010 07:11:20 +0000 Subject: Fix tests with GCC 4.5 (bugs #318393, #339844). (Portage version: 2.2.0_alpha3/cvs/Linux x86_64) --- dev-libs/icu/files/icu-4.4.2-gcc-4.5.patch | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 dev-libs/icu/files/icu-4.4.2-gcc-4.5.patch (limited to 'dev-libs/icu/files') diff --git a/dev-libs/icu/files/icu-4.4.2-gcc-4.5.patch b/dev-libs/icu/files/icu-4.4.2-gcc-4.5.patch new file mode 100644 index 000000000000..0b5d2ebdd2d5 --- /dev/null +++ b/dev-libs/icu/files/icu-4.4.2-gcc-4.5.patch @@ -0,0 +1,32 @@ +https://ssl.icu-project.org/trac/ticket/7932 +https://ssl.icu-project.org/trac/changeset/28667 +https://ssl.icu-project.org/trac/ticket/8011 +https://ssl.icu-project.org/trac/changeset/28772 + +--- test/cintltst/cnumtst.c ++++ test/cintltst/cnumtst.c +@@ -405,7 +405,12 @@ + log_err("parse failed. The error is : %s\n", myErrorName(status)); + } + +- if(d1!=462.12345) ++ /* ++ * Note: "for strict standard conformance all operations and constants are now supposed to be evaluated in precision of long double". So, we assign a1 before comparing to a double. Bug #7932. ++ */ ++ a1 = 462.12345; ++ ++ if(d1!=a1) + log_err("Fail: Error in parsing\n"); + else + log_verbose("Pass: parsing successful\n"); +--- test/intltest/numfmtst.cpp ++++ test/intltest/numfmtst.cpp +@@ -6144,7 +6144,7 @@ + ) + { + errln("ERROR: parse failed - expected 123.0, 3 - returned %d, %i", +- result.getDouble(), parsePos); ++ result.getDouble(), parsePos.getIndex()); + } + } + -- cgit v1.2.3-65-gdbad