From: Paul Eggert Date: Sun, 25 Aug 2019 00:17:39 +0000 (-0700) Subject: intprops: say why not Clang __builtin_add_overflow X-Git-Tag: v1.0~4688 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=77daeef875821f8a00bafc752a5cfc95f3e11e40;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 2a458f077f..f7fbcf4135 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2019-08-24 Paul Eggert + + 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 doc: Document most of the files outside of modules. diff --git a/lib/intprops.h b/lib/intprops.h index 2c02568834..fbbc3cffe0 100644 --- a/lib/intprops.h +++ b/lib/intprops.h @@ -220,7 +220,9 @@ ? (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 for why this is + false for Clang. */ #if 5 <= __GNUC__ && !defined __ICC # define _GL_HAS_BUILTIN_OVERFLOW 1 #else