Unified · Split
| @@ -223,6 +223,9 @@ typedef struct alloca_list_struct { · 222 unmodified lines | |||
| 223 | #elif defined(__OpenBSD__) | 223 | #elif defined(__OpenBSD__) |
| 224 | #define BOUND_TID_TYPE pid_t | 224 | #define BOUND_TID_TYPE pid_t |
| 225 | #define BOUND_GET_TID syscall (SYS_getthrid) | 225 | #define BOUND_GET_TID syscall (SYS_getthrid) |
| 226 | #elif defined(__FreeBSD__) | ||
| 227 | #define BOUND_TID_TYPE pid_t | ||
| 228 | #define BOUND_GET_TID 0 | ||
| 226 | #elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__riscv) | 229 | #elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__riscv) |
| 227 | #define BOUND_TID_TYPE pid_t | 230 | #define BOUND_TID_TYPE pid_t |
| 228 | #define BOUND_GET_TID syscall (SYS_gettid) | 231 | #define BOUND_GET_TID syscall (SYS_gettid) |
| @@ -937,8 +937,10 @@ LIBTCCAPI TCCState *tcc_new(void) · 936 unmodified lines | |||
| 937 | # ifdef __FreeBSD__ | 937 | # ifdef __FreeBSD__ |
| 938 | /* define __GNUC__ to have some useful stuff from sys/cdefs.h | 938 | /* define __GNUC__ to have some useful stuff from sys/cdefs.h |
| 939 | that are unconditionally used in FreeBSDs other system headers :/ */ | 939 | that are unconditionally used in FreeBSDs other system headers :/ */ |
| 940 | tcc_define_symbol(s, "__GNUC__", "2"); | 940 | tcc_define_symbol(s, "__GNUC__", "9"); |
| 941 | tcc_define_symbol(s, "__GNUC_MINOR__", "7"); | 941 | tcc_define_symbol(s, "__GNUC_MINOR__", "3"); |
| 942 | tcc_define_symbol(s, "__GNUC_PATCHLEVEL__", "0"); | ||
| 943 | tcc_define_symbol(s, "__amd64__", "1"); | ||
| 942 | tcc_define_symbol(s, "__builtin_alloca", "alloca"); | 944 | tcc_define_symbol(s, "__builtin_alloca", "alloca"); |
| 943 | # endif | 945 | # endif |
| 944 | # else | 946 | # else |