(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 ().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146604
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
#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
_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
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;
#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;
#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;
#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
_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
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;
#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;
#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;