Commit graph

  • f233cb182c NetBSD: reintroduce NetBSD support. Currently, -run works but executable has an incorrect format. Christian Jullien 2020-12-11 14:26:26 +01:00
  • 8ff705554d tcc_enter/exit_state(): do not use! grischka 2020-12-07 19:02:42 +01:00
  • a06fef3b11 FreeBSD: little better support that targets FreeBSD 12.2 on amd64 but still not working - WIP Christian Jullien 2020-12-08 09:13:29 +01:00
  • f9c580b8a0 FreeBSD: start to reintroduce support - WIP Christian Jullien 2020-12-08 06:55:50 +01:00
  • 591feda103 OpenBSD: disable some tests herman ten brugge 2020-12-07 12:06:17 +01:00
  • 72250bece2 riscv64 relocation fix herman ten brugge 2020-12-07 11:36:54 +01:00
  • baacb0f52a OpenBSD: runtime fixes herman ten brugge 2020-12-07 08:27:10 +01:00
  • 19d287aae3 OpenBSD: fix typo in _ANSI_LIBRARY defined symbol Christian Jullien 2020-12-07 07:57:01 +01:00
  • a3d5e4aa43 OpenBSD: define more internal symbols to support tcc on OpenBSD. Christian Jullien 2020-12-07 07:15:56 +01:00
  • 170be79a42 duplicate member herman ten brugge 2020-12-03 07:53:44 +01:00
  • 6f2659c230 OpenBSD: SYS_gettid syscall is named SYS_getthrid - WIP Christian Jullien 2020-12-02 08:05:34 +01:00
  • 38dea90b2f OpenBSD: workaround missing SYS_gettid - WIP Christian Jullien 2020-11-29 08:54:55 +01:00
  • dfe031caa6 OpenBSD: Fix crt startup names - WIP Christian Jullien 2020-11-29 08:47:27 +01:00
  • 4e12c2a6dc OpenBSD: improve partial support for x86_64 - WIP Christian Jullien 2020-11-27 11:24:19 +01:00
  • cf8d9cf072 win64: fix pe_isafunc() grischka 2020-11-25 11:23:01 +01:00
  • 13a18906ef win32 tcc_libm.h: Implemented overrides for msvcrt.dll's frexp(), ldexp(), and fabs() with speedups 4.5X, 7.3X and 6.3X correspondingly. This is the last commit on this for now. Tyge Løvset 2020-11-25 14:29:42 +01:00
  • 4a42b0d95e tidy support for helper function such as memmove grischka 2020-11-23 20:15:16 +01:00
  • 2f78f54924 win32 libm: Final optimizations and added nan*() function. Tyge Løvset 2020-11-23 20:42:36 +01:00
  • 3709f8de14 Treat func pointers with different return types as not compatible Arthur Williams 2020-11-22 00:02:09 -06:00
  • 3b1a42e734 Cleanup and minor fixes in win32/tcc/tcc_libm.h: truncf(), cbrtf(), exp2f(), log2f(), scalbln*() Tyge Løvset 2020-11-21 14:45:35 +01:00
  • b11144d69c Overhauled WIN32 math and added missing functions: 1) Cleanup: moved function implementations from win32/include/math.h to win32/include/tcc/tcc_libm.h 2) Added missing math functions: MUSL: asinh(), acosh(), atanh(), scalbn(). My impl: log1p(), expm1(), ilogb(), scalbln(), nexttoward() - now only a few are missing: remquo(), remainder(), fma(), nan(), erf(), erfc(), nearbyint(). 3) Added/defined all missing *f() and *l() math functions. 4) Added functions have short but accurate/fast implementations. 5) Added <tgmath.h> for all platforms. (not too useful, IMO, but is C99 standard). Tyge Løvset 2020-11-20 23:34:35 +01:00
  • 82611f5e6d Fix char limits Wirtos_new 2020-11-17 09:06:48 +02:00
  • 1073b379c8 WIN32/64 only: Added C99 math functions: tgamma(), tgammaf(), lgamma(), lgammaf(), cbrt(), cbrtf(), log2(), log2f(), exp2(), exp2f(). The gamma() functions are accurate to 13 digits over the full range. Returns INFINITY / NAN identical to other compiler's math libs. Tyge Løvset 2020-11-14 00:02:58 +01:00
  • 08d8015750 Fix fork problem 114_bound_signal herman ten brugge 2020-11-10 10:08:30 +01:00
  • 54b4aa3cd6 Disable signals in bcheck.c pthread_create herman ten brugge 2020-11-09 10:57:14 +01:00
  • 8b69059f66 three small fixes & three reverts grischka 2020-10-23 21:38:53 +02:00
  • 2b7aa2a1e1 libtcc: no need to undef Kyryl Melekhin 2020-11-01 15:51:50 +00:00
  • 985d963745 tcc.h libtcc.c: remove unused defines pretty sure that functions with use_* do not exist and attempts to use the macros will fail to link I could rename them to be more up to date like tcc_malloc, but to me overloading the std calls with macros is probably taking away control from the programmer, so for the best is to just get rid of them. Kyryl Melekhin 2020-11-01 15:24:45 +00:00
  • 53587ee415
    tcc_internal_error: print function with __func__. John Scott 2020-10-18 17:54:01 -04:00
  • 558c6f56e2
    tcc_mallocz: clear with memset only if nonzero size John Scott 2020-10-16 21:20:33 -04:00
  • 72b520e709 tccgen: flex arrays etc. grischka 2020-09-23 12:03:59 +02:00
  • 40395511d7 Revert "function pointer compare" grischka 2020-10-03 09:26:12 +02:00
  • cdc3df949b tcc -bench: show text/data/bss binary output sizes grischka 2020-09-25 18:03:23 +02:00
  • ae1796fc34 Fix testcase 114 for arm and apple herman ten brugge 2020-10-02 17:50:31 +02:00
  • 78da4586a0 Fix tests2/120_alias.c on macos Michael Matz 2020-10-01 17:52:16 +02:00
  • 0da93838c1 Init range wth symbols herman ten brugge 2020-10-01 17:50:20 +02:00
  • afc0917f88 Bound checking fixes herman ten brugge 2020-10-01 17:09:09 +02:00
  • 352e1d0fc4 Reinstate attribute alias handling Michael Matz 2020-09-30 17:46:01 +02:00
  • 727e24cb0a Add typedef debug info herman ten brugge 2020-09-27 11:13:37 +02:00
  • 8fd7a384e2 Fix bitfields init : tiny solution herman ten brugge 2020-09-25 12:23:48 +02:00
  • 89ea62481d clang7 does not support zero sized structs herman ten brugge 2020-09-21 15:55:58 +02:00
  • 8f9bf3f223 function pointer compare herman ten brugge 2020-09-21 09:18:48 +02:00
  • ffac4e7688 Herman proposed patch seems to fix clang issue on x64 Debian Christian Jullien 2020-09-19 08:04:20 +02:00
  • 8cb3e5368f bitfields init : tiny solution grischka 2020-09-18 22:53:41 +02:00
  • 5c6356ff8e default-initialization of bitfields herman ten brugge 2020-09-18 19:20:57 +02:00
  • 6d819d7267 Indentation was missing after empty string check was added by wanjochan. Christian Jullien 2020-09-18 06:39:30 +02:00
  • bea7dcde86 check strlen(TCC_LIBTCC1) before tcc_add_support(s1, TCC_LIBTCC1) wanjochan 2020-09-18 06:57:56 +08:00
  • aed5cd0ce9 revert 'no-libtcc1' feature grischka 2020-09-17 10:32:48 +02:00
  • 4cd6298f9d libtcc1.c: cleanup fp2ull grischka 2020-09-11 01:18:21 +02:00
  • 55b4754e84 Revert "add tests for float conversions to u64" Kyryl Melekhin 2020-09-17 07:12:49 +00:00
  • c9bbd4e707 Allow strings in __builtin_constant_p herman ten brugge 2020-09-17 09:11:10 +02:00
  • 4a16bebfab Struct va_arg fix herman ten brugge 2020-09-17 08:42:28 +02:00
  • 757a97466f Fix testcase 114 for macos herman ten brugge 2020-09-17 08:22:53 +02:00
  • 13c66526ed Fix wanjochan commit 'when tcc1 omit: use main()' when tcc is bootstrapped by tcc on Windows. Variable must be NULL initialized Christian Jullien 2020-09-17 06:52:39 +02:00
  • 15182d7fdd Don't mix code and declaration Christian Jullien 2020-09-17 06:51:59 +02:00
  • a3578379fb when tcc1 omit: use main() directly wanjochan 2020-09-17 10:26:16 +08:00
  • 7eebf614dc tcc c-tyle-compliance: space between if and ( wanjochan 2020-09-17 06:54:13 +08:00
  • 89935229a7 tcc_add_support(): void return for win wanjochan 2020-09-17 00:53:50 +08:00
  • 43ae350390 tcc_add_support(): skip when filename is empty wanjochan 2020-09-17 00:47:32 +08:00
  • 55eafa66b7 test 114: skip bcheck for osx (tcc -run not support fork with -b) wanjochan 2020-09-17 00:43:19 +08:00
  • d55e586bc6 Fix boundschecking fork for macos/SELINUX herman ten brugge 2020-09-14 19:31:56 +02:00
  • 61c0c852b5 Update boundschecking for fork herman ten brugge 2020-09-14 08:24:01 +02:00
  • 8878c29c5d misplaced parenthese around definition of CONFIG_TCC_BCHECK Pursuer2 2020-09-11 23:07:21 +08:00
  • a5e714abec add tests for float conversions to u64 Kyryl Melekhin 2020-09-11 09:18:58 +00:00
  • 618ba55a81 fix float to u64 intrinsics Kyryl Melekhin 2020-09-10 17:35:36 +00:00
  • 60c1f70bb9 Revert commit 55f8963dfa from wanjochan until better tested on all platforms Christian Jullien 2020-09-10 05:49:15 +02:00
  • 310e3b428c (bug caused by tcc intristics) reproduce bug: $ ./configure --cc=gcc $ make $ make install (OK) run a test: Kyryl Melekhin 2020-09-08 22:12:01 +00:00
  • 55f8963dfa ignore symbol main for .dylib; skip libtcc1 for tccrun mode; wanjochan 2020-09-08 22:05:00 +08:00
  • 853a498f2c Fix boundschecking for signal/sigaction/fork herman ten brugge 2020-09-08 14:31:58 +02:00
  • 53d815b8a0 win32/tccpe: use full dll-path with -run grischka 2019-09-12 17:45:18 +02:00
  • d746e32349 tests2: rework 117..119 to follow our conventions grischka 2020-07-08 04:37:04 +02:00
  • f9870f7860 bcheck: remove static (compile-time) control grischka 2020-08-14 15:00:29 +02:00
  • a34a9775ba Fix char to ushort cast herman ten brugge 2020-08-21 19:35:30 +02:00
  • 696b765437 Fix switch/case herman ten brugge 2020-08-18 20:05:53 +02:00
  • b107f7bdd9 Fix switch/case on uint64_t Willy Tarreau 2020-08-18 11:08:44 +02:00
  • 3613a11454 rm helper scripts newly added by me wanjochan 2020-08-16 10:46:19 +08:00
  • 777c017034 cleanup win32/tccwin_build.sh wanjochan 2020-08-15 11:13:10 +08:00
  • 62c30a4a13 Fix typo in tcc-doc Thomas Preud'homme 2020-08-14 22:54:21 +01:00
  • 4c9e3a5988 Update attribute bound_no_checking herman ten brugge 2020-08-14 06:35:47 +02:00
  • c740fa2795 Fix attribute patch for windows herman ten brugge 2020-08-13 11:26:59 +02:00
  • 50fe33f880 Add attribute bound_no_checking herman ten brugge 2020-08-13 11:19:11 +02:00
  • 5aaed43efd tune win32/tccwin_build.sh for libtccXX.dll wanjochan 2020-08-13 12:34:03 +08:00
  • a06e8350aa helper script: build tcc32.exe tcc64.exe libtcc32.dll libtcc64.dll wanjochan 2020-08-12 18:30:14 +08:00
  • cdf001c296 helper scripts for windows wanjochan 2020-08-12 10:21:19 +08:00
  • 70b16cb7f8 Fix argv/environ bound checking herman ten brugge 2020-08-11 08:39:12 +02:00
  • 8b8e714517 Fix bound checking for packed struct herman ten brugge 2020-08-11 07:33:11 +02:00
  • 09ed7e9557 Add bool debug type herman ten brugge 2020-08-11 07:23:01 +02:00
  • e5da657c85 Fix testcase 95 for windows herman ten brugge 2020-08-09 08:28:45 +02:00
  • dcb87d36fe Fix long bitfield herman ten brugge 2020-08-09 07:50:34 +02:00
  • 9085b38a71 add "libtcc.osx" entry to Makefile, for programs who need more pure libtcc.dylib without "@rpath/" config wanjochan 2020-08-07 21:10:39 +08:00
  • 3cfaaaf1eb Fix dll on arm. herman ten brugge 2020-08-05 13:55:11 +02:00
  • a0a0f4d029 Add riscv dll support herman ten brugge 2020-08-04 10:36:47 +02:00
  • b8fb2b02d9 Add arm dll support herman ten brugge 2020-08-04 09:15:42 +02:00
  • 1da7159689 Add arm64 dll support herman ten brugge 2020-08-01 19:44:49 +02:00
  • d55a3f3362 Fix riscv64 compare problem. herman ten brugge 2020-07-30 09:40:35 +02:00
  • d1ce34448f Faster load/store arm64 herman ten brugge 2020-07-30 09:26:20 +02:00
  • 58be11f701 Add L suffix to LDBL values. Christian Jullien 2020-07-16 07:59:34 +02:00
  • 9b2329f66c riscv64: Work around qemu bug Michael Matz 2020-07-15 23:11:42 +02:00
  • 2e798523e4 Fix conversions of subnormals to long double Michael Matz 2020-07-15 22:02:02 +02:00
  • a614269794 riscv64: Fix a corner case Michael Matz 2020-07-15 21:47:39 +02:00