[gcc(refs/users/marxin/heads/vect_cond_expr-rework-v3)] testsuite: Fix pr94185.C testcase on i686-linux with C++98 [PR94185]
Martin Liska
marxin@gcc.gnu.org
Thu Mar 19 09:31:07 GMT 2020
https://gcc.gnu.org/g:994d48620621fa33d32018be5fb70042e38546d5
commit 994d48620621fa33d32018be5fb70042e38546d5
Author: Jakub Jelinek <jakub@redhat.com>
Date: Tue Mar 17 11:12:59 2020 +0100
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.
Diff:
---
gcc/testsuite/ChangeLog | 6 ++++++
gcc/testsuite/g++.target/i386/pr94185.C | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index aaf973a206c..cb81b72550e 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 587b7bac6db..2b3f7a1d676 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() {
More information about the Gcc-cvs
mailing list