From patchwork Thu Sep 15 01:48:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diego Novillo X-Patchwork-Id: 114725 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 20676B70C7 for ; Thu, 15 Sep 2011 11:48:38 +1000 (EST) Received: (qmail 26402 invoked by alias); 15 Sep 2011 01:48:34 -0000 Received: (qmail 26378 invoked by uid 22791); 15 Sep 2011 01:48:30 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RP_MATCHES_RCVD, SPF_HELO_PASS, TW_TM X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Sep 2011 01:48:15 +0000 Received: from hpaq11.eem.corp.google.com (hpaq11.eem.corp.google.com [172.25.149.11]) by smtp-out.google.com with ESMTP id p8F1mEZq003537; Wed, 14 Sep 2011 18:48:14 -0700 Received: from tobiano.tor.corp.google.com (tobiano.tor.corp.google.com [172.29.41.6]) by hpaq11.eem.corp.google.com with ESMTP id p8F1mCYm017141; Wed, 14 Sep 2011 18:48:13 -0700 Received: by tobiano.tor.corp.google.com (Postfix, from userid 54752) id 558B1AE176; Wed, 14 Sep 2011 21:48:12 -0400 (EDT) To: reply@codereview.appspotmail.com, gcc-patches@gcc.gnu.org Subject: [4.6] Fix set-but-not-used warning [committed] (issue5013044) Message-Id: <20110915014812.558B1AE176@tobiano.tor.corp.google.com> Date: Wed, 14 Sep 2011 21:48:12 -0400 (EDT) From: dnovillo@google.com (Diego Novillo) 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 The GCC version we use internally to build 4.6 treats unused variable warnings as errors. This was causing bootstraps to fail. Tested on x86_64. Committed to gcc-4_6-branch. * tree-vect-stmts.c (vect_transform_stmt): Remove unused local variable ORIG_SCALAR_STMT. --- This patch is available for review at http://codereview.appspot.com/5013044 Index: tree-vect-stmts.c =================================================================== --- tree-vect-stmts.c (revision 178875) +++ tree-vect-stmts.c (working copy) @@ -4814,7 +4814,7 @@ vect_transform_stmt (gimple stmt, gimple bool is_store = false; gimple vec_stmt = NULL; stmt_vec_info stmt_info = vinfo_for_stmt (stmt); - gimple orig_stmt_in_pattern, orig_scalar_stmt = stmt; + gimple orig_stmt_in_pattern; bool done; switch (STMT_VINFO_TYPE (stmt_info))