uninit-C.c: Only test TImode on 64-bit platforms.
authorRoger Sayle <roger@eyesopen.com>
Fri, 6 Jun 2003 12:29:13 +0000 (12:29 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Fri, 6 Jun 2003 12:29:13 +0000 (12:29 +0000)
* gcc.dg/uninit-C.c: Only test TImode on 64-bit platforms.

Co-Authored-By: James E Wilson <wilson@tuliptree.org>
From-SVN: r67540

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/uninit-C.c

index 4832f7312dc21468d85b2f48a621e0af2effc4f4..0adc2da05f54a70f11c27293c41dc2598ae1fdae 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-06  Roger Sayle  <roger@eyesopen.com>
+           Jim Wilson  <wilson@tuliptree.org>
+
+       * gcc.dg/uninit-C.c: Only test TImode on 64-bit platforms.
+
 2003-06-06  Jakub Jelinek  <jakub@redhat.com>
 
        * gcc.c-torture/execute/builtins/string-4.c (main_test): Allow some
index c81ada4abfcdbc7f3511c650698ca067df645e50..ddef41cbf793bdb185825d9cbd823a32046608d5 100644 (file)
@@ -2,7 +2,13 @@
 /* { dg-do compile } */
 /* { dg-options "-O -Wuninitialized" } */
 
+/* Not all platforms support TImode integers.  */
+#if defined(__LP64__) || defined(__sparc__)
 typedef int TItype __attribute__ ((mode (TI)));
+#else
+typedef long TItype;
+#endif
+
 
 TItype
 __subvdi3 (TItype a, TItype b)