Hi!

Apparently llp64 had 2 further warnings, fixed thusly.

Committed as obvious after testing it with cross to mingw.

2022-12-19  Jakub Jelinek  <ja...@redhat.com>

        PR testsuite/108151
        * gcc.dg/pr64536.c (bar): Cast long to __INTPTR_TYPE__
        before casting to long *.

--- gcc/testsuite/gcc.dg/pr64536.c.jj
+++ gcc/testsuite/gcc.dg/pr64536.c
@@ -40,7 +40,7 @@ bar (int x)
              h->q = *f;
            }
          else
-           i = (long *) (h->q = *f);
+           i = (long *) (__INTPTR_TYPE__) (h->q = *f);
          *c++ = (__INTPTR_TYPE__) f;
          e += 6;
        }
@@ -54,7 +54,7 @@ bar (int x)
              h->q = *f;
            }
          else
-           i = (long *) (h->q = *f);
+           i = (long *) (__INTPTR_TYPE__) (h->q = *f);
          *c++ = (__INTPTR_TYPE__) f;
          e += 6;
        }

        Jakub

Reply via email to