]> Savannah Git Hosting - gnulib.git/commit
glob, intprops, xalloc: work around Clang bug
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 6 Jan 2017 21:36:57 +0000 (13:36 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 6 Jan 2017 21:38:05 +0000 (13:38 -0800)
commit04441fd8156978cfc51d6c203fd43c23b64f95df
treef6e072a004ba37dd716f97b07ae45161d3c8600f
parentf0f371e137158a86c4bc846a1492cd47f95a0291
glob, intprops, xalloc: work around Clang bug

Work around LLVM bug 16404, which is still not fixed.
https://llvm.org/bugs/show_bug.cgi?id=16404
Problem reported by Nelson H. F. Beebe.
* lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
Remove.
* lib/glob.c (size_add_wrapv):
* lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
* lib/xalloc-oversized.h (xalloc_oversized):
Do not use overflow builtins if Clang.
ChangeLog
lib/glob.c
lib/intprops.h
lib/xalloc-oversized.h