aboutsummaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-10-09 14:13:04 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-10-09 14:13:04 -0700
commit1854631bcc8758c13219795b47fe33486251854b (patch)
treec3078bc02ac7c50eebb8e55d44bcd33d58b3ae1b /gcc/libgcc2.c
parent8dc54971c324e4f4d5d85e1ecfe84af468740d61 (diff)
downloadgcc-1854631bcc8758c13219795b47fe33486251854b.zip
gcc-1854631bcc8758c13219795b47fe33486251854b.tar.gz
gcc-1854631bcc8758c13219795b47fe33486251854b.tar.bz2
Makefile.in (LANG_LIB2FUNCS): Remove.
* Makefile.in (LANG_LIB2FUNCS): Remove. (LIB2FUNCS): Remove _pure. (LIB2ADD): Remove LANG_LIB2FUNCS. (stage_a): Don't set LANG_LIB2FUNCS. * libgcc2.c (__terminate): Mark noreturn. (__pure_virtual): Remove. * mklibgcc.in: Remove LIB2ADD .txt processing. From-SVN: r36817
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r--gcc/libgcc2.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 20e7778..7e8eaf7 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -2990,7 +2990,7 @@ __default_terminate (void)
void (*__terminate_func)(void) __attribute__ ((__noreturn__)) =
__default_terminate;
-void
+void __attribute__((__noreturn__))
__terminate (void)
{
(*__terminate_func)();
@@ -4181,28 +4181,3 @@ __throw ()
#endif /* IA64_UNWIND_INFO */
#endif /* L_eh */
-
-#ifdef L_pure
-#ifndef inhibit_libc
-/* This gets us __GNU_LIBRARY__. */
-#undef NULL /* Avoid errors if stdio.h and our stddef.h mismatch. */
-#include <stdio.h>
-
-#ifdef __GNU_LIBRARY__
- /* Avoid forcing the library's meaning of `write' on the user program
- by using the "internal" name (for use within the library) */
-#define write(fd, buf, n) __write((fd), (buf), (n))
-#endif
-#endif /* inhibit_libc */
-
-#define MESSAGE "pure virtual method called\n"
-
-void
-__pure_virtual (void)
-{
-#ifndef inhibit_libc
- write (2, MESSAGE, sizeof (MESSAGE) - 1);
-#endif
- __terminate ();
-}
-#endif