bootstrappable: constant pointer arithmetic.
This commit is contained in:
parent
28e321133a
commit
0c66456b1f
4
tcc.c
4
tcc.c
|
@ -251,6 +251,10 @@ 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
10
tcc.h
|
@ -1313,7 +1313,15 @@ ST_DATA CType char_pointer_type, func_old_type, int_type, size_type;
|
|||
ST_DATA SValue __vstack[1+/*to make bcheck happy*/VSTACK_SIZE];
|
||||
ST_DATA SValue *vtop;
|
||||
ST_DATA SValue *pvtop;
|
||||
#define vstack (__vstack + 1)
|
||||
#if BOOTSTRAP
|
||||
#if __MESC__
|
||||
SValue *vstack;
|
||||
#else
|
||||
extern SValue *vstack;
|
||||
#endif
|
||||
#else
|
||||
#define vstack (__vstack + 1)
|
||||
#endif
|
||||
ST_DATA int rsym, anon_sym, ind, loc;
|
||||
|
||||
ST_DATA int const_wanted; /* true if constant wanted */
|
||||
|
|
Loading…
Reference in New Issue