This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -frepo not working?
- To: Chad Gatesman <chadg at redrose dot net>
- Subject: Re: -frepo not working?
- From: Lee Iverson <leei at ai dot sri dot com>
- Date: Wed, 16 Dec 1998 11:33:39 -0800
- cc: Alexandre Oliva <oliva at dcc dot unicamp dot br>, egcs at cygnus dot com, egcs-bugs at cygnus dot com
In message <98Dec16.141926est.26886@gateway.bristol.com> you write:
> Lee Iverson wrote:
>
> >
> > Bzzzt... Close but... -frepo is a *linker* command. Try adding it
> > to the second line 'g++ -frepo -o repo-fail repo-fail.o'
>
> Umm...No.
> This problem still exists if you add -frepo to the link line as well.
>
Perhaps I was a bit terse. After compiling with -frepo -c, you must
then provide -frepo to the *linker* line as well:
% g++ -c -frepo repo-fail.cc
% g++ -frepo -o repo-fail repo-fail.o
collect: recompiling repo-fail.cc
collect: relinking
ld: WARNING 84: /usr/lib/libm.so is not used for resolving any symbol.
ld: WARNING 84: /opt/gnu/gcc/egcs-o32/lib/gcc-lib/mips-sgi-irix5/egcs-2.92.21/libgcc.a is not used for resolving any symbol.
ld: WARNING 84: /usr/lib/libm.so is not used for resolving any symbol.
ld: WARNING 84: /opt/gnu/gcc/egcs-o32/lib/gcc-lib/mips-sgi-irix5/egcs-2.92.21/libgcc.a is not used for resolving any symbol.
%
Notice the collect: lines! That is -frepo working.
-------------------------------------------------------------------------------
Lee Iverson SRI International
leei@ai.sri.com 333 Ravenswood Ave., Menlo Park CA 94025
http://www.ai.sri.com/~leei/ (650) 859-3307