25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
diff -Naur old/lib/intprops.h new/lib/intprops.h
|
|
--- old/lib/intprops.h 2019-10-21 15:50:05.047704577 +0300
|
|
+++ new/lib/intprops.h 2019-10-21 15:57:55.784582040 +0300
|
|
@@ -219,7 +219,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__ || ((defined __LCC__) && (__LCC__ > 123)))
|
|
# define _GL_HAS_BUILTIN_OVERFLOW 1
|
|
#else
|
|
# define _GL_HAS_BUILTIN_OVERFLOW 0
|
|
diff -Naur old/lib/xalloc-oversized.h new/lib/xalloc-oversized.h
|
|
--- old/lib/xalloc-oversized.h 2019-10-21 15:50:05.047704577 +0300
|
|
+++ new/lib/xalloc-oversized.h 2019-10-21 15:58:12.584898942 +0300
|
|
@@ -44,7 +44,7 @@
|
|
#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 && !__STRICT_ANSI__ && (!defined __LCC__ || ((defined __LCC__) && (__LCC__ > 123)))
|
|
# define xalloc_oversized(n, s) \
|
|
(__builtin_constant_p (n) && __builtin_constant_p (s) \
|
|
? __xalloc_oversized (n, s) \
|