diff mbox

[testsuite] Fix some more bogus failures for avr

Message ID 87wpjygjbe.fsf@atmel.com
State New
Headers show

Commit Message

Senthil Kumar Selvaraj Aug. 3, 2016, 11:53 a.m. UTC
Hi,

Committed below patch to trunk as obvious.

Regards
Senthil


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.
diff mbox

Patch

Index: gcc.dg/init-excess-2.c
===================================================================
--- gcc.dg/init-excess-2.c	(revision 239064)
+++ gcc.dg/init-excess-2.c	(working copy)
@@ -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: gcc.dg/pr44024.c
===================================================================
--- gcc.dg/pr44024.c	(revision 239064)
+++ gcc.dg/pr44024.c	(working copy)
@@ -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: gcc.dg/pr59963-2.c
===================================================================
--- gcc.dg/pr59963-2.c	(revision 239064)
+++ gcc.dg/pr59963-2.c	(working copy)
@@ -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: gcc.dg/pr71084.c
===================================================================
--- gcc.dg/pr71084.c	(revision 239064)
+++ gcc.dg/pr71084.c	(working copy)
@@ -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 @@ 
 	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: gcc.dg/unroll-7.c
===================================================================
--- gcc.dg/unroll-7.c	(revision 239064)
+++ gcc.dg/unroll-7.c	(working copy)
@@ -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;