Accepting request 495573 from home:rguenther:branches:X11:common:Factory
- Add icu-avoid-x87-excess-precision.diff to avoid FixedPrecision::initVisibleDigits failure on i586 with GCC 7. (bnc#1030253) OBS-URL: https://build.opensuse.org/request/show/495573 OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/icu?expand=0&rev=76
This commit is contained in:
parent
8934faeb38
commit
f65b1d29de
11
icu-avoid-x87-excess-precision.diff
Normal file
11
icu-avoid-x87-excess-precision.diff
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- source/i18n/precision.cpp.orig 2017-05-17 11:05:56.517416029 +0000
|
||||||
|
+++ source/i18n/precision.cpp 2017-05-17 11:05:22.700828110 +0000
|
||||||
|
@@ -227,7 +227,7 @@
|
||||||
|
}
|
||||||
|
// Try to find n such that value * 10^n is an integer
|
||||||
|
int32_t n = -1;
|
||||||
|
- double scaled;
|
||||||
|
+ volatile double scaled; // make sure scaled is in memory to avoid excess precision with x87 math
|
||||||
|
for (int32_t i = 0; i < UPRV_LENGTHOF(gPower10); ++i) {
|
||||||
|
scaled = value * gPower10[i];
|
||||||
|
if (scaled > MAX_INT64_IN_DOUBLE || scaled < -MAX_INT64_IN_DOUBLE) {
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 17 11:14:47 UTC 2017 - rguenther@suse.com
|
||||||
|
|
||||||
|
- Add icu-avoid-x87-excess-precision.diff to avoid
|
||||||
|
FixedPrecision::initVisibleDigits failure on i586 with GCC 7.
|
||||||
|
(bnc#1030253)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 27 17:33:46 UTC 2017 - jengelh@inai.de
|
Thu Apr 27 17:33:46 UTC 2017 - jengelh@inai.de
|
||||||
|
|
||||||
|
2
icu.spec
2
icu.spec
@ -37,6 +37,7 @@ Source100: baselibs.conf
|
|||||||
Patch3: icu-versioning.diff
|
Patch3: icu-versioning.diff
|
||||||
Patch4: icu-fix-install-mode-files.diff
|
Patch4: icu-fix-install-mode-files.diff
|
||||||
Patch6: icu-error-reporting.diff
|
Patch6: icu-error-reporting.diff
|
||||||
|
Patch7: icu-avoid-x87-excess-precision.diff
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
@ -157,6 +158,7 @@ unzip %SOURCE2
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%patch -P 3 -P 4 -P 6 -p1
|
%patch -P 3 -P 4 -P 6 -p1
|
||||||
|
%patch7
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd source
|
cd source
|
||||||
|
Loading…
Reference in New Issue
Block a user