]> Savannah Git Hosting - gnulib.git/commit
Port _Noreturn to older Clang
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 3 Feb 2020 21:20:09 +0000 (13:20 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 4 Feb 2020 19:40:44 +0000 (11:40 -0800)
commit4e9bc44061b93871d9b0166e2c93ef4225fa1bac
tree507c5494941bc23a8d4214efb987bb9cf85cb558
parent203dda3b86d5c9ac5a661d61038c284370448ca8
Port _Noreturn to older Clang

Problem reported by Jeffery Walton in:
https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
* lib/_Noreturn.h (_Noreturn):
* m4/gnulib-common.m4 (gl_COMMON_BODY):
Assume _Noreturn works in Clang 3.5 and later.
It is documented to work in Clang 3.5:
http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
and is not documented in Clang 3.4:
https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
Apple sets __clang_version__ to a different value, so use
__apple_build_version__ there.  See:
https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
ChangeLog
lib/_Noreturn.h
m4/gnulib-common.m4