diff options
| author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-09 21:13:04 +0000 |
|---|---|---|
| committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-09 21:13:04 +0000 |
| commit | 89bf85ce183f87843f02c112b1789f5821cabdf4 (patch) | |
| tree | c3078bc02ac7c50eebb8e55d44bcd33d58b3ae1b /gcc/libgcc2.c | |
| parent | 6f911ef7b633f993da47f60ef36720699c2e7e51 (diff) | |
| download | ppe42-gcc-89bf85ce183f87843f02c112b1789f5821cabdf4.tar.gz ppe42-gcc-89bf85ce183f87843f02c112b1789f5821cabdf4.zip | |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36817 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/libgcc2.c')
| -rw-r--r-- | gcc/libgcc2.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index 20e7778f700..7e8eaf7b11b 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 |

