This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C++ tidying PATCH to *_cleanup_fn
- From: Jason Merrill <jason at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 12 Dec 2001 19:09:27 +0000
- Subject: 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 ----