tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] Compiling TinyC on 64 bit Linux.


From: Stephen Bridgett
Subject: [Tinycc-devel] Compiling TinyC on 64 bit Linux.
Date: Tue, 10 Nov 2009 18:26:27 -0000
User-agent: Opera Mail/10.01 (Linux)


I compiled TinyC on Fedora 11 Linux 64 bit, using gcc (GCC) 4.4.1 20090725.

However I noticed the following three warnings:

   In file included from tcc.c:21:
   libtcc.c: In function ‘tcc_open’:
libtcc.c:1104: warning: field width should have type ‘int’, but argument 3 has type ‘long int’
   In file included from libtcc.c:1131,
                    from tcc.c:21:
   tccgen.c: In function ‘block’:
 tccgen.c:4085: warning: cast to pointer from integer of different size
 tccgen.c:4108: warning: cast to pointer from integer of different size


I looked at these lines in the source code, as listed below. They may not cause any problem in practice when executing the compiler, but I was wondering if anyone
had changed them to suit 64 bit?


libtcc.c:
=========

    if ((s1->verbose == 2 && fd >= 0) || s1->verbose == 3)
        printf("%s %*s%s\n", fd < 0 ? "nf":"->",
1104:          (s1->include_stack_ptr - s1->include_stack), "", filename);




tccgen.c:
=========
            if (s->r & LABEL_FORWARD)
4085:           s->next = (void *)gjmp((long)s->next);
            else
                gjmp_addr((long)s->next);
            next();
        } else {
            expect("label identifier");


tccgen.c:
=========

4108:      s->next = (void *)ind;



Best regards,

Stephen.

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.





reply via email to

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