mirror of
https://github.com/cc65/cc65.git
synced 2025-01-28 15:31:18 +00:00
Fixed internal compiler error on invalid input code.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3768 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
b8293aaf8a
commit
9601baf6ec
@ -1974,6 +1974,7 @@ static void parseadd (ExprDesc* Expr)
|
|||||||
} else {
|
} else {
|
||||||
/* OOPS */
|
/* OOPS */
|
||||||
Error ("Invalid operands for binary operator `+'");
|
Error ("Invalid operands for binary operator `+'");
|
||||||
|
flags = CF_INT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Result is a rvalue in primary register */
|
/* Result is a rvalue in primary register */
|
||||||
@ -2014,6 +2015,7 @@ static void parseadd (ExprDesc* Expr)
|
|||||||
} else {
|
} else {
|
||||||
/* OOPS */
|
/* OOPS */
|
||||||
Error ("Invalid operands for binary operator `+'");
|
Error ("Invalid operands for binary operator `+'");
|
||||||
|
flags = CF_INT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Generate code for the add */
|
/* Generate code for the add */
|
||||||
@ -2052,6 +2054,7 @@ static void parseadd (ExprDesc* Expr)
|
|||||||
} else {
|
} else {
|
||||||
/* OOPS */
|
/* OOPS */
|
||||||
Error ("Invalid operands for binary operator `+'");
|
Error ("Invalid operands for binary operator `+'");
|
||||||
|
flags = CF_INT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Generate code for the add */
|
/* Generate code for the add */
|
||||||
@ -2090,7 +2093,6 @@ static void parsesub (ExprDesc* Expr)
|
|||||||
|
|
||||||
/* Get the left hand side type, initialize operation flags */
|
/* Get the left hand side type, initialize operation flags */
|
||||||
lhst = Expr->Type;
|
lhst = Expr->Type;
|
||||||
flags = 0;
|
|
||||||
rscale = 1; /* Scale by 1, that is, don't scale */
|
rscale = 1; /* Scale by 1, that is, don't scale */
|
||||||
|
|
||||||
/* Remember the output queue position, then bring the value onto the stack */
|
/* Remember the output queue position, then bring the value onto the stack */
|
||||||
@ -2166,6 +2168,7 @@ static void parsesub (ExprDesc* Expr)
|
|||||||
} else {
|
} else {
|
||||||
/* OOPS */
|
/* OOPS */
|
||||||
Error ("Invalid operands for binary operator `-'");
|
Error ("Invalid operands for binary operator `-'");
|
||||||
|
flags = CF_INT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Do the subtraction */
|
/* Do the subtraction */
|
||||||
@ -2216,6 +2219,7 @@ static void parsesub (ExprDesc* Expr)
|
|||||||
} else {
|
} else {
|
||||||
/* OOPS */
|
/* OOPS */
|
||||||
Error ("Invalid operands for binary operator `-'");
|
Error ("Invalid operands for binary operator `-'");
|
||||||
|
flags = CF_INT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Generate code for the sub (the & is a hack here) */
|
/* Generate code for the sub (the & is a hack here) */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user