[C2x] Implement the `unreachable` macro for WG14 N2826
authorAaron Ballman <aaron@aaronballman.com>
Wed, 15 Feb 2023 19:41:38 +0000 (14:41 -0500)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 15 Feb 2023 19:43:01 +0000 (14:43 -0500)
commita9797d7d2d7878464868312e0c147b4e747a31c6
tree1a1935647aa4eacbcc656b5f5ef19d5b97094ecf
parentd6ff0808618cd421d7ee82daec951956ec27a837
[C2x] Implement the `unreachable` macro for WG14 N2826

This exposes __builtin_unreachable as the expansion for the unreachable
macro in C2x. I added this definition under __need_STDDEF_H_misc on the
assumption there is no need for a separate need macro to control adding
this.

Differential Revision: https://reviews.llvm.org/D143430
clang/docs/ReleaseNotes.rst
clang/lib/Headers/stddef.h
clang/test/C/C2x/n2826.c [new file with mode: 0644]
clang/www/c_status.html