Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 544222 Details for
Bug 663686
<sys-apps/diffutils-3.6: fails tests - ../lib/intprops.h:234:4: error: expression in static assertion is not constant
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
diffutils-3.5-fix_macros.patch v2
file_663686.txt (text/plain), 1.64 KB, created by
camper
on 2018-08-20 23:33:09 UTC
(
hide
)
Description:
diffutils-3.5-fix_macros.patch v2
Filename:
MIME Type:
Creator:
camper
Created:
2018-08-20 23:33:09 UTC
Size:
1.64 KB
patch
obsolete
>--- a/lib/intprops.h >+++ b/lib/intprops.h >@@ -230,12 +230,12 @@ > (e.g., A and B) have the same type as MIN and MAX. Instead, they assume > that the result (e.g., A + B) has that type. */ > #if _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL >-# define _GL_ADD_OVERFLOW(a, b, min, max) >- __builtin_add_overflow (a, b, (__typeof__ ((a) + (b)) *) 0) >-# define _GL_SUBTRACT_OVERFLOW(a, b, min, max) >- __builtin_sub_overflow (a, b, (__typeof__ ((a) - (b)) *) 0) >-# define _GL_MULTIPLY_OVERFLOW(a, b, min, max) >- __builtin_mul_overflow (a, b, (__typeof__ ((a) * (b)) *) 0) >+# define _GL_ADD_OVERFLOW(a, b, min, max) \ >+ __builtin_add_overflow_p (a, b, (__typeof__ ((a) + (b))) 0) >+# define _GL_SUBTRACT_OVERFLOW(a, b, min, max) \ >+ __builtin_sub_overflow_p (a, b, (__typeof__ ((a) - (b))) 0) >+# define _GL_MULTIPLY_OVERFLOW(a, b, min, max) \ >+ __builtin_mul_overflow_p (a, b, (__typeof__ ((a) * (b))) 0) > #else > # define _GL_ADD_OVERFLOW(a, b, min, max) \ > ((min) < 0 ? INT_ADD_RANGE_OVERFLOW (a, b, min, max) \ >--- a/lib/xalloc-oversized.h >+++ b/lib/xalloc-oversized.h >@@ -46,7 +46,7 @@ > /* GCC 7 __builtin_mul_overflow should easily compute this. See: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68120 */ > #if 7 <= __GNUC__ >-# define xalloc_oversized(n, s) __builtin_mul_overflow (n, s, (size_t *) NULL) >+# define xalloc_oversized(n, s) __builtin_mul_overflow_p (n, s, (size_t) 0) > > /* GCC 5 and Clang __builtin_mul_overflow needs a temporary, and > should be used only for non-constant operands, so that
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 663686
:
543518
|
544220
| 544222