From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19037 invoked by alias); 16 Apr 2005 11:40:50 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 19003 invoked from network); 16 Apr 2005 11:40:42 -0000 Received: from unknown (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org with SMTP; 16 Apr 2005 11:40:42 -0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.0/8.13.0) with ESMTP id j3GBeKQM019436; Sat, 16 Apr 2005 13:40:20 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.4/8.13.3) with ESMTP id j3GBeJUR007002; Sat, 16 Apr 2005 13:40:19 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id j3GBe06L019780; Sat, 16 Apr 2005 13:40:00 +0200 (CEST) Date: Sat, 16 Apr 2005 11:40:00 -0000 Message-Id: <200504161140.j3GBe06L019780@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: amodra@bigpond.net.au CC: tg@66h.42h.de, binutils@sources.redhat.com In-reply-to: <20050414012555.GB5968@bubble.modra.org> (message from Alan Modra on Thu, 14 Apr 2005 10:55:55 +0930) Subject: Re: [RFC/RFA] Proper mnemonics for VIA PadLock (i386) instructions References: <20050414012555.GB5968@bubble.modra.org> X-SW-Source: 2005-04/txt/msg00451.txt.bz2 Date: Thu, 14 Apr 2005 10:55:55 +0930 From: Alan Modra On Wed, Apr 13, 2005 at 03:20:25PM +0000, Thorsten Glaser wrote: > DOES it fail then? :) Note that I carefully said "Something like" the example I posted. I know that we had trouble in the past with the assembler pre-processor stripping whitespace completely (see tc_symbol_chars), but it may be that this can't happen now for the mnemonic part of an assembly line. All tc_symbol_chars does is add a few more characters, including '-' to the LEX_IS_SYMBOL_COMPONENT "class". Since the alphanumeric characters are already marked as LEX_IS_SYMBOL_COMPONENT, is exactly the reason why the whitespace isn't stripped. It makes us go from state 3 to state 9 to state 10, which outputs a space, so whitespace around the mnemonic (which is considered to be the first operand in presence of a prefix) is conserved (even if '-' is the first or last character of the operand. If one of the proponents of this patch analyse app.c behaviour enough to give a reasonable level of confidence, I'll accept the patch. Does this give enough confidence? Mark