Hi!

On Mon, Mar 16, 2020 at 04:47:05PM -0400, Vladimir Makarov via Gcc-patches 
wrote:
>   The following committed patch solves

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.

Tested on x86_64-linux with
check-c++-all RUNTESTFLAGS='--target_board=unix\{-m32,-m64\} i386.exp=pr94185.C'
both using older GCC where it ICEs and current where it now all PASSes,
committed to trunk as obvious.

2020-03-17  Jakub Jelinek  <ja...@redhat.com>

        PR target/94185
        * g++.target/i386/pr94185.C (l): Use 4294967295U instead of 4294967295
        to avoid FAIL with -m32 -std=c++98.

--- gcc/testsuite/g++.target/i386/pr94185.C.jj  2020-03-16 22:56:55.000000000 
+0100
+++ gcc/testsuite/g++.target/i386/pr94185.C     2020-03-17 11:11:10.158846926 
+0100
@@ -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() {

        Jakub

Reply via email to