summaryrefslogtreecommitdiffstats
path: root/src/arch/i386
diff options
context:
space:
mode:
authorMichael Brown2008-03-24 01:23:11 +0100
committerMichael Brown2008-03-24 01:23:11 +0100
commitdbf8a02e8f719390cc862866414781801d602ecf (patch)
treea1ec98c03b4b2c11ebd44ed97f04c22b9b0023f8 /src/arch/i386
parent[Settings] copy_settings() should not fail if some settings are missing! (diff)
downloadipxe-dbf8a02e8f719390cc862866414781801d602ecf.tar.gz
ipxe-dbf8a02e8f719390cc862866414781801d602ecf.tar.xz
ipxe-dbf8a02e8f719390cc862866414781801d602ecf.zip
[libc] Use __builtin_va_list et al in stdarg.h
The home-grown versions don't work properly for static variadic functions, when gcc can choose to use a non-standard calling convention.
Diffstat (limited to 'src/arch/i386')
-rw-r--r--src/arch/i386/include/stdarg.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/arch/i386/include/stdarg.h b/src/arch/i386/include/stdarg.h
deleted file mode 100644
index 1742cb3f4..000000000
--- a/src/arch/i386/include/stdarg.h
+++ /dev/null
@@ -1,22 +0,0 @@
-#ifndef _STDARG_H
-#define _STDARG_H
-
-typedef void * va_list;
-
-#define va_start( ap, last ) do { \
- ap = ( &last + 1 ); \
- } while ( 0 )
-
-#define va_arg( ap, type ) ({ \
- type *_this = ap; \
- ap = ( _this + 1 ); \
- *(_this); \
- })
-
-#define va_end( ap ) do { } while ( 0 )
-
-#define va_copy( dest, src ) do { \
- dest = src; \
- } while ( 0 )
-
-#endif /* _STDARG_H */