Re: [Tinycc-devel] [PATCH] tcc: remove buggy nodata_wanted optimization

2018-02-22 Thread grischka
Mikulas Patocka wrote: Hi The commit 7f1ab9b1e111b9ea9261eec4b7c6fb0f42591eef ("tccgen: nodata_wanted") breaks tcc, it generates incorrect code where different local variables are aliasing each other. It can be tested with this program, if you compile it with broken tcc, it prints "2". #i

[Tinycc-devel] [PATCH] tcc: remove buggy nodata_wanted optimization

2018-02-22 Thread Mikulas Patocka
Hi The commit 7f1ab9b1e111b9ea9261eec4b7c6fb0f42591eef ("tccgen: nodata_wanted") breaks tcc, it generates incorrect code where different local variables are aliasing each other. It can be tested with this program, if you compile it with broken tcc, it prints "2". #include int main(void) {