Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(37)

Issue 5013044: [4.6] Fix set-but-not-used warning [committed] (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by Diego Novillo
Modified:
13 years, 7 months ago
Reviewers:
CC:
gcc-patches_gcc.gnu.org
Base URL:
svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch/gcc/
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M tree-vect-stmts.c View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 1
Diego Novillo
13 years, 7 months ago (2011-09-15 01:48:15 UTC) #1
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.

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))

--
This patch is available for review at http://codereview.appspot.com/5013044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b