replace native platform macros in the compiler
commite2e62fcb8b4980903bb5729be6ea6568114885f6
authorgrischka <grischka>
Wed, 16 Dec 2020 19:08:43 +0000 (16 20:08 +0100)
committergrischka <grischka>
Thu, 17 Dec 2020 11:39:16 +0000 (17 12:39 +0100)
tree79164df22cf9ceba1dde4fec79cd038ec45b2554
parent02f61d5b49168979bc91b3660a7352961e6c6faf
replace native platform macros in the compiler

- The compiler should not use these
- However tccrun.c & libtcc1.a files should use these
Also:
- use s1->loaded_dlls for loaded dlls instead of dlopens
- alpine musl: fully supported now and tested
- ./configure ...
   --config-backtrace=no : disable backtraces
   --config-bcheck=no : disable bcheck
- tests:dlltest: enable by default
- tccrun.c : simplify mmaps
- __builtin_alloca : always use asm-alias (instead of #define)
- tccpe.c : use write32le
13 files changed:
Makefile
configure
lib/Makefile
lib/bcheck.c
libtcc.c
tcc.c
tcc.h
tccelf.c
tccpe.c
tccpp.c
tccrun.c
tests/Makefile
tests/tests2/Makefile