[Bug rtl-optimization/46366] gcc.target/i386/pr45352-2.c failed

abel at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 8 17:05:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46366

--- Comment #1 from Andrey Belevantsev <abel at gcc dot gnu.org> 2010-11-08 17:05:38 UTC ---
Sorry, I have checked that the test doesn't ICE but missed the additional
warnings.  How about the below patch, do you think it makes sense?  I have
verified that the test still ICEs without the PR45352 patch.

Index: gcc/testsuite/gcc.target/i386/pr45352-2.c
===================================================================
--- gcc/testsuite/gcc.target/i386/pr45352-2.c   (revision 166441)
+++ gcc/testsuite/gcc.target/i386/pr45352-2.c   (working copy)
@@ -55,7 +55,7 @@
     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 +90,7 @@
 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)
       {



More information about the Gcc-bugs mailing list