Subject: Re: asm line separators
To: David Laight <david@l8s.co.uk>
From: Richard Earnshaw <rearnsha@arm.com>
List: tech-toolchain
Date: 06/13/2002 15:15:33
> On Thu, Jun 13, 2002 at 01:52:58PM +0100, Richard Earnshaw wrote:
> > > On Wed, Jun 12, 2002 at 07:42:43PM +0100, David Laight wrote:
> > >
> > > > I realize that - I just thought that it might be fixable in gcc!
> > >
> > > Not really. GCC doesn't actually know what ASM line separarator are,
> > > since it doens't use them itself.
> >
> > Not quite true. GCC does know what the separator is, so that it can count
> > the number of instructions in an __asm__ statement.
> >
> > See IS_ASM_LOGICAL_LINE_SEPARATOR.
>
> Which '\n' is always an alternative for, and the only value for arm/aof.h
>
> Maybe \n will always work instead of ; ?
>
> David
>
No, it's looking for a physical newline characters in the string, not a
logical one (ie the char '\n', not the character sequence '\\' 'n'). You
can't have physical newline characters in a macro.
R.