From a9a90e9724161d310773522d072ae77090c404af Mon Sep 17 00:00:00 2001 From: johanknol Date: Fri, 6 Apr 2001 14:59:42 +0000 Subject: [PATCH] fixed the undefined static in reentrant functions git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@730 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCsymt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index b9f90da1..63efeaf3 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -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))) { -- 2.30.2