Bug 39105 - Warning about unused libgcc.a when using SGI linker
Summary: Warning about unused libgcc.a when using SGI linker
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.4.0
: P3 normal
Target Milestone: 4.5.0
Assignee: Rainer Orth
URL: http://gcc.gnu.org/ml/gcc-patches/201...
Keywords: patch
Depends on:
Blocks:
 
Reported: 2009-02-05 11:50 UTC by Jan-Jaap van der Heijden
Modified: 2010-04-22 15:07 UTC (History)
1 user (show)

See Also:
Host: mips-sgi-irix5.3
Target: mips-sgi-irix5.3
Build: mips-sgi-irix5.3
Known to work: 4.5.0
Known to fail:
Last reconfirmed: 2010-04-22 15:04:41


Attachments
Fix unnecessary wanings about libgcc.a from SGI linker (460 bytes, patch)
2009-02-05 11:55 UTC, Jan-Jaap van der Heijden
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Jaap van der Heijden 2009-02-05 11:50:14 UTC
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.
Comment 1 Jan-Jaap van der Heijden 2009-02-05 11:55:27 UTC
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.
Comment 2 Rainer Orth 2010-04-22 15:04:41 UTC
Mine.
Comment 3 Rainer Orth 2010-04-22 15:07:04 UTC
Discovered independently and fixed for 4.5.0.