* expr.c (operand): Correct checks for ++ and --.
This commit is contained in:
parent
c2215ad288
commit
f4c724fc32
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-04-16 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* expr.c (operand): Correct checks for ++ and --.
|
||||||
|
|
||||||
2004-04-14 H.J. Lu <hongjiu.lu@intel.com>
|
2004-04-14 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* config/tc-generic.c: Add some comments.
|
* config/tc-generic.c: Add some comments.
|
||||||
|
|
|
@ -1022,7 +1022,7 @@ operand (expressionS *expressionP)
|
||||||
|
|
||||||
case '+':
|
case '+':
|
||||||
/* Do not accept ++e as +(+e) */
|
/* Do not accept ++e as +(+e) */
|
||||||
if (input_line_pointer[1] == '+')
|
if (*input_line_pointer == '+')
|
||||||
goto target_op;
|
goto target_op;
|
||||||
(void) operand (expressionP);
|
(void) operand (expressionP);
|
||||||
break;
|
break;
|
||||||
|
@ -1042,7 +1042,7 @@ operand (expressionS *expressionP)
|
||||||
case '-':
|
case '-':
|
||||||
{
|
{
|
||||||
/* Do not accept --e as -(-e) */
|
/* Do not accept --e as -(-e) */
|
||||||
if (c == '-' && input_line_pointer[1] == '-')
|
if (c == '-' && *input_line_pointer == '-')
|
||||||
goto target_op;
|
goto target_op;
|
||||||
|
|
||||||
operand (expressionP);
|
operand (expressionP);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue