stddef.h, tccdefs.h, tccgen.c, tests/boundtest.c, tests/tcctest.c: - remove ifdef arround alloca lib/Makefile: - move alloca-bt.o to COMMON_O lib/alloca-bt.S: - add alloca bound check code for arm, arm64, riscv64 lib/alloca.S: - check for leading underscore tcc.h, libtcc.c: - include arm64-asm.c instead of arm-asm.c for arm64 tcctok.h, tccasm.c: - add simple reloc support (only for R_AARCH64_CALL26)
Showing the changes to include (2 of 12 files). Show all
Unified · Split
| @@ -19,9 +19,7 @@ typedef union { long long __ll; long double __ld; } max_align_t; · 18 unmodified lines | ||
| 19 | 19 | #undef offsetof |
| 20 | 20 | #define offsetof(type, field) __builtin_offsetof(type, field) |
| 21 | 21 | |
| 22 | −#if defined __i386__ || defined __x86_64__ | |
| 23 | 22 | void *alloca(size_t size); |
| 24 | −#endif | |
| 25 | 23 | |
| 26 | 24 | #endif |
| 27 | 25 | |
| @@ -347,12 +347,8 @@ · 346 unmodified lines | ||
| 347 | 347 | __MAYBE_REDIR(void*, calloc, (__SIZE_TYPE__, __SIZE_TYPE__)) |
| 348 | 348 | __MAYBE_REDIR(void*, memalign, (__SIZE_TYPE__, __SIZE_TYPE__)) |
| 349 | 349 | __MAYBE_REDIR(void, free, (void*)) |
| 350 | −#if defined __i386__ || defined __x86_64__ | |
| 351 | 350 | __BOTH(void*, alloca, (__SIZE_TYPE__)) |
| 352 | 351 | void *alloca(__SIZE_TYPE__); |
| 353 | −#else | |
| 354 | − __BUILTIN(void*, alloca, (__SIZE_TYPE__)) | |
| 355 | −#endif | |
| 356 | 352 | __BUILTIN(void, abort, (void)) |
| 357 | 353 | __BOUND(void, longjmp, ()) |
| 358 | 354 | #if !defined _WIN32 |