http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48797

Rich Felker <bugdal at aerifal dot cx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugdal at aerifal dot cx

--- Comment #6 from Rich Felker <bugdal at aerifal dot cx> 2011-04-28 03:26:16 
UTC ---
I am the author of the code in question (musl stdarg.h), and I agree it's
preferable to use the gcc builtin macros when available. However I also have a
design goals of providing a complete set of C headers supporting non-gcc
compilers which might not (and do not) have the required macros or the same
"compiler-provided headers" gcc provides. This includes at least pcc, and if I
remember correctly, also tinycc. As far as I know, it's also possible that
older versions of gcc do not support the builtin macros on archs where they
were not historically necessary.

The fix I propose, on my end, is to test GCC version macros to conditionally
define the va_* macros with gcc builtins when available, and use the
traditional macros when they are not.

Can anyone provide me with information on the earliest GCC version to support
the builtins for i386?

Reply via email to