public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/c++-coroutines] testsuite: Fix pr94185.C testcase on i686-linux with C++98 [PR94185]
@ 2020-03-17 21:53 Iain D Sandoe
0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2020-03-17 21:53 UTC (permalink / raw)
To: gcc-cvs
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() {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-17 21:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-17 21:53 [gcc/devel/c++-coroutines] testsuite: Fix pr94185.C testcase on i686-linux with C++98 [PR94185] Iain D Sandoe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).