changeset 15409:21013258dc33

* top/maint.mk: Adjust to new noreturn support. (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN. (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 12 Jul 2011 01:12:10 -0700
parents e2e50853cc09
children 36ed604c0f60
files ChangeLog top/maint.mk
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -746,7 +746,7 @@
 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 @@
 	    perl -lne '$(gl_extract_significant_defines_)' $$f;		\
 	  done;								\
 	) | sort -u							\
-	  | grep -Ev '^ATTRIBUTE_NORETURN'				\
 	  | sed 's/^/^ *# *(define|undef)  */;s/$$/\\>/'
 endef