+2004-02-11 Paolo Bonzini <bonzini@gnu.org>
+
+ * gcc.dg/pr14092-1.c: Use intptr_t for the cast.
+
2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
* gcc.dg/ppc64-abi-3.c: New test.
*/
/* { 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;
}