This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fix eh on tru64 [Re: libjava status on Tru64 UNIX V5.1]


Roger Sayle writes:

> I've found that -S does indeed silence the "weak symbol mutiply defined"
> warnings emitted from ld V5.1 (I've no idea which two patchs levels I've
> tried).  The problem is that on Tru64 you still get "weak symbol mutiply

Could you please try to find out: run sum on /usr/ccs/lib/cmplrs/cc/ld and
grep for the same path in /usr/.smdb./*.inv.

I've been completely unable to reproduce this, with any ld from V5.1,
V5.1A, or patch kits for those O/S versions.

I've included a test case (extracted from the g++.dg/special/conpr-3.C
test) below.  I get:

% ../xgcc -B../ -o def main.c def?.s -Wl,-S -v
Reading specs from ../specs
Configured with: /vol/gnu/src/gcc/gcc-3.1-branch-dist/configure --prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls alpha-dec-osf5.1
Thread model: single
gcc version 3.1 20020325 (prerelease)
 ../cc1 -lang-c -v -iprefix ../../lib/gcc-lib/alpha-dec-osf5.1/3.1/ -isystem ../include -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -Dunix -D__osf__ -D_LONGLONG -DSYSTYPE_BSD -D_SYSTYPE_BSD -D__unix__ -D__osf__ -D_LONGLONG -D__SYSTYPE_BSD__ -D_SYSTYPE_BSD -D__unix -D__SYSTYPE_BSD -Asystem=unix -Asystem=xpg4 -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D__LANGUAGE_C__ -D__LANGUAGE_C -DLANGUAGE_C -Acpu=alpha -Amachine=alpha -D__alpha -D__alpha__ -D__alpha_ev4__ -Acpu=ev4 -D__X_FLOAT -D__EXTERN_PREFIX main.c -quiet -dumpbase main.c -version -o /tmp//ccgZINvb.s
GNU CPP version 3.1 20020325 (prerelease) (cpplib)
GNU C version 3.1 20020325 (prerelease) (alpha-dec-osf5.1)
	compiled by GNU C version 3.1 20020325 (prerelease).
ignoring nonexistent directory "../../lib/gcc-lib/alpha-dec-osf5.1/3.1/include"
ignoring nonexistent directory "/vol/gcc/lib/gcc-lib/alpha-dec-osf5.1/3.1/include"
ignoring nonexistent directory "/vol/gcc/share/alpha-dec-osf5.1/include"
ignoring duplicate directory "/vol/gcc/include"
#include "..." search starts here:
#include <...> search starts here:
 ../include
 /vol/gcc/include
 /usr/include
End of search list.
 as -g -oldas -c -nocpp -O0 -o /tmp//ccS0b94f.o /tmp//ccgZINvb.s
 ../mips-tfile -v -o /tmp//ccS0b94f.o /tmp//ccgZINvb.s
mips-tfile version 3.1 20020325 (prerelease)
 as -g -oldas -c -nocpp -O0 -o /tmp//ccaesS0m.o def1.s
 ../mips-tfile -v -o /tmp//ccaesS0m.o def1.s
mips-tfile version 3.1 20020325 (prerelease)
 as -g -oldas -c -nocpp -O0 -o /tmp//cciEtZIv.o def2.s
 ../mips-tfile -v -o /tmp//cciEtZIv.o def2.s
mips-tfile version 3.1 20020325 (prerelease)
 ../collect2 -G 8 -O1 -call_shared -o def /usr/lib/cmplrs/cc/crt0.o -L.. -L/usr/lib/cmplrs/cc /tmp//ccS0b94f.o /tmp//ccaesS0m.o /tmp//cciEtZIv.o -S -lgcc -lgcc_eh -lc -lgcc -lgcc_eh
/usr/bin/ld:
/tmp//cciEtZIv.o: foo_t::foo_t[in-charge](): weak symbol multiply defined

Thanks.
	Rainer


Attachment: wm.tar.gz
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]