This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

patch to pure_virtual to call terminate


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
--------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]