From: dynamic ppl <dynamicppl04@yahoo.com>
To: gcc-help@gcc.gnu.org
Subject: Assembly errors : compiling
Date: Mon, 23 Aug 2004 09:44:00 -0000 [thread overview]
Message-ID: <20040822051233.22864.qmail@web53210.mail.yahoo.com> (raw)
Hi Folks,
Sorry for my earlier mail, which did not have the
current fuction that was giving the problem. here it
is
__inline__ int casp(void * *pval, void * old, void *
new)
{
/**
* somehow I have to decide the size of (void *)
* during the runtime.
*/
if (sizeof(void *)==sizeof(int))
return cas32((int*)pval, (int)old, (int)new);
else
return cas64((long long *)pval, (long long)old,
(long long)new);
}
error :
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
thank you,
with regards
Shiva
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now.
http://messenger.yahoo.com
reply other threads:[~2004-08-22 5:12 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=20040822051233.22864.qmail@web53210.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).