OSDN Git Service

PR target/35005
authorhutchinsonandy <hutchinsonandy@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Apr 2008 22:17:52 +0000 (22:17 +0000)
committerhutchinsonandy <hutchinsonandy@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Apr 2008 22:17:52 +0000 (22:17 +0000)
* execute/20071221-1.c: Adapt test for 16 bit int targets.
* execute/pr35163.c: Ditto.

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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20071211-1.c
gcc/testsuite/gcc.c-torture/execute/pr35163.c

index be29996..33597e0 100644 (file)
@@ -1,3 +1,9 @@
+2008-04-08    Andy Hutchinson   <hutchinsonandy@aim.com>
+
+       PR target/35005
+       * execute/20071221-1.c: Adapt test for 16 bit int targets.
+       * execute/pr35163.c: Ditto.
+
 2008-04-08  Richard Guenther  <rguenther@suse.de>
 
        * gcc.c-torture/execute/20080408-1.c: New testcase.
index f3786a2..4a4f1fe 100644 (file)
@@ -3,7 +3,11 @@ extern void abort() __attribute__ ((noreturn));
 struct s
 {
   unsigned long long f1 : 40;
+#if(__SIZEOF_INT__ >= 4)
   unsigned int f2 : 24;
+#else
+  unsigned long int f2 : 24;
+#endif
 } sv;
 
 int main()
index 4950d6d..93b180d 100644 (file)
@@ -4,7 +4,11 @@ int main()
 {
   signed char a = -30;
   signed char b = -31;
+  #if(__SIZEOF_INT__ >= 4)
   if (a > (unsigned short)b)
+#else
+  if ((long) a > (unsigned short)b)
+#endif
     abort ();
   return 0;
 }