Revert "bootstrappable: vstack."

This reverts commit 2fc3784892.
This commit is contained in:
Jan Nieuwenhuizen 2018-10-03 21:17:46 +02:00
parent 2fc3784892
commit c842a65dfc
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
4 changed files with 2 additions and 20 deletions

5
doit
View File

@ -33,12 +33,9 @@ MESCC=${MESCC-../mes/pre-inst-env mescc}
GUILE_LOAD_PATH=nyacc
MES_DEBUG=2
MES_PREFIX=${MES_PREFIX-../mes}
MES_PREFIX=../mes
TINYCC_SEED=${TINYCC_SEED-../tinycc-seed}
rm -f mes
ln -sf $MES_PREFIX mes
if [ -z "$interpreter" -a -n "$GUIX" ]; then
interpreter=$($GUIX environment --ad-hoc patchelf -- patchelf --print-interpreter $(guix build --system=i686-linux hello)/bin/hello)
elif [ -x /lib/ld-linux.so.2 ]; then

4
tcc.c
View File

@ -251,10 +251,6 @@ int main(int argc, char **argv)
unsigned start_time = 0;
const char *first_file;
#if BOOTSTRAP //MESC bug
vstack = &__vstack[1];
#endif
redo:
s = tcc_new();
opt = tcc_parse_args(s, &argc, &argv, 1);

10
tcc.h
View File

@ -1285,15 +1285,7 @@ ST_DATA Sym *global_label_stack;
ST_DATA Sym *define_stack;
ST_DATA CType char_pointer_type, func_old_type, int_type, size_type;
ST_DATA SValue __vstack[1+/*to make bcheck happy*/ VSTACK_SIZE], *vtop, *pvtop;
#if BOOTSTRAP
#if __MESC__
SValue *vstack;
#else
extern SValue *vstack;
#endif
#else
#define vstack (__vstack + 1)
#endif
#define vstack (__vstack + 1)
ST_DATA int rsym, anon_sym, ind, loc;
ST_DATA int const_wanted; /* true if constant wanted */

View File

@ -30,9 +30,6 @@
rsym: return symbol
anon_sym: anonymous symbol index
*/
#if BOOTSTRAP //MESC
SValue *vstack;
#endif
ST_DATA int rsym, anon_sym, ind, loc;
ST_DATA Sym *sym_free_first;