static eh_context structure.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23175
138bc75d-0d04-0410-961f-
82ee72b054a4
+Mon Oct 19 11:40:56 1998 Jeffrey A Law (law@cygnus.com)
+
+ * libgcc2.c (eh_context_static): Do not call malloc to allocate the
+ static eh_context structure.
+
Mon Oct 19 10:45:40 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
* combine.c (recog_for_combine): Lose PADDED_SCRATCHES arg. All
static struct eh_context *
eh_context_static ()
{
- static struct eh_context *eh;
- if (! eh)
- eh = new_eh_context ();
- return eh;
+ static struct eh_context eh;
+ static int initialized;
+ if (! initialized)
+ {
+ initialized = 1;
+ memset (&eh, 0, sizeof eh);
+ eh.dynamic_handler_chain = top_elt;
+ }
+ return &eh;
}
#if __GTHREADS