diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2012-06-28 07:41:02 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2012-06-28 07:41:02 +0000 |
commit | 7fefe030cc5c85c32fc73704737fd069d978287c (patch) | |
tree | 0d238f7baeb479e22799bf8bca3c022b1017273f | |
parent | a992a6d1f48622bb8cd39c04f06f41eba9c984c6 (diff) | |
download | gcc-7fefe030cc5c85c32fc73704737fd069d978287c.zip gcc-7fefe030cc5c85c32fc73704737fd069d978287c.tar.gz gcc-7fefe030cc5c85c32fc73704737fd069d978287c.tar.bz2 |
re PR debug/53671 (Many guality test failures)
PR debug/53671
PR debug/49888
* gcc.dg/guality/pr49888.c: Account for the possibility that
the variable is optimized out at the first test.
From-SVN: r189038
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/guality/pr49888.c | 7 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4217e6a..4b710e2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2012-06-28 Alexandre Oliva <aoliva@redhat.com> + + PR debug/53671 + PR debug/49888 + * gcc.dg/guality/pr49888.c: Account for the possibility that + the variable is optimized out at the first test. + 2012-06-27 Jason Merrill <jason@redhat.com> * g++.dg/cpp0x/override2.C: Adjust. diff --git a/gcc/testsuite/gcc.dg/guality/pr49888.c b/gcc/testsuite/gcc.dg/guality/pr49888.c index 3d1e653..a0e26cf 100644 --- a/gcc/testsuite/gcc.dg/guality/pr49888.c +++ b/gcc/testsuite/gcc.dg/guality/pr49888.c @@ -9,12 +9,13 @@ f (int *p) { int c = *p; v = c; - *p = 1; /* { dg-final { gdb-test 12 "c" "0" } } */ + *p = 1; /* { dg-final { gdb-test 12 "!!c" "0" } } */ /* c may very well be optimized out at this point, so we test !c, which will evaluate to the expected value. We just want to make sure it doesn't remain bound to *p as it did before, in which - case !c would evaluate to 0. */ - v = 0; /* { dg-final { gdb-test 17 "!c" "1" } } */ + case !c would evaluate to 0. *p may also be regarded as aliasing + register saves, thus the !!c above. */ + v = 0; /* { dg-final { gdb-test 18 "!c" "1" } } */ } int main () |