Commit 62567da0 by Kito Cheng Committed by Jeff Law

re PR target/78230 (Compile pr66178.c fail for mips64el-elf with N64 abi)

	PR target/78230
	* gcc.dg/torture/pr66178.c (test): Use uintptr_t instead of int.
	(test2) Ditto.

From-SVN: r242792
parent 46e89251
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> 2016-11-23 Jakub Jelinek <jakub@redhat.com>
PR c++/77907 PR c++/77907
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target label_values } */ /* { dg-require-effective-target label_values } */
typedef __UINTPTR_TYPE__ uintptr_t;
int test(void) int test(void)
{ {
static int a = ((char *)&&l1-(char *)&&l2)-1; static uintptr_t a = ((char *)&&l1-(char *)&&l2)-1;
l1: l1:
l2: l2:
return a; return a;
...@@ -11,7 +13,7 @@ l2: ...@@ -11,7 +13,7 @@ l2:
int test2(void) 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: l1:
l2: l2:
l3: l3:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment