tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Some fixes for x86_64 and general code to enable comp


From: grischka
Subject: Re: [Tinycc-devel] Some fixes for x86_64 and general code to enable compiling GCC
Date: Sat, 21 Apr 2012 10:11:37 +0200
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]