Unified · Split
| @@ -884,6 +884,10 @@ LIBTCCAPI TCCState *tcc_new(void) · 883 unmodified lines | ||
| 884 | 884 | tcc_define_symbol(s, "__FreeBSD__", "12"); |
| 885 | 885 | /* No 'Thread Storage Local' on FreeBSD with tcc */ |
| 886 | 886 | tcc_define_symbol(s, "__NO_TLS", NULL); |
| 887 | + tcc_define_symbol(s, "__builtin_huge_val()", "1e500"); | |
| 888 | + tcc_define_symbol(s, "__builtin_huge_valf()", "1e50f"); | |
| 889 | + tcc_define_symbol(s, "__builtin_huge_vall()", "1e5000L"); | |
| 890 | + tcc_define_symbol(s, "__builtin_nanf(ignored_string)", "(0.0F/0.0F)"); | |
| 887 | 891 | # if defined(__aarch64__) |
| 888 | 892 | /* FIXME, __int128_t is used by setjump */ |
| 889 | 893 | tcc_define_symbol(s, "__int128_t", "struct { unsigned char _dummy[16]; }"); |
| @@ -899,6 +903,10 @@ LIBTCCAPI TCCState *tcc_new(void) · 9 unmodified lines | ||
| 899 | 903 | tcc_define_symbol(s, "__GNUC_PATCHLEVEL__", "0"); |
| 900 | 904 | tcc_define_symbol(s, "_Pragma(x)", ""); |
| 901 | 905 | tcc_define_symbol(s, "__ELF__", "1"); |
| 906 | + tcc_define_symbol(s, "__builtin_huge_val()", "1e500"); | |
| 907 | + tcc_define_symbol(s, "__builtin_huge_valf()", "1e50f"); | |
| 908 | + tcc_define_symbol(s, "__builtin_huge_vall()", "1e5000L"); | |
| 909 | + tcc_define_symbol(s, "__builtin_nanf(ignored_string)", "(0.0F/0.0F)"); | |
| 902 | 910 | # endif |
| 903 | 911 | # if TARGETOS_OpenBSD |
| 904 | 912 | tcc_define_symbol(s, "__OpenBSD__", "1"); |