Michael Matz wrote:
Hi,
I was bored the last weekend and stumbled over tinycc, tried compiling
GCC with it, which breaks in multiple ways, sometimes not parsing stuff,
sometimes miscompiling it, and thought about hacking some other compiler
than GCC :) I just pushed nine patches to mob to fix all the problems I
encountered (also attached for reference).
Thanks for sharing this moment of productive boredom.
I've added testcases for all the issues to tcctest.c.
I can now build current GCC (well, r186469 plus a modification, see
below) with tinycc on x86_64 (all language frontends written in C, i.e.
c, c++, objc, objc++ and fortran), and that so built GCC is able to
compile all its own target libraries.
If practicable, could you post the recipe that you used to build
GCC with TCC? (If it is a script you might just push it into our
'tests' directory. There is already gcctestsuite.sh)
The nice thing is that I even found a real bug in GCC (fixing it is
required to make it work with tinycc on x86_64), which I'm going to
apply upstream later, but for completeness I attach it here too in case
anyone wants to play with it right now (fix-diag-vaend.diff) :)
Have fun,
Michael.
It was fun to read, indeed.
--- grischka
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel