This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, GCC] Require c99_runtime for pr78622.c
- From: Thomas Preudhomme <thomas dot preudhomme at foss dot arm dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 4 May 2017 11:07:53 +0100
- Subject: Re: [PATCH, GCC] Require c99_runtime for pr78622.c
- Authentication-results: sourceware.org; auth=none
- References: <2c36ba99-f5c7-6d07-c7cf-7d5c2177638a@foss.arm.com>
And now with the patch.
Best regards,
Thomas
On 04/05/17 10:36, Thomas Preudhomme wrote:
Hi,
Testcase gcc.c-torture/execute/pr78622.c uses %hhd printf specifier
which was introduced in C99. C89 only recognizes h, l and L length
specifier, it does not recognize hh length specifier. As such, this
commit adds a c99_runtime effective target requirement.
ChangeLog entry is as follows:
*** gcc/testsuite/ChangeLog ***
2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
* gcc.c-torture/execute/pr78622.c: Require c99_runtime effective
target.
Committed as obvious.
Best regards,
Thomas
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr78622.c b/gcc/testsuite/gcc.c-torture/execute/pr78622.c
index 85084bef026fc6622d7c83e6e74186fe52a5edd6..384803d1a091723fdb6368faf5b5389de7509555 100644
--- a/gcc/testsuite/gcc.c-torture/execute/pr78622.c
+++ b/gcc/testsuite/gcc.c-torture/execute/pr78622.c
@@ -1,6 +1,7 @@
/* PR middle-end/78622 - [7 Regression] -Wformat-overflow/-fprintf-return-value
incorrect with overflow/wrapping
{ dg-skip-if "Requires %hhd format" { hppa*-*-hpux* } { "*" } { "" } }
+ { dg-require-effective-target c99_runtime }
{ dg-additional-options "-Wformat-overflow=2" } */
__attribute__((noinline, noclone)) int