I guess something like this should help but I have nothing
to test on.
Heck, for the original problem just configure --target=mips-elf would
work ;)
Anyhow, I'll test and get back to you.
On hppa-unknown-linux-gnu, this gets me a bit further but the build
still fails:
stage1/xgcc -Bstage1/
-B/home/dave/opt/gnu/gcc/gcc-4.1.0/hppa-linux/bin/ -g -O
2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -
pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition
-Werror -fno
-common -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genattrtab \
build/genattrtab.o build/genautomata.o \
build/rtl.o build/read-rtl.o build/ggc-none.o build/min-insn-modes.o
build/gensupport.o build/insn-conditions.o build/print-rtl.o
build/errors.o \
build/varray.o ../build-hppa-linux/libiberty/libiberty.a -lm
build/genattrtab ../../gcc/gcc/config/pa/pa.md > tmp-attrtab.c
make[2]: *** [s-attrtab] Error 139