PR target/78230
* gcc.dg/torture/pr66178.c (test): Use uintptr_t instead of int.
(test2) Ditto.
From-SVN: r242792
+2016-11-23 Kito Cheng <kito.cheng@gmail.com>
+
+ PR target/78230
+ * gcc.dg/torture/pr66178.c (test): Use uintptr_t instead of int.
+ (test2) Ditto.
+
2016-11-23 Jakub Jelinek <jakub@redhat.com>
PR c++/77907
/* { dg-do compile } */
/* { dg-require-effective-target label_values } */
+typedef __UINTPTR_TYPE__ uintptr_t;
+
int test(void)
{
- static int a = ((char *)&&l1-(char *)&&l2)-1;
+ static uintptr_t a = ((char *)&&l1-(char *)&&l2)-1;
l1:
l2:
return a;
int test2(void)
{
- static int a = ((char *)&&l2-(char *)&&l3)+((char *)&&l1-(char *)&&l2);
+ static uintptr_t a = ((char *)&&l2-(char *)&&l3)+((char *)&&l1-(char *)&&l2);
l1:
l2:
l3: