diff options
| author | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-11 11:53:38 +0000 |
|---|---|---|
| committer | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-11 11:53:38 +0000 |
| commit | e65a47c96faac32fd0259b0050fd91cc60bcf71c (patch) | |
| tree | a03e6fd7fb866d94698f434bf96679185faf6dc6 | |
| parent | d7e5d73177f65f0aa1ca77608f3972ed1d919a7d (diff) | |
| download | ppe42-gcc-e65a47c96faac32fd0259b0050fd91cc60bcf71c.tar.gz ppe42-gcc-e65a47c96faac32fd0259b0050fd91cc60bcf71c.zip | |
* gcc.dg/pr14092-1.c: Use intptr_t for the cast.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77649 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.dg/pr14092-1.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d49569a3833..9f34aae5386 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +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. diff --git a/gcc/testsuite/gcc.dg/pr14092-1.c b/gcc/testsuite/gcc.dg/pr14092-1.c index 86076c241e0..927ecf6aa3b 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; } |

