fixed the undefined static in reentrant functions
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 6 Apr 2001 14:59:42 +0000 (14:59 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 6 Apr 2001 14:59:42 +0000 (14:59 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@730 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCsymt.c

index b9f90da1bba29f4343d985d1615d8ae21d19e29f..63efeaf3984105b5391ace35ce56013459d65ec6 100644 (file)
@@ -1097,7 +1097,8 @@ checkSClass (symbol * sym)
 
   /* if parameter or local variable then change */
   /* the storage class to reflect where the var will go */
-  if (sym->level && SPEC_SCLS (sym->etype) == S_FIXED)
+  if (sym->level && SPEC_SCLS (sym->etype) == S_FIXED &&
+      !IS_STATIC(sym->etype))
     {
       if (options.stackAuto || (currFunc && IS_RENT (currFunc->etype)))
        {