From: Danny Smith Date: Fri, 25 Apr 2008 04:59:15 +0000 (+0000) Subject: cygming-crtend.c (register_frame_ctor): Register __gcc_deregister_frame with atexit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e65e14760ce8bfe8db4f85a04c55df1b00df5f49;p=gcc.git cygming-crtend.c (register_frame_ctor): Register __gcc_deregister_frame with atexit. * config/i386/cygming-crtend.c (register_frame_ctor): Register __gcc_deregister_frame with atexit. (deregister_frame_dtor): Remove. From-SVN: r134656 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ca6f960b767..c634ab396d3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-04-25 Danny Smith + + * config/i386/cygming-crtend.c (register_frame_ctor): Register + __gcc_deregister_frame with atexit. + (deregister_frame_dtor): Remove. + 2008-04-24 Nathan Froyd Nathan Sidwell diff --git a/gcc/config/i386/cygming-crtend.c b/gcc/config/i386/cygming-crtend.c index 92e133099e4..ed2d5dba6c2 100644 --- a/gcc/config/i386/cygming-crtend.c +++ b/gcc/config/i386/cygming-crtend.c @@ -65,22 +65,15 @@ static void *__JCR_END__[1] = { 0 }; #endif - extern void __gcc_register_frame (void); extern void __gcc_deregister_frame (void); static void register_frame_ctor (void) __attribute__ ((constructor (0))); -static void deregister_frame_dtor (void) __attribute__ ((destructor (0))); - static void register_frame_ctor (void) { __gcc_register_frame (); + atexit (__gcc_deregister_frame); } -static void -deregister_frame_dtor (void) -{ - __gcc_deregister_frame (); -}