Fix broken gcc.dg/torture/pr80341.c for avr
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Wed, 19 Apr 2017 11:27:05 +0000 (11:27 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Wed, 19 Apr 2017 11:27:05 +0000 (11:27 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr80341.c

index 8f2cfffd9996a0eb90ec18f582cc36ddbea3305d..a6c392e64839b4e8a55c6115a9903d16a60b0d77 100644 (file)
@@ -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>
 
index 40cf660dff911a181dfcd306391ce20216545e13..c9e12396d0775ba19e2cdf75834472e9848bdc28 100644 (file)
@@ -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;