projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A better but still temporary fix for bug #467035
[fw/sdcc]
/
src
/
SDCCmem.c
diff --git
a/src/SDCCmem.c
b/src/SDCCmem.c
index 5a447ccc2777dbb1d04d084dd1e94d68b64fe91a..9084d1ec23371247dc916ae33d4796cbcf017d58 100644
(file)
--- a/
src/SDCCmem.c
+++ b/
src/SDCCmem.c
@@
-46,7
+46,7
@@
allocMap (char rspace, /* sfr space */
{
memmap *map;
{
memmap *map;
- if (!(map =
calloc (sizeof (memmap), 1
)))
+ if (!(map =
Safe_alloc (sizeof (memmap)
)))
{
werror (E_OUT_OF_MEM, __FILE__, sizeof (memmap));
exit (1);
{
werror (E_OUT_OF_MEM, __FILE__, sizeof (memmap));
exit (1);
@@
-420,7
+420,7
@@
allocParms (value * val)
{
/* check the declaration */
{
/* 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
/* 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 */
csym = sym;
/* check the declaration */
- checkDecl (csym);
+ checkDecl (csym
,0
);
/* if this is a function or a pointer to function */
/* then args processing */
/* 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 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))
{
for (sym = setFirstItem (istack->syms); sym;
sym = setNextItem (istack->syms))