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.
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)
{
if (p->i)
return 1;
- if (!q) // { dg-bogus "\\\[-Wmaybe-uninitialized" }
+ if (!q) // { dg-bogus "\\\[-Wmaybe-uninitialized" "" { xfail *-*-* } }
return 2;
}