aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@gmail.com>2016-11-23 19:20:33 +0000
committerJeff Law <law@gcc.gnu.org>2016-11-23 12:20:33 -0700
commit62567da0dfe77e3c708620544f2f395f64caca13 (patch)
tree6ac922eadf6210ea702396f1a6ee14b2277ca69d /gcc
parent46e89251c471b2780ba0831b26c90995f52408a9 (diff)
downloadgcc-62567da0dfe77e3c708620544f2f395f64caca13.zip
gcc-62567da0dfe77e3c708620544f2f395f64caca13.tar.gz
gcc-62567da0dfe77e3c708620544f2f395f64caca13.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr66178.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c74a422..b116ed6 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+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
diff --git a/gcc/testsuite/gcc.dg/torture/pr66178.c b/gcc/testsuite/gcc.dg/torture/pr66178.c
index c42996d..ee09cf6 100644
--- a/gcc/testsuite/gcc.dg/torture/pr66178.c
+++ b/gcc/testsuite/gcc.dg/torture/pr66178.c
@@ -1,9 +1,11 @@
/* { 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;
@@ -11,7 +13,7 @@ l2:
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: