I have been building gcc-4.0.0 from Apple sources with tags in the apple-ppc-5000 series.
I was getting lots of messages like this "spec failure: unrecognized spec option 'Q'"
I amended /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs
rm -rf /usr/lib/gcc/*/4.0.0/specs