Commit c3cad221 by Jeffrey A Law Committed by Jeff Law

libgcc2.c (eh_context_static): Do not call malloc to allocate the static eh_context structure.

        * libgcc2.c (eh_context_static): Do not call malloc to allocate the
        static eh_context structure.

From-SVN: r23175
parent b1fc873c
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
......
......@@ -3178,10 +3178,15 @@ eh_context_initialize ()
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment