tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] building older gcc with tcc?


From: rain1
Subject: [Tinycc-devel] building older gcc with tcc?
Date: Sat, 27 May 2017 11:57:54 +0000
User-agent: Roundcube Webmail/1.0.6

Hello

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 --prefix=$HOME/gcc-out

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

--------------------




reply via email to

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