tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] bugs


From: Sandor Zsolt
Subject: [Tinycc-devel] bugs
Date: Thu, 12 Mar 2009 06:32:38 -0700 (PDT)

Hallo

I have found few bugs.


1. The tcc compiler can`t work with absolute defined include paths.

Solution: in tcc.c in function preprocess from the line 3063
 
 /* now search in all the include paths */
        n = s1->nb_include_paths + s1->nb_sysinclude_paths;
      
        f = tcc_open(s1, buf);
        if (f)                                Must put this into the code.                     
            goto found;

        for(i = 0; i < n; i++) {

2.Accepts illegal integer constants

    int a = 0xabgfa;
 
    printf("%x", a); -> ab

    a = 0xwookie;

    printf("%d\n", a); -> 0

3.
void main()
{

    unsigned char uca[] =
    {
        0x11, 0x22, 0x33, 0x44, 0x55
    };            
 
    printf("Hello 1\n");
    printf("Hello 2\n");
   
}


output :
Hello 1
Hello 2


void main()
{

    unsigned char uca[] =
    {
        0x11, 0x22, 0x33, 0x44, 0x55
    }; -            If I delete the semicolon, then comes no error message.
But the first printf function does not call.
 
    printf("Hello 1\n");
    printf("Hello 2\n");
   
}


output :
Hello 2


Solution???

Can somebody help?

With regards

Matthias







reply via email to

[Prev in Thread] Current Thread [Next in Thread]