Fix gcc.dg/uninit-19.c for fpic

2015-02-09  Tom de Vries  <tom@codesourcery.com>

	* gcc.dg/uninit-19.c: Fix warning line for fpic.

From-SVN: r220530
This commit is contained in:
Tom de Vries 2015-02-09 10:21:59 +00:00 committed by Tom de Vries
parent d741d1434e
commit 62e0e086d3
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2015-02-09 Tom de Vries <tom@codesourcery.com>
* gcc.dg/uninit-19.c: Fix warning line for fpic.
2015-02-08 Andrew Pinski <apinski@cavium.com>
* gcc.dg/tree-ssa/ssa-dom-cse-2.c: xfail for AARCH64 also.

View File

@ -10,7 +10,7 @@ fn1 (int p1, float *f1, float *f2, float *f3, unsigned char *c1, float *f4,
unsigned char *c2, float *p10)
{
if (p1 & 8)
b[3] = p10[a]; /* { dg-warning "may be used uninitialized" } */
b[3] = p10[a]; /* 13. */
}
void
@ -19,5 +19,8 @@ fn2 ()
float *n;
if (l & 6)
n = &c + m;
fn1 (l, &d, &e, &g, &i, &h, &k, n);
fn1 (l, &d, &e, &g, &i, &h, &k, n); /* 22. */
}
/* { dg-warning "may be used uninitialized" "" { target nonpic } 13 } */
/* { dg-warning "may be used uninitialized" "" { target { ! nonpic } } 22 } */