mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-17 23:54:16 +08:00
|
Some checks failed
build and test / test-x86_64-linux (push) Has been cancelled
build and test / test-x86_64-osx (push) Has been cancelled
build and test / test-aarch64-osx (push) Has been cancelled
build and test / test-x86_64-win32 (push) Has been cancelled
build and test / test-i386-win32 (push) Has been cancelled
build and test / test-armv7-linux (push) Has been cancelled
build and test / test-aarch64-linux (push) Has been cancelled
build and test / test-riscv64-linux (push) Has been cancelled
Tested code with: clang -fsanitize=address,undefined,nullability -pie -fPIE -Iinclude -I. -g tcc.c -o tcc.tcc -lm -ldl -lpthread ./tcc.tcc -Iinclude -I. -b -g tcc.c -o tcc.tcc1 -lm -ldl -lpthread Also checked on i386/x86_64 with -fsanitize=memory (others not supported). arm-link.c: use read32le/write32le/add32le to avoid unaligned access tcc.h i386-asm.c: fix signed left shift lib/bcheck.c: Add _Atomic libtcc.c: Correct MEM_DEBUG_CHECK3 to avoid unaligned access riscv64-link.c: Fix R_RISCV_SET16 tccpp.c: Align tal_header_t to avoid unaligned access tccgen.c x86_64-gen.c: avoid use of uninitialized value There are still warnings reported: tccgen.c:4031:13: runtime error: member access within null pointer of type 'TCCState' (aka 'struct TCCState') tccelf.c:321:22: runtime error: applying zero offset to null pointer tccelf.c:1132:23: runtime error: applying non-zero offset 169184 to null pointer A lot of left shift of negative value warnings. I ignored these for the moment. Also the -run option does no work well with -fsanitize. It gets confused because it does not detect that the generated code in memory is used without -fsanitize option. There are a lot more -fsanitize options. I did not find serious problems with them. |
||
|---|---|---|
| .. | ||
| alloca-bt.S | ||
| alloca.S | ||
| armeabi.c | ||
| armflush.c | ||
| atomic.S | ||
| bcheck.c | ||
| bt-dll.c | ||
| bt-exe.c | ||
| bt-log.c | ||
| builtin.c | ||
| dsohandle.c | ||
| lib-arm64.c | ||
| libtcc1.c | ||
| Makefile | ||
| runmain.c | ||
| stdatomic.c | ||
| tcov.c | ||
| va_list.c | ||