projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some more on the const, volatile and now also static issue
[fw/sdcc]
/
src
/
SDCCsymt.c
diff --git
a/src/SDCCsymt.c
b/src/SDCCsymt.c
index a2c11a2aeb0635bd50685bab88e101ae311714a7..dfec56bbd932838ee549f88e55f33f8a13fcce9d 100644
(file)
--- a/
src/SDCCsymt.c
+++ b/
src/SDCCsymt.c
@@
-373,9
+373,7
@@
pointerTypes (sym_link * ptr, sym_link * type)
break;
}
/* the storage class of type ends here */
break;
}
/* the storage class of type ends here */
- SPEC_SCLS (type) =
- SPEC_CONST (type) =
- SPEC_VOLATILE (type) = 0;
+ SPEC_SCLS (type) = 0;
}
/* now change all the remaining unknown pointers
}
/* now change all the remaining unknown pointers
@@
-558,8
+556,6
@@
void checkTypeSanity(sym_link *etype, char *name) {
sym_link *
mergeSpec (sym_link * dest, sym_link * src, char *name)
{
sym_link *
mergeSpec (sym_link * dest, sym_link * src, char *name)
{
- sym_link *symlink=dest;
-
if (!IS_SPEC(dest) || !IS_SPEC(src)) {
#if 0
werror (E_INTERNAL_ERROR, __FILE__, __LINE__, "cannot merge declarator");
if (!IS_SPEC(dest) || !IS_SPEC(src)) {
#if 0
werror (E_INTERNAL_ERROR, __FILE__, __LINE__, "cannot merge declarator");
@@
-643,7
+639,7
@@
mergeSpec (sym_link * dest, sym_link * src, char *name)
FUNC_INTNO(dest) |= FUNC_INTNO(src);
FUNC_REGBANK(dest) |= FUNC_REGBANK(src);
FUNC_INTNO(dest) |= FUNC_INTNO(src);
FUNC_REGBANK(dest) |= FUNC_REGBANK(src);
- return
symlink
;
+ return
dest
;
}
/*------------------------------------------------------------------*/
}
/*------------------------------------------------------------------*/