diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-02-14 00:09:09 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-02-14 00:09:09 +0100 |
commit | ecc04faebca5b5e7e33ea0bdba65b5e326f1668c (patch) | |
tree | 3af1123c613614efc55fa48febf7de8924e1d1ad | |
parent | 8cb7aaa11b356fbebd63f6da60356f91e67e6217 (diff) | |
download | gcc-ecc04faebca5b5e7e33ea0bdba65b5e326f1668c.zip gcc-ecc04faebca5b5e7e33ea0bdba65b5e326f1668c.tar.gz gcc-ecc04faebca5b5e7e33ea0bdba65b5e326f1668c.tar.bz2 |
re PR sanitizer/79341 (Many Asan tests fail on s390)
PR sanitizer/79341
* c-c++-common/ubsan/float-cast-overflow-8.c (TEST): Make min and max
variables volatile.
From-SVN: r245411
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-8.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 281aca0..c92cff7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2017-02-13 Jakub Jelinek <jakub@redhat.com> + PR sanitizer/79341 + * c-c++-common/ubsan/float-cast-overflow-8.c (TEST): Make min and max + variables volatile. + PR c++/79232 * g++.dg/cpp1z/eval-order4.C: New test. * g++.dg/other/pr79232.C: New test. diff --git a/gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-8.c b/gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-8.c index 4adb22a..1b51609 100644 --- a/gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-8.c +++ b/gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-8.c @@ -8,7 +8,7 @@ #define TEST(type1, type2) \ if (type1##_MIN) \ { \ - type2 min = type1##_MIN; \ + volatile type2 min = type1##_MIN; \ type2 add = -1.0; \ while (1) \ { \ @@ -28,7 +28,7 @@ volatile type1 tem3 = cvt_##type1##_##type2 (-1.0f); \ } \ { \ - type2 max = type1##_MAX; \ + volatile type2 max = type1##_MAX; \ type2 add = 1.0; \ while (1) \ { \ |