This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: fembedded-cxx


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]