c-common.c, c-common.h (back_end_hook): Remove.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Sun, 16 Dec 2001 20:42:54 +0000 (20:42 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 16 Dec 2001 20:42:54 +0000 (20:42 +0000)
* c-common.c, c-common.h (back_end_hook): Remove.
* c-lang.c (finish_file): Remove back_end_hook.
cp:
* decl2.c (finish_file): Remove back_end_hook.

From-SVN: r48079

gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-lang.c
gcc/cp/ChangeLog
gcc/cp/decl2.c

index 783fd59109c7a02b13ddc60f5310997cdacb42c8..59d6ab6b569207e25c93948abb7870bb60358cbe 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-16  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * c-common.c, c-common.h (back_end_hook): Remove.
+       * c-lang.c (finish_file): Remove back_end_hook.
+
 Sun Dec 16 13:13:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * expr.c (highest_pow2_factor, case INTEGER_CST): Fix error in
index 96f8462e3f24b57288bacfed58d1589c78ea56a2..1a85f44ea57dcbebc533ce0216aa3d0fa34726bd 100644 (file)
@@ -218,10 +218,6 @@ int (*lang_statement_code_p)           PARAMS ((enum tree_code));
    any action required right before expand_function_end is called.  */
 void (*lang_expand_function_end)       PARAMS ((void));
 
-/* If this variable is defined to a non-NULL value, it will be called
-   after the file has been completely parsed.  */
-void (*back_end_hook) PARAMS ((tree));
-
 /* Nonzero means the expression being parsed will never be evaluated.
    This is a count, since unevaluated expressions can nest.  */
 int skip_evaluation;
index f6e62908ce14ba14a51702f39427b8df13e4a29b..514c448ecb288ea7e4fe5d53fcad2e642eecf978 100644 (file)
@@ -813,12 +813,6 @@ extern tree finish_label_address_expr              PARAMS ((tree));
    different implementations.  Used in c-common.c.  */
 extern tree lookup_label                       PARAMS ((tree));
 
-/* If this variable is defined to a non-NULL value, it will be called
-   after the file has been completely parsed.  The argument will be
-   the GLOBAL_NAMESPACE in C++, or the list of top-level declarations
-   in C.  */
-extern void (*back_end_hook) PARAMS ((tree));
-
 /* enum expand_modified is in expr.h, as is the macro below.  */
 
 #ifdef QUEUED_VAR
index c2056c5b46418b90dd72ba26a825570e70ff5845..6e4c158dcb4fa3135495ceb550d11ae54095a8b2 100644 (file)
@@ -262,9 +262,6 @@ finish_file ()
       finish_cdtor (body);
     }
 
-  if (back_end_hook)
-    (*back_end_hook) (getdecls ());
-  
   {
     int flags;
     FILE *stream = dump_begin (TDI_all, &flags);
index b9488e747cf8a6cc0ee1437c4bee8329d577b0e5..d22f1620a30717628c98592dc51e2d4cb8921c32 100644 (file)
@@ -1,3 +1,7 @@
+2001-12-16  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * decl2.c (finish_file): Remove back_end_hook.
+
 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * ChangeLog.1, ChangeLog.2, ChangeLog, NEWS, call.c, class.c,
index 10120450f2ed6978e10e3f92e6bbc09a209bf584..0383593c73684a8f46d40a131c9087b46f6639da 100644 (file)
@@ -3563,11 +3563,6 @@ finish_file ()
       }
   }
   
-  /* If there's some tool that wants to examine the entire translation
-     unit, let it do so now.  */
-  if (back_end_hook)
-    (*back_end_hook) (global_namespace);
-
   timevar_pop (TV_VARCONST);
 
   if (flag_detailed_statistics)