diff options
author | Jan Hubicka <jh@suse.cz> | 2009-04-22 19:41:33 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2009-04-22 17:41:33 +0000 |
commit | 1cae1c5fc051a5f8c6f68ce85513f0f061cc2912 (patch) | |
tree | 0654c2f6558540115574a93c5923fb3c1bc8f5f7 /libstdc++-v3 | |
parent | 0500a9f180ecff860a42a8658509feebb14f2d36 (diff) | |
download | gcc-1cae1c5fc051a5f8c6f68ce85513f0f061cc2912.tar.gz |
cstdlib (abort, [...]): Mark noreturn throw ().
* include/c_std/cstdlib (abort, exit, _Exit): Mark noreturn throw ().
(atexit, atoll, stroll, strtoull): Mark throw ()
* include/c_std/cstdio (snprintf, vsnprintf, vscanf): Mark throw ().
* include/c_std/cwchar (wcstold, wcstoll, wcstoull): Mark throw ().
* include/c_global/cstdlib (abort, exit, _Exit): Mark noreturn throw ().
(atexit, atoll, stroll, strtoull): Mark throw ()
* include/c_global/cstdio (snprintf, vsnprintf, vscanf): Mark throw ().
* include/c_wchar/cstdio (snprintf, vsnprintf, vscanf): Mark throw ().
From-SVN: r146604
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 11 | ||||
-rw-r--r-- | libstdc++-v3/include/c_global/cstdio | 8 | ||||
-rw-r--r-- | libstdc++-v3/include/c_global/cstdlib | 14 | ||||
-rw-r--r-- | libstdc++-v3/include/c_global/cwchar | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/c_std/cstdio | 8 | ||||
-rw-r--r-- | libstdc++-v3/include/c_std/cstdlib | 14 | ||||
-rw-r--r-- | libstdc++-v3/include/c_std/cwchar | 6 |
7 files changed, 41 insertions, 26 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9de49201eeb..b1695d7edaa 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,14 @@ +2009-04-22 Jan Hubicka <jh@suse.cz> + + * include/c_std/cstdlib (abort, exit, _Exit): Mark noreturn throw (). + (atexit, atoll, stroll, strtoull): Mark throw () + * include/c_std/cstdio (snprintf, vsnprintf, vscanf): Mark throw (). + * include/c_std/cwchar (wcstold, wcstoll, wcstoull): Mark throw (). + * include/c_global/cstdlib (abort, exit, _Exit): Mark noreturn throw (). + (atexit, atoll, stroll, strtoull): Mark throw () + * include/c_global/cstdio (snprintf, vsnprintf, vscanf): Mark throw (). + * include/c_wchar/cstdio (snprintf, vsnprintf, vscanf): Mark throw (). + 2009-04-21 Jan Hubicka <jh@suse.cz> * include/ext/atomicity.h diff --git a/libstdc++-v3/include/c_global/cstdio b/libstdc++-v3/include/c_global/cstdio index b4826e213d7..ff5a635a152 100644 --- a/libstdc++-v3/include/c_global/cstdio +++ b/libstdc++-v3/include/c_global/cstdio @@ -151,14 +151,16 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC extern "C" int - (snprintf)(char * restrict, size_t, const char * restrict, ...); + (snprintf)(char * restrict, 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); extern "C" int - (vsnprintf)(char * restrict, size_t, const char * restrict, __gnuc_va_list); + (vsnprintf)(char * restrict, 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 #if !_GLIBCXX_USE_C99_DYNAMIC diff --git a/libstdc++-v3/include/c_global/cstdlib b/libstdc++-v3/include/c_global/cstdlib index a29031eb08d..e252d089e75 100644 --- a/libstdc++-v3/include/c_global/cstdlib +++ b/libstdc++-v3/include/c_global/cstdlib @@ -57,9 +57,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std) - extern "C" void abort(void); - extern "C" int atexit(void (*)()); - extern "C" void exit(int); + extern "C" void abort(void) throw () _GLIBC_NORETURN; + extern "C" int atexit(void (*)()) throw (); + extern "C" void exit(int) throw () _GLIBC_NORETURN; _GLIBCXX_END_NAMESPACE @@ -160,7 +160,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) using ::lldiv_t; #endif #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC - extern "C" void (_Exit)(int); + extern "C" void (_Exit)(int) throw () _GLIBCXX_NORETURN; #endif #if !_GLIBCXX_USE_C99_DYNAMIC using ::_Exit; @@ -180,11 +180,11 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) #endif #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC - extern "C" long long int (atoll)(const char *); + extern "C" long long int (atoll)(const char *) throw (); extern "C" long long int - (strtoll)(const char * restrict, char ** restrict, int); + (strtoll)(const char * restrict, char ** restrict, int) throw (); extern "C" unsigned long long int - (strtoull)(const char * restrict, char ** restrict, int); + (strtoull)(const char * restrict, char ** restrict, int) throw (); #endif #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC using ::atoll; diff --git a/libstdc++-v3/include/c_global/cwchar b/libstdc++-v3/include/c_global/cwchar index e5ea07e7ddb..14de5c480ed 100644 --- a/libstdc++-v3/include/c_global/cwchar +++ b/libstdc++-v3/include/c_global/cwchar @@ -239,16 +239,16 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC extern "C" long double - (wcstold)(const wchar_t * restrict, wchar_t ** restrict); + (wcstold)(const wchar_t * restrict, wchar_t ** restrict) throw (); #endif #if !_GLIBCXX_USE_C99_DYNAMIC using ::wcstold; #endif #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC extern "C" long long int - (wcstoll)(const wchar_t * restrict, wchar_t ** restrict, int); + (wcstoll)(const wchar_t * restrict, wchar_t ** restrict, int) throw (); extern "C" unsigned long long int - (wcstoull)(const wchar_t * restrict, wchar_t ** restrict, int); + (wcstoull)(const wchar_t * restrict, wchar_t ** restrict, int) throw (); #endif #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC using ::wcstoll; diff --git a/libstdc++-v3/include/c_std/cstdio b/libstdc++-v3/include/c_std/cstdio index 2ec91610524..c25b1b1a1f5 100644 --- a/libstdc++-v3/include/c_std/cstdio +++ b/libstdc++-v3/include/c_std/cstdio @@ -151,14 +151,16 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC extern "C" int - (snprintf)(char * restrict, size_t, const char * restrict, ...); + (snprintf)(char * restrict, 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); extern "C" int - (vsnprintf)(char * restrict, size_t, const char * restrict, __gnuc_va_list); + (vsnprintf)(char * restrict, 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 #if !_GLIBCXX_USE_C99_DYNAMIC diff --git a/libstdc++-v3/include/c_std/cstdlib b/libstdc++-v3/include/c_std/cstdlib index ecb45a4e269..516dcab5c65 100644 --- a/libstdc++-v3/include/c_std/cstdlib +++ b/libstdc++-v3/include/c_std/cstdlib @@ -56,9 +56,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std) - extern "C" void abort(void); - extern "C" int atexit(void (*)()); - extern "C" void exit(int); + extern "C" void abort(void) throw () _GLIBCXX_NORETURN; + extern "C" int atexit(void (*)()) throw (); + extern "C" void exit(int) throw () _GLIBCXX_NORETURN; _GLIBCXX_END_NAMESPACE @@ -159,7 +159,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) using ::lldiv_t; #endif #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC - extern "C" void (_Exit)(int); + extern "C" void (_Exit)(int) throw () _GLIBCXX_NORETURN; #endif #if !_GLIBCXX_USE_C99_DYNAMIC using ::_Exit; @@ -179,11 +179,11 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) #endif #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC - extern "C" long long int (atoll)(const char *); + extern "C" long long int (atoll)(const char *) throw (); extern "C" long long int - (strtoll)(const char * restrict, char ** restrict, int); + (strtoll)(const char * restrict, char ** restrict, int) throw (); extern "C" unsigned long long int - (strtoull)(const char * restrict, char ** restrict, int); + (strtoull)(const char * restrict, char ** restrict, int) throw (); #endif #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC using ::atoll; diff --git a/libstdc++-v3/include/c_std/cwchar b/libstdc++-v3/include/c_std/cwchar index 7baee60531b..f3bc2c76704 100644 --- a/libstdc++-v3/include/c_std/cwchar +++ b/libstdc++-v3/include/c_std/cwchar @@ -239,16 +239,16 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC extern "C" long double - (wcstold)(const wchar_t * restrict, wchar_t ** restrict); + (wcstold)(const wchar_t * restrict, wchar_t ** restrict) throw (); #endif #if !_GLIBCXX_USE_C99_DYNAMIC using ::wcstold; #endif #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC extern "C" long long int - (wcstoll)(const wchar_t * restrict, wchar_t ** restrict, int); + (wcstoll)(const wchar_t * restrict, wchar_t ** restrict, int) throw (); extern "C" unsigned long long int - (wcstoull)(const wchar_t * restrict, wchar_t ** restrict, int); + (wcstoull)(const wchar_t * restrict, wchar_t ** restrict, int) throw (); #endif #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC using ::wcstoll; |