musl/include/stdarg.h, branch master musl - an implementation of the standard library for Linux-based systems remove legacy i386 fallback stdarg implementation and framework 2016年12月15日T17:18:24+00:00 Rich Felker dalias@aerifal.cx 2016年12月15日T17:18:24+00:00 ffaaa6d230512f3a7f3d040b943517728f3dc3cf this has been slated for removal for a long time. there is fundamentally no way to implement stdarg without compiler assistance; any attempt to do so has serious undefined behavior; its working depends not just (as a common misconception goes) on ABI, but also on assumptions about compiler code generation internal to a translation unit, which is not subject to external ABI constraints.
this has been slated for removal for a long time. there is
fundamentally no way to implement stdarg without compiler assistance;
any attempt to do so has serious undefined behavior; its working
depends not just (as a common misconception goes) on ABI, but also on
assumptions about compiler code generation internal to a translation
unit, which is not subject to external ABI constraints.
use compiler builtins for variadic macros when available 2011年04月28日T03:41:48+00:00 Rich Felker dalias@aerifal.cx 2011年04月28日T03:41:48+00:00 def0af189871a499efdc9bc37438d8b20eb702ab this slightly cuts down on the degree musl "fights with" gcc, but more importantly, it fixes a critical bug when gcc inlines a variadic function and optimizes out the variadic arguments due to noticing that they were "not used" (by __builtin_va_arg). we leave the old code in place if __GNUC__ >= 3 is false; it seems like it might be necessary at least for tinycc support and perhaps if anyone ever gets around to fixing gcc 2.95.3 enough to make it work..
this slightly cuts down on the degree musl "fights with" gcc, but more
importantly, it fixes a critical bug when gcc inlines a variadic
function and optimizes out the variadic arguments due to noticing that
they were "not used" (by __builtin_va_arg).
we leave the old code in place if __GNUC__ >= 3 is false; it seems
like it might be necessary at least for tinycc support and perhaps if
anyone ever gets around to fixing gcc 2.95.3 enough to make it work..
split off arch-specific stdarg.h stuff 2011年02月15日T10:06:15+00:00 Rich Felker dalias@aerifal.cx 2011年02月15日T10:06:15+00:00 13a026bd79f0024d57b7edf8305d625599d10810
initial check-in, version 0.5.0 2011年02月12日T05:22:29+00:00 Rich Felker dalias@aerifal.cx 2011年02月12日T05:22:29+00:00 0b44a0315b47dd8eced9f3b7f31580cf14bbfc01

AltStyle によって変換されたページ (->オリジナル) /