From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2699 invoked by alias); 9 May 2006 04:30:32 -0000 Received: (qmail 2680 invoked by uid 22791); 9 May 2006 04:30:30 -0000 X-Spam-Check-By: sourceware.org Received: from ausmtp04.au.ibm.com (HELO ausmtp04.au.ibm.com) (202.81.18.152) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 09 May 2006 04:30:18 +0000 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp04.au.ibm.com (8.13.6/8.13.5) with ESMTP id k494ewBL278326 for ; Tue, 9 May 2006 14:40:58 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.250.244]) by sd0208e0.au.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k494XXs6201614 for ; Tue, 9 May 2006 14:33:33 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.12.11/8.13.3) with ESMTP id k494UDRq007901 for ; Tue, 9 May 2006 14:30:13 +1000 Received: from ozlabs.au.ibm.com (ozlabs.au.ibm.com [9.190.163.12]) by d23av03.au.ibm.com (8.12.11/8.12.11) with ESMTP id k494UDYc007445 for ; Tue, 9 May 2006 14:30:13 +1000 Received: by ozlabs.au.ibm.com (Postfix, from userid 1017) id 8024073746; Tue, 9 May 2006 14:31:09 +1000 (EST) Date: Tue, 09 May 2006 06:53:00 -0000 From: Ben Elliston To: binutils@sourceware.org Subject: PATCH: last of the gas tidy-ups Message-ID: <20060509043109.GA23782@ozlabs.au.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00162.txt.bz2 This is the last of my stray binutils patches that have been lurking in my tree. Okay for mainline? 2006-05-09 Ben Elliston * 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. Index: expr.c =================================================================== RCS file: /cvs/src/src/gas/expr.c,v retrieving revision 1.65 diff -u -p -r1.65 expr.c --- expr.c 4 Apr 2006 08:04:57 -0000 1.65 +++ expr.c 9 May 2006 04:29:01 -0000 @@ -1003,11 +1003,6 @@ operand (expressionS *expressionP, enum 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 } 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]) Index: app.c =================================================================== RCS file: /cvs/src/src/gas/app.c,v retrieving revision 1.34 diff -u -p -r1.34 app.c --- app.c 10 Mar 2006 10:57:18 -0000 1.34 +++ app.c 9 May 2006 04:29:03 -0000 @@ -888,9 +888,6 @@ do_scrub_chars (int (*get) (char *, int) switch (state) { - case 0: - state++; - goto recycle; /* Punted leading sp */ case 1: /* We can arrive here if we leave a leading whitespace character at the beginning of a line. */