ALT Linux Bugzilla
– Attachment 8087 Details for
Bug 36551
Обновить texinfo
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
[e2k] патч для собираемости пакетного gnulib с помощью lcc 1.23
texinfo-alt-e2k-lcc123.patch (text/plain), 1.62 KB, created by
Michael Shigorin
on 2019-04-08 12:20:36 MSK
(
hide
)
Description:
[e2k] патч для собираемости пакетного gnulib с помощью lcc 1.23
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2019-04-08 12:20:36 MSK
Size:
1.62 KB
patch
obsolete
>From 2de056429e6df93dfc4e035ae02dd87fb849a54e Mon Sep 17 00:00:00 2001 >From: Michael Shigorin <mike@altlinux.org> >Date: Thu, 4 Apr 2019 22:22:00 +0300 >Subject: [PATCH] intprops, xalloc-oversized: port to lcc > >* lib/xalloc-oversized.h (xalloc_oversized): Do not use >__builtin_mul_overflow if LCC is defined, as this results in >"undefined reference to `__builtin_mul_overflow'" with lcc 1.23.12. >* lib/intprops.h: Likewise. >--- > lib/intprops.h | 2 +- > lib/xalloc-oversized.h | 3 ++- > 2 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/gnulib/lib/intprops.h b/gnulib/lib/intprops.h >index 140f6d2..d907a58 100644 >--- a/gnulib/lib/intprops.h >+++ b/gnulib/lib/intprops.h >@@ -221,7 +221,7 @@ > : (max) >> (b) < (a)) > > /* True if __builtin_add_overflow (A, B, P) works when P is non-null. */ >-#if 5 <= __GNUC__ && !defined __ICC >+#if 5 <= __GNUC__ && !defined __ICC && !(defined __LCC__ && __LCC__ <= 123) > # define _GL_HAS_BUILTIN_OVERFLOW 1 > #else > # define _GL_HAS_BUILTIN_OVERFLOW 0 >diff --git a/gnulib/lib/xalloc-oversized.h b/gnulib/lib/xalloc-oversized.h >index e3068c8..6a2a0d7 100644 >--- a/gnulib/lib/xalloc-oversized.h >+++ b/gnulib/lib/xalloc-oversized.h >@@ -44,7 +44,8 @@ typedef size_t __xalloc_count_type; > #if 7 <= __GNUC__ > # define xalloc_oversized(n, s) \ > __builtin_mul_overflow_p (n, s, (__xalloc_count_type) 1) >-#elif 5 <= __GNUC__ && !defined __ICC && !__STRICT_ANSI__ >+#elif 5 <= __GNUC__ && !defined __ICC && \ >+ !(defined __LCC__ && __LCC__ <= 123) && !__STRICT_ANSI__ > # define xalloc_oversized(n, s) \ > (__builtin_constant_p (n) && __builtin_constant_p (s) \ > ? __xalloc_oversized (n, s) \ >-- >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 36551
: 8087