From: dynamic ppl <dynamicppl04@yahoo.com>
To: gcc-help@gcc.gnu.org
Subject: asm errors
Date: Sun, 22 Aug 2004 13:35:00 -0000 [thread overview]
Message-ID: <20040822045047.88064.qmail@web53203.mail.yahoo.com> (raw)
Hi Folks,
Can some one shed some light on this? I am trying to
compile a package named tmpi and in one particular
file i get this error and the person who wrote the
code is unable to help.
gcc version : 3.2.2 20030222
Processor : Athlon.
__inline__ int cas32(volatile int *addr, int old, int
new)
{
char ret;
__asm__ __volatile__(LOCK_PREFIX
"cmpxchg %2, %1\n\t" /* swap values if current
value is known */
"sete %0" /* read
success/fail from EF */
: "=q" (ret), "=m" (ADDR)
: "r" (new), "a" (old)
:
"%eax" );
return (int)ret;
}
error:
----------
make[3]: [clean] Error 1 (ignored)
cc -O -Wall -I. -D__SMP__ -c -o atomic.o atomic.c
atomic.c: In function `casp':
atomic.c:28: warning: cast from pointer to integer of
different size
atomic.c:28: warning: cast from pointer to integer of
different size
atomic.c: In function `cas32':
atomic.c:7: can't find a register in class `AREG'
while reloading `asm'
make: *** [atomic.o] Error 1
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
reply other threads:[~2004-08-22 4:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20040822045047.88064.qmail@web53203.mail.yahoo.com \
--to=dynamicppl04@yahoo.com \
--cc=gcc-help@gcc.gnu.org \
/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).