An error of gcc-ss-20030303
tm_gccmail@mail.kloo.net
tm_gccmail@mail.kloo.net
Wed Apr 23 22:27:00 GMT 2003
On Wed, 23 Apr 2003, Jie Zhang wrote:
> The following code is copied from spinlock.c in uClibc (after
> preprocessing and 'inline' after static removed):
>
> static void __pthread_release(int * spinlock)
> {
> asm ("" : : : "memory");
> *spinlock = 0;
> __asm __volatile ("" : "=m" (*spinlock) : "0" (*spinlock));
> }
>
Why not use a pointer to a volatile int?
Toshi
More information about the Gcc
mailing list