tinycc/win32/include
grischka 30afb50e64 arm64-win32 review: fix problems and pass tests
tccpe.c:
- fix arm64 unwind codes (to make native set/longjmp() work)
  sizeof(RUNTIME_FUNCTION) is 8 on arm64 in the first place
  no need to note stack slots if we don't save any registers anyway

arm64-gen.c:
- fix long double reg-move
- fix arm64_hfa() for structs with float arrays
- gfunc_prolog(): setup stackframe eariler (simplifies unwind codes)
- new function gv_addr(RC);

win32/include/setjmp.h:
- provide correct definition for setjmo() (frameoffset = 224)

tccasm.c:
- support ".quad" with symbol & relocation
- support ".size"
- fix ". - symbol" arithmetic

win32/lib/crt1.c and win32/include/stdlib.h:
- do not write to __argc/__argv which reside in msvcrt.dll
  (msvcrt.dll on arm64 does not like that, crashes on unload)

tcc.c,libtcc.c:
- new functions tcc_fopen/fclose to avoid different stdio unstances
  in tcc.exe & libtcc.dll

tests & github workflow:
- add test-win32.bat to run tests with a tcc compiled by build-tcc.bat
- add msvcrt_start.c for gcc/clang to use the same runtime as tcc

  the problem is that newer gcc as well as clang and cl are
  linking to newer runtimes (such as UCRT) that have partially
  different printf format behavior which makes tcctest fail.

  the solution here is to force these compilers to link with
  msvcrt.dll just like tcc.

  Also, there is no gcc on arm64-win32 currently at all.

  Anyway, this approach to running the github CI tests
  does not require msys2.  But It does rely on gnumake
  as well as on some 'sh' shell though which seems to be
  installed somewhere (maybe it is the one from git).
2026-05-04 12:51:10 +02:00
..
sec_api win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
sys win32: include/sys/types.h: add useconds_t 2024-10-23 14:48:50 +03:00
tcc Fix wine 2021-01-03 20:12:34 +01:00
winapi arm64-win32 review: fix problems and pass tests 2026-05-04 12:51:10 +02:00
_mingw.h arm64-win32 review: fix problems and pass tests 2026-05-04 12:51:10 +02:00
assert.h C11, section 7.2: The macro static_assert expands to _Static_assert. This macro was missing on Windows 2020-01-14 07:41:58 +01:00
conio.h Spelling fixes 2017-09-24 18:03:26 -07:00
ctype.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
dir.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
direct.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
dirent.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
dos.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
errno.h tccpp: cleanup target-os defines 2020-12-31 02:03:31 +01:00
excpt.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
fcntl.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
fenv.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
inttypes.h add version number to manpage 2013-02-17 00:48:51 +01:00
io.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
iso646.h Add C99 compiliant iso646.h header 2019-01-13 10:24:50 +01:00
limits.h Fix char limits 2020-11-17 09:06:48 +02:00
locale.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
malloc.h tccrun: review last changes 2024-02-19 17:45:44 +01:00
math.h tccpp: cleanup target-os defines 2020-12-31 02:03:31 +01:00
mem.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
memory.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
process.h win32/include/process.h: update prototypes to match mingw. 2014-04-12 00:09:57 -04:00
setjmp.h arm64-win32 review: fix problems and pass tests 2026-05-04 12:51:10 +02:00
share.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
signal.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
stdint.h Spelling fixes 2017-09-24 18:03:26 -07:00
stdio.h add version number to manpage 2013-02-17 00:48:51 +01:00
stdlib.h arm64-win32 review: fix problems and pass tests 2026-05-04 12:51:10 +02:00
string.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
tchar.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
time.h win32/include: enable _timezone etc variables. 2011-07-11 18:44:47 +02:00
uchar.h stuff & fixes 2023-09-06 22:42:30 +02:00
unistd.h win32: make #include <unistd.h> work 2024-10-23 14:58:41 +03:00
vadefs.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00
values.h Spelling fixes 2017-09-24 18:03:26 -07:00
wchar.h win32: wchar.h: don't redifine WCHAR_MIN[/MAX] (after stdint.h) 2016-06-19 14:44:07 +03:00
wctype.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00