Fix bogus test failure for avr
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Tue, 27 Sep 2016 11:05:25 +0000 (11:05 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Tue, 27 Sep 2016 11:05:25 +0000 (11:05 +0000)
The test has a bunch of hardcoded integer literals that would fit only in a
32 bits+ int, causing overflow warnings for a 16 bit int target like avr.

gcc/testsuite/ChangeLog

2016-09-27  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

* gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Require int32plus.

From-SVN: r240528

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c

index 353fd073a0a64a8f3bbcbe59de5e6d560fa21392..d5240e6888b2b29382fd1480264c9bad4389f360 100644 (file)
@@ -1,3 +1,7 @@
+2016-09-27  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
+
+       * gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Require int32plus.
+
 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
 
        PR fortran/77666
index efa69b8a8b29da4ed3253e19ba646168a6a1ca58..e11c2798a2ecdb5ed5bcc9b85b24baf24fcb0190 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-std=c99 -Wformat -Wformat-length=1 -ftrack-macro-expansion=0" } */
+/* { dg-require-effective-target int32plus } */
 
 /* When debugging, define LINE to the line number of the test case to exercise
    and avoid exercising any of the others.  The buffer and objsize macros