Applies to trunk.

Johann

--

commit 33600590ba53735410de9bf619171691b2703301 (HEAD -> master, origin/master, origin/HEAD)

    Fix PR123778 test case.

    gcc/testsuite/
            PR testsuite/123778
            * gcc.dg/torture/pr123778-1.c (f): Return __PTRDIFF_TYPE__
            instead of long.

diff --git a/gcc/testsuite/gcc.dg/torture/pr123778-1.c b/gcc/testsuite/gcc.dg/torture/pr123778-1.c
index ebaa92b76b3..b3635e34634 100644
--- a/gcc/testsuite/gcc.dg/torture/pr123778-1.c
+++ b/gcc/testsuite/gcc.dg/torture/pr123778-1.c
@@ -4,7 +4,7 @@
 /* PR tree-optimization/123778 */

 typedef char (*t)[3];
-long __GIMPLE(ssa) f(char a, int d)
+__PTRDIFF_TYPE__ __GIMPLE(ssa) f(char a, int d)
 {
   _Bool _107;
   __PTRDIFF_TYPE__ _14;

commit b3ddd92a2eee5bdc5c9d322bc5642f2a92614ac2

    Fix sloppy PR126415 test case.

    This test case failed with

pr126415.c:28:19: warning: overflow in conversion from 'long int' to 'int' changes value from '-2000000000' to '27648' [-Woverflow]

    It's unclear how to reengineer the test case without spoiling
    it, hence require int32plus.

            PR testsuite/126415
            PR testsuite/52641
    gcc/testsuite/
            * gcc.dg/torture/pr126415.c: Require int32plus.

diff --git a/gcc/testsuite/gcc.dg/torture/pr126415.c b/gcc/testsuite/gcc.dg/torture/pr126415.c
index 7120704cb60..1dc94eb0449 100644
--- a/gcc/testsuite/gcc.dg/torture/pr126415.c
+++ b/gcc/testsuite/gcc.dg/torture/pr126415.c
@@ -4,6 +4,7 @@
original widened operation is fully defined. The narrow op then collapses through defined-wrap identities (mod 2^narrow-prec), changing the value. */
 /* { dg-do run } */
+/* { dg-require-effective-target int32plus } */

 int printf(const char *, ...);

commit 87f0b4e17f798d1e273f89e6c43f1df83fb5133f

    Rectify sloppy PR49330 test case.

    This test failed with

pr49330-2.c:10:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

    since it used unsigned long instead of __UINTPTR_TYPE__.

            PR testsuite/49330
            PR testsuite/52641
    gcc/testsuite/
            * gcc.dg/torture/pr49330-2.c (foo): Use __UINTPTR_TYPE__
            instead of unsigned long.


Reply via email to