[aspectc-user] ac++ fails at asm-keyword

Olaf Spinczyk os at aspectc.org
Fri Jun 13 16:35:44 CEST 2008

You are right. There seems to be a problem with the gcc asm syntax 
extension. The alternate keywords ("__asm__" and "__volatile__") work 
fine, but the parser has a problem with "::". It works if you insert a 
white space character between ":" and ":". It looks as if gcc does not 
use the normal scanner to recognize token, but a context-dependent 
scanner. Hm. We'll look into it.

- Olaf

J. Liebig wrote:
>> As long as you don't want to weave *inside* the avr-glibc it should 
>> be no problem. BTW, is avr-glibc the same as avr-libc from 
>> www.nongnu.org/avr-libc/? The latter has been used with AspectC++ for 
>> quite some time without trouble.
> Well I meant the avr-libc. Apart from the problem before the
> ac++ compiler stucked at:
> #define sei() __asm__ __volatile__("sei" ::)
> and
> #define cli() __asm__ __volatile__("cli" ::)
> from the avr-libc.
> Well the C++ specific Definition of the macro
> #define sei() asm volatile("sei") fixes this.
> It's just a minor problem.
> jl

More information about the aspectc-user mailing list