History

*BSD: Add few __builtin_ math missing definitions.

Christian Jullien committed 5 years ago

Commit ac470a41 parent 7eea5301 file · +8 −0Browse files

Unified · Split

libtcc.c+8−0
@@ -884,6 +884,10 @@ LIBTCCAPI TCCState *tcc_new(void) · 883 unmodified lines
884 tcc_define_symbol(s, "__FreeBSD__", "12");884 tcc_define_symbol(s, "__FreeBSD__", "12");
885 /* No 'Thread Storage Local' on FreeBSD with tcc */885 /* No 'Thread Storage Local' on FreeBSD with tcc */
886 tcc_define_symbol(s, "__NO_TLS", NULL);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# if defined(__aarch64__)891# if defined(__aarch64__)
888 /* FIXME, __int128_t is used by setjump */892 /* FIXME, __int128_t is used by setjump */
889 tcc_define_symbol(s, "__int128_t", "struct { unsigned char _dummy[16]; }");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 tcc_define_symbol(s, "__GNUC_PATCHLEVEL__", "0");903 tcc_define_symbol(s, "__GNUC_PATCHLEVEL__", "0");
900 tcc_define_symbol(s, "_Pragma(x)", "");904 tcc_define_symbol(s, "_Pragma(x)", "");
901 tcc_define_symbol(s, "__ELF__", "1");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# endif910# endif
903# if TARGETOS_OpenBSD911# if TARGETOS_OpenBSD
904 tcc_define_symbol(s, "__OpenBSD__", "1");912 tcc_define_symbol(s, "__OpenBSD__", "1");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t