Mercurial > hg > CbC > old > device
diff mc-code-powerpc.c @ 348:e77b3a7002ad
name table reconfigure compiled. debug start.
author | kono |
---|---|
date | Fri, 02 Jul 2004 07:19:15 +0900 |
parents | 2b3946ee4fc9 |
children | 43099915f4c2 |
line wrap: on
line diff
--- a/mc-code-powerpc.c Fri Jul 02 03:55:11 2004 +0900 +++ b/mc-code-powerpc.c Fri Jul 02 07:19:15 2004 +0900 @@ -224,9 +224,9 @@ #if FLOAT_CODE static -NMTBL float_zero = {"_float_zero",STATIC,FLOAT,0}; +NMTBL float_zero = {"_float_zero",0,STATIC,FLOAT,0}; static -NMTBL float_one = {"_float_one",STATIC,FLOAT,0}; +NMTBL float_one = {"_float_one",0,STATIC,FLOAT,0}; static char * fload(int d); @@ -3010,7 +3010,7 @@ NMTBL *n; int init; char *extrn; init=0; - for(n=ntable;n < &ntable[GSYMS];n++) { + for(n = global_list;n;n = n->next) { if ((n->sc == GVAR) && n->dsp != -1) { /* n->dsp = -1 means initialized global */ if (init==0) { @@ -3027,7 +3027,7 @@ printf(".lcomm _%s,%d\n",n->nm,size(n->ty)); } } - for(n=ntable;n < &ntable[GSYMS];n++) { + for(n = global_list;n;n = n->next) { if (is_code(n)||is_function(n)) { extrn = n->nm; if (n->sc==EXTRN1) { @@ -3059,7 +3059,7 @@ } } init=0; - for(n=ntable;n < &ntable[GSYMS];n++) { + for(n = global_list;n;n = n->next) { if (n->sc == GVAR) { if (init==0) { printf(".data\n"); @@ -3069,7 +3069,7 @@ } } init = 0; - for(n=ntable;n < &ntable[GSYMS];n++) { + for(n = global_list;n;n = n->next) { if (is_code(n)||is_function(n)) continue; if (n->sc==EXTRN1) { if(init==0) { @@ -3091,7 +3091,7 @@ int init; init=0; /* static local variables */ - for(n=ntable+GSYMS;n < &ntable[GSYMS+LSYMS];n++) { + for(n = local_static_list;n;n = n->next) { if (n->sc == GVAR) { if (init==0) { data_mode(0);