tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] Some fixes for x86_64 and general code to enable compilin


From: Michael Matz
Subject: [Tinycc-devel] Some fixes for x86_64 and general code to enable compiling GCC
Date: Wed, 18 Apr 2012 21:38:30 +0200 (CEST)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)

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).

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.

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.

Attachment: 0001-Fix-conversion-in-a-0-ptr.patch
Description: Text Data

Attachment: 0002-Fix-bitfield-loads-into-char-short.patch
Description: Text Data

Attachment: 0003-x86_64-Fix-indirection-in-struct-paramaters.patch
Description: Text Data

Attachment: 0004-x86_64-Fix-segfault-for-global-data.patch
Description: Text Data

Attachment: 0005-Fix-detection-of-labels-with-a-typedef-name.patch
Description: Text Data

Attachment: 0006-Fix-parsing-function-macro-invocations.patch
Description: Text Data

Attachment: 0007-x86_64-Implement-GET_CALLER_FP.patch
Description: Text Data

Attachment: 0008-Make-sizeof-be-of-type-size_t.patch
Description: Text Data

Attachment: 0009-Fix-comparing-comparisons.patch
Description: Text Data

Attachment: fix-diag-vaend.diff
Description: Text Data


reply via email to

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