projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* .version: changed to version 2.5.3
[fw/sdcc]
/
src
/
SDCCmem.c
diff --git
a/src/SDCCmem.c
b/src/SDCCmem.c
index ddf5ce66bb7e202d10356bfb47f01cf28402a2ac..35b0d9e1f3bb4198bbc694b081484b8bd1a3c80a 100644
(file)
--- a/
src/SDCCmem.c
+++ b/
src/SDCCmem.c
@@
-416,10
+416,10
@@
allocGlobal (symbol * sym)
}
/* if this is a bit variable and no storage class */
}
/* if this is a bit variable and no storage class */
- if (
SPEC_NOUN (sym->etype) == V_BIT
- /*&& SPEC_SCLS (sym->etype) == S_BIT*/
)
+ if (
IS_SPEC(sym->type) && SPEC_NOUN (sym->type) == V_BIT)
+ /*&& SPEC_SCLS (sym->etype) == S_BIT*/
{
{
- SPEC_OCLS (sym->
e
type) = bit;
+ SPEC_OCLS (sym->type) = bit;
allocIntoSeg (sym);
return;
}
allocIntoSeg (sym);
return;
}
@@
-663,10
+663,10
@@
allocLocal (symbol * sym)
}
/* if this is a bit variable and no storage class */
}
/* if this is a bit variable and no storage class */
- if (
SPEC_NOUN (sym->e
type) == V_BIT)
+ if (
IS_SPEC(sym->type) && SPEC_NOUN (sym->
type) == V_BIT)
{
{
- SPEC_SCLS (sym->
e
type) = S_BIT;
- SPEC_OCLS (sym->
e
type) = bit;
+ SPEC_SCLS (sym->type) = S_BIT;
+ SPEC_OCLS (sym->type) = bit;
allocIntoSeg (sym);
return;
}
allocIntoSeg (sym);
return;
}