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]

C++ PATCH to register cleanup functions



The little helper functions we generate to deal with cleanups for
static objects weren't being pushdecl'd with the result that they
couldn't be found by a simple tree-walk over the IR.  Here's the fix.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

2000-01-12  Mark Mitchell  <mark@codesourcery.com>

	* decl.c (start_cleanup_fn): Call pushdecl.

Index: decl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/decl.c,v
retrieving revision 1.530
diff -c -p -r1.530 decl.c
*** decl.c	2000/01/12 23:27:43	1.530
--- decl.c	2000/01/13 02:03:28
*************** start_cleanup_fn ()
*** 8026,8031 ****
--- 8026,8032 ----
        DECL_ARGUMENTS (fndecl) = parmdecl;
      }
  
+   pushdecl (fndecl);
    start_function (/*specs=*/NULL_TREE, fndecl, NULL_TREE, SF_PRE_PARSED);
    do_pushlevel ();
  

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