This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, GCC] Require c99_runtime for pr78622.c


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]