Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/icu/files: icu-4.4.2-gcc-4.5.patch
Date: Tue, 02 Nov 2010 07:11:23
Message-Id: 20101102071120.AF64620054@flycatcher.gentoo.org
1 arfrever 10/11/02 07:11:20
2
3 Added: icu-4.4.2-gcc-4.5.patch
4 Log:
5 Fix tests with GCC 4.5 (bugs #318393, #339844).
6
7 (Portage version: 2.2.0_alpha3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-libs/icu/files/icu-4.4.2-gcc-4.5.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/icu/files/icu-4.4.2-gcc-4.5.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/icu/files/icu-4.4.2-gcc-4.5.patch?rev=1.1&content-type=text/plain
14
15 Index: icu-4.4.2-gcc-4.5.patch
16 ===================================================================
17 https://ssl.icu-project.org/trac/ticket/7932
18 https://ssl.icu-project.org/trac/changeset/28667
19 https://ssl.icu-project.org/trac/ticket/8011
20 https://ssl.icu-project.org/trac/changeset/28772
21
22 --- test/cintltst/cnumtst.c
23 +++ test/cintltst/cnumtst.c
24 @@ -405,7 +405,12 @@
25 log_err("parse failed. The error is : %s\n", myErrorName(status));
26 }
27
28 - if(d1!=462.12345)
29 + /*
30 + * 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.
31 + */
32 + a1 = 462.12345;
33 +
34 + if(d1!=a1)
35 log_err("Fail: Error in parsing\n");
36 else
37 log_verbose("Pass: parsing successful\n");
38 --- test/intltest/numfmtst.cpp
39 +++ test/intltest/numfmtst.cpp
40 @@ -6144,7 +6144,7 @@
41 )
42 {
43 errln("ERROR: parse failed - expected 123.0, 3 - returned %d, %i",
44 - result.getDouble(), parsePos);
45 + result.getDouble(), parsePos.getIndex());
46 }
47 }