X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=inline;f=src%2FSDCCmem.c;h=9084d1ec23371247dc916ae33d4796cbcf017d58;hb=9a33d11ed4da527058a0407d9ae493865430f316;hp=5a447ccc2777dbb1d04d084dd1e94d68b64fe91a;hpb=6812b951155467655aaaccb587131b8a403d2988;p=fw%2Fsdcc diff --git a/src/SDCCmem.c b/src/SDCCmem.c index 5a447ccc..9084d1ec 100644 --- a/src/SDCCmem.c +++ b/src/SDCCmem.c @@ -46,7 +46,7 @@ allocMap (char rspace, /* sfr space */ { memmap *map; - if (!(map = calloc (sizeof (memmap), 1))) + if (!(map = Safe_alloc (sizeof (memmap)))) { werror (E_OUT_OF_MEM, __FILE__, sizeof (memmap)); exit (1); @@ -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 @@ -793,7 +793,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 +930,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))