diff options
author | abel <abel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-16 14:11:39 +0000 |
---|---|---|
committer | abel <abel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-16 14:11:39 +0000 |
commit | 0096173cad34589c8575b2d6850bbfb496a68bde (patch) | |
tree | 1ca6294ebc41280ed593ff48de1d94daacdaf069 | |
parent | 02311745e3321e776d46cd9cd70099fda55859b8 (diff) | |
download | gcc-0096173cad34589c8575b2d6850bbfb496a68bde.tar.gz |
PR rtl-optimization/46366
* gcc.target/i386/pr45352-2.c: Silence warnings by using appropriate
casts.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166798 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr45352-2.c | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3ef9ee0d0ae..1684d0ff7c8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-11-16 Andrey Belevantsev <abel@ispras.ru> + + PR rtl-optimization/46366 + * gcc.target/i386/pr45352-2.c: Silence warnings by using appropriate + casts. + 2010-11-16 Richard Guenther <rguenther@suse.de> * gcc.dg/tree-ssa/ssa-fre-30.c: New testcase. diff --git a/gcc/testsuite/gcc.target/i386/pr45352-2.c b/gcc/testsuite/gcc.target/i386/pr45352-2.c index 58713af869f..5f9ebb18fc8 100644 --- a/gcc/testsuite/gcc.target/i386/pr45352-2.c +++ b/gcc/testsuite/gcc.target/i386/pr45352-2.c @@ -40,9 +40,10 @@ typedef struct { int xvmc_last_slice_code;} mpeg2dec_accel_t; -static bitstream_init (picture_t * picture, void *start) +static int bitstream_init (picture_t * picture, void *start) { picture->bitstream_ptr = start; + return (int) (long) start; } static slice_xvmc_init (picture_t * picture, int code) { @@ -55,7 +56,7 @@ static slice_xvmc_init (picture_t * picture, int code) picture->f_motion.ref [0] [0] - = forward_reference_frame->base + (offset ? picture->pitches[0] : 0); + = (char) (long) (forward_reference_frame->base + (offset ? picture->pitches[0] : 0)); picture->f_motion.ref[0][1] = (offset); if (picture->picture_structure) picture->pitches[0] <<= picture->pitches[1] <<= 1; @@ -90,7 +91,7 @@ void mpeg2_xvmc_slice (mpeg2dec_accel_t * accel, picture_t * picture, int code, uint8_t buffer,int mba_inc) { - xine_xvmc_t * xvmc = bitstream_init (picture, buffer); + xine_xvmc_t * xvmc = (xine_xvmc_t *) (long) bitstream_init (picture, (void *) (long) buffer); slice_xvmc_init (picture, code); while (1) { |