From: Danny Smith Date: Mon, 28 Apr 2008 20:13:59 +0000 (+0000) Subject: cygming-crtend.c (register_frame_ctor): Revert my last commit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d6b68fccba3828011c63478f4f1a758145a94b19;p=gcc.git cygming-crtend.c (register_frame_ctor): Revert my last commit. * config/i386/cygming-crtend.c (register_frame_ctor): Revert my last commit. From-SVN: r134761 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 83383da24c0..2c575fd08e1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-04-28 Danny Smith + + * config/i386/cygming-crtend.c (register_frame_ctor): Revert my + 2008-04-25 commit. + 2008-04-28 Uros Bizjak PR target/36073 diff --git a/gcc/config/i386/cygming-crtend.c b/gcc/config/i386/cygming-crtend.c index ed2d5dba6c2..59fc9109c7e 100644 --- a/gcc/config/i386/cygming-crtend.c +++ b/gcc/config/i386/cygming-crtend.c @@ -74,6 +74,13 @@ static void register_frame_ctor (void) { __gcc_register_frame (); - atexit (__gcc_deregister_frame); +} + +static void deregister_frame_ctor (void) __attribute__ ((destructor (0))); + +static void +deregister_frame_ctor (void) +{ + __gcc_deregister_frame (); }