[clang][Headers] Do not define varargs macros for __need___va_list
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 10 Aug 2022 14:47:07 +0000 (11:47 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 8 Nov 2022 19:29:35 +0000 (16:29 -0300)
commit9e956995db1fc7e792e3dfb3a465a52626195557
tree65a17ce9d2c49a257fbf265a4165aa19b8585773
parente4e7bdebb180ea81aa7927797c20e694ed18bee8
[clang][Headers] Do not define varargs macros for __need___va_list

The glibc uses the define to avoid namespace polution on headers
that requires variadic argument, where the inclusion of stdarg.h is
required to obtain the va_list definition.

For such cases only __gnuc_va_list is required.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D137268
clang/lib/Headers/stdarg.h
compiler-rt/test/sanitizer_common/TestCases/Linux/signal_send.cpp