[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commits] r16555 - in /fsf/trunk/libc: ChangeLog assert/assert.h libio/stdio.h wcsmbs/uchar.h
- To: commits@xxxxxxxxxx
- Subject: [Commits] r16555 - in /fsf/trunk/libc: ChangeLog assert/assert.h libio/stdio.h wcsmbs/uchar.h
- From: eglibc@xxxxxxxxxx
- Date: Fri, 06 Jan 2012 20:06:10 -0000
Author: eglibc
Date: Fri Jan 6 20:06:08 2012
New Revision: 16555
Log:
Import glibc-mainline for 2012-01-06
Modified:
fsf/trunk/libc/ChangeLog
fsf/trunk/libc/assert/assert.h
fsf/trunk/libc/libio/stdio.h
fsf/trunk/libc/wcsmbs/uchar.h
Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Fri Jan 6 20:06:08 2012
@@ -1,3 +1,10 @@
+2012-01-06 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
+
+ [BZ #13566]
+ * assert/assert.h (static_assert): Don't define for C++.
+ * libio/stdio.h (gets): Do declare for C++ <= C++11.
+ * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
+
2012-01-03 Ulrich Drepper <drepper@xxxxxxxxx>
* iconv/loop.c (single loop): Fix assertion in storing of
Modified: fsf/trunk/libc/assert/assert.h
==============================================================================
--- fsf/trunk/libc/assert/assert.h (original)
+++ fsf/trunk/libc/assert/assert.h Fri Jan 6 20:06:08 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,1992,1994-2001,2003,2004,2007,2011
+/* Copyright (C) 1991,1992,1994-2001,2003,2004,2007,2011,2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@@ -115,7 +115,7 @@
#endif /* NDEBUG. */
-#ifdef __USE_ISOC11
+#if defined __USE_ISOC11 && !defined __cplusplus
/* Static assertion. Requires support in the compiler. */
# undef static_assert
# define static_assert _Static_assert
Modified: fsf/trunk/libc/libio/stdio.h
==============================================================================
--- fsf/trunk/libc/libio/stdio.h (original)
+++ fsf/trunk/libc/libio/stdio.h Fri Jan 6 20:06:08 2012
@@ -1,5 +1,5 @@
/* Define ISO C stdio on top of C++ iostreams.
- Copyright (C) 1991, 1994-2010, 2011 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1994-2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -628,13 +628,16 @@
extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
__wur;
-#ifndef __USE_ISOC11
+#if !defined __USE_ISOC11 \
+ || (defined __cplusplus && __cplusplus <= 201103L)
/* Get a newline-terminated string from stdin, removing the newline.
DO NOT USE THIS FUNCTION!! There is no limit on how much it will read.
The function has been officially removed in ISO C11. This opportunity
is used to also remove it from the GNU feature list. It is now only
available when explicitly using an old ISO C, Unix, or POSIX standard.
+ GCC defines _GNU_SOURCE when building C++ code and the function is still
+ in C++11, so it is also available for C++.
This function is a possible cancellation point and therefore not
marked with __THROW. */
Modified: fsf/trunk/libc/wcsmbs/uchar.h
==============================================================================
--- fsf/trunk/libc/wcsmbs/uchar.h (original)
+++ fsf/trunk/libc/wcsmbs/uchar.h Fri Jan 6 20:06:08 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -40,7 +40,7 @@
#endif
-#ifdef __GNUC__
+#if defined __GNUC__ && !defined __USE_ISOCXX11
/* Define the 16-bit and 32-bit character types. Use the information
provided by the compiler. */
# if !defined __CHAR16_TYPE__ || !defined __CHAR32_TYPE__
_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits