]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc/testsuite/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Mar 2007 10:44:52 +0000 (10:44 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Mar 2007 10:44:52 +0000 (10:44 +0000)
* lib/target-supports.exp (check_profiling_available): Return false
for VxWorks.
(check_effective_target_vxworks_kernel): New procedure.
* gcc.dg/20040813-1.c: Extend list of stabless targets to include
VxWorks.
* gcc.dg/builtins-config.h: Do not define HAVE_C99_RUNTIME on VxWorks.
* gcc.dg/intmax_t-1.c: Extend the list of targets without inttypes.h
to include VxWorks.
* gcc.dg/vxworks/initpri2.c: Require vxworks_kernel.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122838 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20040813-1.c
gcc/testsuite/gcc.dg/builtins-config.h
gcc/testsuite/gcc.dg/intmax_t-1.c
gcc/testsuite/gcc.dg/vxworks/initpri2.c
gcc/testsuite/lib/target-supports.exp

index 31bfa322316c4e9541fd016c058fcc4a76d5c09c..2c3f7d8dcb410ca94d02c4894fec0f08f4c565a5 100644 (file)
@@ -1,3 +1,15 @@
+2007-03-12  Richard Sandiford  <richard@codesourcery.com>
+
+       * lib/target-supports.exp (check_profiling_available): Return false
+       for VxWorks.
+       (check_effective_target_vxworks_kernel): New procedure.
+       * gcc.dg/20040813-1.c: Extend list of stabless targets to include
+       VxWorks.
+       * gcc.dg/builtins-config.h: Do not define HAVE_C99_RUNTIME on VxWorks.
+       * gcc.dg/intmax_t-1.c: Extend the list of targets without inttypes.h
+       to include VxWorks.
+       * gcc.dg/vxworks/initpri2.c: Require vxworks_kernel.
+
 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
 
        * gcc.c-torture/compile/981006-1.c: Use the non-PIC options if
index a983886da2998de65bc6c1efe3a2382ed7705b54..df36058a4ca9853e8547e6d692d98575676f370c 100644 (file)
@@ -2,7 +2,7 @@
 /* Contributed by Devang Patel  <dpatel@apple.com>  */
 
 /* { dg-do compile } */
-/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* *-*-netware* alpha*-*-* hppa*64*-*-* ia64-*-* *-*-sysv5* } { "*" } { "" } } */
+/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* *-*-netware* alpha*-*-* hppa*64*-*-* ia64-*-* *-*-sysv5* *-*-vxworks* } { "*" } { "" } } */
 /* { dg-options "-gstabs" } */
 
 int
index e61d02a5e623c291215cf7b564860669538d17a9..060db4ffc189eac4a3078cbee71142037d662db3 100644 (file)
@@ -17,6 +17,8 @@
 /* FreeBSD before version 5 doesn't have the entire C99 runtime. */
 #elif defined(__netware__)
 /* NetWare doesn't have the entire C99 runtime.  */
+#elif defined(__vxworks)
+/* VxWorks doesn't have a full C99 time.  (cabs is missing, for example.)  */
 #elif (defined(__APPLE__) && defined(__ppc__) \
        && ! defined (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__))
 /* MacOS versions before 10.3 don't have many C99 functions.  
index 80893401c34298d44ec0f39d42a600fda2bf555d..8357aa961db49779adb90f2eade9459d750de0db 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-Wall" } */
-/* { dg-error "" "" { target *-*-solaris2.5.1 *arm*-*-*elf* xscale*-*-elf* xtensa-*-elf* } 0 } */
+/* { dg-error "" "" { target *-*-solaris2.5.1 *arm*-*-*elf* xscale*-*-elf* xtensa-*-elf* *-*-vxworks* } 0 } */
 
 /* Compile with -Wall to get a warning if built-in and system intmax_t don't
    match.  */
index a2b2c77c7aafbf246cdb03f0516c9b834ea19d58..7f483efadb2bc148bb1c65f68166bf3b4dacb29f 100644 (file)
@@ -1,7 +1,7 @@
 /* On VxWorks, in kernel mode, there is no support for .ctors/.dtors.
    Instead, initialization is handled by munch.  */
 
-/* { dg-do compile { target *-*-vxworks* } } */
+/* { dg-do compile { target vxworks_kernel } } */
 /* { dg-final { scan-assembler-not "\.ctors" } } */
 /* { dg-final { scan-assembler-not "\.dtors" } } */
 
index 51a3258a54c760dcb9360c2b18ca7d96aa1ee1b8..e8efd58365dfeb12f133344dd1b85b86cc9ca96c 100644 (file)
@@ -350,6 +350,7 @@ proc check_profiling_available { test_what } {
             || [istarget m68k-*-elf]
             || [istarget mips*-*-elf]
             || [istarget xtensa-*-elf]
+            || [istarget *-*-vxworks*]
             || [istarget *-*-windiss] } {
            set profiling_available_saved 0
        } else {
@@ -2186,3 +2187,13 @@ proc check_effective_target_simulator { } {
 
     return 0
 }
+
+# Return 1 if the target is a VxWorks RTP.
+
+proc check_effective_target_vxworks_kernel { } {
+    return [check_no_compiler_messages vxworks_kernel assembly {
+       #if !defined __vxworks || defined __RTP__
+       #error NO
+       #endif
+    }]
+}