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]

c: Remove dead code.


Committed as obvious.  Joseph, Jakub didn't respond to your e-mail
about the c-typeck.c bit, but if he decides he wants it, it's only a
couple of lines and will be easy to recover.

Neil.

	* c-decl.c (pushdecl): Remove file and line.
	* c-typeck.c (pop_init_level): Remove size.

Index: c-decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-decl.c,v
retrieving revision 1.262
diff -u -p -r1.262 c-decl.c
--- c-decl.c	2001/11/05 23:21:35	1.262
+++ c-decl.c	2001/11/07 22:48:00
@@ -2093,8 +2093,6 @@ pushdecl (x)
 
   if (name)
     {
-      const char *file;
-      int line;
       int different_binding_level = 0;
 
       if (warn_nested_externs
@@ -2124,12 +2122,6 @@ pushdecl (x)
 	{
 	  t = 0;
 	  error_with_decl (x, "`%s' used prior to declaration");
-	}
-
-      if (t != 0)
-	{
-	  file = DECL_SOURCE_FILE (t);
-	  line = DECL_SOURCE_LINE (t);
 	}
 
       /* If this decl is `static' and an implicit decl was seen previously,
Index: c-typeck.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-typeck.c,v
retrieving revision 1.151
diff -u -p -r1.151 c-typeck.c
--- c-typeck.c	2001/11/06 12:39:27	1.151
+++ c-typeck.c	2001/11/07 22:48:15
@@ -5463,7 +5463,6 @@ pop_init_level (implicit)
      int implicit;
 {
   struct constructor_stack *p;
-  HOST_WIDE_INT size = 0;
   tree constructor = 0;
 
   if (implicit == 0)
@@ -5478,9 +5477,6 @@ pop_init_level (implicit)
     }
 
   p = constructor_stack;
-
-  if (constructor_type != 0)
-    size = int_size_in_bytes (constructor_type);
 
   /* Error for initializing a flexible array member, or a zero-length
      array member in an inappropriate context.  */


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