Gert Doering wrote:
Hi, Well, if my understanding is correct, the GCC backend (code generation and such) needs to support the platform in question. Otherwise you can't build GPC either.
Based on that understanding, I did not try to build a 3.4.x-based gpc on APX 6 yet - as gcc-3.4.x itself isn't going to work.
AFAICS the "AIX 6 support" is the following patch:
http://gcc.gnu.org/ml/gcc-patches/2008-01/msg01114.html
This patch fixes a bug in gcc build scripts: before patch build script would treat AIX 6 like some ancient AIX version which may have very bad results. The patch effectively means that AXI 6 will be treated the same as AIX 5. Given that, it is likely that building compiler on AIX 5 and transferring binary to AIX 6 will give you perfectly running compiler. If you want to build on AIX 6 backporting the patch should be relatively easy.
Bottom line: trying to build unpatched earlier versions of gcc is likely to fail. However, changes to gcc needed to work on AIX 6 look trivial.