projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no need to register bitfields
[fw/sdcc]
/
src
/
SDCCicode.c
diff --git
a/src/SDCCicode.c
b/src/SDCCicode.c
index 02482ec773f07b88bfb9e92d25b27757063fe448..ea4f48d5cab440e51eddf7a1b91bce73fdc8d5fd 100644
(file)
--- a/
src/SDCCicode.c
+++ b/
src/SDCCicode.c
@@
-539,7
+539,7
@@
newiTempLabel (char *s)
itmplbl->isitmp = 1;
itmplbl->islbl = 1;
itmplbl->key = labelKey++;
itmplbl->isitmp = 1;
itmplbl->islbl = 1;
itmplbl->key = labelKey++;
- addSym (LabelTab, itmplbl, itmplbl->name, 0, 0);
+ addSym (LabelTab, itmplbl, itmplbl->name, 0, 0
, 0
);
return itmplbl;
}
return itmplbl;
}
@@
-557,7
+557,7
@@
newiTempPreheaderLabel ()
itmplbl->isitmp = 1;
itmplbl->islbl = 1;
itmplbl->key = labelKey++;
itmplbl->isitmp = 1;
itmplbl->islbl = 1;
itmplbl->key = labelKey++;
- addSym (LabelTab, itmplbl, itmplbl->name, 0, 0);
+ addSym (LabelTab, itmplbl, itmplbl->name, 0, 0
, 0
);
return itmplbl;
}
return itmplbl;
}
@@
-1021,7
+1021,7
@@
isOperandEqual (operand * left, operand * right)
return (floatFromVal (left->operand.valOperand) ==
floatFromVal (right->operand.valOperand));
case TYPE:
return (floatFromVal (left->operand.valOperand) ==
floatFromVal (right->operand.valOperand));
case TYPE:
- if (c
heck
Type (left->operand.typeOperand,
+ if (c
ompare
Type (left->operand.typeOperand,
right->operand.typeOperand) == 1)
return 1;
}
right->operand.typeOperand) == 1)
return 1;
}
@@
-1513,7
+1513,7
@@
geniCodeCast (sym_link * type, operand * op, bool implicit)
}
/* if the operand is already the desired type then do nothing */
}
/* if the operand is already the desired type then do nothing */
- if (c
heck
Type (type, optype) == 1)
+ if (c
ompare
Type (type, optype) == 1)
return op;
/* if this is a literal then just change the type & return */
return op;
/* if this is a literal then just change the type & return */
@@
-1529,7
+1529,7
@@
geniCodeCast (sym_link * type, operand * op, bool implicit)
!IS_GENPTR (type))
{
werror (E_INCOMPAT_CAST);
!IS_GENPTR (type))
{
werror (E_INCOMPAT_CAST);
-
werror (E_CONTINUE
, "from type '");
+
fprintf (stderr
, "from type '");
printTypeChain (optype, stderr);
fprintf (stderr, "' to type '");
printTypeChain (type, stderr);
printTypeChain (optype, stderr);
fprintf (stderr, "' to type '");
printTypeChain (type, stderr);
@@
-2501,12
+2501,12
@@
geniCodeAssign (operand * left, operand * right, int nosupdate)
/* first check the type for pointer assignement */
if (left->isaddr && IS_PTR (ltype) && IS_ITEMP (left) &&
/* first check the type for pointer assignement */
if (left->isaddr && IS_PTR (ltype) && IS_ITEMP (left) &&
- c
heck
Type (ltype, rtype) < 0)
+ c
ompare
Type (ltype, rtype) < 0)
{
{
- if (c
heck
Type (ltype->next, rtype) < 0)
+ if (c
ompare
Type (ltype->next, rtype) < 0)
right = geniCodeCast (ltype->next, right, TRUE);
}
right = geniCodeCast (ltype->next, right, TRUE);
}
- else if (c
heck
Type (ltype, rtype) < 0)
+ else if (c
ompare
Type (ltype, rtype) < 0)
right = geniCodeCast (ltype, right, TRUE);
/* if left is a true symbol & ! volatile
right = geniCodeCast (ltype, right, TRUE);
/* if left is a true symbol & ! volatile
@@
-3286,7
+3286,7
@@
ast2iCode (ast * tree,int lvl)
sym_link *rtype = operandType (right);
sym_link *ltype = operandType (left);
if (IS_PTR (rtype) && IS_ITEMP (right)
sym_link *rtype = operandType (right);
sym_link *ltype = operandType (left);
if (IS_PTR (rtype) && IS_ITEMP (right)
- && right->isaddr && c
heck
Type (rtype->next, ltype) == 1)
+ && right->isaddr && c
ompare
Type (rtype->next, ltype) == 1)
right = geniCodeRValue (right, TRUE);
else
right = geniCodeRValue (right, FALSE);
right = geniCodeRValue (right, TRUE);
else
right = geniCodeRValue (right, FALSE);
@@
-3318,7
+3318,7
@@
ast2iCode (ast * tree,int lvl)
sym_link *rtype = operandType (right);
sym_link *ltype = operandType (left);
if (IS_PTR (rtype) && IS_ITEMP (right)
sym_link *rtype = operandType (right);
sym_link *ltype = operandType (left);
if (IS_PTR (rtype) && IS_ITEMP (right)
- && right->isaddr && c
heck
Type (rtype->next, ltype) == 1)
+ && right->isaddr && c
ompare
Type (rtype->next, ltype) == 1)
right = geniCodeRValue (right, TRUE);
else
right = geniCodeRValue (right, FALSE);
right = geniCodeRValue (right, TRUE);
else
right = geniCodeRValue (right, FALSE);
@@
-3334,7
+3334,7
@@
ast2iCode (ast * tree,int lvl)
sym_link *rtype = operandType (right);
sym_link *ltype = operandType (left);
if (IS_PTR (rtype) && IS_ITEMP (right)
sym_link *rtype = operandType (right);
sym_link *ltype = operandType (left);
if (IS_PTR (rtype) && IS_ITEMP (right)
- && right->isaddr && c
heck
Type (rtype->next, ltype) == 1)
+ && right->isaddr && c
ompare
Type (rtype->next, ltype) == 1)
{
right = geniCodeRValue (right, TRUE);
}
{
right = geniCodeRValue (right, TRUE);
}