X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fc-stack.c;h=33a8251c75b2b8fef96e41e422f698ccae39204b;hb=ba7b7388f820b620ad4f92d263f7037dd7c89bfc;hp=e48b97c3b73f9865d3e6555253c7429aa1e1c695;hpb=3c4ad6125cf33faf3cc090b4232d35f3866b9799;p=gnulib.git diff --git a/lib/c-stack.c b/lib/c-stack.c index e48b97c3b..33a8251c7 100644 --- a/lib/c-stack.c +++ b/lib/c-stack.c @@ -1,6 +1,6 @@ /* Stack overflow handling. - Copyright (C) 2002, 2004, 2006, 2008-2011 Free Software Foundation, Inc. + Copyright (C) 2002, 2004, 2006, 2008-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -104,8 +104,7 @@ static char const * volatile stack_overflow_message; appears to have been a stack overflow, or with a core dump otherwise. This function is async-signal-safe. */ -static void die (int) __attribute__ ((noreturn)); -static void +static _Noreturn void die (int signo) { char const *message; @@ -182,9 +181,7 @@ static int segv_handler (void *address __attribute__ ((unused)), /* Handle a segmentation violation that is likely to be a stack overflow and exit. This function is async-signal-safe. */ -static void overflow_handler (int, stackoverflow_context_t) - __attribute__ ((noreturn)); -static void +static _Noreturn void overflow_handler (int emergency, stackoverflow_context_t context __attribute__ ((unused))) { @@ -228,8 +225,7 @@ c_stack_action (void (*action) (int)) /* Handle a segmentation violation and exit. This function is async-signal-safe. */ -static void segv_handler (int, siginfo_t *, void *) __attribute__((noreturn)); -static void +static _Noreturn void segv_handler (int signo, siginfo_t *info, void *context __attribute__ ((unused))) {