This is the mail archive of the gcc@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: [LTO] Request for testing: Last merge from trunk before final merge


On Wed, 30 Sep 2009, Richard Guenther wrote:

On Wed, Sep 30, 2009 at 7:36 PM, Rainer Orth
<ro@techfak.uni-bielefeld.de> wrote:
+FAIL: gcc.dg/lto/20090729 c_lto_20090729_0.o-c_lto_20090729_1.o link
+UNRESOLVED: gcc.dg/lto/20090729 c_lto_20090729_0.o-c_lto_20090729_1.o execute -w

output is:
ld: warning: symbol `i' has differing sizes:
? ? ? ?(file c_lto_20090729_0.o value=0x8; file c_lto_20090729_1.o value=0x4);
? ? ? ?c_lto_20090729_0.o definition taken
ld: warning: symbol `j' has differing sizes:
? ? ? ?(file c_lto_20090729_0.o value=0x4; file c_lto_20090729_1.o value=0x8);
? ? ? ?c_lto_20090729_1.o definition taken

This seems like it cannot work.

Ah. We don't expect the linker to complain here - GNU ld accepts different size common sections. The testcase is reduced from broken SPEC CPU 2000 source ...

If you happen to know a linker option that would silence the warning ...

http://docs.sun.com/app/docs/doc/817-1984/chapter2-88783?a=view#chapter2-7 seems to recommend the -t linker flag.


-- Marc Glisse


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