* Assembly errors : compiling
@ 2004-08-23 9:44 dynamic ppl
0 siblings, 0 replies; only message in thread
From: dynamic ppl @ 2004-08-23 9:44 UTC (permalink / raw)
To: gcc-help
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-08-22 5:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-23 9:44 Assembly errors : compiling dynamic ppl
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).