This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[vxworks] more testsuite cleanups


I've applied this set of additional testsuite cleanups for vxworks targets.

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery

2009-04-28  Nathan Sidwell  <nathan@codesourcery.com>

	* 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.

Index: gcc.target/i386/sse4_1-roundps-1.c
===================================================================
--- gcc.target/i386/sse4_1-roundps-1.c	(revision 146875)
+++ gcc.target/i386/sse4_1-roundps-1.c	(working copy)
@@ -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"
 
Index: gcc.target/i386/sse4_1-roundpd-1.c
===================================================================
--- gcc.target/i386/sse4_1-roundpd-1.c	(revision 146875)
+++ gcc.target/i386/sse4_1-roundpd-1.c	(working copy)
@@ -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"
Index: gcc.target/i386/sse4_1-roundps-3.c
===================================================================
--- gcc.target/i386/sse4_1-roundps-3.c	(revision 146875)
+++ gcc.target/i386/sse4_1-roundps-3.c	(working copy)
@@ -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"
 
Index: gcc.target/i386/sse4_1-roundpd-3.c
===================================================================
--- gcc.target/i386/sse4_1-roundpd-3.c	(revision 146875)
+++ gcc.target/i386/sse4_1-roundpd-3.c	(working copy)
@@ -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"
Index: gcc.target/i386/sse4_1-roundss-1.c
===================================================================
--- gcc.target/i386/sse4_1-roundss-1.c	(revision 146875)
+++ gcc.target/i386/sse4_1-roundss-1.c	(working copy)
@@ -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"
 
Index: gcc.target/i386/pr37191.c
===================================================================
--- gcc.target/i386/pr37191.c	(revision 146875)
+++ gcc.target/i386/pr37191.c	(working copy)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O1 -mmmx" } */
+/* { dg-skip-if "no stdint" { vxworks_kernel } } */
 
 #include <mmintrin.h>
 #include <stddef.h>
Index: gcc.target/i386/sse4_1-roundsd-1.c
===================================================================
--- gcc.target/i386/sse4_1-roundsd-1.c	(revision 146875)
+++ gcc.target/i386/sse4_1-roundsd-1.c	(working copy)
@@ -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"
 
Index: gcc.target/i386/sse4_1-roundss-3.c
===================================================================
--- gcc.target/i386/sse4_1-roundss-3.c	(revision 146875)
+++ gcc.target/i386/sse4_1-roundss-3.c	(working copy)
@@ -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"
 
Index: gcc.target/i386/sse4_1-roundsd-3.c
===================================================================
--- gcc.target/i386/sse4_1-roundsd-3.c	(revision 146875)
+++ gcc.target/i386/sse4_1-roundsd-3.c	(working copy)
@@ -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"
 
Index: gcc.target/i386/sse4_1-roundps-2.c
===================================================================
--- gcc.target/i386/sse4_1-roundps-2.c	(revision 146875)
+++ gcc.target/i386/sse4_1-roundps-2.c	(working copy)
@@ -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"
 
Index: gcc.target/i386/sse4_1-roundpd-2.c
===================================================================
--- gcc.target/i386/sse4_1-roundpd-2.c	(revision 146875)
+++ gcc.target/i386/sse4_1-roundpd-2.c	(working copy)
@@ -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"
Index: gcc.target/i386/sse4_1-roundss-2.c
===================================================================
--- gcc.target/i386/sse4_1-roundss-2.c	(revision 146875)
+++ gcc.target/i386/sse4_1-roundss-2.c	(working copy)
@@ -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"
 
Index: gcc.target/i386/sse4_1-roundsd-2.c
===================================================================
--- gcc.target/i386/sse4_1-roundsd-2.c	(revision 146875)
+++ gcc.target/i386/sse4_1-roundsd-2.c	(working copy)
@@ -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"
 
Index: gcc.target/i386/sse4_1-roundss-4.c
===================================================================
--- gcc.target/i386/sse4_1-roundss-4.c	(revision 146875)
+++ gcc.target/i386/sse4_1-roundss-4.c	(working copy)
@@ -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"
 
Index: gcc.target/i386/sse4_1-roundsd-4.c
===================================================================
--- gcc.target/i386/sse4_1-roundsd-4.c	(revision 146875)
+++ gcc.target/i386/sse4_1-roundsd-4.c	(working copy)
@@ -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"
 
Index: gcc.target/i386/reload-1.c
===================================================================
--- gcc.target/i386/reload-1.c	(revision 146875)
+++ gcc.target/i386/reload-1.c	(working copy)
@@ -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 <emmintrin.h>
 #include <stdint.h>
Index: gcc.dg/cpp/_Pragma6.c
===================================================================
--- gcc.dg/cpp/_Pragma6.c	(revision 146875)
+++ gcc.dg/cpp/_Pragma6.c	(working copy)
@@ -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)")
Index: gcc.dg/pthread-init-1.c
===================================================================
--- gcc.dg/pthread-init-1.c	(revision 146875)
+++ gcc.dg/pthread-init-1.c	(working copy)
@@ -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"
 
