tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: must use gcc builtin?

On Tue, Feb 21, 2012 at 11:29:20PM -0500, James K. Lowden wrote:
> (BTW, why is this code in the machine directory?  I don't see any
> architecture dependency.)  

This part has been fixed during 5.99.x btw. If you have a compiler,
which doesn't support provide the GCC builtins (which are supported by
~all compilers of relevance), you can just define them yourself and
sys/stdarg.h will use them.

The only reason in C89 to ever mess with the internals of va_list was
the lack of a copy operation. That's been fixed by C99. Everything else
is now just an excuse to write broken code.


Home | Main Index | Thread Index | Old Index