diff options
| author | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-02-13 18:58:31 +0000 |
|---|---|---|
| committer | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-02-23 22:51:03 +0000 |
| commit | b14ef0e24bcb70d70360690130b2bf2a0c8f8d33 (patch) | |
| tree | 11faa1933ceaaba6ffd6975d57eec9d58f4a7cb1 /include/stdarg.h | |
| parent | 738606dbd5608cb2ed6789beecea40712809c397 (diff) | |
| download | tinycc-b14ef0e24bcb70d70360690130b2bf2a0c8f8d33.tar.gz tinycc-b14ef0e24bcb70d70360690130b2bf2a0c8f8d33.tar.bz2 | |
Add arm64 (AArch64) as a target architecture.
Diffstat (limited to 'include/stdarg.h')
| -rw-r--r-- | include/stdarg.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/stdarg.h b/include/stdarg.h index 5aa9d57..06d592b 100644 --- a/include/stdarg.h +++ b/include/stdarg.h @@ -46,6 +46,19 @@ typedef char *va_list; #define va_copy(dest, src) (dest) = (src) #define va_end(ap) +#elif defined(__aarch64__) +typedef struct { + void *__stack; + void *__gr_top; + void *__vr_top; + int __gr_offs; + int __vr_offs; +} va_list; +#define va_start(ap, last) __va_start(ap, last) +#define va_arg(ap, type) __va_arg(ap, type) +#define va_end(ap) +#define va_copy(dest, src) ((dest) = (src)) + #else /* __i386__ */ typedef char *va_list; /* only correct for i386 */ |
