fembedded-cxx

Richard Earnshaw rearnsha@arm.com
Sun Apr 1 00:00:00 GMT 2001


> I encountered an other problem with the C++ compiler:
> 
> If I use
>   asm volatile ("mov r0, #10":::"r0");
> I get :
> main.cpp: In function `void taskAfunction()':
> main.cpp:49: parse error before `::'
> 
> Without telling what reg gets clobberd like
>   asm volatile ("mov r0, #10");
> works fine.

Maximum gobble in the parser.  The parser sees :: and must return the C++ 
double colon marker.  Put some spaces between the colons and all will be 
hunky-dory again...

R.



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list