Hi, This patch requires int32plus and ptr32plus for a couple of tests, tweaks Wduplicated-cond-3.c to use a smaller constant that fits in 16 bits, and marks one test as too big for avr.
Committed to trunk. Regards Senthil 2016-07-13 Senthil Kumar Selvaraj <senthil_kumar.selva...@atmel.com> * 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. diff --git gcc/testsuite/c-c++-common/Wduplicated-cond-3.c gcc/testsuite/c-c++-common/Wduplicated-cond-3.c index e3b5ac0..f928357 100644 --- gcc/testsuite/c-c++-common/Wduplicated-cond-3.c +++ 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 gcc/testsuite/c-c++-common/builtin-arith-overflow-2.c gcc/testsuite/c-c++-common/builtin-arith-overflow-2.c index 4cbceff..7dd0e50 100644 --- gcc/testsuite/c-c++-common/builtin-arith-overflow-2.c +++ 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 gcc/testsuite/c-c++-common/pr68833-1.c gcc/testsuite/c-c++-common/pr68833-1.c index e0601b3..c88f67e 100644 --- gcc/testsuite/c-c++-common/pr68833-1.c +++ 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 gcc/testsuite/gcc.dg/ipa/pr63551.c gcc/testsuite/gcc.dg/ipa/pr63551.c index 48b020a..225e323 100644 --- gcc/testsuite/gcc.dg/ipa/pr63551.c +++ 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 gcc/testsuite/gcc.dg/ipa/pr63595.c gcc/testsuite/gcc.dg/ipa/pr63595.c index d656de5..ee48934 100644 --- gcc/testsuite/gcc.dg/ipa/pr63595.c +++ 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 gcc/testsuite/gcc.dg/ipa/pr64041.c gcc/testsuite/gcc.dg/ipa/pr64041.c index 4877b4b..18e0168 100644 --- gcc/testsuite/gcc.dg/ipa/pr64041.c +++ 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.7.4