From: Andy Hutchinson Date: Mon, 7 Jul 2008 23:08:38 +0000 (+0000) Subject: 20080625-1.c: Skip for AVR target. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e331b3e342e156fabecf2cecb739c942d7b7b729;p=gcc.git 20080625-1.c: Skip for AVR target. * 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 97f1e9bf60c..644c918d7f8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-07-07 Andy Hutchinson + + * 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 PR fortran/36670 diff --git a/gcc/testsuite/gcc.c-torture/compile/20080625-1.c b/gcc/testsuite/gcc.c-torture/compile/20080625-1.c index f0900fd9693..226bea1ffae 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20080625-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20080625-1.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "too much data" { "avr-*-*" } { "*" } { "" } } */ struct peakbufStruct { unsigned int lnum [5000]; int lscan [5000][4000]; diff --git a/gcc/testsuite/gcc.dg/torture/pr36373-10.c b/gcc/testsuite/gcc.dg/torture/pr36373-10.c index b84e2544152..ed701772828 100644 --- a/gcc/testsuite/gcc.dg/torture/pr36373-10.c +++ b/gcc/testsuite/gcc.dg/torture/pr36373-10.c @@ -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)