public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrey Belevantsev <abel@ispras.ru>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>,
	 "Vladimir N. Makarov" <vmakarov@redhat.com>
Subject: Re: [PATCH] Fix PR45352
Date: Wed, 17 Nov 2010 12:52:00 -0000	[thread overview]
Message-ID: <4CE3C31A.1080101@ispras.ru> (raw)
In-Reply-To: <AANLkTi=dvki7w=SB81wMT9F2j82j8bHr-Sy9SYHdTu3-@mail.gmail.com>

Hello,

On 08.11.2010 17:26, H.J. Lu wrote:
>
> This caused:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46366
I've committed the following (r166798) as obvious to fix the test case. 
I've made sure that the test still fails without the patch for PR45352.
Sorry for not noticing the warnings earlier.

Andrey

Index: gcc/testsuite/gcc.target/i386/pr45352-2.c
===================================================================
*** gcc/testsuite/gcc.target/i386/pr45352-2.c   (revision 166797)
--- gcc/testsuite/gcc.target/i386/pr45352-2.c   (revision 166798)
*************** typedef struct
*** 40,48 ****
   {
   int xvmc_last_slice_code;}
   mpeg2dec_accel_t;
! static bitstream_init (picture_t * picture, void *start)
   {
     picture->bitstream_ptr = start;
   }
   static slice_xvmc_init (picture_t * picture, int code)
   {
--- 40,49 ----
   {
   int xvmc_last_slice_code;}
   mpeg2dec_accel_t;
! 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)
   {
*************** static slice_xvmc_init (picture_t * pict
*** 55,61 ****
       picture->f_motion.ref
         [0]
         [0]
!       = 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;
--- 56,62 ----
       picture->f_motion.ref
         [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;
*************** void
*** 90,96 ****
   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);
     slice_xvmc_init (picture, code);
       while (1)
         {
--- 91,97 ----
   mpeg2_xvmc_slice
     (mpeg2dec_accel_t * accel, picture_t * picture, int code, uint8_t 
buffer,int mba_inc)
   {
!   xine_xvmc_t * xvmc = (xine_xvmc_t *) (long) bitstream_init (picture, 
(void *) (long) buffer);
     slice_xvmc_init (picture, code);
       while (1)
         {
Index: gcc/testsuite/ChangeLog
===================================================================
*** gcc/testsuite/ChangeLog     (revision 166797)
--- gcc/testsuite/ChangeLog     (revision 166798)
***************
*** 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.


  reply	other threads:[~2010-11-17 11:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-22  8:52 Andrey Belevantsev
2010-11-03 12:18 ` Andrey Belevantsev
2010-11-05 20:31   ` Vladimir Makarov
2010-12-21 17:01     ` [PATCH] Fix PR 46521 and 46522 (remnants of PR45352) Andrey Belevantsev
2010-12-21 18:52       ` Vladimir Makarov
2010-12-24 16:54         ` Andrey Belevantsev
2011-01-12  9:11           ` Andrey Belevantsev
2011-01-13  1:37             ` Vladimir Makarov
2010-11-08 14:28   ` [PATCH] Fix PR45352 H.J. Lu
2010-11-17 12:52     ` Andrey Belevantsev [this message]
2010-11-18 14:36     ` H.J. Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CE3C31A.1080101@ispras.ru \
    --to=abel@ispras.ru \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hjl.tools@gmail.com \
    --cc=vmakarov@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).