[testsuite] Fix 32-bit gcc.dg/lto/pr55525 with Sun ld
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Mon Jan 7 16:09:00 GMT 2013
gcc.dg/lto/pr55525 currently FAILs on Solaris with Sun ld for the 32-bit
multilib:
FAIL: gcc.dg/lto/pr55525 c_lto_pr55525_0.o-c_lto_pr55525_1.o link, -flto -w
UNRESOLVED: gcc.dg/lto/pr55525 c_lto_pr55525_0.o-c_lto_pr55525_1.o execute -flto -w
ld: fatal: symbol 's' has differing sizes:
(file c_lto_pr55525_0.o value=0x8; file c_lto_pr55525_1.o value=0x4);
tentative symbol cannot override defined symbol of smaller size
The following patch (from Richi) fixes this.
Tested with the appropriate runtest invocation on i386-pc-solaris2.10
and x86_64-unknown-linux-gnu (both multilibs each), installed on
mainline as approved in the PR.
Rainer
2013-01-07 Richard Biener <rguenther@suse.de>
* gcc.dg/lto/pr55525_0.c (s): Size like char *.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testsuite-pr55525.patch
Type: text/x-patch
Size: 465 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130107/fa432dce/attachment.bin>
-------------- next part --------------
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Gcc-patches
mailing list