From: <tm_gccmail@mail.kloo.net>
To: Jie Zhang <zhangjie@magima.com.cn>
Cc: gcc@gcc.gnu.org
Subject: Re: An error of gcc-ss-20030303
Date: Wed, 23 Apr 2003 22:27:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.21.0304231519350.24563-100000@mail.kloo.net> (raw)
In-Reply-To: <3EA643B9.9090404@magima.com.cn>
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
next prev parent reply other threads:[~2003-04-23 21:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-23 10:36 Jie Zhang
2003-04-23 22:27 ` tm_gccmail [this message]
2003-04-23 22:43 ` Richard Henderson
2003-04-24 5:42 ` Jie Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.21.0304231519350.24563-100000@mail.kloo.net \
--to=tm_gccmail@mail.kloo.net \
--cc=gcc@gcc.gnu.org \
--cc=zhangjie@magima.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).