intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
commit55168f5fa7b3b95fbaa2be525b15f6ecd5500c02
authorBruno Haible <bruno@clisp.org>
Fri, 18 Dec 2020 12:10:27 +0000 (18 13:10 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 18 Dec 2020 12:10:27 +0000 (18 13:10 +0100)
treed9f756f3c9c110479f731a94d2f1056d1d391ffb
parent0aa8ef42465a8a7828960311230308af7042e414
intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.

Reported by Stefan Liebler <stli@linux.ibm.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.

* lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
GCC 5.x and 6.x.
* lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
GCC 5.x and 6.x.
ChangeLog
lib/glob.c
lib/intprops.h