Init global_expr variable
Some checks are pending
build and test / test-x86_64-linux (push) Waiting to run
build and test / test-x86_64-osx (push) Waiting to run
build and test / test-aarch64-osx (push) Waiting to run
build and test / test-x86_64-win32 (push) Waiting to run
build and test / test-i386-win32 (push) Waiting to run
build and test / test-armv7-linux (push) Waiting to run
build and test / test-aarch64-linux (push) Waiting to run
build and test / test-riscv64-linux (push) Waiting to run

This is needed when errors occur when compiling with libtcc.
A next compile with libtcc results in undefined symbol.
This commit is contained in:
herman ten brugge 2025-10-15 10:02:09 +02:00
parent 96229004c4
commit edcd228214

View File

@ -409,6 +409,7 @@ ST_FUNC int tccgen_compile(TCCState *s1)
anon_sym = SYM_FIRST_ANOM;
nocode_wanted = DATA_ONLY_WANTED; /* no code outside of functions */
debug_modes = (s1->do_debug ? 1 : 0) | s1->test_coverage << 1;
global_expr = 0;
tcc_debug_start(s1);
tcc_tcov_start (s1);