tinycc/include
herman ten brugge c8ef84c854 Add support for apple m1
The apple m1 uses position independent executables (pie).
I have implemented this in tccmacho.c

Apple also uses the stack different for var_args.
Also characters are signed instead of unsigned.
This is implemented in arm64-gen.c/tccdefs.h

Add bounds checking lib to lib/Makefile.

Add underscore support in lib/atomic.S and lib/fetch_and_add.S

Disable __clear_cache in lib/lib-arm64.c (Use system version).
I will try to fix this in future push.

Disable test_asm_call in tests/tcctest.c. Clang does not support @plt.
Also disable weak symbols test.
I will try to fix weak support in future push.

Disable tests/tests2/124_atomic_counter.c for 64BITS.
This is a bug in the atomic code and will be fixed in future push.

You have to use --dwarf configure option. stabs only works with -run.

tested on apple x86_64(10.5) and arm64(12.3).
2022-11-16 12:52:51 -06:00
..
float.h include/float.h: Define DECIMAL_DIG 2022-04-28 21:44:01 +03:00
stdalign.h add C11 stdalign.h header 2019-09-08 15:04:06 +03:00
stdarg.h stdarg: always have the __builtin_va_* available 2020-04-15 22:06:52 +02:00
stdatomic.h Add atomic functions for arm/arm64/riscv 2022-10-16 18:51:56 +02:00
stdbool.h stdbool.h: Make conformant to ISOC99 2014-04-07 00:30:31 +02:00
stddef.h Only define alloca on i386/x86_64 2022-04-12 07:07:40 +02:00
stdnoreturn.h C11 conformance: Add _Noreturn, stdnoreturn.h, and partial _Alignas support 2019-03-20 15:03:27 -04:00
tccdefs.h Add support for apple m1 2022-11-16 12:52:51 -06:00
tgmath.h Overhauled WIN32 math and added missing functions: 2020-11-20 23:34:35 +01:00
varargs.h win64: use new headers from mingw 2009-07-18 22:06:37 +02:00