]> Savannah Git Hosting - gnulib.git/commit
intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 17 Sep 2020 19:17:15 +0000 (12:17 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 17 Sep 2020 19:17:37 +0000 (12:17 -0700)
commit494aaa530b32b4290df9a31d123bf1825eda7217
tree0d5d83fa2f71a9032a2501ce0ba1c1597ac310d5
parent8125325281a491de9e0a6edc3c4d40d77c026114
intprops, xalloc: avoid __builtin_mul_overflow_p with Clang

Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
* lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
Define to 0.
* lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
Do not use __builtin_mul_overflow_p.
ChangeLog
lib/intprops.h
lib/xalloc-oversized.h