From 2bfedb18675228c3837c23fa523231f55e102c12 Mon Sep 17 00:00:00 2001 From: seyko Date: Wed, 4 May 2016 17:17:51 +0300 Subject: -fno-type-redefinition-check don't catch redefinition for local vars. With this option on tcc accepts the following code: int main() { int a = 0; long a = 0; } But if you shure there is no problem with your local variables, then a compilation speed can be improved if you have a lots of the local variables (50000+) --- tcc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 1698fb3..aec80b8 100644 --- a/tcc.h +++ b/tcc.h @@ -707,6 +707,7 @@ struct TCCState { Liuux 2.4.26 can't find initrd when compiled with a new algorithm */ int dollars_in_identifiers; /* allows '$' char in indentifiers */ int normalize_inc_dirs; /* remove non-existent or duplicate directories from include paths */ + int no_type_redef_check; /* no local vars redefinition check */ /* warning switches */ int warn_write_strings; -- cgit v1.3.1