diff mbox

[committed] Fix gcc.dg/tree-ssa/builtin-sprintf-warn-4.c

Message ID 1474650110.23088.58.camel@redhat.com
State New
Headers show

Commit Message

David Malcolm Sept. 23, 2016, 5:01 p.m. UTC
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.
diff mbox

Patch

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.