gnupic: bugs of sdcc pic


Previous by date: 5 Jan 2005 06:30:16 +0000 Re: bugs of sdcc pic, Scott Dattalo
Next by date: 5 Jan 2005 06:30:16 +0000 Re: DIY USB programmer ?, Byron A Jeff
Previous in thread: 5 Jan 2005 06:30:16 +0000 Re: bugs of sdcc pic, Scott Dattalo
Next in thread: 5 Jan 2005 06:30:16 +0000 Re: bugs of sdcc pic, Scott Dattalo

Subject: Re: bugs of sdcc pic
From: Baoyu Liang ####@####.####
Date: 5 Jan 2005 06:30:16 +0000
Message-Id: <41DB89C2.2010906@buildwin.com.cn>

Hi,
  Thanks!

the sample code is :

/*******************************************************************************/

/* cmd line:sdcc -mpic14 -p16f84 test.c */

#define MREAD_BYTE(addr) *((unsigned char *)(addr))
                                                                                                                                               

void func2 (int,int);
                                                                                                                                               

void test_func1 (int var1)
{
        unsigned char byCSR0;
                                                                                                                                               

        byCSR0 = MREAD_BYTE(1);
                              
/* if cut sub 3 line, the error is lost   
*/                                                                                                              

        if (byCSR0 ) {
                func2 (1, 1);
        }
                                                                                                                                               

        return;
}
                                                                                                                                               

void func2 (int var1,int var2)
{
        var1 = var2;
        var2 = var1;
}

/************************************************************************/


Scott Dattalo wrote:

> On Wed, 5 Jan 2005, Baoyu Liang wrote:
>
>> Hi,
>> I am useing sdcc for my system.
>> I compier a c source file with:sdcc -mpic14 -p16f84 <src_file>
>> but, I got the error message:
>> Internal error: validateOpType failed in OP_SYMBOL(IC_LEFT (ic)) @
>> ralloc.c:3900: expected symbol, got value
>> What is it mean ? how can I fix it ? Thanks!
>
>
> I worked on SDCC 2+ years ago, but am not active now. All I can say is 
> that if you go to line 3900 of src/pic/ralloc.c you see code similar 
> to the error message and that for whatever reason one of the internal 
> pointers in the structure named 'ic' is NULL. I suggest posting the 
> question to the SDCC mailing list along with a small example routine 
> that causes the error to occur.
>
> Scott
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>


Previous by date: 5 Jan 2005 06:30:16 +0000 Re: bugs of sdcc pic, Scott Dattalo
Next by date: 5 Jan 2005 06:30:16 +0000 Re: DIY USB programmer ?, Byron A Jeff
Previous in thread: 5 Jan 2005 06:30:16 +0000 Re: bugs of sdcc pic, Scott Dattalo
Next in thread: 5 Jan 2005 06:30:16 +0000 Re: bugs of sdcc pic, Scott Dattalo


Powered by ezmlm-browse 0.20.