* config/i386/cygming-crtend.c (register_frame_ctor): Register
__gcc_deregister_frame with atexit.
(deregister_frame_dtor): Remove.
From-SVN: r134656
+2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * config/i386/cygming-crtend.c (register_frame_ctor): Register
+ __gcc_deregister_frame with atexit.
+ (deregister_frame_dtor): Remove.
+
2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
= { 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 ();
-}