OSDN Git Service

* gcc.dg/pr36998.c: Frame pointer required for avr target.
authorhutchinsonandy <hutchinsonandy@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Nov 2009 21:38:32 +0000 (21:38 +0000)
committerhutchinsonandy <hutchinsonandy@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Nov 2009 21:38:32 +0000 (21:38 +0000)
* gcc.dg/debug/pr41264-1.c: Use long if int size 16bit or smaller.
* gcc.dg/pr39226.c: Use smaller bitfield if int size is 16bit.
* gcc.dg/pr41340.c: Test requires long pointer target.
* gcc.dg/profile-generate-3.c: Test requires profiling support.

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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/pr41264-1.c
gcc/testsuite/gcc.dg/pr36998.c
gcc/testsuite/gcc.dg/pr39226.c
gcc/testsuite/gcc.dg/pr41340.c
gcc/testsuite/gcc.dg/profile-generate-3.c

index 5c0f41a..56eb793 100644 (file)
@@ -1,3 +1,11 @@
+2009-11-23  Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
+
+       * gcc.dg/pr36998.c: Frame pointer required for avr target.
+       * gcc.dg/debug/pr41264-1.c: Use long if int size 16bit or smaller.
+       * gcc.dg/pr39226.c: Use smaller bitfield if int size is 16bit.
+       * gcc.dg/pr41340.c: Test requires long pointer target.
+       * gcc.dg/profile-generate-3.c: Test requires profiling support.
+
 2009-11-23  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
 
        * gcc.dg/graphite/block-1.c: Require 32-bit or larger array support.
index b5555b5..34bdcfe 100644 (file)
@@ -1,6 +1,10 @@
 /* { dg-do compile } */
 
+#if (__SIZEOF_INT__ <= 2)      
+typedef unsigned long hashval_t;
+#else
 typedef unsigned int hashval_t;
+#endif
 static hashval_t __attribute__((always_inline))
 iterative_hash_host_wide_int (long val, hashval_t val2)
 {
index f0669b4..9315fd5 100644 (file)
@@ -2,6 +2,7 @@
 /* { dg-do compile } */
 /* { dg-options "-Os -fasynchronous-unwind-tables" } */
 /* { dg-options "-Os -mpreferred-stack-boundary=2 -fasynchronous-unwind-tables" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
+/* { dg-options "-fno-omit-frame-pointer" { target { avr-*-* } } } */
 
 void foo (const char *, ...) __attribute__ ((noreturn));
 int bar (const char *, ...);
index 1442ccc..3d33636 100644 (file)
@@ -3,12 +3,21 @@
 /* { dg-options "-O2" } */
 /* { dg-options "-O2 -mtune=cell -mminimal-toc" { target { powerpc*-*-* && lp64 } } } */
 
+#if (__SIZEOF_INT__ == 2)      
+struct A
+{
+  char *a;
+  unsigned int b : 1;
+  unsigned int c : 15;
+};
+#else
 struct A
 {
   char *a;
   unsigned int b : 1;
   unsigned int c : 31;
 };
+#endif
 
 struct B
 {
index bafa61f..72ad929 100644 (file)
@@ -2,6 +2,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O3 -g -fcompare-debug" } */
 /* { dg-options "-O3 -g -fcompare-debug -march=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
+/* { dg-skip-if "no long pointers" {  { ! ilp32 } && { ! lp64 } } } */
 
 typedef struct { int t; } *T;
 struct S1 { unsigned s1; };
index 307045a..0d78ff3 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do link } */
+/* { dg-require-profiling "-fprofile-generate=." } */
 /* { dg-options "-fprofile-generate=." } */
 
 int