From 5249994efa240f6f6609371fddab0e76d63277fa Mon Sep 17 00:00:00 2001 From: Senthil Kumar Selvaraj Date: Wed, 19 Apr 2017 11:27:05 +0000 Subject: [PATCH] Fix broken gcc.dg/torture/pr80341.c for avr This patch skips pr80341.c for targets with int size less than 32 bits. The assertion in the testcase holds only if sizeof(int) > sizeof(short), which isn't true for smaller int size targets like the avr. gcc/testsuite 2017-04-19 Senthil Kumar Selvaraj * gcc.dg/torture/pr80341.c: Require int32plus. From-SVN: r246994 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/torture/pr80341.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8f2cfffd999..a6c392e6483 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-04-19 Senthil Kumar Selvaraj + + * gcc.dg/torture/pr80341.c: Require int32plus. + 2017-04-19 Eric Botcazou Jeff Law diff --git a/gcc/testsuite/gcc.dg/torture/pr80341.c b/gcc/testsuite/gcc.dg/torture/pr80341.c index 40cf660dff9..c9e12396d07 100644 --- a/gcc/testsuite/gcc.dg/torture/pr80341.c +++ b/gcc/testsuite/gcc.dg/torture/pr80341.c @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-additional-options "-Wno-overflow" } */ +/* { dg-require-effective-target int32plus } */ const signed char c = -84; signed char s;