From 511d092e41fcea25a4367dec16ea4b44d947f699 Mon Sep 17 00:00:00 2001 From: Senthil Kumar Selvaraj Date: Tue, 27 Sep 2016 11:05:25 +0000 Subject: [PATCH] Fix bogus test failure for avr 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 * gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Require int32plus. From-SVN: r240528 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 353fd073a0a..d5240e6888b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2016-09-27 Senthil Kumar Selvaraj + + * gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Require int32plus. + 2016-09-27 Jakub Jelinek PR fortran/77666 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c index efa69b8a8b2..e11c2798a2e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c @@ -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 -- 2.30.2