test files:

/* --- 1.c --- */
int x=2;
void main() {}
/* --- end --- */

/* --- 2.c --- */
int x;
void main();
/* --- end --- */



# gcc 1.c 2.c
no error

# gcc -c 1.c
# gcc -c 2.c
# gcc 1.o 2.o
no error

# tcc 1.c 2.c
no error

# tcc -c 1.c
# tcc -c 2.c
# tcc 1.o 2.o
new_bind=1 new_shndx=fff2 new_vis=0 old_bind=1 old_shndx=2 old_vis=0
2.o: 'x' defined twice

tcc version 2008-12-02 from http://repo.or.cz/w/tinycc.git
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to