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.

        Rainer


2014-10-22  Rainer Orth  <r...@cebitec.uni-bielefeld.de>

        * gcc.dg/ipa/ipa-icf-21.c: Restrict to i?86-*-* x86_64-*-*.
        * gcc.dg/ipa/ipa-icf-28.c: Require init_priority.

# HG changeset patch
# Parent 330f2b4b7c84284ef9d5575967a1aa8d00c9ec77
Fix gcc.dg/ipa/ipa-icf-2[18].c on Solaris

diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-icf-21.c b/gcc/testsuite/gcc.dg/ipa/ipa-icf-21.c
--- a/gcc/testsuite/gcc.dg/ipa/ipa-icf-21.c
+++ b/gcc/testsuite/gcc.dg/ipa/ipa-icf-21.c
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
 /* { dg-options "-O2 -fdump-ipa-icf"  } */
 
 #include <xmmintrin.h>
diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-icf-28.c b/gcc/testsuite/gcc.dg/ipa/ipa-icf-28.c
--- a/gcc/testsuite/gcc.dg/ipa/ipa-icf-28.c
+++ b/gcc/testsuite/gcc.dg/ipa/ipa-icf-28.c
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target init_priority } } */
 /* { dg-options "-O2 -fdump-ipa-icf-details -fno-inline"  } */
 
 __attribute__ ((noinline, constructor(200)))
-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to