From patchwork Thu Jul 22 01:44:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Le-Chun Wu X-Patchwork-Id: 59540 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 9E2261007D1 for ; Thu, 22 Jul 2010 11:44:29 +1000 (EST) Received: (qmail 3703 invoked by alias); 22 Jul 2010 01:44:28 -0000 Received: (qmail 3694 invoked by uid 22791); 22 Jul 2010 01:44:27 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Jul 2010 01:44:23 +0000 Received: from hpaq6.eem.corp.google.com (hpaq6.eem.corp.google.com [172.25.149.6]) by smtp-out.google.com with ESMTP id o6M1iKNT011281 for ; Wed, 21 Jul 2010 18:44:20 -0700 Received: from gyg4 (gyg4.prod.google.com [10.243.50.132]) by hpaq6.eem.corp.google.com with ESMTP id o6M1iJ6D003109 for ; Wed, 21 Jul 2010 18:44:20 -0700 Received: by gyg4 with SMTP id 4so377029gyg.41 for ; Wed, 21 Jul 2010 18:44:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.171.35 with SMTP id y35mr1157057ano.250.1279763059101; Wed, 21 Jul 2010 18:44:19 -0700 (PDT) Received: by 10.100.142.15 with HTTP; Wed, 21 Jul 2010 18:44:19 -0700 (PDT) Date: Wed, 21 Jul 2010 18:44:19 -0700 Message-ID: Subject: [patch] Fix violation of self-assignment check in GCC source [4/4] From: Le-Chun Wu To: GCC Patches , rth@redhat.com, aoliva@redhat.com X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This patch fix the warning triggered by self-assignment check in config/i386/i386.c. (Note that the compiler does not emit bogus uninitialized warning on fcode any more so the self-init hack is no longer needed.) Bootstrapped and tested on x86_64-gnu-linux. OK for trunk? Thanks, Le-chun 2010-07-21 Le-Chun Wu * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove unnecessary self-init. Index: gcc/config/i386/i386.c =================================================================== --- gcc/config/i386/i386.c (revision 162385) +++ gcc/config/i386/i386.c (working copy) @@ -30013,7 +30013,7 @@ ix86_vectorize_builtin_vec_perm (tree ve tree itype = TREE_TYPE (vec_type); bool u = TYPE_UNSIGNED (itype); enum machine_mode vmode = TYPE_MODE (vec_type); - enum ix86_builtins fcode = fcode; /* Silence bogus warning. */ + enum ix86_builtins fcode; bool ok = TARGET_SSE2; switch (vmode)