+2004-05-23 Alan Modra <amodra@bigpond.net.au>
+
+ * expr.c (operand, operator): Don't reject '++' and '--'.
+
2004-05-20 Richard Sandiford <rsandifo@redhat.com>
* config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
break;
case '+':
- /* Do not accept ++e as +(+e) */
- if (*input_line_pointer == '+')
+ /* Do not accept ++e as +(+e).
+ Disabled, since the preprocessor removes whitespace. */
+ if (0 && *input_line_pointer == '+')
goto target_op;
(void) operand (expressionP);
break;
case '!':
case '-':
{
- /* Do not accept --e as -(-e) */
- if (c == '-' && *input_line_pointer == '-')
+ /* Do not accept --e as -(-e)
+ Disabled, since the preprocessor removes whitespace. */
+ if (0 && c == '-' && *input_line_pointer == '-')
goto target_op;
operand (expressionP);
case '+':
case '-':
- /* Do not allow a++b and a--b to be a + (+b) and a - (-b) */
- if (input_line_pointer[1] != c)
+ /* Do not allow a++b and a--b to be a + (+b) and a - (-b)
+ Disabled, since the preprocessor removes whitespace. */
+ if (1 || input_line_pointer[1] != c)
return op_encoding[c];
return O_illegal;