Hello all!
tcc fails to compile the following program
extern void vide(void);
#ifndef TCC_OK
__asm__(".align 4\nvide: ret"); // tcc: error: undefined symbol 'vide'
#else
__asm__(".align 4\n.globl vide\nvide: ret");
#endif
int main (void) { vide(); }

What the problem with tcc? Why tcc need ".globl vide" in asm code and
gcc can compile w/o this declaration?

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to