* crtstuff.c (do_global_dtors_aux): Handle multiple calls better.
From-SVN: r16698
This commit is contained in:
parent
bb727b5ae3
commit
5041a61cfc
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Nov 25 10:00:42 1997 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* crtstuff.c (do_global_dtors_aux): Handle multiple calls better.
|
||||
|
||||
Tue Nov 25 01:26:55 1997 Bruno Haible <haible@ilog.fr>:
|
||||
|
||||
* dwarf2out.c (ASM_OUTPUT_DWARF_DELTA1): Implement.
|
||||
|
|
|
@ -128,6 +128,11 @@ static void
|
|||
__do_global_dtors_aux ()
|
||||
{
|
||||
static func_ptr *p = __DTOR_LIST__ + 1;
|
||||
static int completed = 0;
|
||||
|
||||
if (completed)
|
||||
return;
|
||||
|
||||
while (*p)
|
||||
{
|
||||
p++;
|
||||
|
@ -137,8 +142,10 @@ __do_global_dtors_aux ()
|
|||
#ifdef EH_FRAME_SECTION_ASM_OP
|
||||
__deregister_frame (__EH_FRAME_BEGIN__);
|
||||
#endif
|
||||
completed = 1;
|
||||
}
|
||||
|
||||
|
||||
/* Stick a call to __do_global_dtors_aux into the .fini section. */
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Reference in a new issue