Fix tests that break unnecessarily for avr.
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Wed, 3 Aug 2016 11:50:32 +0000 (11:50 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Wed, 3 Aug 2016 11:50:32 +0000 (11:50 +0000)
Require int32plus for tests that assume so, and conditionally skip pr44024.c,
 as it only works if the target allows deletion of null pointer checks.

gcc/testsuite/ChangeLog

* gcc.dg/init-excess-2.c: Require int32plus.
* gcc.dg/pr44024.c: Skip if target keeps null pointer checks.
* gcc.dg/pr59963-2.c: Require int32plus.
* gcc.dg/pr71084.c: Cast pointer to intprt_t.
* gcc.dg/unroll-7.c: Require int32plus.

From-SVN: r239065

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/init-excess-2.c
gcc/testsuite/gcc.dg/pr44024.c
gcc/testsuite/gcc.dg/pr59963-2.c
gcc/testsuite/gcc.dg/pr71084.c
gcc/testsuite/gcc.dg/unroll-7.c

index c1a98ec2e98058b645c66c8ffebcc910e3bc213d..4de987dd9d14e1d307e6089ae496b168bd5bfe1c 100644 (file)
@@ -1,3 +1,11 @@
+2016-08-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
+
+       * gcc.dg/init-excess-2.c: Require int32plus.
+       * gcc.dg/pr44024.c: Skip if target keeps null pointer checks.
+       * gcc.dg/pr59963-2.c: Require int32plus.
+       * gcc.dg/pr71084.c: Cast pointer to intprt_t.
+       * gcc.dg/unroll-7.c: Require int32plus.
+
 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
 
        PR tree-optimization/34114
index 1bf0a96a880f263ffce6bd00788f80fd8f607bec..0e91b60950b3daa421a612a57ab5f7247caa79a7 100644 (file)
@@ -3,6 +3,7 @@
    c/71115 - Missing warning: excess elements in struct initializer.  */
 /* { dg-do compile } */
 /* { dg-options "" } */
+/* { dg-require-effective-target int32plus } */
 
 #include <stddef.h>
 
index 8791a29f4207909580ab342409c9a84c29e0e0c6..3bcf4311c747d113a9b2a33a4faa5cd4b6620be6 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do link } */
 /* { dg-options "-O1 -fdelete-null-pointer-checks -fdump-tree-ccp1" } */
+/* { dg-skip-if "" keeps_null_pointer_checks } */
 
 void foo();
 void link_error (void);
index 6e0a6d62816e7fa8fe30e02dfcc49e278a0e944e..8eb1a796bbc8b20a30a50d63ebcdfb2b8808d6f0 100644 (file)
@@ -1,6 +1,7 @@
 /* PR c/59963 */
 /* { dg-do compile } */
 /* { dg-options "-Woverflow -Wconversion" } */
+/* { dg-require-effective-target int32plus } */
 
 extern void bar (unsigned char);
 extern void bar8 (unsigned char, unsigned char, unsigned char, unsigned char,
index 46fdf9fbe5c25f2f99651d4cb898920bda9a29b6..392c5ca2394643be1f86b6e5cd99f1a21d51e84a 100644 (file)
@@ -2,6 +2,8 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" } */
 
+__extension__ typedef __INTPTR_TYPE__ intptr_t;
+
 void babl_format (void);
 void gimp_drawable_get_format (void);
 int _setjmp (void);
@@ -32,7 +34,7 @@ void fn1 ()
        gimp_drawable_get_format();
       }
   for (; run_height;)
-    for (; run_i < (long)fn1; ++run_i)
+    for (; run_i < (long)(intptr_t)fn1; ++run_i)
       for (; width;)
         ;
 }
index e7fa4cf0a8c37fa86aab2cf6b0b3cadbc2d1fab2..70b92ba080fff92919effc73e972fe75778b0ccd 100644 (file)
@@ -1,5 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fdump-rtl-loop2_unroll -funroll-loops" } */
+/* { dg-require-effective-target int32plus } */
+
 int t(int *a)
 {
   int i;