diff options
author | Andy Hutchinson <hutchinsonandy@aim.com> | 2008-07-07 23:08:38 +0000 |
---|---|---|
committer | Andy Hutchinson <hutchinsonandy@gcc.gnu.org> | 2008-07-07 23:08:38 +0000 |
commit | e331b3e342e156fabecf2cecb739c942d7b7b729 (patch) | |
tree | e9c61fdaa275f8bf822d31ba12e30c64075c71fa /gcc | |
parent | bcbdbbb01c116f62ad5a2150bf833a4c51a75e02 (diff) | |
download | gcc-e331b3e342e156fabecf2cecb739c942d7b7b729.zip gcc-e331b3e342e156fabecf2cecb739c942d7b7b729.tar.gz gcc-e331b3e342e156fabecf2cecb739c942d7b7b729.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20080625-1.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr36373-10.c | 8 |
3 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 97f1e9b..644c918 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.c-torture/compile/20080625-1.c b/gcc/testsuite/gcc.c-torture/compile/20080625-1.c index f0900fd..226bea1 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 b84e254..ed70177 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) |