]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
settings.h (get): Mark const.
authorJan Hubicka <jh@suse.cz>
Sun, 3 May 2009 16:51:50 +0000 (18:51 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 3 May 2009 16:51:50 +0000 (16:51 +0000)
* include/parallel/settings.h (get): Mark const.
* libsupc++/unwind-cxx.h (__cxa_call_terminate): Mark throw ().
* libsupc++/eh_call.cc (__cxa_call_terminate): Mark throw ().
* config/io/basic_file_stdio.cc (sys_open, is_open, fd, seekoff): Mark
throw ().
* config/io/basic_file_stdio.h (__basic_file, sys_open): Mark throw ().
(is_open, fd): Mark pure and throw ().
(seekoff): Mark throw ().

From-SVN: r147077

libstdc++-v3/ChangeLog
libstdc++-v3/config/io/basic_file_stdio.cc
libstdc++-v3/config/io/basic_file_stdio.h
libstdc++-v3/include/parallel/settings.h
libstdc++-v3/libsupc++/eh_call.cc
libstdc++-v3/libsupc++/unwind-cxx.h

index f067dc17f5c2882c29250291dbf0e8221cfd59fc..b42f17990259c44e3746bc4b114dff49977d595f 100644 (file)
@@ -1,3 +1,14 @@
+2009-05-03  Jan Hubicka  <jh@suse.cz>
+
+       * include/parallel/settings.h (get): Mark const.
+       * libsupc++/unwind-cxx.h (__cxa_call_terminate): Mark throw ().
+       * libsupc++/eh_call.cc (__cxa_call_terminate): Mark throw ().
+       * config/io/basic_file_stdio.cc (sys_open, is_open, fd, seekoff): Mark
+       throw ().
+       * config/io/basic_file_stdio.h (__basic_file, sys_open): Mark throw ().
+       (is_open, fd): Mark pure and throw ().
+       (seekoff): Mark throw ().
+
 2009-05-03  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * acinclude.m4 ([GLIBCXX_ENABLE_ATOMIC_BUILTINS]): Do link tests when
index fd20d1aba7febb99348312c8c217806a3d729d6b..b07a48360f09584aea12cb11bb02f010677a7409 100644 (file)
@@ -210,7 +210,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
   }
   
   __basic_file<char>*
-  __basic_file<char>::sys_open(int __fd, ios_base::openmode __mode)
+  __basic_file<char>::sys_open(int __fd, ios_base::openmode __mode) throw ()
   {
     __basic_file* __ret = NULL;
     const char* __c_mode = fopen_mode(__mode);
@@ -247,15 +247,15 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
   }
   
   bool 
-  __basic_file<char>::is_open() const 
+  __basic_file<char>::is_open() const throw ()
   { return _M_cfile != 0; }
   
   int 
-  __basic_file<char>::fd() 
+  __basic_file<char>::fd() throw ()
   { return fileno(_M_cfile); }
   
   __c_file*
-  __basic_file<char>::file() 
+  __basic_file<char>::file() throw ()
   { return _M_cfile; }
   
   __basic_file<char>* 
@@ -315,7 +315,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
   }
 
   streamoff
-  __basic_file<char>::seekoff(streamoff __off, ios_base::seekdir __way)
+  __basic_file<char>::seekoff(streamoff __off, ios_base::seekdir __way) throw ()
   {
 #ifdef _GLIBCXX_USE_LFS
     return lseek64(this->fd(), __off, __way);
index eedb73be13a9130d45effab639dbd223546bf40a..7f30c4e81e9c8f0e3a15712693677a1627c01136 100644 (file)
@@ -58,7 +58,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
       bool             _M_cfile_created;
 
     public:
-      __basic_file(__c_lock* __lock = 0);
+      __basic_file(__c_lock* __lock = 0) throw ();
 
       __basic_file* 
       open(const char* __name, ios_base::openmode __mode, int __prot = 0664);
@@ -67,19 +67,19 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
       sys_open(__c_file* __file, ios_base::openmode);
 
       __basic_file*
-      sys_open(int __fd, ios_base::openmode __mode);
+      sys_open(int __fd, ios_base::openmode __mode) throw ();
 
       __basic_file* 
       close(); 
 
-      bool 
-      is_open() const;
+      _GLIBCXX_PURE bool 
+      is_open() const throw ();
 
-      int 
-      fd();
+      _GLIBCXX_PURE int 
+      fd() throw ();
 
-      __c_file*
-      file();
+      _GLIBCXX_PURE __c_file*
+      file() throw ();
 
       ~__basic_file();
 
@@ -94,7 +94,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
       xsgetn(char* __s, streamsize __n);
 
       streamoff
-      seekoff(streamoff __off, ios_base::seekdir __way);
+      seekoff(streamoff __off, ios_base::seekdir __way) throw ();
 
       int 
       sync();
index 946e39caba1a0dc37ca3de302a790992cc284aab..e4873b4100b50ada9ddab7c1b84517965dbc9c2d 100644 (file)
@@ -265,7 +265,7 @@ namespace __gnu_parallel
     sequence_index_t           qsb_steals;
 
     /// Get the global settings.
-    static const _Settings&
+    _GLIBCXX_CONST static const _Settings&
     get() throw();
 
     /// Set the global settings.
index a737eb88938e3e1859c698bd17692ade317af03d..0054e52016d586b4f9fd758310a3a2ce850f9e52 100644 (file)
@@ -37,7 +37,7 @@ using namespace __cxxabiv1;
 // terminate.
 
 extern "C" void
-__cxa_call_terminate(_Unwind_Exception* ue_header)
+__cxa_call_terminate(_Unwind_Exception* ue_header) throw ()
 {
 
   if (ue_header)
index e4918b211bfbf76019cb02e5fc0da7b24c245aa7..6033caf1705ef934ba33271c3b77eb5d3000ac40 100644 (file)
@@ -187,7 +187,7 @@ extern "C" void __cxa_bad_typeid () __attribute__((__noreturn__));
 // throws, and if bad_exception needs to be thrown.  Called from the
 // compiler.
 extern "C" void __cxa_call_unexpected (void *) __attribute__((noreturn));
-extern "C" void __cxa_call_terminate (_Unwind_Exception*) __attribute__((noreturn));
+extern "C" void __cxa_call_terminate (_Unwind_Exception*) throw () __attribute__((noreturn));
 
 #ifdef __ARM_EABI_UNWINDER__
 // Arm EABI specified routines.