Commit 30e8d875 by Senthil Kumar Selvaraj Committed by Senthil Kumar Selvaraj

Fix tests that break unnecessarily for avr.

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
parent 860271ec
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> 2016-08-02 Bin Cheng <bin.cheng@arm.com>
PR tree-optimization/34114 PR tree-optimization/34114
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
c/71115 - Missing warning: excess elements in struct initializer. */ c/71115 - Missing warning: excess elements in struct initializer. */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "" } */ /* { dg-options "" } */
/* { dg-require-effective-target int32plus } */
#include <stddef.h> #include <stddef.h>
......
/* { dg-do link } */ /* { dg-do link } */
/* { dg-options "-O1 -fdelete-null-pointer-checks -fdump-tree-ccp1" } */ /* { dg-options "-O1 -fdelete-null-pointer-checks -fdump-tree-ccp1" } */
/* { dg-skip-if "" keeps_null_pointer_checks } */
void foo(); void foo();
void link_error (void); void link_error (void);
......
/* PR c/59963 */ /* PR c/59963 */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-Woverflow -Wconversion" } */ /* { dg-options "-Woverflow -Wconversion" } */
/* { dg-require-effective-target int32plus } */
extern void bar (unsigned char); extern void bar (unsigned char);
extern void bar8 (unsigned char, unsigned char, unsigned char, unsigned char, extern void bar8 (unsigned char, unsigned char, unsigned char, unsigned char,
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
__extension__ typedef __INTPTR_TYPE__ intptr_t;
void babl_format (void); void babl_format (void);
void gimp_drawable_get_format (void); void gimp_drawable_get_format (void);
int _setjmp (void); int _setjmp (void);
...@@ -32,7 +34,7 @@ void fn1 () ...@@ -32,7 +34,7 @@ void fn1 ()
gimp_drawable_get_format(); gimp_drawable_get_format();
} }
for (; run_height;) for (; run_height;)
for (; run_i < (long)fn1; ++run_i) for (; run_i < (long)(intptr_t)fn1; ++run_i)
for (; width;) for (; width;)
; ;
} }
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-rtl-loop2_unroll -funroll-loops" } */ /* { dg-options "-O2 -fdump-rtl-loop2_unroll -funroll-loops" } */
/* { dg-require-effective-target int32plus } */
int t(int *a) int t(int *a)
{ {
int i; int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment