diff options
author | Jan Hubicka <jh@suse.cz> | 2009-05-03 18:51:50 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2009-05-03 16:51:50 +0000 |
commit | b91cc3b9dcc840b259b0d7e6551b047a42695f87 (patch) | |
tree | 9782ea6d96c8f32b927dedaf2e417a7706ad8744 | |
parent | bd67512af1cd143d69c499b570fd06a3e1924ac1 (diff) | |
download | gcc-b91cc3b9dcc840b259b0d7e6551b047a42695f87.zip gcc-b91cc3b9dcc840b259b0d7e6551b047a42695f87.tar.gz gcc-b91cc3b9dcc840b259b0d7e6551b047a42695f87.tar.bz2 |
settings.h (get): Mark const.
* 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
-rw-r--r-- | libstdc++-v3/ChangeLog | 11 | ||||
-rw-r--r-- | libstdc++-v3/config/io/basic_file_stdio.cc | 10 | ||||
-rw-r--r-- | libstdc++-v3/config/io/basic_file_stdio.h | 18 | ||||
-rw-r--r-- | libstdc++-v3/include/parallel/settings.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/libsupc++/eh_call.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/libsupc++/unwind-cxx.h | 2 |
6 files changed, 28 insertions, 17 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f067dc1..b42f179 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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 diff --git a/libstdc++-v3/config/io/basic_file_stdio.cc b/libstdc++-v3/config/io/basic_file_stdio.cc index fd20d1a..b07a483 100644 --- a/libstdc++-v3/config/io/basic_file_stdio.cc +++ b/libstdc++-v3/config/io/basic_file_stdio.cc @@ -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); diff --git a/libstdc++-v3/config/io/basic_file_stdio.h b/libstdc++-v3/config/io/basic_file_stdio.h index eedb73b..7f30c4e 100644 --- a/libstdc++-v3/config/io/basic_file_stdio.h +++ b/libstdc++-v3/config/io/basic_file_stdio.h @@ -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(); diff --git a/libstdc++-v3/include/parallel/settings.h b/libstdc++-v3/include/parallel/settings.h index 946e39c..e4873b4 100644 --- a/libstdc++-v3/include/parallel/settings.h +++ b/libstdc++-v3/include/parallel/settings.h @@ -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. diff --git a/libstdc++-v3/libsupc++/eh_call.cc b/libstdc++-v3/libsupc++/eh_call.cc index a737eb8..0054e52 100644 --- a/libstdc++-v3/libsupc++/eh_call.cc +++ b/libstdc++-v3/libsupc++/eh_call.cc @@ -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) diff --git a/libstdc++-v3/libsupc++/unwind-cxx.h b/libstdc++-v3/libsupc++/unwind-cxx.h index e4918b2..6033caf 100644 --- a/libstdc++-v3/libsupc++/unwind-cxx.h +++ b/libstdc++-v3/libsupc++/unwind-cxx.h @@ -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. |