From 8df03fe559a62ae2a70cc8e630381cae15d85efb Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Wed, 29 Apr 2009 08:03:33 +0000 Subject: [PATCH] re PR debug/23205 ([C++/unit-at-a-time] stabs debug info omitted for global const variables) * gcc.target/i386/sse4_1-roundps-1.c: Skip for vxworks kernel. * gcc.target/i386/sse4_1-roundpd-1.c: Likewise. * gcc.target/i386/sse4_1-roundps-3.c: Likewise. * gcc.target/i386/sse4_1-roundpd-3.c: Likewise. * gcc.target/i386/sse4_1-roundss-1.c: Likewise. * gcc.target/i386/sse4_1-roundsd-1.c: Likewise. * gcc.target/i386/sse4_1-roundss-3.c: Likewise. * gcc.target/i386/sse4_1-roundsd-3.c: Likewise. * gcc.target/i386/sse4_1-roundps-2.c: Likewise. * gcc.target/i386/sse4_1-roundpd-2.c: Likewise. * gcc.target/i386/sse4_1-roundss-2.c: Likewise. * gcc.target/i386/sse4_1-roundsd-2.c: Likewise. * gcc.target/i386/sse4_1-roundss-4.c: Likewise. * gcc.target/i386/sse4_1-roundsd-4.c: Likewise. * gcc.target/i386/pr37191.c: Likewise. * gcc.target/i386/reload-1.c: Likewise. * g++.old-deja/g++.pt/repo1.C: Skip for vxworks kernel. * g++.old-deja/g++.pt/repo2.C: Likewise. * g++.old-deja/g++.pt/repo3.C: Likewise. * g++.old-deja/g++.pt/repo4.C: Likewise. * g++.old-deja/g++.pt/instantiate4.C: Likewise. * g++.old-deja/g++.pt/instantiate6.C: Likewise. * g++.dg/template/repo1.C: Likewise. * g++.dg/template/repo2.C: Likewise. * g++.dg/template/repo3.C: Likewise. * g++.dg/template/repo4.C: Likewise. * g++.dg/template/repo5.C: Likewise. * g++.dg/template/repo6.C: Likewise. * g++.dg/template/repo7.C: Likewise. * g++.dg/template/repo8.C: Likewise. * g++.dg/template/repo9.C: Likewise. * g++.dg/rtti/repo1.C: Likewise. * gcc.dg/cpp/_Pragma6.c: Skip for vxworks. * g++.dg/cpp/_Pragma1.C: Skip for vxworks. * gcc.dg/pthread-init-1.c: Xfail for vxworks rtp. * g++.dg/other/PR23205.C: Skip for vxworks. * g++.dg/ext/visibility/class1.C: Requires PIC. * g++.dg/eh/async-unwind2.C: Requires PIC. * lib/target-supports.exp (check_cxa_atexit_available): Vxworks does not have cxa_exit. From-SVN: r146926 --- gcc/testsuite/ChangeLog | 43 +++++++++++++++++++ gcc/testsuite/g++.dg/cpp/_Pragma1.C | 2 +- gcc/testsuite/g++.dg/eh/async-unwind2.C | 1 + gcc/testsuite/g++.dg/ext/visibility/class1.C | 1 + gcc/testsuite/g++.dg/other/PR23205.C | 2 +- gcc/testsuite/g++.dg/rtti/repo1.C | 1 + gcc/testsuite/g++.dg/template/repo1.C | 1 + gcc/testsuite/g++.dg/template/repo2.C | 1 + gcc/testsuite/g++.dg/template/repo3.C | 1 + gcc/testsuite/g++.dg/template/repo4.C | 1 + gcc/testsuite/g++.dg/template/repo5.C | 1 + gcc/testsuite/g++.dg/template/repo6.C | 1 + gcc/testsuite/g++.dg/template/repo7.C | 1 + gcc/testsuite/g++.dg/template/repo8.C | 1 + gcc/testsuite/g++.dg/template/repo9.C | 1 + .../g++.old-deja/g++.pt/instantiate4.C | 2 +- .../g++.old-deja/g++.pt/instantiate6.C | 2 +- gcc/testsuite/g++.old-deja/g++.pt/repo1.C | 1 + gcc/testsuite/g++.old-deja/g++.pt/repo2.C | 2 + gcc/testsuite/g++.old-deja/g++.pt/repo3.C | 2 + gcc/testsuite/g++.old-deja/g++.pt/repo4.C | 2 +- gcc/testsuite/gcc.dg/cpp/_Pragma6.c | 2 +- gcc/testsuite/gcc.dg/pthread-init-1.c | 3 ++ gcc/testsuite/gcc.target/i386/pr37191.c | 1 + gcc/testsuite/gcc.target/i386/reload-1.c | 1 + .../gcc.target/i386/sse4_1-roundpd-1.c | 1 + .../gcc.target/i386/sse4_1-roundpd-2.c | 1 + .../gcc.target/i386/sse4_1-roundpd-3.c | 1 + .../gcc.target/i386/sse4_1-roundps-1.c | 1 + .../gcc.target/i386/sse4_1-roundps-2.c | 1 + .../gcc.target/i386/sse4_1-roundps-3.c | 1 + .../gcc.target/i386/sse4_1-roundsd-1.c | 1 + .../gcc.target/i386/sse4_1-roundsd-2.c | 1 + .../gcc.target/i386/sse4_1-roundsd-3.c | 1 + .../gcc.target/i386/sse4_1-roundsd-4.c | 1 + .../gcc.target/i386/sse4_1-roundss-1.c | 1 + .../gcc.target/i386/sse4_1-roundss-2.c | 1 + .../gcc.target/i386/sse4_1-roundss-3.c | 1 + .../gcc.target/i386/sse4_1-roundss-4.c | 1 + gcc/testsuite/lib/target-supports.exp | 3 ++ 40 files changed, 88 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 938a8e78129..96bbf92a53d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,46 @@ +2009-04-28 Nathan Sidwell + + * gcc.target/i386/sse4_1-roundps-1.c: Skip for vxworks kernel. + * gcc.target/i386/sse4_1-roundpd-1.c: Likewise. + * gcc.target/i386/sse4_1-roundps-3.c: Likewise. + * gcc.target/i386/sse4_1-roundpd-3.c: Likewise. + * gcc.target/i386/sse4_1-roundss-1.c: Likewise. + * gcc.target/i386/sse4_1-roundsd-1.c: Likewise. + * gcc.target/i386/sse4_1-roundss-3.c: Likewise. + * gcc.target/i386/sse4_1-roundsd-3.c: Likewise. + * gcc.target/i386/sse4_1-roundps-2.c: Likewise. + * gcc.target/i386/sse4_1-roundpd-2.c: Likewise. + * gcc.target/i386/sse4_1-roundss-2.c: Likewise. + * gcc.target/i386/sse4_1-roundsd-2.c: Likewise. + * gcc.target/i386/sse4_1-roundss-4.c: Likewise. + * gcc.target/i386/sse4_1-roundsd-4.c: Likewise. + * gcc.target/i386/pr37191.c: Likewise. + * gcc.target/i386/reload-1.c: Likewise. + * g++.old-deja/g++.pt/repo1.C: Skip for vxworks kernel. + * g++.old-deja/g++.pt/repo2.C: Likewise. + * g++.old-deja/g++.pt/repo3.C: Likewise. + * g++.old-deja/g++.pt/repo4.C: Likewise. + * g++.old-deja/g++.pt/instantiate4.C: Likewise. + * g++.old-deja/g++.pt/instantiate6.C: Likewise. + * g++.dg/template/repo1.C: Likewise. + * g++.dg/template/repo2.C: Likewise. + * g++.dg/template/repo3.C: Likewise. + * g++.dg/template/repo4.C: Likewise. + * g++.dg/template/repo5.C: Likewise. + * g++.dg/template/repo6.C: Likewise. + * g++.dg/template/repo7.C: Likewise. + * g++.dg/template/repo8.C: Likewise. + * g++.dg/template/repo9.C: Likewise. + * g++.dg/rtti/repo1.C: Likewise. + * gcc.dg/cpp/_Pragma6.c: Skip for vxworks. + * g++.dg/cpp/_Pragma1.C: Skip for vxworks. + * gcc.dg/pthread-init-1.c: Xfail for vxworks rtp. + * g++.dg/other/PR23205.C: Skip for vxworks. + * g++.dg/ext/visibility/class1.C: Requires PIC. + * g++.dg/eh/async-unwind2.C: Requires PIC. + * lib/target-supports.exp (check_cxa_atexit_available): Vxworks + does not have cxa_exit. + 2009-04-28 Jing Yu PR testsuite/39790 diff --git a/gcc/testsuite/g++.dg/cpp/_Pragma1.C b/gcc/testsuite/g++.dg/cpp/_Pragma1.C index e44709b4570..714d10edb7d 100644 --- a/gcc/testsuite/g++.dg/cpp/_Pragma1.C +++ b/gcc/testsuite/g++.dg/cpp/_Pragma1.C @@ -2,7 +2,7 @@ // This is supposed to succeed only if // the target defines HANDLE_PRAGMA_PACK_PUSH_POP // and doesn't define HANDLE_PRAGMA_PACK_WITH_EXPANSION. -// { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf m32c-*-* } } } } +// { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf m32c-*-* *-*-vxworks } } } } #define push bar #define foo _Pragma ("pack(push)") diff --git a/gcc/testsuite/g++.dg/eh/async-unwind2.C b/gcc/testsuite/g++.dg/eh/async-unwind2.C index 694fad6aca1..0c31f80e5e7 100644 --- a/gcc/testsuite/g++.dg/eh/async-unwind2.C +++ b/gcc/testsuite/g++.dg/eh/async-unwind2.C @@ -1,5 +1,6 @@ // PR rtl-optimization/36419 // { dg-do run { target { { i?86-*-* x86_64-*-* } && ilp32 } } } +// { dg-require-effective-target fpic } // { dg-options "-Os -fasynchronous-unwind-tables -fpic -fno-inline" } #include diff --git a/gcc/testsuite/g++.dg/ext/visibility/class1.C b/gcc/testsuite/g++.dg/ext/visibility/class1.C index 22ad96b03ac..792fc789142 100644 --- a/gcc/testsuite/g++.dg/ext/visibility/class1.C +++ b/gcc/testsuite/g++.dg/ext/visibility/class1.C @@ -5,6 +5,7 @@ // { dg-do compile { target i?86-*-* x86_64-*-* } } // { dg-skip-if "" { *-*-darwin* } { "*" } { "" } } // { dg-require-visibility "" } +// { dg-require-effective-target fpic } // { dg-final { scan-assembler "InitEv@PLT" } } #pragma GCC visibility push(hidden) diff --git a/gcc/testsuite/g++.dg/other/PR23205.C b/gcc/testsuite/g++.dg/other/PR23205.C index ae2f0b16644..27353544482 100644 --- a/gcc/testsuite/g++.dg/other/PR23205.C +++ b/gcc/testsuite/g++.dg/other/PR23205.C @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* *-*-netware* alpha*-*-* hppa*64*-*-* ia64-*-* } { "*" } { "" } } */ +/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* *-*-netware* alpha*-*-* hppa*64*-*-* ia64-*-* *-*-vxworks } { "*" } { "" } } */ /* { dg-options "-gstabs+ -fno-eliminate-unused-debug-types" } */ const int foobar = 4; diff --git a/gcc/testsuite/g++.dg/rtti/repo1.C b/gcc/testsuite/g++.dg/rtti/repo1.C index 7ff813bcdfe..f72a9730ab9 100644 --- a/gcc/testsuite/g++.dg/rtti/repo1.C +++ b/gcc/testsuite/g++.dg/rtti/repo1.C @@ -1,6 +1,7 @@ // PR c++/22204 // { dg-options "-frepo" } // { dg-require-host-local "" } +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } #include template diff --git a/gcc/testsuite/g++.dg/template/repo1.C b/gcc/testsuite/g++.dg/template/repo1.C index cb4c5a1eb24..342993eca14 100644 --- a/gcc/testsuite/g++.dg/template/repo1.C +++ b/gcc/testsuite/g++.dg/template/repo1.C @@ -1,5 +1,6 @@ // { dg-options "-frepo" } // { dg-require-host-local "" } +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } struct A { A(); diff --git a/gcc/testsuite/g++.dg/template/repo2.C b/gcc/testsuite/g++.dg/template/repo2.C index 3618997dc2a..e3224155e97 100644 --- a/gcc/testsuite/g++.dg/template/repo2.C +++ b/gcc/testsuite/g++.dg/template/repo2.C @@ -1,6 +1,7 @@ // PR c++/17163 // { dg-options "-frepo" } // { dg-require-host-local "" } +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } template struct __Atomicity_lock diff --git a/gcc/testsuite/g++.dg/template/repo3.C b/gcc/testsuite/g++.dg/template/repo3.C index 49a8fa5bfe4..cfa38a9e435 100644 --- a/gcc/testsuite/g++.dg/template/repo3.C +++ b/gcc/testsuite/g++.dg/template/repo3.C @@ -1,5 +1,6 @@ // { dg-options "-frepo -DF='a'" } // { dg-require-host-local "" } +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } template void f () {} template void g () { f(); } diff --git a/gcc/testsuite/g++.dg/template/repo4.C b/gcc/testsuite/g++.dg/template/repo4.C index 27714b5f115..64882a8c694 100644 --- a/gcc/testsuite/g++.dg/template/repo4.C +++ b/gcc/testsuite/g++.dg/template/repo4.C @@ -2,6 +2,7 @@ // { dg-options "-frepo" } // { dg-final { cleanup-repo-files } } // { dg-require-host-local "" } +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } namespace { struct Foo {}; diff --git a/gcc/testsuite/g++.dg/template/repo5.C b/gcc/testsuite/g++.dg/template/repo5.C index 0d2893eee91..e45ade7df48 100644 --- a/gcc/testsuite/g++.dg/template/repo5.C +++ b/gcc/testsuite/g++.dg/template/repo5.C @@ -2,6 +2,7 @@ // { dg-options "-frepo" } // { dg-final { cleanup-repo-files } } // { dg-require-host-local "" } +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } template< typename T, T N > struct integral_c { static const T value = N; diff --git a/gcc/testsuite/g++.dg/template/repo6.C b/gcc/testsuite/g++.dg/template/repo6.C index b15bab5a28b..4b7178e2ad3 100644 --- a/gcc/testsuite/g++.dg/template/repo6.C +++ b/gcc/testsuite/g++.dg/template/repo6.C @@ -2,6 +2,7 @@ // { dg-options "-frepo" } // { dg-final { cleanup-repo-files } } // { dg-require-host-local "" } +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } template class A diff --git a/gcc/testsuite/g++.dg/template/repo7.C b/gcc/testsuite/g++.dg/template/repo7.C index 7443315f25b..dafb3f5597c 100644 --- a/gcc/testsuite/g++.dg/template/repo7.C +++ b/gcc/testsuite/g++.dg/template/repo7.C @@ -2,6 +2,7 @@ // { dg-options "-frepo" } // { dg-final { cleanup-repo-files } } // { dg-require-host-local "" } +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } struct A { diff --git a/gcc/testsuite/g++.dg/template/repo8.C b/gcc/testsuite/g++.dg/template/repo8.C index 840dc08bcad..c51592c9349 100644 --- a/gcc/testsuite/g++.dg/template/repo8.C +++ b/gcc/testsuite/g++.dg/template/repo8.C @@ -2,6 +2,7 @@ // { dg-options "-frepo" } // { dg-final { cleanup-repo-files } } // { dg-require-host-local "" } +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } struct A { diff --git a/gcc/testsuite/g++.dg/template/repo9.C b/gcc/testsuite/g++.dg/template/repo9.C index f55024cb001..7ddc6bf56d3 100644 --- a/gcc/testsuite/g++.dg/template/repo9.C +++ b/gcc/testsuite/g++.dg/template/repo9.C @@ -2,6 +2,7 @@ // { dg-options "-frepo" } // { dg-final { cleanup-repo-files } } // { dg-require-host-local "" } +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } template struct A { diff --git a/gcc/testsuite/g++.old-deja/g++.pt/instantiate4.C b/gcc/testsuite/g++.old-deja/g++.pt/instantiate4.C index 9c1aaf58f3e..d7a8cab31c5 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/instantiate4.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/instantiate4.C @@ -1,7 +1,7 @@ // { dg-do link } // { dg-options "-frepo -Werror" } // { dg-require-host-local "" } -// Build then link: +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } // Submitted by Melissa O'Neill diff --git a/gcc/testsuite/g++.old-deja/g++.pt/instantiate6.C b/gcc/testsuite/g++.old-deja/g++.pt/instantiate6.C index a1223fc5d85..6726b216673 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/instantiate6.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/instantiate6.C @@ -1,7 +1,7 @@ // { dg-do link } // { dg-options "-frepo" } // { dg-require-host-local "" } -// Build then link: +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } // Simplified from testcase by Erez Louidor Lior diff --git a/gcc/testsuite/g++.old-deja/g++.pt/repo1.C b/gcc/testsuite/g++.old-deja/g++.pt/repo1.C index f3fdddc7f52..bdfe306b4ad 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/repo1.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/repo1.C @@ -1,6 +1,7 @@ // { dg-do link } // { dg-options "-frepo" } // { dg-require-host-local "" } +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } // Bug: g++ complains about duplicate explicit instantiations with -frepo. // From Jason Merrill diff --git a/gcc/testsuite/g++.old-deja/g++.pt/repo2.C b/gcc/testsuite/g++.old-deja/g++.pt/repo2.C index b40961c1558..a8d8b1217a1 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/repo2.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/repo2.C @@ -1,6 +1,8 @@ // { dg-do link } // { dg-options "-frepo" } // { dg-require-host-local "" } +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } + // Test that collect2 isn't confused by GNU ld's "In function `foo':" message. // Contributed by Jason Merrill diff --git a/gcc/testsuite/g++.old-deja/g++.pt/repo3.C b/gcc/testsuite/g++.old-deja/g++.pt/repo3.C index 7995030fe03..53baf29f349 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/repo3.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/repo3.C @@ -1,6 +1,8 @@ // { dg-do link } // { dg-options "-frepo" } // { dg-require-host-local "" } +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } + // Test that we properly generate the vtable and such for C. // Contributed by scott snyder diff --git a/gcc/testsuite/g++.old-deja/g++.pt/repo4.C b/gcc/testsuite/g++.old-deja/g++.pt/repo4.C index 6a0a55aba55..84575cd9469 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/repo4.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/repo4.C @@ -1,7 +1,7 @@ // { dg-do link } // { dg-options "-frepo" } // { dg-require-host-local "" } -// Build then link: +// { dg-skip-if "dkms are not final links" { vxworks_kernel } } template struct S { diff --git a/gcc/testsuite/gcc.dg/cpp/_Pragma6.c b/gcc/testsuite/gcc.dg/cpp/_Pragma6.c index 74511a10066..986b40cb156 100644 --- a/gcc/testsuite/gcc.dg/cpp/_Pragma6.c +++ b/gcc/testsuite/gcc.dg/cpp/_Pragma6.c @@ -2,7 +2,7 @@ /* This is supposed to succeed only if the target defines HANDLE_PRAGMA_PACK_PUSH_POP and doesn't define HANDLE_PRAGMA_PACK_WITH_EXPANSION. */ -/* { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf m32c-*-* } } } } */ +/* { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf m32c-*-* *-*-vxworks } } } } */ #define push bar #define foo _Pragma ("pack(push)") diff --git a/gcc/testsuite/gcc.dg/pthread-init-1.c b/gcc/testsuite/gcc.dg/pthread-init-1.c index 2f78844fe1f..8b600c3fb87 100644 --- a/gcc/testsuite/gcc.dg/pthread-init-1.c +++ b/gcc/testsuite/gcc.dg/pthread-init-1.c @@ -7,6 +7,9 @@ /* { dg-do compile } */ /* { dg-require-effective-target pthread_h } */ /* { dg-options "-Wextra -Wall" } */ +/* The RTP definition of PTHREAD_MUTEX_INITIALIZER is missing an + * initializer for mutexAttr.mutexAttrType. */ +/* { dg-xfail-if "missing initializer" { vxworks_rtp } } */ #include "pthread-init-common.h" diff --git a/gcc/testsuite/gcc.target/i386/pr37191.c b/gcc/testsuite/gcc.target/i386/pr37191.c index b7b65df12b1..b315ce072a4 100644 --- a/gcc/testsuite/gcc.target/i386/pr37191.c +++ b/gcc/testsuite/gcc.target/i386/pr37191.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O1 -mmmx" } */ +/* { dg-skip-if "no stdint" { vxworks_kernel } } */ #include #include diff --git a/gcc/testsuite/gcc.target/i386/reload-1.c b/gcc/testsuite/gcc.target/i386/reload-1.c index 8ccfcb55d7f..f8075acaed4 100644 --- a/gcc/testsuite/gcc.target/i386/reload-1.c +++ b/gcc/testsuite/gcc.target/i386/reload-1.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target ilp32 } */ /* { dg-options "-O3 -msse2 -fdump-rtl-csa" } */ +/* { dg-skip-if "no stdint" { vxworks_kernel } } */ #include #include diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-1.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-1.c index 37f20285f54..8baee339017 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-1.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-1.c @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ +/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-2.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-2.c index 7f0475f75ce..86b78ed7578 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-2.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-2.c @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ +/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-3.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-3.c index 4a1f81026f0..6e6a05c59c2 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-3.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-3.c @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ +/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundps-1.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundps-1.c index 65b891c146c..71bc51be232 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundps-1.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundps-1.c @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ +/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundps-2.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundps-2.c index 44b778f31ee..672e92067c8 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundps-2.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundps-2.c @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ +/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundps-3.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundps-3.c index 3f166b7128c..4bfc1cacc91 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundps-3.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundps-3.c @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ +/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-1.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-1.c index 33500d361bd..ae8881cf0f8 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-1.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-1.c @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ +/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-2.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-2.c index f6a51db61e8..70679bb07a0 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-2.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-2.c @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ +/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-3.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-3.c index 1e419644308..81a3f760638 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-3.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-3.c @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ +/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-4.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-4.c index dca97789f3a..124f825021d 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-4.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-4.c @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ +/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-1.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-1.c index d7965781169..96dd8a6a76f 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-1.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-1.c @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ +/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-2.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-2.c index 019f2134492..f052c029f7a 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-2.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-2.c @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ +/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-3.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-3.c index 2adac1a6059..0a696b1cfb7 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-3.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-3.c @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ +/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-4.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-4.c index dc7f34edb5b..71042d1b777 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-4.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-4.c @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ +/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index fb4bc3ead39..a46f9b4dec4 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -1072,6 +1072,9 @@ proc check_cxa_atexit_available { } { if { [istarget "hppa*-*-hpux10*"] } { # HP-UX 10 doesn't have __cxa_atexit but subsequent test passes. expr 0 + } elseif { [istarget "*-*-vxworks"] } { + # vxworks doesn't have __cxa_atexit but subsequent test passes. + expr 0 } else { check_runtime_nocache cxa_atexit_available { // C++