Hi,
Following code triggers a segment fault on tinycc mob
(5201312cb242ea943848fcf864adacc44d3d190f) on ubuntu 18.04 x86-64.
It seems that the bug is introduced by
355897a9203661b5f54dbb634294a66ceef17ae6, without considering the size of a.
$ cat test.c
extern int a;
int a[] = {};
$ ./tcc -c -o tcc.o test.c
[1] 41230 segmentation fault (core dumped) ./tcc -c -o tcc.o test.c
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel