obstack: use _Noreturn
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Jul 2011 08:06:42 +0000 (01:06 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Jul 2011 08:06:42 +0000 (01:06 -0700)
* lib/obstack.c (__attribute__): Remove macro.
(print_and_abort): Use _Noreturn.

ChangeLog
lib/obstack.c

index ae4504d..a8a00ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
 
+       obstack: use _Noreturn
+       * lib/obstack.c (__attribute__): Remove macro.
+       (print_and_abort): Use _Noreturn.
+
        c-stack: use _Noreturn
        * lib/c-stack.c (die, overflow_handler, segv_handler):
        Use _Noreturn rather than __attribute__((noreturn)).
index f31a2e9..a73d6ed 100644 (file)
@@ -401,15 +401,7 @@ _obstack_memory_used (struct obstack *h)
 #  include <libio/iolibio.h>
 # endif
 
-# ifndef __attribute__
-/* This feature is available in gcc versions 2.5 and later.  */
-#  if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
-#   define __attribute__(Spec) /* empty */
-#  endif
-# endif
-
-static void
-__attribute__ ((noreturn))
+static _Noreturn void
 print_and_abort (void)
 {
   /* Don't change any of these strings.  Yes, it would be possible to add