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
This commit is contained in:
Senthil Kumar Selvaraj 2016-08-03 11:50:32 +00:00 committed by Senthil Kumar Selvaraj
parent 860271ec6c
commit 30e8d8754d
6 changed files with 16 additions and 1 deletions

View 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

View 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>

View 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);

View 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,

View 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;)
;
}

View 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;