From: sandeep Date: Wed, 14 Nov 2001 21:08:43 +0000 (+0000) Subject: slocs are not statics X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=5ba14abf76c3cd1c4f692ae8e68459d281c5a5eb;p=fw%2Fsdcc slocs are not statics git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1593 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/mcs51/ralloc.c b/src/mcs51/ralloc.c index 4867e603..5f2dd466 100644 --- a/src/mcs51/ralloc.c +++ b/src/mcs51/ralloc.c @@ -513,6 +513,7 @@ createStackSpil (symbol * sym) sloc->etype = getSpec (sloc->type); SPEC_SCLS (sloc->etype) = S_DATA; SPEC_EXTR (sloc->etype) = 0; + SPEC_STAT (sloc->etype) = 0; /* we don't allow it to be allocated` onto the external stack since : so we diff --git a/src/pic/ralloc.c b/src/pic/ralloc.c index 142e0098..95c75778 100644 --- a/src/pic/ralloc.c +++ b/src/pic/ralloc.c @@ -944,6 +944,7 @@ createStackSpil (symbol * sym) sloc->etype = getSpec (sloc->type); SPEC_SCLS (sloc->etype) = S_DATA; SPEC_EXTR (sloc->etype) = 0; + SPEC_STAT (sloc->etype) = 0; /* we don't allow it to be allocated` onto the external stack since : so we diff --git a/src/z80/ralloc.c b/src/z80/ralloc.c index 59ee73c6..93a29153 100644 --- a/src/z80/ralloc.c +++ b/src/z80/ralloc.c @@ -457,6 +457,7 @@ createStackSpil (symbol * sym) sloc->type = copyLinkChain (sym->type); sloc->etype = getSpec (sloc->type); SPEC_SCLS (sloc->etype) = S_AUTO; + SPEC_STAT (sloc->etype) = 0; allocLocal (sloc);