* lib/obstack.c (__attribute__): Remove macro.
(print_and_abort): Use _Noreturn.
---
 ChangeLog     |    4 ++++
 lib/obstack.c |   10 +---------
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 83677cd..1c91c98 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-07-10  Paul Eggert  <egg...@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)).
diff --git a/lib/obstack.c b/lib/obstack.c
index f31a2e9..a73d6ed 100644
--- a/lib/obstack.c
+++ b/lib/obstack.c
@@ -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
-- 
1.7.4.4

Reply via email to