re PR libstdc++/45300 (in cstdio/cstdlib keyword restrict is used instead of __restrict)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 16 Aug 2010 19:01:35 +0000 (19:01 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 16 Aug 2010 19:01:35 +0000 (19:01 +0000)
2010-08-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/45300
* include/c_std/cstdlib: Replace 'restrict' -> '__restrict'.
* include/c_std/cstdio: Likewise.
* include/c_global/cstdlib: Likewise.
* include/c_global/cstdio: Likewise.

From-SVN: r163283

libstdc++-v3/ChangeLog
libstdc++-v3/include/c_global/cstdio
libstdc++-v3/include/c_global/cstdlib
libstdc++-v3/include/c_std/cstdio
libstdc++-v3/include/c_std/cstdlib

index fa90d4d7bc0912d28ec913417651adf7f416d553..cb551ad2d8d827d8071e26c52130736da56e80cc 100644 (file)
@@ -1,3 +1,11 @@
+2010-08-16  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/45300
+       * include/c_std/cstdlib: Replace 'restrict' -> '__restrict'.
+       * include/c_std/cstdio: Likewise.
+       * include/c_global/cstdlib: Likewise.
+       * include/c_global/cstdio: Likewise.
+
 2010-08-16  Chris Moller  <cmoller@redhat.com>
 
        http://sourceware.org/bugzilla/show_bug.cgi?id=11874
index b547fbe40b89a6e45fc245ed743b4590495600f6..9124229248b1024a58638059fd9cd1e94d111b86 100644 (file)
@@ -150,15 +150,16 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
   extern "C" int
-  (snprintf)(char * restrict, std::size_t, const char * restrict, ...) throw ();
+  (snprintf)(char * __restrict, std::size_t, const char * __restrict, ...)
+  throw ();
   extern "C" int
-  (vfscanf)(FILE * restrict, const char * restrict, __gnuc_va_list);
-  extern "C" int (vscanf)(const char * restrict, __gnuc_va_list);
+  (vfscanf)(FILE * __restrict, const char * __restrict, __gnuc_va_list);
+  extern "C" int (vscanf)(const char * __restrict, __gnuc_va_list);
   extern "C" int
-  (vsnprintf)(char * restrict, std::size_t, const char * restrict,
+  (vsnprintf)(char * __restrict, std::size_t, const char * __restrict,
              __gnuc_va_list) throw ();
   extern "C" int
-  (vsscanf)(const char * restrict, const char * restrict, __gnuc_va_list)
+  (vsscanf)(const char * __restrict, const char * __restrict, __gnuc_va_list)
   throw ();
 #endif
 
index da95c0fe56c09b12ef3a9d8ee3e20661ca229deb..943f26328f08c58c767a15b966db04a62e325425 100644 (file)
@@ -181,9 +181,9 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
   extern "C" long long int (atoll)(const char *) throw ();
   extern "C" long long int
-    (strtoll)(const char * restrict, char ** restrict, int) throw ();
+    (strtoll)(const char * __restrict, char ** __restrict, int) throw ();
   extern "C" unsigned long long int
-    (strtoull)(const char * restrict, char ** restrict, int) throw ();
+    (strtoull)(const char * __restrict, char ** __restrict, int) throw ();
 #endif
 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
   using ::atoll;
index 4a8acdddb6288cc7865854730de43fc98435113a..6f648ad10a612e9deb694d0c505dfba9937eb954 100644 (file)
@@ -149,15 +149,16 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
   extern "C" int
-  (snprintf)(char * restrict, std::size_t, const char * restrict, ...) throw ();
+  (snprintf)(char * __restrict, std::size_t, const char * __restrict, ...)
+  throw ();
   extern "C" int
-  (vfscanf)(FILE * restrict, const char * restrict, __gnuc_va_list);
-  extern "C" int (vscanf)(const char * restrict, __gnuc_va_list);
+  (vfscanf)(FILE * __restrict, const char * __restrict, __gnuc_va_list);
+  extern "C" int (vscanf)(const char * __restrict, __gnuc_va_list);
   extern "C" int
-  (vsnprintf)(char * restrict, std::size_t, const char * restrict,
+  (vsnprintf)(char * __restrict, std::size_t, const char * __restrict,
              __gnuc_va_list) throw ();
   extern "C" int
-  (vsscanf)(const char * restrict, const char * restrict, __gnuc_va_list)
+  (vsscanf)(const char * __restrict, const char * __restrict, __gnuc_va_list)
   throw ();
 #endif
 
index 734745a67751a4832df6809c8c323d955ab32099..443f1e7df75f7f1029175550b6749378ea3c8700 100644 (file)
@@ -180,9 +180,9 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
   extern "C" long long int (atoll)(const char *) throw ();
   extern "C" long long int
-    (strtoll)(const char * restrict, char ** restrict, int) throw ();
+    (strtoll)(const char * __restrict, char ** __restrict, int) throw ();
   extern "C" unsigned long long int
-    (strtoull)(const char * restrict, char ** restrict, int) throw ();
+    (strtoull)(const char * __restrict, char ** __restrict, int) throw ();
 #endif
 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
   using ::atoll;