diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2020-08-14 23:04:13 +0100 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2020-08-14 23:04:13 +0100 |
commit | afd09586d7ead4f146ad7a7a471be34196b3c6bc (patch) | |
tree | 87854be29fb4264b979b700fa45445f58faa4c26 /tcctok.h | |
parent | e2ccf3981d78dfeb390d22c74625b60310100abb (diff) |
New upstream version 0.9.27+git20200814.62c30a4a
Diffstat (limited to 'tcctok.h')
-rw-r--r-- | tcctok.h | 48 |
1 files changed, 36 insertions, 12 deletions
@@ -38,6 +38,7 @@ DEF(TOK_EXTENSION, "__extension__") /* gcc keyword */ DEF(TOK_GENERIC, "_Generic") + DEF(TOK_STATIC_ASSERT, "_Static_assert") DEF(TOK_FLOAT, "float") DEF(TOK_DOUBLE, "double") @@ -53,6 +54,8 @@ DEF(TOK_ATTRIBUTE2, "__attribute__") DEF(TOK_ALIGNOF1, "__alignof") DEF(TOK_ALIGNOF2, "__alignof__") + DEF(TOK_ALIGNOF3, "_Alignof") + DEF(TOK_ALIGNAS, "_Alignas") DEF(TOK_TYPEOF1, "typeof") DEF(TOK_TYPEOF2, "__typeof") DEF(TOK_TYPEOF3, "__typeof__") @@ -88,6 +91,7 @@ DEF(TOK___FUNCTION__, "__FUNCTION__") DEF(TOK___VA_ARGS__, "__VA_ARGS__") DEF(TOK___COUNTER__, "__COUNTER__") + DEF(TOK___HAS_INCLUDE, "__has_include") /* special identifiers */ DEF(TOK___FUNC__, "__func__") @@ -122,6 +126,18 @@ DEF(TOK_FASTCALL3, "__fastcall__") DEF(TOK_REGPARM1, "regparm") DEF(TOK_REGPARM2, "__regparm__") + DEF(TOK_CLEANUP1, "cleanup") + DEF(TOK_CLEANUP2, "__cleanup__") + DEF(TOK_CONSTRUCTOR1, "constructor") + DEF(TOK_CONSTRUCTOR2, "__constructor__") + DEF(TOK_DESTRUCTOR1, "destructor") + DEF(TOK_DESTRUCTOR2, "__destructor__") + DEF(TOK_ALWAYS_INLINE1, "always_inline") + DEF(TOK_ALWAYS_INLINE2, "__always_inline__") +#ifdef CONFIG_TCC_BCHECK + DEF(TOK_NO_BOUND_CHECK1, "bound_no_checking") + DEF(TOK_NO_BOUND_CHECK2, "__bound_no_checking__") +#endif DEF(TOK_MODE, "__mode__") DEF(TOK_MODE_QI, "__QI__") @@ -132,8 +148,10 @@ DEF(TOK_DLLEXPORT, "dllexport") DEF(TOK_DLLIMPORT, "dllimport") + DEF(TOK_NODECORATE, "nodecorate") DEF(TOK_NORETURN1, "noreturn") DEF(TOK_NORETURN2, "__noreturn__") + DEF(TOK_NORETURN3, "_Noreturn") DEF(TOK_VISIBILITY1, "visibility") DEF(TOK_VISIBILITY2, "__visibility__") @@ -149,8 +167,10 @@ #elif defined TCC_TARGET_X86_64 DEF(TOK_builtin_va_arg_types, "__builtin_va_arg_types") #elif defined TCC_TARGET_ARM64 - DEF(TOK___va_start, "__va_start") - DEF(TOK___va_arg, "__va_arg") + DEF(TOK_builtin_va_start, "__builtin_va_start") + DEF(TOK_builtin_va_arg, "__builtin_va_arg") +#elif defined TCC_TARGET_RISCV64 + DEF(TOK_builtin_va_start, "__builtin_va_start") #endif /* pragma */ @@ -192,9 +212,9 @@ #if defined TCC_TARGET_ARM # ifdef TCC_ARM_EABI DEF(TOK_memcpy, "__aeabi_memcpy") - DEF(TOK_memcpy4, "__aeabi_memcpy4") - DEF(TOK_memcpy8, "__aeabi_memcpy8") DEF(TOK_memmove, "__aeabi_memmove") + DEF(TOK_memmove4, "__aeabi_memmove4") + DEF(TOK_memmove8, "__aeabi_memmove8") DEF(TOK_memset, "__aeabi_memset") DEF(TOK___aeabi_ldivmod, "__aeabi_ldivmod") DEF(TOK___aeabi_uldivmod, "__aeabi_uldivmod") @@ -254,7 +274,7 @@ #if defined TCC_TARGET_PE DEF(TOK___chkstk, "__chkstk") #endif -#ifdef TCC_TARGET_ARM64 +#if defined TCC_TARGET_ARM64 || defined TCC_TARGET_RISCV64 DEF(TOK___arm64_clear_cache, "__arm64_clear_cache") DEF(TOK___addtf3, "__addtf3") DEF(TOK___subtf3, "__subtf3") @@ -292,15 +312,19 @@ DEF(TOK___bound_main_arg, "__bound_main_arg") DEF(TOK___bound_local_new, "__bound_local_new") DEF(TOK___bound_local_delete, "__bound_local_delete") + DEF(TOK___bound_setjmp, "__bound_setjmp") + DEF(TOK___bound_new_region, "__bound_new_region") # ifdef TCC_TARGET_PE - DEF(TOK_malloc, "malloc") - DEF(TOK_free, "free") - DEF(TOK_realloc, "realloc") - DEF(TOK_memalign, "memalign") - DEF(TOK_calloc, "calloc") +# ifdef TCC_TARGET_X86_64 + DEF(TOK___bound_alloca_nr, "__bound_alloca_nr") +# endif +# else + DEF(TOK_sigsetjmp, "sigsetjmp") + DEF(TOK___sigsetjmp, "__sigsetjmp") + DEF(TOK_siglongjmp, "siglongjmp") # endif - DEF(TOK_strlen, "strlen") - DEF(TOK_strcpy, "strcpy") + DEF(TOK_setjmp, "setjmp") + DEF(TOK__setjmp, "_setjmp") #endif /* Tiny Assembler */ |