aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2021-12-19 22:26:41 +0000
committerAndrew Pinski <apinski@marvell.com>2021-12-19 22:36:08 +0000
commit78fe0f23c73bf3b5d49dd2992d445bcc5db5a55c (patch)
treeafca9ac652e90a4385f3daa9821a9a5ad2aebc31 /gcc
parentfcbf94a5be9e0c1ecad92da773a6632b86b7f70a (diff)
downloadgcc-78fe0f23c73bf3b5d49dd2992d445bcc5db5a55c.zip
gcc-78fe0f23c73bf3b5d49dd2992d445bcc5db5a55c.tar.gz
gcc-78fe0f23c73bf3b5d49dd2992d445bcc5db5a55c.tar.bz2
Change the xfail in gcc.dg/uninit-pr89230-1.c
With the recent PHI-OPT patch for line numbers, I had missed this testcase was now failing. The uninitialized warning was there before my recent patch, just was on the wrong line. The testcase had added an xfail in r12-4698-gf6d012338 (though a bug report was not filed to record it). This patch changes the dg-bogus messages around to catch both locations and xfail both of them. At least there is now a patch for the correct line numbers for the phi-opt. Committed after testing the testcase. gcc/testsuite/ChangeLog: * gcc.dg/uninit-pr89230-1.c: Change the dg-bogus messages around and xfail both of them.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/uninit-pr89230-1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/uninit-pr89230-1.c b/gcc/testsuite/gcc.dg/uninit-pr89230-1.c
index dfc87a5..bf536e2 100644
--- a/gcc/testsuite/gcc.dg/uninit-pr89230-1.c
+++ b/gcc/testsuite/gcc.dg/uninit-pr89230-1.c
@@ -9,7 +9,7 @@ struct S { int i, j; };
int g (void)
{
struct S *p = f ();
- struct S *q; // { dg-bogus "may be used uninitialized" "uninitialized" { xfail *-*-* } }
+ struct S *q; // { dg-bogus "" "uninitialized" { xfail *-*-* } }
if (p->i || !(q = f ()) || p->j != q->i)
{
@@ -18,7 +18,7 @@ int g (void)
if (p->i)
return 1;
- if (!q) // { dg-bogus "\\\[-Wmaybe-uninitialized" }
+ if (!q) // { dg-bogus "\\\[-Wmaybe-uninitialized" "" { xfail *-*-* } }
return 2;
}