Commit ed045bef by Paolo Bonzini Committed by Paolo Bonzini

* gcc.dg/pr14092-1.c: Use intptr_t for the cast.

From-SVN: r77649
parent c0689841
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.
......
......@@ -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;
}
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