projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33a34e6
)
- c_mode must be set before init_types()
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Sat, 27 Dec 2008 03:43:48 +0000
(
03:43
+0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Sat, 27 Dec 2008 03:43:48 +0000
(
03:43
+0000)
[r24904]
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
8f0e58f
..
6e55b36
100644
(file)
--- 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);