libgcc2.c (__do_global_dtors): Protect __deregister_frame_info from multiple calls.

* libgcc2.c (__do_global_dtors): Protect __deregister_frame_info
	from multiple calls.

From-SVN: r29979
This commit is contained in:
Gavin Romig-Koch 1999-10-14 13:38:01 +00:00 committed by Gavin Romig-Koch
parent 69404d6fff
commit a4ebb0e69f
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1999-10-14 Gavin Romig-Koch <gavin@cygnus.com>
* libgcc2.c (__do_global_dtors): Protect __deregister_frame_info
from multiple calls.
Thu Oct 14 04:54:54 1999 Richard Henderson <rth@cygnus.com>
* i386.md (call value patterns): Move to the end of the file.

View File

@ -2867,7 +2867,14 @@ __do_global_dtors ()
}
#endif
#ifdef EH_FRAME_SECTION
__deregister_frame_info (__EH_FRAME_BEGIN__);
{
static int completed = 0;
if (! completed)
{
completed = 1;
__deregister_frame_info (__EH_FRAME_BEGIN__);
}
}
#endif
}
#endif