aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>2017-04-19 11:27:05 +0000
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>2017-04-19 11:27:05 +0000
commit5249994efa240f6f6609371fddab0e76d63277fa (patch)
treed9a50520358c55b450088fc7920bbdbea24fb61f
parent6cff9199c10272a67e727ef4544015395770f1c3 (diff)
downloadgcc-5249994efa240f6f6609371fddab0e76d63277fa.zip
gcc-5249994efa240f6f6609371fddab0e76d63277fa.tar.gz
gcc-5249994efa240f6f6609371fddab0e76d63277fa.tar.bz2
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 <senthil_kumar.selvaraj@atmel.com> * gcc.dg/torture/pr80341.c: Require int32plus. From-SVN: r246994
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr80341.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 8f2cfff..a6c392e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2017-04-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
+
+ * gcc.dg/torture/pr80341.c: Require int32plus.
+
2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
Jeff Law <law@redhat.com>
diff --git a/gcc/testsuite/gcc.dg/torture/pr80341.c b/gcc/testsuite/gcc.dg/torture/pr80341.c
index 40cf660..c9e1239 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;