From: Ben Elliston Date: Tue, 24 Oct 2006 18:10:57 +0000 (+0000) Subject: * expr.c (expr): Replace O_add case in switch (op_left) explaining X-Git-Tag: gdb_6_6-2006-11-15-branchpoint~171 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b3835172a5274af86d77b420df557f290e01147;p=platform%2Fupstream%2Fbinutils.git * expr.c (expr): Replace O_add case in switch (op_left) explaining why it can never occur. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 9861888..de4a1ba 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2006-10-25 Ben Elliston + + * expr.c (expr): Replace O_add case in switch (op_left) explaining + why it can never occur. + 2006-10-24 Andrew Pinski * doc/c-ppc.texi (-mcell): Document. diff --git a/gas/expr.c b/gas/expr.c index 6297f19..c6c6ddf 100644 --- a/gas/expr.c +++ b/gas/expr.c @@ -1785,7 +1785,9 @@ expr (int rankarg, /* Larger # is higher rank. */ case O_bit_or_not: resultP->X_add_number |= ~v; break; case O_bit_exclusive_or: resultP->X_add_number ^= v; break; case O_bit_and: resultP->X_add_number &= v; break; - case O_add: resultP->X_add_number += v; break; + /* Constant + constant (O_add) is handled by the + previous if statement for constant + X, so is omitted + here. */ case O_subtract: resultP->X_add_number -= v; break; case O_eq: resultP->X_add_number =