about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-12-23 23:21:15 -0500
committerUlrich Drepper <drepper@gmail.com>2012-01-01 07:17:20 -0500
commit4e9e7a356c37edc428339b4ba27420fe320d0a3c (patch)
treeee02a4f6ea2c9ae2266bee3be465953403b70a96
parent8fd8ff3bd8234593a694be045460e471d295a6af (diff)
downloadglibc-4e9e7a356c37edc428339b4ba27420fe320d0a3c.tar.gz
glibc-4e9e7a356c37edc428339b4ba27420fe320d0a3c.tar.xz
glibc-4e9e7a356c37edc428339b4ba27420fe320d0a3c.zip
Enable at_quick_exit and quick_exit for ISO C11
-rw-r--r--ChangeLog4
-rw-r--r--NEWS2
-rw-r--r--stdlib/stdlib.h8
3 files changed, 7 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index c3483c8535..02d8a2b502 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,6 +28,10 @@
 
 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
 
+	[BZ 13527]
+	* stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
+	ISO C11.
+
 	* include/features.h: Define __USE_ISOCXX11 when compiling ISo C++11
 	code.
 
diff --git a/NEWS b/NEWS
index c22df47777..241f4b79f5 100644
--- a/NEWS
+++ b/NEWS
@@ -9,7 +9,7 @@ Version 2.16
 
 * The following bugs are resolved with this release:
 
-  13526, 13528, 13529
+  13526, 13527, 13528, 13529
 
 
 Version 2.15
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index f7d128c3d8..754743f767 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -517,9 +517,7 @@ extern void abort (void) __THROW __attribute__ ((__noreturn__));
 /* Register a function to be called when `exit' is called.  */
 extern int atexit (void (*__func) (void)) __THROW __nonnull ((1));
 
-#ifdef __USE_GNU
-// XXX There should be a macro to signal with C++ revision is used.
-// XXX This function is in the C++1x revision.
+#if defined __USE_ISOC11 || defined __USE_ISOCXX11
 /* Register a function to be called when `quick_exit' is called.  */
 # ifdef __cplusplus
 extern "C++" int at_quick_exit (void (*__func) (void))
@@ -543,9 +541,7 @@ __BEGIN_NAMESPACE_STD
    perform stdio cleanup, and terminate program execution with STATUS.  */
 extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
 
-#ifdef __USE_GNU
-// XXX There should be a macro to signal with C++ revision is used.
-// XXX This function is in the C++1x revision.
+#if defined __USE_ISOC11 || defined __USE_ISOCXX11
 /* Call all functions registered with `at_quick_exit' in the reverse
    of the order in which they were registered and terminate program
    execution with STATUS.  */