__asm__ and
Alexandre Oliva
aoliva@redhat.com
Fri Sep 28 17:19:00 GMT 2001
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
More information about the Gcc-help
mailing list