aboutsummaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2006-05-09 04:54:32 +0000
committerBen Elliston <bje@au.ibm.com>2006-05-09 04:54:32 +0000
commit8c9f705ebb4a261be2fcf9e032e45fb90123d1d7 (patch)
tree0baeea2fa905c7929444e4df200d0868163dc23b /gas/expr.c
parente4d4d200c08f9bd2cef561f9acfb3464389d5dbe (diff)
downloadfsf-binutils-gdb-8c9f705ebb4a261be2fcf9e032e45fb90123d1d7.zip
fsf-binutils-gdb-8c9f705ebb4a261be2fcf9e032e45fb90123d1d7.tar.gz
fsf-binutils-gdb-8c9f705ebb4a261be2fcf9e032e45fb90123d1d7.tar.bz2
* expr.c (operand): Remove `if (0 && ..)' statement and
subsequently unused target_op label. Collapse `if (1 || ..)' statement. * app.c (do_scrub_chars): Remove unused case 0, as it is handled separately above the switch.
Diffstat (limited to 'gas/expr.c')
-rw-r--r--gas/expr.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/gas/expr.c b/gas/expr.c
index 69f0aac..746d7a2 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -1003,11 +1003,6 @@ operand (expressionS *expressionP, enum expr_mode mode)
case '-':
case '+':
{
- /* Do not accept ++e or --e as +(+e) or -(-e)
- Disabled, since the preprocessor removes whitespace. */
- if (0 && (c == '-' || c == '+') && *input_line_pointer == c)
- goto target_op;
-
operand (expressionP, mode);
if (expressionP->X_op == O_constant)
{
@@ -1291,7 +1286,6 @@ operand (expressionS *expressionP, enum expr_mode mode)
}
else
{
- target_op:
/* Let the target try to parse it. Success is indicated by changing
the X_op field to something other than O_absent and pointing
input_line_pointer past the expression. If it can't parse the
@@ -1552,11 +1546,7 @@ operator (int *num_chars)
case '+':
case '-':
- /* 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;
+ return op_encoding[c];
case '<':
switch (input_line_pointer[1])