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]

Remove back_end_hook


Bootstrapped x86 Linux, no regressions.  OK to commit?

Neil.

	* 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.

============================================================
Index: gcc/c-common.c
*** c-common.c	2001/12/11 19:42:32	1.281
--- gcc/c-common.c	2001/12/16 11:36:40
*************** int (*lang_statement_code_p)           P
*** 218,227 ****
     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;
--- 218,223 ----
============================================================
Index: gcc/c-common.h
*** c-common.h	2001/12/14 03:01:52	1.107
--- gcc/c-common.h	2001/12/16 11:36:42
*************** extern tree finish_label_address_expr		P
*** 813,824 ****
     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
--- 813,818 ----
============================================================
Index: gcc/c-lang.c
*** c-lang.c	2001/12/04 22:55:37	1.72
--- gcc/c-lang.c	2001/12/16 11:36:43
*************** finish_file ()
*** 262,270 ****
        finish_cdtor (body);
      }
  
-   if (back_end_hook)
-     (*back_end_hook) (getdecls ());
-   
    {
      int flags;
      FILE *stream = dump_begin (TDI_all, &flags);
--- 262,267 ----
============================================================
Index: gcc/cp/decl2.c
*** decl2.c	2001/12/09 16:33:42	1.502
--- gcc/cp/decl2.c	2001/12/16 11:36:55
*************** finish_file ()
*** 3563,3573 ****
        }
    }
    
-   /* 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)
--- 3563,3568 ----


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