A bootstrap of current mainline (20100322) fails in stage 2 linking cc1: libbackend.a(ggc-page.o): In function `ggc_alloc_stat': /vol/gcc/src/hg/trunk/local/gcc/ggc-page.c:1160: undefined reference to `__ctzdi2' and many many more. The function is present in the linked libgcc.a, but marked hidden (as expected): readelf -s /vol/gcc/obj/regression/trunk/6.5-gcc-gld/build/./prev-gcc/libgcc.a|grep __ctzdi2 16: 00000000 120 FUNC GLOBAL HIDDEN 1 __ctzdi2 I haven't yet started to investigate in detail; maybe this is a gld bug or a bug in the IRIX 6 configuration.
IRIX 6.5 support was removed so closing as won't fix.