* src/SDCCsymt.h: added IS_AUTO(symbol) test macro
[fw/sdcc] / src / SDCCopt.c
index 4e9c2a7be560647efde1841a42b6a0a9efcf780c..e39db1b264f7d26250964a1463eeabb573ffc8a1 100644 (file)
@@ -611,12 +611,15 @@ convertToFcall (eBBlock ** ebbs, int count)
 static int
 isLocalWithoutDef (symbol * sym)
 {
+  if (!IS_AUTO (sym))
+    return 0;
+  #if 0
   if (!sym->level)
     return 0;
   
   if (IS_STATIC (sym->etype))
     return 0;
-  
+  #endif
   if (IS_VOLATILE (sym->type))
     return 0;