Mercurial > hg > CbC > old > device
changeset 618:a7f5796e540a
fix link error on undefined
author | kono |
---|---|
date | Wed, 06 Sep 2006 21:16:47 +0900 |
parents | efc99e397413 |
children | 509d637a58b2 |
files | .gdbinit mc-parse.c test/simp.c |
diffstat | 3 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/.gdbinit Wed Sep 06 20:58:12 2006 +0900 +++ b/.gdbinit Wed Sep 06 21:16:47 2006 +0900 @@ -52,9 +52,9 @@ # run -s test/linux_kernel.c.--- # run -s test/stralign.c # run -s test/putenemy.c -run -s test/float_gcc.c +# run -s test/float_gcc.c # run -s test/func_conv_err.c # run -DINLINE=inline test/tmp7.c # run -DINLINE=inline test/code-gen-all.c # run -s throw.c -# run -s test/simp.c +run -s test/simp.c
--- a/mc-parse.c Wed Sep 06 20:58:12 2006 +0900 +++ b/mc-parse.c Wed Sep 06 21:16:47 2006 +0900 @@ -3740,12 +3740,12 @@ } else { if (stmode!=GOTO) // undefined on goto statement is OK error(UDERR); - smode = stmode; stmode = GDECL; + smode = mode; mode = GDECL; // type = nptr->ty= glist3(FUNCTION,INT,0); type = INT; def(nptr,0); nptr->sc = EXTRN1; - stmode = smode; + mode = smode; e1=list2(FNAME,(int)nptr); // type=list3(nptr->sc,nptr->ty,nptr->dsp); break;