20080625-1.c: Skip for AVR target.
authorAndy Hutchinson <hutchinsonandy@aim.com>
Mon, 7 Jul 2008 23:08:38 +0000 (23:08 +0000)
committerAndy Hutchinson <hutchinsonandy@gcc.gnu.org>
Mon, 7 Jul 2008 23:08:38 +0000 (23:08 +0000)
* gcc.c-torture/compile/20080625-1.c: Skip for AVR target.
* gcc.dg/torture/pr36373-10.c: Correct test where target pointer is not same size as unsigned long.

From-SVN: r137603

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20080625-1.c
gcc/testsuite/gcc.dg/torture/pr36373-10.c

index 97f1e9bf60c8d2fd9e9530dc2124f6900bf2c269..644c918d7f808200e28fd593a83a73148fd6f5aa 100644 (file)
@@ -1,3 +1,9 @@
+2008-07-07  Andy Hutchinson  <hutchinsonandy@aim.com>
+
+       * gcc.c-torture/compile/20080625-1.c: Skip for AVR target.
+       * gcc.dg/torture/pr36373-10.c: Correct test where target pointer 
+       is not same size as unsigned long. 
+
 2008-07-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR fortran/36670
index f0900fd9693a6e2aa4168a7f5814ed644df18241..226bea1ffaea357c0ff6d7437a1bcf85b18811f1 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-skip-if "too much data" { "avr-*-*" } { "*" } { "" } } */
 struct peakbufStruct {
     unsigned int lnum [5000];
     int lscan [5000][4000];
index b84e2544152f25f5d4d17503f3e80b6755d738ad..ed701772828267dd33e98d6f727c862cb4333615 100644 (file)
@@ -1,6 +1,14 @@
 /* { dg-do run } */
 
+#if (__SIZEOF_LONG_LONG__ == __SIZEOF_POINTER__)
+typedef unsigned long long uintptr_t;
+#elif (__SIZEOF_LONG__ == __SIZEOF_POINTER__)
 typedef unsigned long uintptr_t;
+#elif (__SIZEOF_INT__ == __SIZEOF_POINTER__)
+typedef unsigned int uintptr_t;
+#else
+#error Add target support here
+#endif
 
 void __attribute__((noinline))
 foo(uintptr_t l)