aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2007-04-25 09:25:05 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2007-04-25 09:25:05 +0000
commitdd42abcc7ee69c2c58e477ed3645029462741c71 (patch)
treec36f24b070121c38ac15e99ed6673438cd355ae6
parent29ea08dac3ae8e0b45e0e60ced36dbf5ce5fe764 (diff)
downloadgcc-dd42abcc7ee69c2c58e477ed3645029462741c71.zip
gcc-dd42abcc7ee69c2c58e477ed3645029462741c71.tar.gz
gcc-dd42abcc7ee69c2c58e477ed3645029462741c71.tar.bz2
locale_classes.h: Remove redundant inline specifiers.
2007-04-25 Paolo Carlini <pcarlini@suse.de> * include/bits/locale_classes.h: Remove redundant inline specifiers. * include/bits/ios_base.h: Likewise. * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust dg-error line numbers. * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise. From-SVN: r124148
-rw-r--r--libstdc++-v3/ChangeLog8
-rw-r--r--libstdc++-v3/include/bits/ios_base.h44
-rw-r--r--libstdc++-v3/include/bits/locale_classes.h16
-rw-r--r--libstdc++-v3/testsuite/27_io/ios_base/cons/assign_neg.cc2
-rw-r--r--libstdc++-v3/testsuite/27_io/ios_base/cons/copy_neg.cc2
5 files changed, 43 insertions, 29 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index fb67e0c..295a358 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,11 @@
+2007-04-25 Paolo Carlini <pcarlini@suse.de>
+
+ * include/bits/locale_classes.h: Remove redundant inline specifiers.
+ * include/bits/ios_base.h: Likewise.
+ * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust dg-error line
+ numbers.
+ * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
+
2007-04-24 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.h (class collate, class collate_byname):
diff --git a/libstdc++-v3/include/bits/ios_base.h b/libstdc++-v3/include/bits/ios_base.h
index e0bbfc3..c7aa8fc 100644
--- a/libstdc++-v3/include/bits/ios_base.h
+++ b/libstdc++-v3/include/bits/ios_base.h
@@ -546,8 +546,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* @brief Access to format flags.
* @return The format control flags for both input and output.
*/
- inline fmtflags
- flags() const { return _M_flags; }
+ fmtflags
+ flags() const
+ { return _M_flags; }
/**
* @brief Setting new format flags all at once.
@@ -556,7 +557,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
*
* This function overwrites all the format flags with @a fmtfl.
*/
- inline fmtflags
+ fmtflags
flags(fmtflags __fmtfl)
{
fmtflags __old = _M_flags;
@@ -572,7 +573,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* This function sets additional flags in format control. Flags that
* were previously set remain set.
*/
- inline fmtflags
+ fmtflags
setf(fmtflags __fmtfl)
{
fmtflags __old = _M_flags;
@@ -589,7 +590,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* This function clears @a mask in the format flags, then sets
* @a fmtfl @c & @a mask. An example mask is @c ios_base::adjustfield.
*/
- inline fmtflags
+ fmtflags
setf(fmtflags __fmtfl, fmtflags __mask)
{
fmtflags __old = _M_flags;
@@ -604,8 +605,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
*
* This function clears @a mask in the format flags.
*/
- inline void
- unsetf(fmtflags __mask) { _M_flags &= ~__mask; }
+ void
+ unsetf(fmtflags __mask)
+ { _M_flags &= ~__mask; }
/**
* @brief Flags access.
@@ -616,15 +618,16 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* DR 189.
* @endif
*/
- inline streamsize
- precision() const { return _M_precision; }
+ streamsize
+ precision() const
+ { return _M_precision; }
/**
* @brief Changing flags.
* @param prec The new precision value.
* @return The previous value of precision().
*/
- inline streamsize
+ streamsize
precision(streamsize __prec)
{
streamsize __old = _M_precision;
@@ -638,15 +641,16 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
*
* "Minimum field width" refers to the number of characters.
*/
- inline streamsize
- width() const { return _M_width; }
+ streamsize
+ width() const
+ { return _M_width; }
/**
* @brief Changing flags.
* @param wide The new width value.
* @return The previous value of width().
*/
- inline streamsize
+ streamsize
width(streamsize __wide)
{
streamsize __old = _M_width;
@@ -688,8 +692,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* returns @c loc. Otherwise, it returns a copy of @c std::locale(),
* the global C++ locale.
*/
- inline locale
- getloc() const { return _M_ios_locale; }
+ locale
+ getloc() const
+ { return _M_ios_locale; }
/**
* @brief Locale access
@@ -698,8 +703,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* Like getloc above, but returns a reference instead of
* generating a copy.
*/
- inline const locale&
- _M_getloc() const { return _M_ios_locale; }
+ const locale&
+ _M_getloc() const
+ { return _M_ios_locale; }
// [27.4.2.5] ios_base storage functions
/**
@@ -732,7 +738,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* obtain an index that is safe to use. Also note that since the array
* can grow dynamically, it is not safe to hold onto the reference.
*/
- inline long&
+ long&
iword(int __ix)
{
_Words& __word = (__ix < _M_word_size)
@@ -753,7 +759,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* obtain an index that is safe to use. Also note that since the array
* can grow dynamically, it is not safe to hold onto the reference.
*/
- inline void*&
+ void*&
pword(int __ix)
{
_Words& __word = (__ix < _M_word_size)
diff --git a/libstdc++-v3/include/bits/locale_classes.h b/libstdc++-v3/include/bits/locale_classes.h
index 8dc7d82..141f44c 100644
--- a/libstdc++-v3/include/bits/locale_classes.h
+++ b/libstdc++-v3/include/bits/locale_classes.h
@@ -237,9 +237,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* @param other The locale to compare against.
* @return ! (*this == other)
*/
- inline bool
+ bool
operator!=(const locale& __other) const throw ()
- { return !(this->operator==(__other)); }
+ { return !(this->operator==(__other)); }
/**
* @brief Compare two strings according to collate.
@@ -398,11 +398,11 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
_S_get_c_name();
private:
- inline void
+ void
_M_add_reference() const throw()
{ __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); }
- inline void
+ void
_M_remove_reference() const throw()
{
if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1)
@@ -503,11 +503,11 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
static const locale::id* const _S_id_messages[];
static const locale::id* const* const _S_facet_categories[];
- inline void
+ void
_M_add_reference() throw()
{ __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); }
- inline void
+ void
_M_remove_reference() throw()
{
if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1)
@@ -530,7 +530,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
void
operator=(const _Impl&); // Not defined.
- inline bool
+ bool
_M_check_same_name()
{
bool __ret = true;
@@ -554,7 +554,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
_M_install_facet(const locale::id*, const facet*);
template<typename _Facet>
- inline void
+ void
_M_init_facet(_Facet* __facet)
{ _M_install_facet(&_Facet::id, __facet); }
diff --git a/libstdc++-v3/testsuite/27_io/ios_base/cons/assign_neg.cc b/libstdc++-v3/testsuite/27_io/ios_base/cons/assign_neg.cc
index 04bd275..ec27d18 100644
--- a/libstdc++-v3/testsuite/27_io/ios_base/cons/assign_neg.cc
+++ b/libstdc++-v3/testsuite/27_io/ios_base/cons/assign_neg.cc
@@ -42,5 +42,5 @@ void test01()
}
// { dg-error "synthesized" "" { target *-*-* } 41 }
// { dg-error "within this context" "" { target *-*-* } 34 }
-// { dg-error "is private" "" { target *-*-* } 784 }
+// { dg-error "is private" "" { target *-*-* } 790 }
// { dg-error "operator=" "" { target *-*-* } 0 }
diff --git a/libstdc++-v3/testsuite/27_io/ios_base/cons/copy_neg.cc b/libstdc++-v3/testsuite/27_io/ios_base/cons/copy_neg.cc
index 6d7ae39..0c6bb29 100644
--- a/libstdc++-v3/testsuite/27_io/ios_base/cons/copy_neg.cc
+++ b/libstdc++-v3/testsuite/27_io/ios_base/cons/copy_neg.cc
@@ -42,5 +42,5 @@ void test02()
}
// { dg-error "within this context" "" { target *-*-* } 35 }
// { dg-error "synthesized" "" { target *-*-* } 41 }
-// { dg-error "is private" "" { target *-*-* } 781 }
+// { dg-error "is private" "" { target *-*-* } 787 }
// { dg-error "copy constructor" "" { target *-*-* } 0 }