Mercurial > hg > CbC > old > device
changeset 895:e9ba80b0827d
ato mou sukoshi...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 06 Apr 2014 17:11:44 +0900 |
parents | 989bdd85e8af |
children | d712ee10feb7 |
files | mc-parse.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mc-parse.c Sun Apr 06 16:02:30 2014 +0900 +++ b/mc-parse.c Sun Apr 06 17:11:44 2014 +0900 @@ -51,7 +51,7 @@ extern double strtod(const char *nptr, char **endptr); #endif -int parse_mode = 1; // generate parse tree for all code +int parse_mode = 0; // generate parse tree for all code static int HEAP_REPORT = 0; static int lfree_type_limit; // debugging purpose @@ -1560,7 +1560,7 @@ a[] = {,,,,}; */ -#define LOCAL_STRUCT_INIT_STATIC 1 +#define LOCAL_STRUCT_INIT_STATIC 0 static int decl_data_field(int type1,int v,int offset) @@ -4162,6 +4162,7 @@ decl_data_field(type,e1,0); #endif } + if (mode==STAT && decl_str_init) gen_delayed_decl_data(e1,0); if (init_vars && mode!=LDECL) { emit_init_vars(); }