#212 closed defect (fixed)
386/stdarg.h does not work with GCC 4.4.0
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 )
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 (5)
comment:1 by , 14 years ago
Description: | modified (diff) |
---|---|
Status: | new → assigned |
comment:2 by , 14 years ago
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 by , 14 years ago
Note:
See TracTickets
for help on using tickets.
(In [3715]) 386/stdarg.h,sys/cdefs.h: Synced in bit from more recent FreeBSDs so that the stdarg.h macros will work with more recent GCC versions. References #212