Took the tarball gcc-4.0.2 and extracted. Configured using the below command. configure --target=avr --enable-languages=c
Did a "make", got the compilation errors. Below are the errors I got. if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi /home/bhanup/STKgcc/gcc/xgcc -B/home/bhanup/STKgcc/gcc/ -B/home/bhanup/4.0.2gcc/avr/bin/ -B/home/bhanup/4.0.2gcc/avr/lib/ -isystem /home/bhanup/4.0.2gcc/avr/include -isystem /home/bhanup/4.0.2gcc/avr/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -DDF=SF -Dinhibit_libc -mcall-prologues -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../gcc-4.0.2/gcc -I../gcc-4.0.2/gcc/. -I../gcc-4.0.2/gcc/../include -I../gcc-4.0.2/gcc/../libcpp/include -DL_mulqi3 -xassembler-with-cpp -c ../gcc-4.0.2/gcc/config/avr/libgcc.S -o libgcc/./_mulqi3.o ../gcc-4.0.2/gcc/config/avr/libgcc.S: Assembler messages: ../gcc-4.0.2/gcc/config/avr/libgcc.S:72: Error: suffix or operands invalid for `clr' ../gcc-4.0.2/gcc/config/avr/libgcc.S:72: Error: no such instruction: `clear result' ../gcc-4.0.2/gcc/config/avr/libgcc.S:74: Error: no such instruction: `sbrc r24,0' ../gcc-4.0.2/gcc/config/avr/libgcc.S:75: Error: too many memory references for `add' ../gcc-4.0.2/gcc/config/avr/libgcc.S:76: Error: too many memory references for `add' ../gcc-4.0.2/gcc/config/avr/libgcc.S:76: Error: no such instruction: `shift multiplicand' ../gcc-4.0.2/gcc/config/avr/libgcc.S:77: Error: no such instruction: `breq __mulqi3_exit' ../gcc-4.0.2/gcc/config/avr/libgcc.S:77: Error: no such instruction: `while multiplicand!=0' ../gcc-4.0.2/gcc/config/avr/libgcc.S:78: Error: no such instruction: `lsr r24' ../gcc-4.0.2/gcc/config/avr/libgcc.S:79: Error: no such instruction: `brne __mulqi3_loop' ../gcc-4.0.2/gcc/config/avr/libgcc.S:79: Error: no such instruction: `exit if multiplier=0' ../gcc-4.0.2/gcc/config/avr/libgcc.S:81: Error: too many memory references for `mov' ../gcc-4.0.2/gcc/config/avr/libgcc.S:81: Error: no such instruction: `result to return register' make[2]: *** [libgcc/./_mulqi3.o] Error 1 make[2]: Leaving directory `/home/bhanup/STKgcc/gcc' make[1]: *** [stmp-multilib] Error 2 make[1]: Leaving directory `/home/bhanup/STKgcc/gcc' make: *** [all-gcc] Error 2 -- Summary: Compilation error in gcc-4.0.2 Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bhanu dot bachu at catalytic dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25720