This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
patch to pure_virtual to call terminate
- To: egcs-patches at cygnus dot com
- Subject: patch to pure_virtual to call terminate
- From: mrs at wrs dot com (Mike Stump)
- Date: Mon, 19 Oct 1998 18:49:50 -0700
Mon Oct 19 18:32:33 1998 Mike Stump <mrs@wrs.com>
* libgcc2.c (__pure_virtual): Call terminate instead of _exit.
Doing diffs in libgcc2.c.~1~:
*** libgcc2.c.~1~ Mon Oct 19 17:57:45 1998
--- libgcc2.c Mon Oct 19 18:32:17 1998
*************** __pure_virtual ()
*** 3811,3816 ****
#ifndef inhibit_libc
write (2, MESSAGE, sizeof (MESSAGE) - 1);
#endif
! _exit (-1);
}
#endif
--- 3811,3816 ----
#ifndef inhibit_libc
write (2, MESSAGE, sizeof (MESSAGE) - 1);
#endif
! __terminate ();
}
#endif
--------------