From: Senthil Kumar Selvaraj Date: Fri, 2 Aug 2019 08:47:04 +0000 (+0000) Subject: Fix gcc.dg/torture/ssa-fre-{5,7}.c failure for avr X-Git-Tag: misc/cutover-git~3686 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a684432bf771bb8b21a9737b50e64d774d9920c9;p=thirdparty%2Fgcc.git Fix gcc.dg/torture/ssa-fre-{5,7}.c failure for avr The test assumes 32 bit integers (and pointers), and therefore fails for the avr target, which has 16 bit integers. Fix failure for avr by adding dg-require-effective-target int32. gcc/testsuite/ChangeLog: 2019-08-02 Senthil Kumar Selvaraj * gcc.dg/torture/ssa-fre-5.c: Add dg-require-effective-target int32. * gcc.dg/torture/ssa-fre-7.c: Likewise. From-SVN: r274001 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fdc8f0848d08..8dc95b986f69 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-08-02 Senthil Kumar Selvaraj + + * gcc.dg/torture/ssa-fre-5.c: Add dg-require-effective-target int32. + * gcc.dg/torture/ssa-fre-7.c: Likewise. + 2019-08-02 Jakub Jelinek PR tree-optimization/91201 diff --git a/gcc/testsuite/gcc.dg/torture/ssa-fre-5.c b/gcc/testsuite/gcc.dg/torture/ssa-fre-5.c index 5ee9d64204c8..180fd7207493 100644 --- a/gcc/testsuite/gcc.dg/torture/ssa-fre-5.c +++ b/gcc/testsuite/gcc.dg/torture/ssa-fre-5.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target int32 } */ /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ /* { dg-additional-options "-fgimple -fdump-tree-fre1" } */ diff --git a/gcc/testsuite/gcc.dg/torture/ssa-fre-7.c b/gcc/testsuite/gcc.dg/torture/ssa-fre-7.c index 07f3c9dc567e..c9259b4ddaa0 100644 --- a/gcc/testsuite/gcc.dg/torture/ssa-fre-7.c +++ b/gcc/testsuite/gcc.dg/torture/ssa-fre-7.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target int32 } */ /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ /* { dg-additional-options "-fgimple -fdump-tree-fre1" } */