dos cvs had problem with .lnk file
[fw/sdcc] / src / SDCCmem.c
index 5a447ccc2777dbb1d04d084dd1e94d68b64fe91a..e5f13fa4d19cea48d1fd65c84808ca5688377891 100644 (file)
@@ -420,7 +420,7 @@ allocParms (value * val)
     {
 
       /* check the declaration */
-      checkDecl (lval->sym);
+      checkDecl (lval->sym, 0);
 
       /* if this a register parm then allocate
          it as a local variable by adding it
@@ -581,6 +581,13 @@ allocLocal (symbol * sym)
 
   /* this is automatic           */
 
+#ifdef JWK20010916
+  if (!IS_SPEC(sym->type) && SPEC_OCLS(sym->etype)) {
+    allocIntoSeg (sym);
+    return;
+  }
+#endif
+
   /* if it to be placed on the stack */
   if (options.stackAuto || reentrant) {
     sym->onStack = 1;
@@ -793,7 +800,7 @@ allocVariables (symbol * symChain)
        csym = sym;
 
       /* check the declaration */
-      checkDecl (csym);
+      checkDecl (csym,0);
 
       /* if this is a function or a pointer to function */
       /* then args  processing  */
@@ -930,7 +937,7 @@ redoStackOffsets (void)
 
   /* if the debug option is set then output the
      symbols to the map file */
-  if (options.debug && !options.nodebug)
+  if (options.debug)
     {
       for (sym = setFirstItem (istack->syms); sym;
           sym = setNextItem (istack->syms))