20 lines
699 B
Diff
20 lines
699 B
Diff
Link:
|
|
Subject: not use limited supported in lcc function _builtin_mul_overflow_p (no support const expressions) to prevent errors when running tests
|
|
Tags: lcc
|
|
|
|
--- a/libmissing/intprops.h 2020-09-09 17:30:32.545000000 +0300
|
|
+++ b/libmissing/intprops.h 2021-04-02 22:03:52.550256524 +0300
|
|
@@ -228,7 +228,11 @@
|
|
#endif
|
|
|
|
/* True if __builtin_add_overflow_p (A, B, C) works. */
|
|
-#define _GL_HAS_BUILTIN_OVERFLOW_P (7 <= __GNUC__)
|
|
+#if (!defined __LCC__)
|
|
+# define _GL_HAS_BUILTIN_OVERFLOW_P (7 <= __GNUC__)
|
|
+#else
|
|
+# define _GL_HAS_BUILTIN_OVERFLOW_P 0
|
|
+#endif
|
|
|
|
/* The _GL*_OVERFLOW macros have the same restrictions as the
|
|
*_RANGE_OVERFLOW macros, except that they do not assume that operands
|