aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/src
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@redhat.com>2010-02-17 05:43:24 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2010-02-17 05:43:24 +0000
commit32ade5590ec9650b24dbd0965831397c7b009314 (patch)
treefc054963dec75674d1c899ab4e594c10311df826 /libstdc++-v3/src
parentbc349d0a7f40da33d4b2ed8fb972c2a5e3a26ad9 (diff)
downloadgcc-32ade5590ec9650b24dbd0965831397c7b009314.zip
gcc-32ade5590ec9650b24dbd0965831397c7b009314.tar.gz
gcc-32ade5590ec9650b24dbd0965831397c7b009314.tar.bz2
ios_locale.cc: Fixes for -pedantic.
2010-02-16 Benjamin Kosnik <bkoz@redhat.com> * src/ios_locale.cc: Fixes for -pedantic. * src/system_error.cc: Same. * src/locale.cc: Same. * src/list.cc: Same. * src/locale_facets.cc: Same. * src/locale_init.cc: Same. * src/ios.cc: Same. * config/locale/darwin/ctype_members.cc: Same. * config/locale/gnu/collate_members.cc: Same. * config/locale/gnu/ctype_members.cc: Same. * config/locale/gnu/c_locale.cc: Same. * config/locale/gnu/monetary_members.cc: Same. * config/locale/gnu/time_members.cc: Same. * config/locale/ieee_1003.1-2001/c_locale.cc: Same. * config/locale/generic/collate_members.cc: Same. * config/locale/generic/ctype_members.cc: Same. * config/locale/generic/c_locale.cc: Same. * config/locale/generic/monetary_members.cc: Same. * config/locale/generic/time_members.cc: Same. * config/io/basic_file_stdio.cc: Same. * libsupc++/pbase_type_info.cc: Fixes for -fno-rtti. * libsupc++/pointer_type_info.cc: Same. * libsupc++/eh_personality.cc: Same. * include/std/system_error: Throw spacing. * include/bits/locale_classes.h: Same. * include/bits/locale_facets.h: Same. * include/bits/ios_base.h: Same. * testsuite/17_intro/headers/c++200x/all_no_rtti.cc: New. * testsuite/17_intro/headers/c++1998/all_no_rtti.cc: New From-SVN: r156822
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r--libstdc++-v3/src/ios.cc6
-rw-r--r--libstdc++-v3/src/ios_locale.cc13
-rw-r--r--libstdc++-v3/src/list.cc10
-rw-r--r--libstdc++-v3/src/locale.cc6
-rw-r--r--libstdc++-v3/src/locale_facets.cc7
-rw-r--r--libstdc++-v3/src/locale_init.cc4
-rw-r--r--libstdc++-v3/src/system_error.cc6
7 files changed, 27 insertions, 25 deletions
diff --git a/libstdc++-v3/src/ios.cc b/libstdc++-v3/src/ios.cc
index 9d2ff8e..6605287 100644
--- a/libstdc++-v3/src/ios.cc
+++ b/libstdc++-v3/src/ios.cc
@@ -1,7 +1,7 @@
// Iostreams base classes -*- C++ -*-
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
-// 2006, 2007, 2008, 2009
+// 2006, 2007, 2008, 2009, 2010
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -73,7 +73,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
bool ios_base::Init::_S_synced_with_stdio = true;
- ios_base::ios_base()
+ ios_base::ios_base() throw()
: _M_precision(), _M_width(), _M_flags(), _M_exception(),
_M_streambuf_state(), _M_callbacks(0), _M_word_zero(),
_M_word_size(_S_local_word_size), _M_word(_M_local_word), _M_ios_locale()
@@ -175,7 +175,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
}
void
- ios_base::_M_dispose_callbacks(void)
+ ios_base::_M_dispose_callbacks(void) throw()
{
_Callback_list* __p = _M_callbacks;
while (__p && __p->_M_remove_reference() == 0)
diff --git a/libstdc++-v3/src/ios_locale.cc b/libstdc++-v3/src/ios_locale.cc
index bbdc80e..8b1873e 100644
--- a/libstdc++-v3/src/ios_locale.cc
+++ b/libstdc++-v3/src/ios_locale.cc
@@ -1,6 +1,7 @@
// Iostreams base classes -*- C++ -*-
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2009
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005,
+// 2009, 2010
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -33,19 +34,19 @@
_GLIBCXX_BEGIN_NAMESPACE(std)
// Called only by basic_ios<>::init.
- void
- ios_base::_M_init()
+ void
+ ios_base::_M_init() throw()
{
// NB: May be called more than once
_M_precision = 6;
_M_width = 0;
_M_flags = skipws | dec;
_M_ios_locale = locale();
- }
-
+ }
+
// 27.4.2.3 ios_base locale functions
locale
- ios_base::imbue(const locale& __loc)
+ ios_base::imbue(const locale& __loc) throw()
{
locale __old = _M_ios_locale;
_M_ios_locale = __loc;
diff --git a/libstdc++-v3/src/list.cc b/libstdc++-v3/src/list.cc
index f35feec..a7a705c 100644
--- a/libstdc++-v3/src/list.cc
+++ b/libstdc++-v3/src/list.cc
@@ -53,7 +53,7 @@
_GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
void
- _List_node_base::swap(_List_node_base& __x, _List_node_base& __y)
+ _List_node_base::swap(_List_node_base& __x, _List_node_base& __y) throw()
{
if ( __x._M_next != &__x )
{
@@ -86,7 +86,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
void
_List_node_base::_M_transfer(_List_node_base * const __first,
- _List_node_base * const __last)
+ _List_node_base * const __last) throw()
{
if (this != __last)
{
@@ -104,7 +104,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
}
void
- _List_node_base::_M_reverse()
+ _List_node_base::_M_reverse() throw()
{
_List_node_base* __tmp = this;
do
@@ -118,7 +118,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
}
void
- _List_node_base::_M_hook(_List_node_base* const __position)
+ _List_node_base::_M_hook(_List_node_base* const __position) throw()
{
this->_M_next = __position;
this->_M_prev = __position->_M_prev;
@@ -127,7 +127,7 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
}
void
- _List_node_base::_M_unhook()
+ _List_node_base::_M_unhook() throw()
{
_List_node_base* const __next_node = this->_M_next;
_List_node_base* const __prev_node = this->_M_prev;
diff --git a/libstdc++-v3/src/locale.cc b/libstdc++-v3/src/locale.cc
index bf31e7c..937e99c 100644
--- a/libstdc++-v3/src/locale.cc
+++ b/libstdc++-v3/src/locale.cc
@@ -1,5 +1,5 @@
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
-// 2006, 2007, 2008, 2009
+// 2006, 2007, 2008, 2009, 2010
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -217,7 +217,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
}
const char*
- locale::facet::_S_get_c_name()
+ locale::facet::_S_get_c_name() throw()
{ return _S_c_name; }
locale::facet::
@@ -408,7 +408,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
_Atomic_word locale::id::_S_refcount; // init'd to 0 by linker
size_t
- locale::id::_M_id() const
+ locale::id::_M_id() const throw()
{
if (!_M_index)
{
diff --git a/libstdc++-v3/src/locale_facets.cc b/libstdc++-v3/src/locale_facets.cc
index 0815654..77686c6 100644
--- a/libstdc++-v3/src/locale_facets.cc
+++ b/libstdc++-v3/src/locale_facets.cc
@@ -1,5 +1,5 @@
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
-// 2006, 2007, 2008, 2009
+// 2006, 2007, 2008, 2009, 2010
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -58,7 +58,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// According to the resolution of DR 231, about 22.2.2.2.2, p11,
// "str.precision() is specified in the conversion specification".
void
- __num_base::_S_format_float(const ios_base& __io, char* __fptr, char __mod)
+ __num_base::_S_format_float(const ios_base& __io, char* __fptr,
+ char __mod) throw()
{
ios_base::fmtflags __flags = __io.flags();
*__fptr++ = '%';
@@ -88,7 +89,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
bool
__verify_grouping(const char* __grouping, size_t __grouping_size,
- const string& __grouping_tmp)
+ const string& __grouping_tmp) throw()
{
const size_t __n = __grouping_tmp.size() - 1;
const size_t __min = std::min(__n, size_t(__grouping_size - 1));
diff --git a/libstdc++-v3/src/locale_init.cc b/libstdc++-v3/src/locale_init.cc
index 893b606..45f67f6 100644
--- a/libstdc++-v3/src/locale_init.cc
+++ b/libstdc++-v3/src/locale_init.cc
@@ -1,5 +1,5 @@
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
-// 2009
+// 2009, 2010
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -260,7 +260,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
}
void
- locale::_S_initialize_once()
+ locale::_S_initialize_once() throw()
{
// 2 references.
// One reference for _S_classic, one for _S_global
diff --git a/libstdc++-v3/src/system_error.cc b/libstdc++-v3/src/system_error.cc
index c8c19ed..2144801 100644
--- a/libstdc++-v3/src/system_error.cc
+++ b/libstdc++-v3/src/system_error.cc
@@ -1,6 +1,6 @@
// <system_error> implementation file
-// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -69,10 +69,10 @@ namespace
_GLIBCXX_BEGIN_NAMESPACE(std)
const error_category&
- system_category() { return system_category_instance; }
+ system_category() throw() { return system_category_instance; }
const error_category&
- generic_category() { return generic_category_instance; }
+ generic_category() throw() { return generic_category_instance; }
system_error::~system_error() throw() { }