[aspectc-user] Small glitch in GCC's __asm__ syntax support
Olaf Spinczyk
os at aspectc.org
Tue May 26 21:27:31 CEST 2009
Hi Stefan,
thanks for reporting this bug. It is related to bug #364 in our bugzilla
system (www.aspectc.org -> support). I have extended the description.
All three problems mentioned there are related to the gnu asm syntax.
Best regards,
Olaf
Stefan Marr schrieb:
> Hi,
>
> just stumbled over a small problem with some assembly code in a header
> file. Looks like AspectC++ does not support the full GCC style
> assembly definitions.
>
> The code is as follows:
>
> asm.h:
>
> inline void XADD(int32_t* var, int32_t increment) {
> __asm__ __volatile__(
> "lock xaddl %1,%0 ;\n"
> : "=m" (*var)
> : "ir" (increment), "m" (var)
> : /* empty clobber-list */
> );
> }
>
>
> g++ compiles it fine, but using ag++ results in an error.
>
> The ac++ compiler complains about the last line beginning with ":",
> guess because its empty.
>
> As a workaround, it is possible to remove this line.
>
>
> Best regards
> Stefan
> _______________________________________________
> aspectc-user mailing list
> aspectc-user at aspectc.org
> http://www.aspectc.org/mailman/listinfo/aspectc-user
>
More information about the aspectc-user
mailing list