aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-03-17 11:12:59 +0100
committerJakub Jelinek <jakub@redhat.com>2020-03-17 11:16:04 +0100
commit994d48620621fa33d32018be5fb70042e38546d5 (patch)
tree1ceade0f45667dc6ac69131dcd4be75a5e475902 /gcc
parentfd857de80705be937d9780dbd394d006151713fe (diff)
downloadgcc-994d48620621fa33d32018be5fb70042e38546d5.zip
gcc-994d48620621fa33d32018be5fb70042e38546d5.tar.gz
gcc-994d48620621fa33d32018be5fb70042e38546d5.tar.bz2
testsuite: Fix pr94185.C testcase on i686-linux with C++98 [PR94185]
I'm getting on i686-linux FAIL: g++.target/i386/pr94185.C -std=gnu++98 (test for excess errors) This is because of a diagnostic that 4294967295 is unsigned only in ISO C90. Adding U suffix fixes it and the testcase still ICEs with unfixed gcc and passes with current trunk. 2020-03-17 Jakub Jelinek <jakub@redhat.com> PR target/94185 * g++.target/i386/pr94185.C (l): Use 4294967295U instead of 4294967295 to avoid FAIL with -m32 -std=c++98.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/g++.target/i386/pr94185.C2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index aaf973a..cb81b72 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2020-03-17 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/94185
+ * g++.target/i386/pr94185.C (l): Use 4294967295U instead of 4294967295
+ to avoid FAIL with -m32 -std=c++98.
+
2020-03-17 Christophe Lyon <christophe.lyon@linaro.org>
* gcc.target/aarch64/sve/acle/general-c/sizeless-1.c: Remove
diff --git a/gcc/testsuite/g++.target/i386/pr94185.C b/gcc/testsuite/g++.target/i386/pr94185.C
index 587b7ba..2b3f7a1 100644
--- a/gcc/testsuite/g++.target/i386/pr94185.C
+++ b/gcc/testsuite/g++.target/i386/pr94185.C
@@ -22,7 +22,7 @@ int d;
void l(char *, ar m, long n) {
switch (m.au[d])
case 0:
- n &= 4294967295;
+ n &= 4294967295U;
bb.h(0).g(n);
}
void o() {