bootstrappable: Work around Nyacc-0.80.40 bug.

This commit is contained in:
Jan Nieuwenhuizen 2018-06-18 21:19:50 +02:00
parent 09604d2dfa
commit 9bcd7c0c30
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 2 additions and 0 deletions

View File

@ -157,6 +157,7 @@ ST_FUNC void tccelf_begin_file(TCCState *s1)
with previously existing symbols */
ST_FUNC void tccelf_end_file(TCCState *s1)
{
#if 0 //!__MESC__ // Nyacc 0.80.40 cpp-bug
Section *s = s1->symtab;
int first_sym, nb_syms, *tr, i;
@ -189,6 +190,7 @@ ST_FUNC void tccelf_end_file(TCCState *s1)
}
}
tcc_free(tr);
#endif
}
ST_FUNC Section *new_section(TCCState *s1, const char *name, int sh_type, int sh_flags)