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
--------------------
_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel