cygming-crtend.c (register_frame_ctor): Revert my last commit.
authorDanny Smith <dannysmith@users.sourceforge.net>
Mon, 28 Apr 2008 20:13:59 +0000 (20:13 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Mon, 28 Apr 2008 20:13:59 +0000 (20:13 +0000)
* config/i386/cygming-crtend.c (register_frame_ctor): Revert my
last commit.

From-SVN: r134761

gcc/ChangeLog
gcc/config/i386/cygming-crtend.c

index 83383da24c030b1115d073667a2c849a97f84d2d..2c575fd08e1d61d76b6009475968fd32e6e998ee 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
+       2008-04-25 commit.
+
 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/36073
index ed2d5dba6c27f9793238946c546c940d5f7e6c2f..59fc9109c7e828d762b161a6ac16244ee1b0a413 100644 (file)
@@ -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 ();
 }