]> Savannah Git Hosting - gnulib.git/commit
verify: work around xlclang 16.1 compiler bug
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 Jan 2023 22:32:11 +0000 (14:32 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 Jan 2023 22:33:06 +0000 (14:33 -0800)
commita7283ba383572bf5492faf6386752bd75c21bcc8
tree2c5c110cdcc64fa7658b421fa6e75a061d289c9d
parent34373445f7761c23786614d09eb5706eea2a1d58
verify: work around xlclang 16.1 compiler bug

Problem reported by Bruno Haible in:
https://lists.gnu.org/r/grep-devel/2023-01/msg00003.html
* lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
Define to 0 if compiler advertises itself as clang before version 5.
xlclang 16.1 advertises itself as 4.0.1 and this patch works
around what appears to be a compiler bug when compiling dfa.c in
bleeding-edge grep.
ChangeLog
lib/verify.h