[Top][All Lists]

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

Re: [Tinycc-devel] building older gcc with tcc?

From: rain1
Subject: Re: [Tinycc-devel] building older gcc with tcc?
Date: Sun, 28 May 2017 13:33:42 +0000
User-agent: Roundcube Webmail/1.0.6

On 2017-05-27 11:57, address@hidden wrote:

I would like to build an older version of the gcc compiler using tcc
(then use that to build newer gcc's).
On this page <https://en.wikipedia.org/wiki/Tiny_C_Compiler#Uses> it
says that tcc was used to build gcc in the past.

I'm having trouble doing that and I wanted to ask if anybody knows the
way to do it? Thanks!


I tried using the latest http://repo.or.cz/tinycc.git to build gcc
4.7.0 (one of the latest C versions before it was rewritten in C++)
like so:

MAKEINFO=missing CC=tcc CFLAGS='-I/usr/include/x86_64-linux-gnu/'
PCC=tcc ./configure --enable-languages=c,c++ --disable-multilib

but I got an error:

../.././libgcc/libgcc2.c: In function ‘__negti2’:
../.././libgcc/libgcc2.c:73:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

this seems to be a bug in a program 'xgcc' that was built by tcc


Tinycc-devel mailing list

Thank you so much for your help, I was able to build gcc using tcc now! Simply amazing!

reply via email to

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