I've applied the following commit as obvious to fix builtin-sprintf-warn-4.c
excess error failure on arm-none-eabi due to incorrect wildchar target triplet.
ChangeLog entry is as follows:
*** gcc/testsuite/ChangeLog ***
2016-10-11 Thomas Preud'homme <thomas.preudho...@arm.com>
PR testsuite/PR77710
* gcc.dg/tree-ssa/builtin-sprintf-warn-4.c: Use *-*-* as catch-all
target triplet instead of *-*-*-*.
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-4.c
b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-4.c
index
9fff2acb16764067029a61c305371fe2d38a3d9c..4b40336127e990d97a9c685ef1e25b2ae52063a6
100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-4.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-4.c
@@ -8,8 +8,8 @@ char dst [8];
void test (void)
{
sprintf (dst + 7, "%-s", "1");
- /* { dg-warning "writing a terminating nul past the end of the destination"
"" { target *-*-*-* } 10 }
- { dg-message "format output 2 bytes into a destination of size 1" "" {
target *-*-*-* } 10 }
+ /* { dg-warning "writing a terminating nul past the end of the destination"
"" { target *-*-* } 10 }
+ { dg-message "format output 2 bytes into a destination of size 1" "" {
target *-*-* } 10 }
{ dg-begin-multiline-output "" }
sprintf (dst + 7, "%-s", "1");
~~^~
@@ -20,8 +20,8 @@ void test (void)
{ dg-end-multiline-output "" } */
sprintf (dst + 7, "%-s", "abcd");
- /* { dg-warning ".%-s. directive writing 4 bytes into a region of size 1" ""
{ target *-*-*-* } 22 }
- { dg-message "format output 5 bytes into a destination of size 1" "" {
target *-*-*-* } 22 }
+ /* { dg-warning ".%-s. directive writing 4 bytes into a region of size 1" ""
{ target *-*-* } 22 }
+ { dg-message "format output 5 bytes into a destination of size 1" "" {
target *-*-* } 22 }
{ dg-begin-multiline-output "" }
sprintf (dst + 7, "%-s", "abcd");
^~~ ~~~~~~
Best regards,
Thomas