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:
Chris Lattner 2008-11-16 18:43:46 +00:00
Родитель e7f74fc196
Коммит 58ace88985
2 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -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);
}