svn commit: r286265 - head/sys/x86/include
Jung-uk Kim
jkim at FreeBSD.org
Tue Aug 4 00:11:40 UTC 2015
Author: jkim
Date: Tue Aug 4 00:11:39 2015
New Revision: 286265
URL: https://svnweb.freebsd.org/changeset/base/286265
Log:
Always define __va_list for amd64 and restore pre-r232261 behavior for i386.
Note it allows exotic compilers, e.g., TCC, to build with our stdio.h, etc.
PR: 201749
MFC after: 1 week
Modified:
head/sys/x86/include/_types.h
Modified: head/sys/x86/include/_types.h
==============================================================================
--- head/sys/x86/include/_types.h Tue Aug 4 00:11:38 2015 (r286264)
+++ head/sys/x86/include/_types.h Tue Aug 4 00:11:39 2015 (r286265)
@@ -152,8 +152,17 @@ typedef int ___wchar_t;
*/
#ifdef __GNUCLIKE_BUILTIN_VARARGS
typedef __builtin_va_list __va_list; /* internally known to gcc */
-#elif defined(lint)
-typedef char * __va_list; /* pretend */
+#else
+#ifdef __LP64__
+typedef struct {
+ unsigned int __gpo;
+ unsigned int __fpo;
+ void *__oaa;
+ void *__rsa;
+} __va_list;
+#else
+typedef char * __va_list;
+#endif
#endif
#if defined(__GNUC_VA_LIST_COMPATIBILITY) && !defined(__GNUC_VA_LIST) \
&& !defined(__NO_GNUC_VA_LIST)
More information about the svn-src-head
mailing list