From: Paolo Bonzini Date: Wed, 11 Feb 2004 11:53:38 +0000 (+0000) Subject: * gcc.dg/pr14092-1.c: Use intptr_t for the cast. X-Git-Tag: releases/gcc-4.0.0~10189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed045bef20cf6f6997a9beb7c785a2881f0f984e;p=thirdparty%2Fgcc.git * gcc.dg/pr14092-1.c: Use intptr_t for the cast. From-SVN: r77649 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d49569a3833c..9f34aae5386d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-02-11 Paolo Bonzini + + * gcc.dg/pr14092-1.c: Use intptr_t for the cast. + 2004-02-11 Hartmut Penner * gcc.dg/ppc64-abi-3.c: New test. diff --git a/gcc/testsuite/gcc.dg/pr14092-1.c b/gcc/testsuite/gcc.dg/pr14092-1.c index 86076c241e0d..927ecf6aa3bc 100644 --- a/gcc/testsuite/gcc.dg/pr14092-1.c +++ b/gcc/testsuite/gcc.dg/pr14092-1.c @@ -4,14 +4,17 @@ */ /* { dg-do compile } */ +/* Define this so that we are more portable. The testcase in the + PR failed on 64-bit hosts. */ +typedef int __attribute__ ((mode (__pointer__))) intptr_t; + typedef struct _PLCI { unsigned char x; unsigned char buf[1]; } PLCI; - void nl_ind(PLCI * plci) { - plci->x = -((int)(plci->buf)) & 3; + plci->x = -((intptr_t)(plci->buf)) & 3; }