public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix builtin-sprintf-warn-2.c xfail pattern
@ 2016-09-23 16:17 Thomas Preudhomme
  0 siblings, 0 replies; only message in thread
From: Thomas Preudhomme @ 2016-09-23 16:17 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 451 bytes --]

The new builtin-sprintf-warn-2.c xfail on line 83 and 84 for *-*-*-* which fails 
for arm-none-eabi for instance. The usual pattern for catchall xfail is *-*-*. 
This patch fixes the pattern as such.

ChangeLog entry is as follows:

*** gcc/testsuite/ChangeLog ***

2016-09-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>

         * gcc.dg/tree-ssa/builtin-sprintf-warn-2.c: Fix xfail pattern.


Committing as obvious fix.

Best regards,

Thomas

[-- Attachment #2: fix_builtin-sprintf-warn-2_xfail_pattern.patch --]
[-- Type: text/x-patch, Size: 1123 bytes --]

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-2.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-2.c
index b0f2d450077012d92708c3638c47f1fd3611aa7a..675ecac4f72d8117abe258d2943eb5b1f78ad962 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-2.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-2.c
@@ -80,8 +80,8 @@ struct Arrays {
 
 void test_s_nonconst (const char *s, const wchar_t *ws, struct Arrays *a)
 {
-  T (0, "%s",   s);             /* { dg-warning "into a region" "sprintf transformed into strcpy" { xfail *-*-*-* } } */
-  T (1, "%s",   s);             /* { dg-warning "nul past the end" "sprintf transformed into strcpy" { xfail *-*-*-* } } */
+  T (0, "%s",   s);             /* { dg-warning "into a region" "sprintf transformed into strcpy" { xfail *-*-* } } */
+  T (1, "%s",   s);             /* { dg-warning "nul past the end" "sprintf transformed into strcpy" { xfail *-*-* } } */
   T (1, "%1s",  s);             /* { dg-warning "nul past the end" } */
   T (1, "%.0s", s);
   T (1, "%.1s", s);             /* { dg-warning "writing a terminating nul" } */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-23 16:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-23 16:17 [PATCH] Fix builtin-sprintf-warn-2.c xfail pattern Thomas Preudhomme

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).