From: Michael Beck Date: Sat, 27 Dec 2008 03:43:48 +0000 (+0000) Subject: - c_mode must be set before init_types() X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=70867ae5c2dc8b2e2589bae984635a9b4982e57d;p=cparser - c_mode must be set before init_types() [r24904] --- diff --git a/main.c b/main.c index 8f0e58f..6e55b36 100644 --- a/main.c +++ b/main.c @@ -1129,6 +1129,10 @@ int main(int argc, char **argv) /* we do the lowering in ast2firm */ firm_opt.lower_bitfields = FALSE; + /* set the c_mode here, types depends on it */ + c_mode |= features_on; + c_mode &= ~features_off; + gen_firm_init(); init_symbol_table(); init_types(); @@ -1313,6 +1317,7 @@ default_cxx_warn: do_parsing: c_mode |= features_on; c_mode &= ~features_off; + init_tokens(); translation_unit_t *const unit = do_parsing(in, filename);