]> Savannah Git Hosting - gnulib.git/commit
intprops.h: port recent changes to GCC 6.2.0
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 29 Aug 2016 19:03:51 +0000 (12:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 29 Aug 2016 19:04:32 +0000 (12:04 -0700)
commitabae112b34572cd3869ce4fc81dddb5c2a7394c4
tree201d5fa7f94a21d3828d0ee99c9ec8046d3dfd73
parentd22721e2efd88f26588c9710000eb1eeb3ec40de
intprops.h: port recent changes to GCC 6.2.0

* lib/intprops.h (__has_builtin): Move earlier.
(_GL_HAS_BUILTIN_OVERFLOW): Rename from
_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
the last argument can be null.  All uses changed.
(_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
(_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
and it's not clear which GCC versions it works for.
(_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
its definiens.
ChangeLog
lib/intprops.h