зеркало из https://github.com/microsoft/clang-1.git
Fix PR3075, __builtin_stdarg_start being misprototyped. This affects netbsd headers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59419 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
e7f74fc196
Коммит
58ace88985
|
@ -118,7 +118,7 @@ BUILTIN(__builtin___CFStringMakeConstantString, "FC*cC*", "nc")
|
|||
BUILTIN(__builtin_va_start, "va&.", "n")
|
||||
BUILTIN(__builtin_va_end, "va&", "n")
|
||||
BUILTIN(__builtin_va_copy, "va&a", "n")
|
||||
BUILTIN(__builtin_stdarg_start, "va&a", "n")
|
||||
BUILTIN(__builtin_stdarg_start, "va&.", "n")
|
||||
BUILTIN(__builtin_bzero, "vv*z", "n")
|
||||
BUILTIN(__builtin_memcpy, "v*v*vC*z", "n")
|
||||
BUILTIN(__builtin_memmove, "v*v*vC*z", "n")
|
||||
|
|
|
@ -25,3 +25,12 @@ void f3(float a, ...)
|
|||
__builtin_va_start(ap, a);
|
||||
__builtin_va_start(ap, (a));
|
||||
}
|
||||
|
||||
|
||||
// stdarg: PR3075
|
||||
void f4(const char *msg, ...) {
|
||||
__builtin_va_list ap;
|
||||
__builtin_stdarg_start((ap), (msg));
|
||||
__builtin_va_end (ap);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче