From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16655 invoked by alias); 22 Aug 2004 05:12:34 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 16646 invoked from network); 22 Aug 2004 05:12:33 -0000 Received: from unknown (HELO web53210.mail.yahoo.com) (206.190.39.226) by sourceware.org with SMTP; 22 Aug 2004 05:12:33 -0000 Message-ID: <20040822051233.22864.qmail@web53210.mail.yahoo.com> Received: from [128.197.173.234] by web53210.mail.yahoo.com via HTTP; Sat, 21 Aug 2004 22:12:33 PDT Date: Mon, 23 Aug 2004 09:44:00 -0000 From: dynamic ppl Subject: Assembly errors : compiling To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-08/txt/msg00210.txt.bz2 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