bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 10/19] obstack: use _Noreturn


From: Paul Eggert
Subject: [PATCH 10/19] obstack: use _Noreturn
Date: Sun, 10 Jul 2011 22:24:31 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10

* 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  <address@hidden>
 
+       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

[Prev in Thread] Current Thread [Next in Thread]