This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch installed for unused variable warning in expr.c


This patch fixes this warning:
 > expr.c:3843: warning: unused variable `old_expr'

Bootstrapped on sparc-sun-solaris2.7 and installed as obvious.


2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* expr.c (expand_assignment): Delete unused variable.
	
diff -rup orig/egcc-CVS20020730/gcc/expr.c egcc-CVS20020730/gcc/expr.c
--- orig/egcc-CVS20020730/gcc/expr.c	2002-07-29 16:00:11.000000000 -0400
+++ egcc-CVS20020730/gcc/expr.c	2002-07-31 14:13:14.258333367 -0400
@@ -3840,8 +3840,6 @@ expand_assignment (to, from, want_value,
 
       if (GET_CODE (to_rtx) == MEM)
 	{
-	  tree old_expr = MEM_EXPR (to_rtx);
-
 	  /* If the field is at offset zero, we could have been given the
 	     DECL_RTX of the parent struct.  Don't munge it.  */
 	  to_rtx = shallow_copy_rtx (to_rtx);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]