projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleaned up some more mess. Everything should be the same now as on the 12th
[fw/sdcc]
/
src
/
SDCCast.c
diff --git
a/src/SDCCast.c
b/src/SDCCast.c
index 0024cff3f35408cb2de43418cc6be5cf6a4f5a81..a2066a19fdd4a6cc70197b1f7f4cb142e207820a 100644
(file)
--- a/
src/SDCCast.c
+++ b/
src/SDCCast.c
@@
-2144,7
+2144,7
@@
decorateType (ast * tree)
{
sym_link *ltc = (tree->right ? RTYPE (tree) : LTYPE (tree));
COPYTYPE (TTYPE (tree), TETYPE (tree), ltc);
{
sym_link *ltc = (tree->right ? RTYPE (tree) : LTYPE (tree));
COPYTYPE (TTYPE (tree), TETYPE (tree), ltc);
- if (!tree->initMode && IS_CONSTANT
(TTYPE
(tree)))
+ if (!tree->initMode && IS_CONSTANT
(TETYPE
(tree)))
werror (E_CODE_WRITE, tree->opval.op==INC_OP ? "++" : "--");
if (tree->right)
werror (E_CODE_WRITE, tree->opval.op==INC_OP ? "++" : "--");
if (tree->right)
@@
-3124,7
+3124,7
@@
decorateType (ast * tree)
RRVAL (tree) = 1;
TETYPE (tree) = getSpec (TTYPE (tree) = LTYPE (tree));
RRVAL (tree) = 1;
TETYPE (tree) = getSpec (TTYPE (tree) = LTYPE (tree));
- if (!tree->initMode && IS_CONSTANT (LTYPE (tree)))
+ if (!tree->initMode && IS_CONSTANT (L
E
TYPE (tree)))
werror (E_CODE_WRITE, "&= or |= or ^= or >>= or <<=");
if (LRVAL (tree))
werror (E_CODE_WRITE, "&= or |= or ^= or >>= or <<=");
if (LRVAL (tree))
@@
-3159,7
+3159,7
@@
decorateType (ast * tree)
computeType (LTYPE (tree),
RTYPE (tree)));
computeType (LTYPE (tree),
RTYPE (tree)));
- if (!tree->initMode && IS_CONSTANT (LTYPE (tree)))
+ if (!tree->initMode && IS_CONSTANT (L
E
TYPE (tree)))
werror (E_CODE_WRITE, "-=");
if (LRVAL (tree))
werror (E_CODE_WRITE, "-=");
if (LRVAL (tree))
@@
-3200,7
+3200,7
@@
decorateType (ast * tree)
computeType (LTYPE (tree),
RTYPE (tree)));
computeType (LTYPE (tree),
RTYPE (tree)));
- if (!tree->initMode && IS_CONSTANT (LTYPE (tree)))
+ if (!tree->initMode && IS_CONSTANT (L
E
TYPE (tree)))
werror (E_CODE_WRITE, "+=");
if (LRVAL (tree))
werror (E_CODE_WRITE, "+=");
if (LRVAL (tree))
@@
-3248,7
+3248,7
@@
decorateType (ast * tree)
RRVAL (tree) = 1;
LLVAL (tree) = 1;
if (!tree->initMode ) {
RRVAL (tree) = 1;
LLVAL (tree) = 1;
if (!tree->initMode ) {
- if (
IS_CONSTANT (LTYPE (tree
)))
+ if (
(IS_SPEC(LETYPE(tree)) && IS_CONSTANT (LETYPE (tree)
)))
werror (E_CODE_WRITE, "=");
}
if (LRVAL (tree))
werror (E_CODE_WRITE, "=");
}
if (LRVAL (tree))