Commit 62c0ea4b by Senthil Kumar Selvaraj Committed by Senthil Kumar Selvaraj

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
parent 05505e9d
2016-07-13 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@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.
2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com> 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
PR ipa/71633 PR ipa/71633
......
...@@ -187,7 +187,7 @@ int ...@@ -187,7 +187,7 @@ int
fn10 (void) fn10 (void)
{ {
if (foo ()) if (foo ())
return 1732984; return 17329;
else if (foo ()) else if (foo ())
return 18409; return 18409;
return 0; return 0;
......
/* PR c/68120 - can't easily deal with integer overflow at compile time */ /* PR c/68120 - can't easily deal with integer overflow at compile time */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-additional-options "-Wno-long-long" } */ /* { dg-additional-options "-Wno-long-long" } */
/* { dg-skip-if "Program too big" { "avr-*-*" } } */
#define SCHAR_MAX __SCHAR_MAX__ #define SCHAR_MAX __SCHAR_MAX__
#define SHRT_MAX __SHRT_MAX__ #define SHRT_MAX __SHRT_MAX__
......
/* PR c/68833 */ /* PR c/68833 */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-Werror=larger-than-65536 -Werror=format -Werror=missing-noreturn" } */ /* { 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 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" } */ int b[1024]; /* { dg-bogus "size of 'b' is \[1-9]\[0-9]* bytes" } */
......
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-Os" } */ /* { dg-options "-Os" } */
/* { dg-require-effective-target int32plus } */
union U union U
{ {
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-ipa-icf-details" } */ /* { dg-options "-O2 -fdump-ipa-icf-details" } */
/* { dg-require-effective-target ptr32plus } */
typedef int size_t; typedef int size_t;
......
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
/* { dg-require-effective-target int32plus } */
int printf (const char *, ...); int printf (const char *, ...);
......
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