This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: problem processing \@ expression in arm/thumb assembler macros
- To: Ian Lance Taylor <ian at zembu dot com>
- Subject: Re: problem processing \@ expression in arm/thumb assembler macros
- From: Thomas de Lellis <tdel at windriver dot com>
- Date: Fri, 10 Mar 2000 14:57:38 -0800
- CC: tdel at windriver dot com, binutils at sourceware dot cygnus dot com
- References: <38C97716.2B3994B1@wrs.com> <20000310223518.3500.qmail@daffy.airs.com>
Hi
Hmm, I thought \@ was sort of a special case as it is the exact syntax
required by that macro expression (except I only turned it on for arm).
\@ always has to work regardless...
I suppose I could have it test for '\' followed by IS_COMMENT(ch) ...
How about that?
tom
Ian Lance Taylor wrote:
>
> Date: Fri, 10 Mar 2000 14:28:38 -0800
> From: Thomas de Lellis <tdel@windriver.com>
>
> Found a problem where \@ was not being processed correctly with
> arm/thumb assemblers. Attached is a change for gas/app.c that fixes the
> problem.
>
> This sort of problem does arise periodically: a conflict between gas's
> machine independent syntax and its machine dependent syntax. These
> problems are hard to solve.
>
> Your patch is kind of a special case solution, which can potentially
> silently change the meaning of existing code. I don't know if that is
> best. It seems to me that we should look for a more general solution:
> perhaps all comment characters should be ignored after a backslash;
> perhaps there should be an alternative to \@.
>
> Ian