Reenable POSIX builtin library functions in gnu2x mode
authorAaron Ballman <aaron@aaronballman.com>
Wed, 2 Nov 2022 11:56:43 +0000 (07:56 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 2 Nov 2022 12:00:25 +0000 (08:00 -0400)
commitd7d743621a0d5d13ed54d358944857ccba598299
tree5ba2553d9b939939c277e72e89b99183d01726c5
parent957eed0b1af2cb88edafe1ff2643a38165c67a40
Reenable POSIX builtin library functions in gnu2x mode

gnu17 and earlier modes automatically expose several POSIX C APIs, and
this was accidentally disabled for gnu2x in
7d644e1215b376ec5e915df9ea2eeb56e2d94626.

This restores the behavior for gnu2x mode (without changing the
behavior in C standards modes instead of GNU modes).

Fixes #56607
clang/docs/ReleaseNotes.rst
clang/lib/Sema/SemaLookup.cpp
clang/test/Sema/gnu-builtins.c [new file with mode: 0644]