]> Savannah Git Hosting - gnulib.git/commitdiff
intprops: say why not Clang __builtin_add_overflow
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Aug 2019 00:17:39 +0000 (17:17 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Aug 2019 00:18:22 +0000 (17:18 -0700)
* lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
Mention Clang in comment, responding to a query from
Mattias EngdegĂ„rd.

ChangeLog
lib/intprops.h

index 2a458f077f3bf03bb83424bf57c5ed75af8d5ee1..f7fbcf41352f6fc6740e8a8e5ceafaad1cd9f8c7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
+
+       intprops: say why not Clang __builtin_add_overflow
+       * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
+       Mention Clang in comment, responding to a query from
+       Mattias EngdegĂ„rd.
+
 2019-08-24  Bruno Haible  <bruno@clisp.org>
 
        doc: Document most of the files outside of modules.
index 2c02568834e5ef5662ed180611e6ea8009ca5209..fbbc3cffe004e17c319688a7e18a32c394c7cb3e 100644 (file)
    ? (a) < (min) >> (b)                                 \
    : (max) >> (b) < (a))
 
-/* True if __builtin_add_overflow (A, B, P) works when P is non-null.  */
+/* True if __builtin_add_overflow (A, B, P) works when P is non-null.
+   See <https://bugs.llvm.org/show_bug.cgi?id=16404> for why this is
+   false for Clang.  */
 #if 5 <= __GNUC__ && !defined __ICC
 # define _GL_HAS_BUILTIN_OVERFLOW 1
 #else