This is needed when errors occur when compiling with libtcc. A next compile with libtcc results in undefined symbol.
Unified · Split
| @@ -409,6 +409,7 @@ ST_FUNC int tccgen_compile(TCCState *s1) · 408 unmodified lines | |||
| 409 | anon_sym = SYM_FIRST_ANOM; | 409 | anon_sym = SYM_FIRST_ANOM; |
| 410 | nocode_wanted = DATA_ONLY_WANTED; /* no code outside of functions */ | 410 | nocode_wanted = DATA_ONLY_WANTED; /* no code outside of functions */ |
| 411 | debug_modes = (s1->do_debug ? 1 : 0) | s1->test_coverage << 1; | 411 | debug_modes = (s1->do_debug ? 1 : 0) | s1->test_coverage << 1; |
| 412 | global_expr = 0; | ||
| 412 | 413 | ||
| 413 | tcc_debug_start(s1); | 414 | tcc_debug_start(s1); |
| 414 | tcc_tcov_start (s1); | 415 | tcc_tcov_start (s1); |