[patch] Remove c_expand_deferred_function().

Kazu Hirata kazu@cs.umass.edu
Fri Feb 20 20:03:00 GMT 2004


Hi,

Attached is a patch to remove c_expand_deferred_function() as it is
unused.

Alexandre Oliva introduced the function in

  http://gcc.gnu.org/ml/gcc-cvs/2001-11/msg00250.html

Later its use moved into c-objc-common.c, but Jan Hubicka removed it
in

  http://gcc.gnu.org/ml/gcc-cvs/2003-09/msg00055.html

Bootstrapped on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>

	* c-decl.c (c_expand_deferred_function): Remove.
	* c-tree.h: Remove the corresponding prototype.

Index: c-decl.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/c-decl.c,v
retrieving revision 1.479
diff -u -r1.479 c-decl.c
--- c-decl.c	17 Feb 2004 21:33:31 -0000	1.479
+++ c-decl.c	19 Feb 2004 17:11:24 -0000
@@ -6080,26 +6080,6 @@
   current_function_decl = NULL;
 }
 
-/* Generate the RTL for a deferred function FNDECL.  */
-
-void
-c_expand_deferred_function (tree fndecl)
-{
-  /* DECL_INLINE or DECL_RESULT might got cleared after the inline
-     function was deferred, e.g. in duplicate_decls.  */
-  if (DECL_INLINE (fndecl) && DECL_RESULT (fndecl))
-    {
-      if (flag_inline_trees)
-	{
-	  timevar_push (TV_INTEGRATION);
-	  optimize_inline_calls (fndecl);
-	  timevar_pop (TV_INTEGRATION);
-	}
-      c_expand_body (fndecl);
-      current_function_decl = NULL;
-    }
-}
-
 /* Generate the RTL for the body of FNDECL.  If NESTED_P is nonzero,
    then we are already in the process of generating RTL for another
    function.  */
Index: c-tree.h
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/c-tree.h,v
retrieving revision 1.139
diff -u -r1.139 c-tree.h
--- c-tree.h	12 Feb 2004 19:14:05 -0000	1.139
+++ c-tree.h	19 Feb 2004 17:11:24 -0000
@@ -227,7 +227,6 @@
 extern void store_parm_decls (void);
 extern tree xref_tag (enum tree_code, tree);
 extern tree c_begin_compound_stmt (void);
-extern void c_expand_deferred_function (tree);
 extern void c_expand_decl_stmt (tree);
 extern void c_static_assembler_name (tree);
 extern tree make_pointer_declarator (tree, tree);



More information about the Gcc-patches mailing list