Commit graph

  • 92769362c7 Fix LDBL_xx values for aarch64 and riscv Christian Jullien 2020-07-15 15:55:49 +02:00
  • c1e1c17c0a Move bound functions to tccgen.c herman ten brugge 2020-07-12 10:55:40 +02:00
  • 8314119662 USES: add mpc library Christian Jullien 2020-07-11 20:00:37 +02:00
  • 497678eee3 USES: just tested with gmp and mpfr on RPi Christian Jullien 2020-07-11 07:42:18 +02:00
  • b5af2d3428 Add -C gcc compatible option which does currently nothing. This allows, among others, to compile gnumake from git ROOTB. Christian Jullien 2020-07-11 06:41:44 +02:00
  • 28e9fc1913 macos: 'make uninstall' also removes *.dylib Christian Jullien 2020-07-10 10:38:36 +02:00
  • e19665c0d8 USES: add zlib Christian Jullien 2020-07-10 06:35:02 +02:00
  • 513a8b074d USES: s-nail Steffen Nurpmeso 2020-07-09 23:52:43 +02:00
  • c69290fb0c macos: support arbitrary configure --libdir Avi Halachmi (:avih) 2020-07-10 00:00:36 +03:00
  • 6c94df6e2d macos: add path relative ../lib Christian Jullien 2020-07-09 19:37:37 +02:00
  • 6bd0ced239 Add USES file which list some software known to support tcc builds. Christian Jullien 2020-07-09 17:21:23 +02:00
  • af0370a75d macos: add tcc version to libtcc.dylib. It can be shown with 'otool -L'. Christian Jullien 2020-07-09 14:25:19 +02:00
  • b5a89c8c93 macos: tcc searches for libtcc.dyln in the same directory as its executable Christian Jullien 2020-07-09 12:04:57 +02:00
  • 1ea425811a macos: ldd does not exit, use otool instead Christian Jullien 2020-07-09 08:03:31 +02:00
  • 9d75f14107 Fix structure passing i386 PE herman ten brugge 2020-07-08 15:48:15 +02:00
  • 20fa63488a Fix bounds checking herman ten brugge 2020-07-07 21:10:51 +02:00
  • 49e2d06921 macos: initialize macho struct with memset which removes a clang warning on macOS. Christian Jullien 2020-07-07 07:47:48 +02:00
  • fc05da3c0b Fix alloca and arm problems herman ten brugge 2020-07-06 20:10:56 +02:00
  • 40671f76e4 Fix parsing of .s files Michael Matz 2020-07-06 18:12:35 +02:00
  • de06193d88 tccpp: Add -bench -E mode Michael Matz 2018-05-26 23:08:54 +02:00
  • 2a0167adfe __builtin_/__bound_: A 'stay tiny' approach to the matter grischka 2020-07-06 00:00:42 +02:00
  • 6a4f3cf127 rework leading underscores grischka 2020-06-27 17:15:06 +02:00
  • 72277967ff some cleanups related to recent commits grischka 2020-06-27 17:22:04 +02:00
  • 0ee4989ed3 libtcc: accept tcc_define_symbol(s1, "sym=value", NULL) grischka 2020-06-27 17:02:12 +02:00
  • 90e9e34bec Add missing ws2tcpip.h which lets Microsoft Winsock Server sample compile ROOTB on Windows platform. coltrane 2020-07-06 09:47:09 +02:00
  • e5d7e37157 Add missing ws2tcpip.h which lets tcc compile Microsoft Winsock Server sample on Windows platform. coltrane 2020-07-06 09:45:41 +02:00
  • 9712aff9c0 Fix gcc testsuite problems herman ten brugge 2020-07-05 14:01:50 +02:00
  • 6a15f15093 Fix coredump on linux when boostrapping tcc with -std=c11 Christian Jullien 2020-06-26 11:36:41 +02:00
  • 03646ad46f Fix cast_test for clang. herman ten brugge 2020-06-25 09:29:45 +02:00
  • 86992622dc do not disable all asm_test for macos herman ten brugge 2020-06-25 09:10:11 +02:00
  • 383acf8eff Fix warning detected by clang when passing unsigned int pointer when signed is expected. Instead of a cast, it would be better to pass the exact type. Christian Jullien 2020-06-25 07:15:34 +02:00
  • 50abaaeb0a Support clang on all targets herman ten brugge 2020-06-24 20:51:18 +02:00
  • d5822b725e Fix ctype.h warning in lib/bcheck.c herman ten brugge 2020-06-24 15:12:58 +02:00
  • f6e392a4af macos: add __builtin_flt_rounds. Forced to 1 which means 'to nearest' Christian Jullien 2020-06-24 10:37:28 +02:00
  • f635de709e macos: clang -s option is obsolete - at least on macOS. Christian Jullien 2020-06-24 07:06:48 +02:00
  • 8bad5bfae5 macos: internally define _DONT_USE_CTYPE_INLINE_ otherwise, ctype.h macros may be defined multiple times in different translation units. Christian Jullien 2020-06-23 15:53:01 +02:00
  • 6b2bed447f macos: add some macros to replace few __builtin_xxx functions used in headers. Christian Jullien 2020-06-23 12:27:03 +02:00
  • 15e4f8b3b0 macos: Add DYLD_LIBRARY_PATH to tcc when configured with --disable-static - i.e. with .dylib support Christian Jullien 2020-06-23 09:14:02 +02:00
  • 9617ea6a3a macos: workaround to build tcc using tcc until .o object files generated by tcc are fully compatible with ar. Instead of ar, use 'tcc -ar' Christian Jullien 2020-06-23 06:51:51 +02:00
  • 3c53d54a43 Fix environ variable for macos. herman ten brugge 2020-06-22 18:10:30 +02:00
  • 039e4ec2a4 Call __bound_main_arg at startup herman ten brugge 2020-06-22 14:55:27 +02:00
  • 0262f0eb1e macos: fix typo in conftest Christian Jullien 2020-06-22 10:19:09 +02:00
  • f84e96fe81 macos: add 'c' option to conftest to get real compiler name and not an alias as with gcc on macOS Christian Jullien 2020-06-22 10:12:18 +02:00
  • 28d5c5e54f macos: apply readlink to get exact compiler name Christian Jullien 2020-06-22 10:11:08 +02:00
  • 9ad25d7257 Add clock_nanosleep emulation for macOS Christian Jullien 2020-06-22 07:37:54 +02:00
  • 925f6704ce Add clock_nanosleep emulation for macOS Christian Jullien 2020-06-22 07:36:15 +02:00
  • 4d28120e9b macos: test 114 is not supported on macOS and this is not related to old gcc version Christian Jullien 2020-06-21 11:49:29 +02:00
  • c69356635c macos: add darwin OS detection. Christian Jullien 2020-06-21 10:58:36 +02:00
  • a3d1e9cd3d macos: Reorder C compiler detection so that conftest allows to boostrap tcc with tcc on macos. Christian Jullien 2020-06-21 10:52:04 +02:00
  • 8d9b83bd11 macOS configure correctly reports clang and version Christian Jullien 2020-06-21 09:53:52 +02:00
  • ba8980f492 limit gnu_inline hack to macos Michael Matz 2020-06-21 02:03:46 +02:00
  • c883d43ae5 fixes for deadlocks and dollars in asm Michael Matz 2020-06-21 01:45:35 +02:00
  • 18db8da7df Workaround old GCC viz indexed string literals Michael Matz 2020-06-20 23:17:02 +02:00
  • 1711eb2ef3 macos: add overview comment Michael Matz 2020-06-20 22:25:08 +02:00
  • d174af08f9 macos: Fix memtest Michael Matz 2020-05-25 22:18:37 +02:00
  • ac86fb50cd macos: Tidy code Michael Matz 2020-05-25 18:47:05 +02:00
  • c86760c1e9 macos: Read exported symbols from dylibs Michael Matz 2020-05-25 17:27:01 +02:00
  • fbfe6209be macos: Fix asm-c-connect-test Michael Matz 2020-05-23 03:46:32 +02:00
  • 3cf7bec12f macos: Enable all working tests Michael Matz 2020-05-22 06:31:51 +02:00
  • f486b19f56 macos: bound_alloca symbol adjust Michael Matz 2020-05-22 06:29:18 +02:00
  • f2e154e1e5 macos: Disable verbose linking output Michael Matz 2020-05-22 06:27:37 +02:00
  • 9ce5b4a691 macos: Adjust tcctest.c for clang Michael Matz 2020-05-22 05:33:07 +02:00
  • 4eff2b5f6a macos: more adjustments for OSX systems Michael Matz 2020-05-22 05:27:30 +02:00
  • f18f865159 Handle always_inline as GNU inline Michael Matz 2020-05-22 05:17:02 +02:00
  • 5d2f4cb403 macos: various fixes Michael Matz 2020-05-22 05:12:23 +02:00
  • b0b0e48409 macos: Use <dispatch.h> for locking Michael Matz 2020-05-22 05:07:19 +02:00
  • 57ba50e611 macos: support bounds checking Michael Matz 2020-05-22 05:06:08 +02:00
  • 0b3c8360a0 macos: section syms, strtab, runtime Michael Matz 2020-05-22 04:37:35 +02:00
  • 91cb41330d macos: Adjust tests2.112 and tests2 Makefile Michael Matz 2020-05-22 04:34:26 +02:00
  • 71b0634168 Add find_c_sym and friends Michael Matz 2020-05-22 04:28:02 +02:00
  • cc11750bda macos: Support .init_array and .fini_array Michael Matz 2020-05-18 05:44:05 +02:00
  • ef730c4d2f macos: don't like in crt startup code Michael Matz 2020-05-18 05:20:31 +02:00
  • 51f15d9971 macos: Deal with leading underscore on Mach-O Michael Matz 2020-05-18 05:15:08 +02:00
  • 1ca209dad0 macos: set LC_MAIN entrypoint correctly Michael Matz 2020-05-18 04:52:59 +02:00
  • 84c3fecf5e macos: Support external functions Michael Matz 2020-05-18 04:35:38 +02:00
  • d82e64c163 macos: handle undefined symbols a bit Michael Matz 2020-05-17 05:36:00 +02:00
  • fab8787b23 macos: Fix GOT access to local defined symbols Michael Matz 2020-05-17 04:39:40 +02:00
  • 6ebd463021 macos: dynamic symbol table and __got Michael Matz 2020-05-17 04:19:59 +02:00
  • bbccb13566 for_each_element for all; add tcc_exit_state Michael Matz 2020-05-17 04:18:26 +02:00
  • 1320d85742 macos: Create symtab Michael Matz 2020-05-16 03:26:53 +02:00
  • 94066765ed macos: First cut at generating Mach-O executables Michael Matz 2020-05-15 03:46:55 +02:00
  • b882cad67e macos: Don't try to load dylibs or linker scripts Michael Matz 2020-05-15 03:45:00 +02:00
  • 9d2ce50d2f macos: Use SDK path for headers Michael Matz 2020-05-15 03:42:56 +02:00
  • 6178e47345 macos: detect clang also when called as gcc Michael Matz 2020-05-15 03:41:54 +02:00
  • 032664bf7f macos: make Mach-O somewhat ELF_OBJ_ONLY Michael Matz 2020-05-09 01:40:36 +02:00
  • c16f5d2fe6 Fake __has_include handling Michael Matz 2020-05-09 00:39:45 +02:00
  • 34a5658564 macos: Add system include dir for building libs Michael Matz 2020-05-09 00:38:32 +02:00
  • 4cc27b816f macos: Use newer MACOSX_DEPLOYMENT_TARGET Michael Matz 2020-05-09 00:36:59 +02:00
  • 7b6931ed1f Fix some string literal expressions in initializers Michael Matz 2020-06-20 21:56:53 +02:00
  • b2d351e0ec Fix fetch_and_add code herman ten brugge 2020-06-18 07:21:48 +02:00
  • b5faa45d90 tccpp: faster next() grischka 2020-06-17 18:08:09 +02:00
  • 781872517d tccpp.c: compile 'tcc_predefs' from string grischka 2020-05-13 23:52:48 +02:00
  • cbef54653a tcc -MD: drop system includes and duplicates grischka 2020-06-17 08:21:37 +02:00
  • e7a4140d28 tcc --help -v: cleanup grischka 2020-06-01 18:10:58 +02:00
  • 8fb8d88ea6 Add vla bound support for arm,arm64 and riscv64 herman ten brugge 2020-06-17 11:24:17 +02:00
  • 44019e874f Fix debug info for functions herman ten brugge 2020-06-17 07:58:18 +02:00
  • 0b8ee7364a Add bound checking to arm, arm64 and riscv64 herman ten brugge 2020-06-16 07:39:48 +02:00
  • 9eef33993a Fix type compatiblity of enums and ints Michael Matz 2020-06-05 16:02:08 +02:00
  • 068d5b3d20 pp: Move errors about stray backslashes Michael Matz 2020-06-03 18:38:11 +02:00
  • e640ed1aeb Also support --help -v, i.e. arguments in different order. Christian Jullien 2020-06-01 18:01:12 +02:00