Index: g++.old-deja/g++.pt/repo1.C
===================================================================
--- g++.old-deja/g++.pt/repo1.C	(revision 146875)
+++ g++.old-deja/g++.pt/repo1.C	(working copy)
@@ -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 <jason@cygnus.com>
Index: g++.old-deja/g++.pt/instantiate4.C
===================================================================
--- g++.old-deja/g++.pt/instantiate4.C	(revision 146875)
+++ g++.old-deja/g++.pt/instantiate4.C	(working copy)
@@ -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 <oneill@cs.sfu.ca>
Index: g++.old-deja/g++.pt/repo2.C
===================================================================
--- g++.old-deja/g++.pt/repo2.C	(revision 146875)
+++ g++.old-deja/g++.pt/repo2.C	(working copy)
@@ -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 <jason@cygnus.com>
 
Index: g++.old-deja/g++.pt/repo3.C
===================================================================
--- g++.old-deja/g++.pt/repo3.C	(revision 146875)
+++ g++.old-deja/g++.pt/repo3.C	(working copy)
@@ -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 <snyder@fnal.gov>
 
Index: g++.old-deja/g++.pt/instantiate6.C
===================================================================
--- g++.old-deja/g++.pt/instantiate6.C	(revision 146875)
+++ g++.old-deja/g++.pt/instantiate6.C	(working copy)
@@ -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 <s3824888@techst02.technion.ac.il>
 
Index: g++.old-deja/g++.pt/repo4.C
===================================================================
--- g++.old-deja/g++.pt/repo4.C	(revision 146875)
+++ g++.old-deja/g++.pt/repo4.C	(working copy)
@@ -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 <class T>
 struct S {
Index: g++.dg/other/PR23205.C
===================================================================
--- g++.dg/other/PR23205.C	(revision 146875)
+++ g++.dg/other/PR23205.C	(working copy)
@@ -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;
Index: g++.dg/cpp/_Pragma1.C
===================================================================
--- g++.dg/cpp/_Pragma1.C	(revision 146875)
+++ g++.dg/cpp/_Pragma1.C	(working copy)
@@ -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)")
Index: g++.dg/rtti/repo1.C
===================================================================
--- g++.dg/rtti/repo1.C	(revision 146875)
+++ g++.dg/rtti/repo1.C	(working copy)
@@ -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 <typeinfo>
 template<int>
Index: g++.dg/ext/visibility/class1.C
===================================================================
--- g++.dg/ext/visibility/class1.C	(revision 146875)
+++ g++.dg/ext/visibility/class1.C	(working copy)
@@ -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)
Index: g++.dg/eh/async-unwind2.C
===================================================================
--- g++.dg/eh/async-unwind2.C	(revision 146875)
+++ g++.dg/eh/async-unwind2.C	(working copy)
@@ -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 <stdarg.h>
Index: g++.dg/template/repo7.C
===================================================================
--- g++.dg/template/repo7.C	(revision 146875)
+++ g++.dg/template/repo7.C	(working copy)
@@ -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
 {
Index: g++.dg/template/repo8.C
===================================================================
--- g++.dg/template/repo8.C	(revision 146875)
+++ g++.dg/template/repo8.C	(working copy)
@@ -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
 {
Index: g++.dg/template/repo9.C
===================================================================
--- g++.dg/template/repo9.C	(revision 146875)
+++ g++.dg/template/repo9.C	(working copy)
@@ -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 C> struct A
 {
Index: g++.dg/template/repo1.C
===================================================================
--- g++.dg/template/repo1.C	(revision 146875)
+++ g++.dg/template/repo1.C	(working copy)
@@ -1,5 +1,6 @@
 // { dg-options "-frepo" }
 // { dg-require-host-local "" }
+// { dg-skip-if "dkms are not final links" { vxworks_kernel } }
 
 struct A {
   A();
Index: g++.dg/template/repo2.C
===================================================================
--- g++.dg/template/repo2.C	(revision 146875)
+++ g++.dg/template/repo2.C	(working copy)
@@ -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 <int __inst>
 struct __Atomicity_lock
Index: g++.dg/template/repo3.C
===================================================================
--- g++.dg/template/repo3.C	(revision 146875)
+++ g++.dg/template/repo3.C	(working copy)
@@ -1,5 +1,6 @@
 // { dg-options "-frepo -DF='a'" }
 // { dg-require-host-local "" }
+// { dg-skip-if "dkms are not final links" { vxworks_kernel } }
 
 template <typename A, typename B> void f () {}
 template <typename A, typename B> void g () { f<int,int>(); }
Index: g++.dg/template/repo4.C
===================================================================
--- g++.dg/template/repo4.C	(revision 146875)
+++ g++.dg/template/repo4.C	(working copy)
@@ -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 {}; 
Index: g++.dg/template/repo5.C
===================================================================
--- g++.dg/template/repo5.C	(revision 146875)
+++ g++.dg/template/repo5.C	(working copy)
@@ -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;
Index: g++.dg/template/repo6.C
===================================================================
--- g++.dg/template/repo6.C	(revision 146875)
+++ g++.dg/template/repo6.C	(working copy)
@@ -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>
 class A
Index: lib/target-supports.exp
===================================================================
--- lib/target-supports.exp	(revision 146875)
+++ lib/target-supports.exp	(working copy)
@@ -1078,6 +1078,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++

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]