From f895670da2fd403aed20dcbe156eaa6e75171fbb Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 15 Nov 2004 22:00:25 +0000 Subject: Update. 2004-11-15 Jakub Jelinek * posix/bug-regex24.c: Include string.h. * nis/nis_clone_obj.c (nis_clone_object): Rename out3 label to out2 and out2 to out. Remove out label. Formatting. 2004-11-15 Ulrich Drepper * include/stdio.h: Do not mark __libc_message as noreturn. * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Add loop to fool gcc. Include . * sysdeps/posix/libc_fatal.c (__libc_fatal): Add loop to fool gcc. (__libc_message): Fix typo. --- sysdeps/posix/libc_fatal.c | 10 ++++++---- sysdeps/unix/sysv/linux/libc_fatal.c | 9 ++++----- 2 files changed, 10 insertions(+), 9 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/posix/libc_fatal.c b/sysdeps/posix/libc_fatal.c index fac8cbd051..a5c5a2d1f7 100644 --- a/sysdeps/posix/libc_fatal.c +++ b/sysdeps/posix/libc_fatal.c @@ -131,9 +131,9 @@ __libc_message (int do_abort, const char *fmt, ...) va_end (ap_copy); - if (do_abort() - /* Kill the application. */ - abort (); + if (do_abort) + /* Kill the application. */ + abort (); } @@ -141,6 +141,8 @@ void __libc_fatal (message) const char *message; { - __libc_message (1, "%s", message); + /* The loop is added only to keep gcc happy. */ + while (1) + __libc_message (1, "%s", message); } libc_hidden_def (__libc_fatal) diff --git a/sysdeps/unix/sysv/linux/libc_fatal.c b/sysdeps/unix/sysv/linux/libc_fatal.c index c0482d96f3..a79cfbabb9 100644 --- a/sysdeps/unix/sysv/linux/libc_fatal.c +++ b/sysdeps/unix/sysv/linux/libc_fatal.c @@ -20,16 +20,13 @@ #include #include #include +#include #include #include #include #include #include #include -#ifndef ABORT_INSTRUCTION -/* No such instruction is available. */ -# define ABORT_INSTRUCTION -#endif /* Abort with an error message. */ #include @@ -153,6 +150,8 @@ void __libc_fatal (message) const char *message; { - __libc_message (1, "%s", message); + /* The loop is added only to keep gcc happy. */ + while (1) + __libc_message (1, "%s", message); } libc_hidden_def (__libc_fatal) -- cgit v1.2.3