From: Jakub Jelinek Date: Tue, 17 Mar 2020 10:12:59 +0000 (+0100) Subject: testsuite: Fix pr94185.C testcase on i686-linux with C++98 [PR94185] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=994d48620621fa33d32018be5fb70042e38546d5;p=gcc.git 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 PR target/94185 * g++.target/i386/pr94185.C (l): Use 4294967295U instead of 4294967295 to avoid FAIL with -m32 -std=c++98. --- 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 + + 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 * 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() {