Opened 15 years ago

Last modified 13 years ago

#212 closed defect

386/stdarg.h does not work with GCC 4.4.0 — at Version 1

Reported by: psmedley Owned by: bird
Priority: low Milestone: libc-0.6.4
Component: libc Version: 0.6.2
Severity: normal Keywords:
Cc:

Description (last modified by bird)

386/stdarg.h needs modifications to work with GCC 4.4.0 as builtin_stdarg_start does not exist anymore.

Suggested patch is:
--- \stdarg.h	2007-06-10 16:44:46.000000000 +0845
+++ stdarg.h	2009-04-16 13:15:38.000000000 +0845
@@ -54,8 +54,13 @@
 
 #if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ > 95 || __GNUC__ >= 3)
 
+#if defined(__GNUC__) && (__GNUC__ == 4 && __GNUC_MINOR__ >= 4 )
+#define	va_start(ap, last) \
+	__builtin_va_start((ap), (last))
+#else
 #define	va_start(ap, last) \
 	__builtin_stdarg_start((ap), (last))
+#endif
 
 #define	va_arg(ap, type) \
 	__builtin_va_arg((ap), type)

This has been tested with GCC 3.3 and 4.4 as OK

Change History (1)

comment:1 Changed 13 years ago by bird

Description: modified (diff)
Status: newassigned
Note: See TracTickets for help on using tickets.