Some distributions like Gentoo make -Wformat and -Wformat-security enabled by default. Pass -Wno-format to the test to avoid a spurious fail in such environments.
gcc/testsuite/ PR rtl-optimization/115929 * gcc.dg/torture/pr115929-1.c: Pass -Wno-format. --- Richard, is this OK? I could adjust the testcase if you prefer. Please commit on my behalf if it's fine. Thanks. gcc/testsuite/gcc.dg/torture/pr115929-1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/torture/pr115929-1.c b/gcc/testsuite/gcc.dg/torture/pr115929-1.c index 19b831ab99ef..d81081e2f2e9 100644 --- a/gcc/testsuite/gcc.dg/torture/pr115929-1.c +++ b/gcc/testsuite/gcc.dg/torture/pr115929-1.c @@ -1,5 +1,5 @@ /* { dg-require-effective-target lp64 } */ -/* { dg-options "-fno-gcse -fschedule-insns -fno-guess-branch-probability -fno-tree-fre -fno-tree-ch" } */ +/* { dg-options "-fno-gcse -fschedule-insns -fno-guess-branch-probability -fno-tree-fre -fno-tree-ch -Wno-format" } */ int printf(const char *, ...); int a[6], b, c; -- 2.45.2