* top/maint.mk: Adjust to new noreturn support.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Jul 2011 08:12:10 +0000 (01:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Jul 2011 08:12:10 +0000 (01:12 -0700)
(gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
(def_sym_regex): Do not remove ATTRIBUTE_NORETURN.

ChangeLog
top/maint.mk

index e555f5a..373c721 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * top/maint.mk: Adjust to new noreturn support.
+       (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
+       (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
+
        xalloc: use stdnoreturn.h
        * lib/xalloc.h: Include <stdnoreturn.h>.
        (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
index 725e52d..2da93bf 100644 (file)
@@ -746,7 +746,7 @@ gl_other_headers_ ?= \
 gl_extract_significant_defines_ = \
   /^\# *define ([^_ (][^ (]*)(\s*\(|\s+\w+)/\
     && $$2 !~ /(?:rpl_|_used_without_)/\
-    && $$1 !~ /^(?:NSIG|ATTRIBUTE_NORETURN)$$/\
+    && $$1 !~ /^(?:NSIG)$$/\
     and print $$1
 
 # Create a list of regular expressions matching the names
@@ -758,7 +758,6 @@ define def_sym_regex
            perl -lne '$(gl_extract_significant_defines_)' $$f;         \
          done;                                                         \
        ) | sort -u                                                     \
-         | grep -Ev '^ATTRIBUTE_NORETURN'                              \
          | sed 's/^/^ *# *(define|undef)  */;s/$$/\\>/'
 endef