tinycc/win32
herman ten brugge 039e4ec2a4 Call __bound_main_arg at startup
This uses a glibc feature present since constructor/destructor support was added.

Modify tccrun.c to call constructor with argc, argcv, envp.
In lib/bcheck.c use these values to register them in the splay tree.
Remove HAS_ENVIRON is lib/bcheck.c as it is not needed any more.
Modify win32/lib/crt1.c/win32/lib/dllcrt1.c/win32/lib/wincrt1.c to also
call constructor with argc, argcv, envp.
While implementing I saw that tccrun did nog call main with envp. Fixed it.
Also fix fetch_and_add_arm.S to make it work on armv6 (raspberry pi default).
2020-06-22 14:55:27 +02:00
..
examples tccgen/win32: let __declspec(dllimport) imply extern 2017-04-04 08:34:52 +02:00
include win32/include/math.h: rint/trunc: pop fp stack 2020-04-11 21:45:57 +02:00
lib Call __bound_main_arg at startup 2020-06-22 14:55:27 +02:00
build-tcc.bat win32/build-tcc.bat: clean .o in win32/lib 2020-02-19 00:43:41 +01:00
tcc-win32.txt various stuff 2017-10-11 18:13:43 +02:00