Commit b91cc3b9 by Jan Hubicka Committed by Jan Hubicka

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
parent bd67512a
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> 2009-05-03 Paolo Carlini <paolo.carlini@oracle.com>
* acinclude.m4 ([GLIBCXX_ENABLE_ATOMIC_BUILTINS]): Do link tests when * acinclude.m4 ([GLIBCXX_ENABLE_ATOMIC_BUILTINS]): Do link tests when
......
...@@ -210,7 +210,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -210,7 +210,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
} }
__basic_file<char>* __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; __basic_file* __ret = NULL;
const char* __c_mode = fopen_mode(__mode); const char* __c_mode = fopen_mode(__mode);
...@@ -247,15 +247,15 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -247,15 +247,15 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
} }
bool bool
__basic_file<char>::is_open() const __basic_file<char>::is_open() const throw ()
{ return _M_cfile != 0; } { return _M_cfile != 0; }
int int
__basic_file<char>::fd() __basic_file<char>::fd() throw ()
{ return fileno(_M_cfile); } { return fileno(_M_cfile); }
__c_file* __c_file*
__basic_file<char>::file() __basic_file<char>::file() throw ()
{ return _M_cfile; } { return _M_cfile; }
__basic_file<char>* __basic_file<char>*
...@@ -315,7 +315,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -315,7 +315,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
} }
streamoff 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 #ifdef _GLIBCXX_USE_LFS
return lseek64(this->fd(), __off, __way); return lseek64(this->fd(), __off, __way);
......
...@@ -58,7 +58,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -58,7 +58,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
bool _M_cfile_created; bool _M_cfile_created;
public: public:
__basic_file(__c_lock* __lock = 0); __basic_file(__c_lock* __lock = 0) throw ();
__basic_file* __basic_file*
open(const char* __name, ios_base::openmode __mode, int __prot = 0664); open(const char* __name, ios_base::openmode __mode, int __prot = 0664);
...@@ -67,19 +67,19 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -67,19 +67,19 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
sys_open(__c_file* __file, ios_base::openmode); sys_open(__c_file* __file, ios_base::openmode);
__basic_file* __basic_file*
sys_open(int __fd, ios_base::openmode __mode); sys_open(int __fd, ios_base::openmode __mode) throw ();
__basic_file* __basic_file*
close(); close();
bool _GLIBCXX_PURE bool
is_open() const; is_open() const throw ();
int _GLIBCXX_PURE int
fd(); fd() throw ();
__c_file* _GLIBCXX_PURE __c_file*
file(); file() throw ();
~__basic_file(); ~__basic_file();
...@@ -94,7 +94,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -94,7 +94,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
xsgetn(char* __s, streamsize __n); xsgetn(char* __s, streamsize __n);
streamoff streamoff
seekoff(streamoff __off, ios_base::seekdir __way); seekoff(streamoff __off, ios_base::seekdir __way) throw ();
int int
sync(); sync();
......
...@@ -265,7 +265,7 @@ namespace __gnu_parallel ...@@ -265,7 +265,7 @@ namespace __gnu_parallel
sequence_index_t qsb_steals; sequence_index_t qsb_steals;
/// Get the global settings. /// Get the global settings.
static const _Settings& _GLIBCXX_CONST static const _Settings&
get() throw(); get() throw();
/// Set the global settings. /// Set the global settings.
......
...@@ -37,7 +37,7 @@ using namespace __cxxabiv1; ...@@ -37,7 +37,7 @@ using namespace __cxxabiv1;
// terminate. // terminate.
extern "C" void extern "C" void
__cxa_call_terminate(_Unwind_Exception* ue_header) __cxa_call_terminate(_Unwind_Exception* ue_header) throw ()
{ {
if (ue_header) if (ue_header)
......
...@@ -187,7 +187,7 @@ extern "C" void __cxa_bad_typeid () __attribute__((__noreturn__)); ...@@ -187,7 +187,7 @@ extern "C" void __cxa_bad_typeid () __attribute__((__noreturn__));
// throws, and if bad_exception needs to be thrown. Called from the // throws, and if bad_exception needs to be thrown. Called from the
// compiler. // compiler.
extern "C" void __cxa_call_unexpected (void *) __attribute__((noreturn)); 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__ #ifdef __ARM_EABI_UNWINDER__
// Arm EABI specified routines. // Arm EABI specified routines.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment