diff options
author | Alan Modra <amodra@gmail.com> | 2004-05-23 04:35:11 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2004-05-23 04:35:11 +0000 |
commit | 1181c20ef469d4c1d5c9593809653546506f29a8 (patch) | |
tree | 7d1af86aa0074028c0b4b92019d1cb91a19ae1c8 /gas/expr.c | |
parent | bc286f95ec5f5dbf4605cfa881a4666b18b62827 (diff) | |
download | gdb-1181c20ef469d4c1d5c9593809653546506f29a8.zip gdb-1181c20ef469d4c1d5c9593809653546506f29a8.tar.gz gdb-1181c20ef469d4c1d5c9593809653546506f29a8.tar.bz2 |
* expr.c (operand, operator): Don't reject '++' and '--'.
Diffstat (limited to 'gas/expr.c')
-rw-r--r-- | gas/expr.c | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -1021,8 +1021,9 @@ operand (expressionS *expressionP) 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; @@ -1041,8 +1042,9 @@ operand (expressionS *expressionP) 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); @@ -1551,8 +1553,9 @@ operator (int *num_chars) 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; |