* [committed] Fix gcc.dg/tree-ssa/builtin-sprintf-warn-4.c
@ 2016-09-23 17:14 David Malcolm
0 siblings, 0 replies; only message in thread
From: David Malcolm @ 2016-09-23 17:14 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 333 bytes --]
My fix to the locations for NUL-terminators in substring_loc changed
the output for gcc.dg/tree-ssa/builtin-sprintf-warn-4.c, leading to a
couple of FAILs from that test. Sorry; my testing of the earlier patch
was incomplete (I needed to rebase).
I've committed the attached patch to trunk (r240442), which fixes the
test failures.
[-- Attachment #2: r240442.patch --]
[-- Type: text/x-patch, Size: 1195 bytes --]
Index: gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-4.c
===================================================================
--- gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-4.c (revision 240441)
+++ gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-4.c (revision 240442)
@@ -12,7 +12,7 @@
{ dg-message "format output 2 bytes into a destination of size 1" "" { target *-*-*-* } 10 }
{ dg-begin-multiline-output "" }
sprintf (dst + 7, "%-s", "1");
- ^~~~~
+ ~~^~
{ dg-end-multiline-output "" }
{ dg-begin-multiline-output "" }
sprintf (dst + 7, "%-s", "1");
Index: gcc/testsuite/ChangeLog
===================================================================
--- gcc/testsuite/ChangeLog (revision 240441)
+++ gcc/testsuite/ChangeLog (revision 240442)
@@ -1,3 +1,10 @@
+2016-09-23 David Malcolm <dmalcolm@redhat.com>
+
+ PR preprocessor/77672
+ * gcc.dg/tree-ssa/builtin-sprintf-warn-4.c (test): Update
+ expected multiline output from first warning to reflect change
+ in r240434.
+
2016-09-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
* gcc.dg/tree-ssa/builtin-sprintf-warn-2.c: Fix xfail pattern.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-23 17:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-23 17:14 [committed] Fix gcc.dg/tree-ssa/builtin-sprintf-warn-4.c David Malcolm
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).