From 664b1a6b290dcf5dc9622a5e0a94196afa765165 Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Tue, 10 Jan 2017 22:45:52 +0000 Subject: [PATCH] PR testsuite/78960 - FAIL: gcc.dg/tree-ssa/builtin-sprintf.c execution test PR testsuite/78960 - FAIL: gcc.dg/tree-ssa/builtin-sprintf.c execution test PR testsuite/78959 - FAIL: gcc.c-torture/execute/pr78622.c PR testsuite/78133 - Commit r241489 adds printf specifiers not supported by newlib gcc/testsuite/ChangeLog: PR testsuite/78960 PR testsuite/78959 PR testsuite/78133 * gcc.dg/tree-ssa/builtin-sprintf.c: Require C99 runtime. * gcc.dg/tree-ssa/pr78622.c: Ditto. From-SVN: r244298 --- gcc/testsuite/ChangeLog | 10 +++++++++- gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c | 6 ++++-- gcc/testsuite/gcc.dg/tree-ssa/pr78622.c | 4 +++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8f5f8dfc028..c332d9062e0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,7 +1,15 @@ +2017-01-10 Martin Sebor + + PR testsuite/78960 + PR testsuite/78959 + PR testsuite/78133 + * gcc.dg/tree-ssa/builtin-sprintf.c: Require C99 runtime. + * gcc.dg/tree-ssa/pr78622.c: Ditto. + 2017-01-10 Martin Sebor PR middle-end/78138 - * gcc.dg/pr78138.c: New test. + * gcc.dg/pr78138.c: New test. 2017-01-10 David Malcolm diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c index 7757d5ea154..a3a467cb039 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c @@ -3,8 +3,10 @@ constant folding. With optimization enabled the test will fail to link if any of the assertions fails. Without optimization the test aborts at runtime if any of the assertions fails. */ -/* { dg-do run } */ -/* { dg-additional-options "-O2 -Wall -Wno-pedantic -fprintf-return-value" } */ +/* { dg-do run } + The h and hh length modifiers are a C99 feature (see PR 78959). + { dg-require-effective-target c99_runtime } + { dg-additional-options "-O2 -Wall -Wno-pedantic -fprintf-return-value" } */ #ifndef LINE # define LINE 0 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr78622.c b/gcc/testsuite/gcc.dg/tree-ssa/pr78622.c index 7a73ebeed40..3c6b88144b3 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr78622.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr78622.c @@ -1,7 +1,9 @@ /* PR middle-end/78622 - [7 Regression] -Wformat-length/-fprintf-return-value incorrect with overflow/wrapping { dg-do compile } - { dg-options "-Wformat-length=2" } */ + { dg-options "-Wformat-length=2" } + The h and hh length modifiers are a C99 feature (see PR 78959). + { dg-require-effective-target c99_runtime } */ char buf[1]; -- 2.30.2