mirror of
https://github.com/TinyCC/tinycc.git
synced 2025-11-16 12:34:45 +00:00
workflows/build.yml: - win32/64: install mingw32/64 gcc on msys (because the default gcc installed elsewhere seems to use ucrt, producing incompatible fp printf formats.) tccgen.c: - cleanup funcs: save any lvalues from return expressions. Also use get_temp_local_var() which however was causing a problem on i386 because its gfunc_call() removes the arguments from vstack and by that defeats the 'in-use' tracking of get_temp_local_var(). Fixed by: i386/arm/arm64/x86_64-gen.c: - in gfunc_call(): save_regs before anything else, fixes problems seen in arm64/i386 tccpp.c: - allow arm asm specific use of '#' in macros libtcc.c: - organize -M options, and: tccpe.c: - move the subsystem option parsing from libtcc.c tccelf.c: - improved error handling in tcc_load_ldscript() lib/atomic.S: - TCC_TARGET_... not defined when building the lib - endbrNN security feature not supported by TCC tests/tests2/136_atomic_gcc_style.c: - never use standard assert() in tests
12 lines
362 B
Plaintext
12 lines
362 B
Plaintext
assert "loaded == 42" : yes
|
|
assert "success" : yes
|
|
assert "atomic_var == 200" : yes
|
|
assert "expected == 100" : yes
|
|
assert "!success" : yes
|
|
assert "atomic_var == 100" : yes
|
|
assert "expected == 100" : yes
|
|
assert "atomic_var == 60" : yes
|
|
assert "loaded_ptr == NULL" : yes
|
|
assert "__atomic_load_n(&atomic_var, __ATOMIC_RELAXED) == 10" : yes
|
|
All atomic tests passed!
|