From: Tom de Vries Date: Mon, 9 Feb 2015 10:21:59 +0000 (+0000) Subject: Fix gcc.dg/uninit-19.c for fpic X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62e0e086d37e81581648631aa0ad3e6af3814cad;p=gcc.git Fix gcc.dg/uninit-19.c for fpic 2015-02-09 Tom de Vries * gcc.dg/uninit-19.c: Fix warning line for fpic. From-SVN: r220530 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8e4bc0ad8a1..bef2f1934ec 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-02-09 Tom de Vries + + * gcc.dg/uninit-19.c: Fix warning line for fpic. + 2015-02-08 Andrew Pinski * gcc.dg/tree-ssa/ssa-dom-cse-2.c: xfail for AARCH64 also. diff --git a/gcc/testsuite/gcc.dg/uninit-19.c b/gcc/testsuite/gcc.dg/uninit-19.c index 3113cabe89d..fc7aceaa70b 100644 --- a/gcc/testsuite/gcc.dg/uninit-19.c +++ b/gcc/testsuite/gcc.dg/uninit-19.c @@ -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 } */