@DavidmcCann
i updated gcc version using apt-get and
I ran that bash script
i am getting these error
make[1]: Entering directory '/home/nikhil/SimpleScalar/gcc-2.6.3/cp'
gcc -DCROSS_COMPILE -DIN_GCC -DPOSIX -O3 -o ../cc1plus \
call.o decl.o errfn.o expr.o pt.o sig.o typeck2.o class.o decl2.o error.o gc.o lex.o parse.o ptree.o spew.o typeck.o cvt.o edsel.o except.o init.o method.o search.o tree.o xref.o `cat ../stamp-objlist` ../c-common.o `if [ xobstack.o != x ]; then echo ../obstack.o; else true; fi` `case "gcc" in "cc") if [ x != x ]; then echo ../; else true; fi ;; esac` `if [ x != x ]; then echo ../; else true; fi`
../aux-output.o: In function `make_temp_file':
aux-output.c

.text+0xab): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
pt.o: In function `instantiate_class_template':
pt.c

.text+0x2800): undefined reference to `feed_input'
pt.o: In function `do_pending_templates':
pt.c

.text+0x48e8): undefined reference to `feed_input'
parse.o: In function `yyparse':
parse.c

.text+0x5e7): undefined reference to `yyprint'
collect2: error: ld returned 1 exit status
Makefile:224: recipe for target '../cc1plus' failed
make[1]: *** [../cc1plus] Error 1
make[1]: Leaving directory '/home/nikhil/SimpleScalar/gcc-2.6.3/cp'
Makefile:706: recipe for target 'cc1plus' failed
make: *** [cc1plus] Error 2