tcc_enter/exit_state(): do not use!
commit8ff705554de47f16726ec5f1a6c49a162b926732
authorgrischka <grischka>
Mon, 7 Dec 2020 18:02:42 +0000 (7 19:02 +0100)
committergrischka <grischka>
Tue, 8 Dec 2020 18:57:57 +0000 (8 19:57 +0100)
tree42485dd72a3e90d0ad61532bfb055536be3e9fe6
parenta06fef3b11e863cd689582123a8d6a625fc82fbc
tcc_enter/exit_state(): do not use!

tcc_enter/exit_state() are meant exclusively to protect
the tcc_compile() and its sub-functions in tccpp.c,
tccgen.c, tccasm.c and xxx-gen.c.

Other files that are part of libtcc simply must not use global
variables.

- riscv64/last_hi: move to TCCState
  from 72250bece23918040204ca8ae7422cf36a380782

- tccrun.c: Using a fixed address would not work anyway
  ("tcc -run tcc.c -run ..." for example)
  from baacb0f52aa978e1397ba1767730858a3fdd1e06

- tests/Makefile: support for a platform doesn't make sense if
  it doesn't pass our basic tests.
  from 591feda103489a7858614628b44713e3be31ac7f
Also:
- tccgen: cleanup "duplicate member" (only 2 passes,
  avoids additional TokenSym field)
  from 170be79a428e69582afc858cbe6d628199ca2236
riscv64-link.c
tcc.h
tccelf.c
tccgen.c
tccrun.c
tests/Makefile