ALT Linux Bugzilla
– Attachment 8082 Details for
Bug 36538
[PATCH] исправление сборки на e2k
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
[e2k] fix build with lcc 1.23 lacking some builtins
0001-e2k-fix-build-with-lcc-1.23-lacking-some-builtins.patch (text/plain), 1.29 KB, created by
Michael Shigorin
on 2019-04-06 23:27:01 MSK
(
hide
)
Description:
[e2k] fix build with lcc 1.23 lacking some builtins
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2019-04-06 23:27:01 MSK
Size:
1.29 KB
patch
obsolete
>From 07104f170bf0d27420f7006dd1d0d5ae6c9d781f Mon Sep 17 00:00:00 2001 >From: Michael Shigorin <mike@altlinux.org> >Date: Sat, 6 Apr 2019 00:21:38 +0300 >Subject: [PATCH] [e2k] fix build with lcc 1.23 lacking some builtins > >--- > poppler/goo/GooCheckedOps.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/poppler/goo/GooCheckedOps.h b/poppler/goo/GooCheckedOps.h >index 3da6b33..29747b6 100644 >--- a/poppler/goo/GooCheckedOps.h >+++ b/poppler/goo/GooCheckedOps.h >@@ -29,7 +29,7 @@ inline bool checkedAssign(long long lz, int *z) { > #endif > > inline bool checkedAdd(int x, int y, int *z) { >-#if __GNUC__ >= 5 || __has_builtin(__builtin_sadd_overflow) >+#if !(defined __LCC__ && __LCC__ <= 123) && __GNUC__ >= 5 || __has_builtin(__builtin_sadd_overflow) > return __builtin_sadd_overflow(x, y, z); > #else > const auto lz = static_cast<long long>(x) + static_cast<long long>(y); >@@ -38,7 +38,7 @@ inline bool checkedAdd(int x, int y, int *z) { > } > > inline bool checkedMultiply(int x, int y, int *z) { >-#if __GNUC__ >= 5 || __has_builtin(__builtin_smul_overflow) >+#if !(defined __LCC__ && __LCC__ <= 123) && __GNUC__ >= 5 || __has_builtin(__builtin_smul_overflow) > return __builtin_smul_overflow(x, y, z); > #else > const auto lz = static_cast<long long>(x) * static_cast<long long>(y); >-- >2.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 36538
: 8082