Compiling the the most trivial program with GCC (using the SGI linker) results in warnings : $ gcc -o hello hello.c ld: WARNING 84: /usr/local/gnu/lib/gcc/mips-sgi-irix5.3/4.3.3/libgcc.a is not used for resolving any symbol. ld: WARNING 84: /usr/local/gnu/lib/gcc/mips-sgi-irix5.3/4.3.3/libgcc.a is not used for resolving any symbol. ld: WARNING 84: /usr/local/gnu/lib/gcc/mips-sgi-irix5.3/4.3.3/libgcc_eh.a is not used for resolving any symbol. In IRIX6, this is prevented by setting the linker option '-dont_warn_unused' before linking libgcc, and unsetting it again afterward.
Created attachment 17245 [details] Fix unnecessary wanings about libgcc.a from SGI linker This trivial patch assumes the patch for PR39104 has also been applied, but they are otherwise unrelated.
Mine.
Discovered independently and fixed for 4.5.0.