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]

C++ tidying PATCH to *_cleanup_fn


We also build up a compound_stmt inside the function; we don't need both.

Tested i686-pc-linux-gnu.

2001-12-12  Jason Merrill  <jason@redhat.com>

	* decl.c (start_cleanup_fn): Remove redundant pushlevel.
	(end_cleanup_fn): And poplevel.

*** decl.c.~1~	Wed Dec 12 17:03:01 2001
--- decl.c	Wed Dec 12 16:32:58 2001
*************** start_cleanup_fn ()
*** 8418,8424 ****
  
    pushdecl (fndecl);
    start_function (/*specs=*/NULL_TREE, fndecl, NULL_TREE, SF_PRE_PARSED);
-   do_pushlevel ();
  
    interface_unknown = old_interface_unknown;
  
--- 8418,8423 ----
*************** start_cleanup_fn ()
*** 8432,8439 ****
  static void
  end_cleanup_fn ()
  {
-   do_poplevel ();
- 
    expand_body (finish_function (0));
  
    pop_from_top_level ();
--- 8431,8436 ----

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