From patchwork Thu Jul 22 01:28:44 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: 59537 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 47281B6F07 for ; Thu, 22 Jul 2010 11:28:54 +1000 (EST) Received: (qmail 31910 invoked by alias); 22 Jul 2010 01:28:53 -0000 Received: (qmail 31901 invoked by uid 22791); 22 Jul 2010 01:28:52 -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:28:48 +0000 Received: from wpaz21.hot.corp.google.com (wpaz21.hot.corp.google.com [172.24.198.85]) by smtp-out.google.com with ESMTP id o6M1SjSo016034 for ; Wed, 21 Jul 2010 18:28:46 -0700 Received: from yxs7 (yxs7.prod.google.com [10.190.5.135]) by wpaz21.hot.corp.google.com with ESMTP id o6M1SHiR011464 for ; Wed, 21 Jul 2010 18:28:44 -0700 Received: by yxs7 with SMTP id 7so2680211yxs.0 for ; Wed, 21 Jul 2010 18:28:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.75.5 with SMTP id c5mr1197617anl.190.1279762124412; Wed, 21 Jul 2010 18:28:44 -0700 (PDT) Received: by 10.100.142.15 with HTTP; Wed, 21 Jul 2010 18:28:44 -0700 (PDT) Date: Wed, 21 Jul 2010 18:28:44 -0700 Message-ID: Subject: [patch] Fix violation of self-assignment check in GCC source [1/4] From: Le-Chun Wu To: sebastian.pop@inria.fr, GCC Patches 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 gcc/omega.c. (I only commented it out instead of removing it just in case if the self-assignment has some meaning in the omega test.) Bootstrapped and tested on x86_64-gnu-linux. OK for trunk? Thanks, Le-chun 2010-07-21 Le-Chun Wu * omega.c (omega_eliminate_redundant): Remove a self-assign statement. Index: gcc/omega.c =================================================================== --- gcc/omega.c (revision 162385) +++ gcc/omega.c (working copy) @@ -2213,7 +2213,9 @@ omega_eliminate_redundant (omega_pb pb, || pb->geqs[e3].color == omega_red) goto nextE3; - alpha3 = alpha3; + /* Comment out dubiout self-assignment. */ + /* alpha3 = alpha3; */ + /* verify alpha1*v1+alpha2*v2 = alpha3*v3 */ for (k = pb->num_vars; k >= 1; k--) if (alpha3 * pb->geqs[e3].coef[k]