[PATCH] remove more dead code in C front-end

Andrew Pinski pinskia@physics.uc.edu
Fri May 28 17:33:00 GMT 2004


Now that DECL_INITIAL are lowered for local variables, there is no
reason why emit_local_var should be checking if there is DECL_INITIAL
on the decl.
This patch removes that code.

OK? Bootstrapped on powerpc-apple-darwin with no regressions.


Thanks,
Andrew Pinski

ChangeLog:
	* c-semantics.c (emit_local_var): Remove code for DECL_INITIAL.

Patch:
Index: c-semantics.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-semantics.c,v
retrieving revision 1.79
diff -u -p -r1.79 c-semantics.c
--- c-semantics.c	13 May 2004 06:39:29 -0000	1.79
+++ c-semantics.c	28 May 2004 14:58:50 -0000
@@ -246,18 +246,6 @@ emit_local_var (tree decl)
        else
  	expand_decl (decl);
      }
-
-  if (DECL_INITIAL (decl))
-    {
-      /* Actually do the initialization.  */
-      if (stmts_are_full_exprs_p ())
-	expand_start_target_temps ();
-
-      expand_decl_init (decl);
-
-      if (stmts_are_full_exprs_p ())
-	expand_end_target_temps ();
-    }
  }

  /* Build the node for a return statement and return it.  */



More information about the Gcc-patches mailing list