Jakub Jelinek <ja...@redhat.com> writes: >> 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. > > The testcase is clearly i?86/x86_64 specific, so it must be guarded with > { target i?86-*-* x86_64-*-* }, and as it is a compile time test, no need > for assembler support, so just adding -msse2 option to dg-option is the > right thing to do.
Here's what I've committed after testing on x86_64-unknown-linux-gnu, i686-unknown-linux-gnu, and i386-pc-solaris2.11 (both multilibs in each case). Rainer 2014-10-23 Rainer Orth <r...@cebitec.uni-bielefeld.de> * gcc.dg/ipa/ipa-icf-21.c: Add -msse2 to dg-options.
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,5 +1,5 @@ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ -/* { dg-options "-O2 -fdump-ipa-icf" } */ +/* { dg-options "-O2 -msse2 -fdump-ipa-icf" } */ #include <xmmintrin.h>
-- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University