Commit 994d4862 by Jakub Jelinek

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.
parent fd857de8
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> 2020-03-17 Christophe Lyon <christophe.lyon@linaro.org>
* gcc.target/aarch64/sve/acle/general-c/sizeless-1.c: Remove * gcc.target/aarch64/sve/acle/general-c/sizeless-1.c: Remove
......
...@@ -22,7 +22,7 @@ int d; ...@@ -22,7 +22,7 @@ int d;
void l(char *, ar m, long n) { void l(char *, ar m, long n) {
switch (m.au[d]) switch (m.au[d])
case 0: case 0:
n &= 4294967295; n &= 4294967295U;
bb.h(0).g(n); bb.h(0).g(n);
} }
void o() { void o() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment