This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [testsuite] Fix gcc.dg/ipa/ipa-icf-2[18].c on Solaris
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Martin Liska <mliska at suse dot cz>, Jan Hubicka <hubicka at ucw dot cz>
- Date: Thu, 23 Oct 2014 11:16:39 +0200
- Subject: Re: [testsuite] Fix gcc.dg/ipa/ipa-icf-2[18].c on Solaris
- Authentication-results: sourceware.org; auth=none
- References: <yddtx2wqhl4 dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE>
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:
> Two of the new gcc.dg/ipa/ipa-icf-*.c tests were FAILing on Solaris:
>
> FAIL: gcc.dg/ipa/ipa-icf-21.c (test for excess errors)
> UNRESOLVED: gcc.dg/ipa/ipa-icf-21.c scan-ipa-dump icf "Equal symbols: 1"
> UNRESOLVED: gcc.dg/ipa/ipa-icf-21.c scan-ipa-dump icf "Semantic equality
> hit:bar->foo"
> FAIL: gcc.dg/ipa/ipa-icf-28.c (test for excess errors)
> UNRESOLVED: gcc.dg/ipa/ipa-icf-28.c scan-ipa-dump icf "Equal symbols: 0"
> UNRESOLVED: gcc.dg/ipa/ipa-icf-28.c scan-ipa-dump icf "attribute values are
> different"
>
> The former requires <xmmintrin.h> which is x86-only, thus cannot work
> anywhere else. The other uses constructor priorities, but doesn't
> declare this dependency.
>
> The following patch fixes both, so far tested with the appropriate
> runtest invocation on sparc-sun-solaris2.11; will commit to mainline
> once they've also been included in a current x86_64-unknown-linux-gnu
> bootstrap.
I've now installed the patch to remove the obvious testsuite failures,
but it turned out that the ipa-icf-21.c testcase has further issues on
i686-unknown-linux-gnu:
FAIL: gcc.dg/ipa/ipa-icf-21.c (test for excess errors)
Excess errors:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/ipa/ipa-icf-21.c:10:10: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
/var/gcc/regression/trunk/3.14.17-gcc-gas-gld-32/build/gcc/include/xmmintrin.h:909:1: error: inlining failed in call to always_inline '_mm_load1_ps': target specific option mismatch
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/ipa/ipa-icf-21.c:10:10: error: called from here
The former can be cured by adding -Wno-psabi to dg-options, but I've no
idea what to do about the latter, especially since it doesn't occur on
i386-pc-solaris2.11.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University