This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: __asm__ and
- To: Shaun Jackman <sjackman at pathwayconnect dot com>
- Subject: Re: __asm__ and
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 28 Sep 2001 21:18:39 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <E15kUCP-000184-00@dazed>
On Sep 21, 2001, Shaun Jackman <sjackman@pathwayconnect.com> wrote:
> #define int_disable() \
> __asm__( \
> "mrs %0, cpsr \n\t" \
> "orr %0, %0, #I_BIT \n\t" \
> "msr cpsr, %0 \n\t" \
> : "=r" : : "cpsr" \
> )
> I get the error
> cs8900.c:246: parse error before ':' token
This looks very much like the typical CR+LF (*) error. GCC used to
fail when processing files that were not uniform in using CR+LF or
just LF for line breaks. When finding a CR, it would sometimes
interpret that as whitespace after `\', and not merge the lines
together, resulting in this kind of error. Please make sure this file
doesn't contain embedded CRs and try again.
* CR stands for Carriage Return, or ^M, ASCII 13, whereas LF stands
for Line Feed, ^J, ASCII 10.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me