From 62c0ea4b14d5cc56b9a2a4c85f8d77f136434680 Mon Sep 17 00:00:00 2001 From: Senthil Kumar Selvaraj Date: Wed, 13 Jul 2016 12:12:10 +0000 Subject: [PATCH] Fix some bogus testsuite failures for avr. gcc/testsuite/ * c-c++-common/Wduplicated-cond-3.c (fn10): Use smaller const literal. * c-c++-common/builtin-arith-overflow-2.c: Skip for avr. * c-c++-common/pr68833-1.c: Require int32plus. * gcc.dg/ipa/pr63551.c: Likewise. * gcc.dg/ipa/pr63595.c: Require ptr32plus. * gcc.dg/ipa/pr64041.c: Require int32plus. From-SVN: r238294 --- gcc/testsuite/ChangeLog | 10 ++++++++++ gcc/testsuite/c-c++-common/Wduplicated-cond-3.c | 2 +- gcc/testsuite/c-c++-common/builtin-arith-overflow-2.c | 1 + gcc/testsuite/c-c++-common/pr68833-1.c | 1 + gcc/testsuite/gcc.dg/ipa/pr63551.c | 1 + gcc/testsuite/gcc.dg/ipa/pr63595.c | 1 + gcc/testsuite/gcc.dg/ipa/pr64041.c | 1 + 7 files changed, 16 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c21469b6b94..bccd0d8e956 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2016-07-13 Senthil Kumar Selvaraj + + * c-c++-common/Wduplicated-cond-3.c (fn10): Use smaller + const literal. + * c-c++-common/builtin-arith-overflow-2.c: Skip for avr. + * c-c++-common/pr68833-1.c: Require int32plus. + * gcc.dg/ipa/pr63551.c: Likewise. + * gcc.dg/ipa/pr63595.c: Require ptr32plus. + * gcc.dg/ipa/pr64041.c: Require int32plus. + 2016-07-13 Ilya Enkovich PR ipa/71633 diff --git a/gcc/testsuite/c-c++-common/Wduplicated-cond-3.c b/gcc/testsuite/c-c++-common/Wduplicated-cond-3.c index e3b5ac0cc8b..f928357aec4 100644 --- a/gcc/testsuite/c-c++-common/Wduplicated-cond-3.c +++ b/gcc/testsuite/c-c++-common/Wduplicated-cond-3.c @@ -187,7 +187,7 @@ int fn10 (void) { if (foo ()) - return 1732984; + return 17329; else if (foo ()) return 18409; return 0; diff --git a/gcc/testsuite/c-c++-common/builtin-arith-overflow-2.c b/gcc/testsuite/c-c++-common/builtin-arith-overflow-2.c index 4cbceff3ed2..7dd0e50dbcb 100644 --- a/gcc/testsuite/c-c++-common/builtin-arith-overflow-2.c +++ b/gcc/testsuite/c-c++-common/builtin-arith-overflow-2.c @@ -1,6 +1,7 @@ /* PR c/68120 - can't easily deal with integer overflow at compile time */ /* { dg-do run } */ /* { dg-additional-options "-Wno-long-long" } */ +/* { dg-skip-if "Program too big" { "avr-*-*" } } */ #define SCHAR_MAX __SCHAR_MAX__ #define SHRT_MAX __SHRT_MAX__ diff --git a/gcc/testsuite/c-c++-common/pr68833-1.c b/gcc/testsuite/c-c++-common/pr68833-1.c index e0601b39ec4..c88f67e00d7 100644 --- a/gcc/testsuite/c-c++-common/pr68833-1.c +++ b/gcc/testsuite/c-c++-common/pr68833-1.c @@ -1,6 +1,7 @@ /* PR c/68833 */ /* { dg-do compile } */ /* { dg-options "-Werror=larger-than-65536 -Werror=format -Werror=missing-noreturn" } */ +/* { dg-require-effective-target int32plus } */ int a[131072]; /* { dg-error "size of 'a' is \[1-9]\[0-9]* bytes" } */ int b[1024]; /* { dg-bogus "size of 'b' is \[1-9]\[0-9]* bytes" } */ diff --git a/gcc/testsuite/gcc.dg/ipa/pr63551.c b/gcc/testsuite/gcc.dg/ipa/pr63551.c index 48b020aee40..225e323f2c6 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr63551.c +++ b/gcc/testsuite/gcc.dg/ipa/pr63551.c @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-options "-Os" } */ +/* { dg-require-effective-target int32plus } */ union U { diff --git a/gcc/testsuite/gcc.dg/ipa/pr63595.c b/gcc/testsuite/gcc.dg/ipa/pr63595.c index d656de5748e..ee489347c85 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr63595.c +++ b/gcc/testsuite/gcc.dg/ipa/pr63595.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-ipa-icf-details" } */ +/* { dg-require-effective-target ptr32plus } */ typedef int size_t; diff --git a/gcc/testsuite/gcc.dg/ipa/pr64041.c b/gcc/testsuite/gcc.dg/ipa/pr64041.c index 4877b4b68a9..18e01681491 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr64041.c +++ b/gcc/testsuite/gcc.dg/ipa/pr64041.c @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2" } */ +/* { dg-require-effective-target int32plus } */ int printf (const char *, ...); -- 2.30.2