Build an old GCC with a newer version

Frank Juergen-R58616 Juergen.Frank@freescale.com
Tue Jul 21 09:46:00 GMT 2009


Hi !!
 
I need some hints how I can compile an old GCC (Version 3.3.2) with an
new version. I try this under cygwin (3.4.4) and linux (4.x) and in both
cases I get an compilation error.
 
../../gcc-3.3.2/gcc/gcc.c:1423: warning: string length `595' is greater
than the length `509' ISO C89 compilers are requ
ired to support
../../gcc-3.3.2/gcc/gcc.c: In function `process_command':
../../gcc-3.3.2/gcc/gcc.c:3555: error: assignment of read-only location
../../gcc-3.3.2/gcc/gcc.c:3557: error: assignment of read-only location
../../gcc-3.3.2/gcc/gcc.c: In function `fatal':
../../gcc-3.3.2/gcc/gcc.c:6463: warning: traditional C rejects ISO C
style function definitions
../../gcc-3.3.2/gcc/gcc.c: In function `error':
../../gcc-3.3.2/gcc/gcc.c:6477: warning: traditional C rejects ISO C
style function definitions
../../gcc-3.3.2/gcc/gcc.c: In function `notice':
../../gcc-3.3.2/gcc/gcc.c:6490: warning: traditional C rejects ISO C
style function definitions
make[1]: *** [gcc.o] Error 1
make[1]: Leaving directory `/cygdrive/c/Download/GCC/obj_gcc/gcc'
make: *** [all-gcc] Error 2
 
Why I want this old version, unfortunately I receives an old project
which was developed under GCC 3.3.2, and I could compile it with a new
version of GCC. Could it help to play with the -std option ? How can I
add this to the normal GCC makefile ?

Exist an option which drives the compiler to behaves like in the older
versions ?
 
 thank you 
	Juergen 
 
 



More information about the Gcc-help mailing list