summaryrefslogtreecommitdiff
path: root/gcc/ginclude/stdarg.h
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-04-29 07:11:57 -0700
committerYamaArashi <shadow962@live.com>2016-04-29 07:11:57 -0700
commit4553c7e8fe69c50c201bc39dac1be088004babc2 (patch)
tree1e5dec14404096895e5736f31ebe9cbc9ad1c4fb /gcc/ginclude/stdarg.h
parent536c44e5e9612dc161e3da9d9f3f30e134e8242f (diff)
move headers out of gcc dir
Diffstat (limited to 'gcc/ginclude/stdarg.h')
-rwxr-xr-xgcc/ginclude/stdarg.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h
deleted file mode 100755
index fe80744..0000000
--- a/gcc/ginclude/stdarg.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* stdarg.h for GNU.
- Note that the type used in va_arg is supposed to match the
- actual type **after default promotions**.
- Thus, va_arg (..., short) is not valid. */
-
-#ifndef _STDARG_H
-#define _STDARG_H
-
-typedef void *__gnuc_va_list;
-
-/* Amount of space required in an argument list for an arg of type TYPE.
- TYPE may alternatively be an expression whose type is used. */
-#define __va_rounded_size(TYPE) \
- (((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int))
-
-#define va_start(AP, LASTARG) \
- (AP = ((__gnuc_va_list) __builtin_next_arg(LASTARG)))
-
-#define va_end(AP) ((void)0)
-
-/* We cast to void * and then to TYPE * because this avoids
- a warning about increasing the alignment requirement.
- This is for little-endian machines; small args are padded upward. */
-#define va_arg(AP, TYPE) \
- (AP = (__gnuc_va_list)((char *)(AP) + __va_rounded_size(TYPE)), \
- *((TYPE *)(void *)((char *)(AP) - __va_rounded_size(TYPE))))
-
-/* Copy __gnuc_va_list into another variable of this type. */
-#define __va_copy(dest, src) (dest) = (src)
-
-typedef __gnuc_va_list va_list;
-
-#endif /* not _STDARG_H */