sstream: Adjust braces.
authorBenjamin Kosnik <bkoz@redhat.com>
Wed, 14 May 2008 13:12:02 +0000 (13:12 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Wed, 14 May 2008 13:12:02 +0000 (13:12 +0000)
2008-05-14  Benjamin Kosnik  <bkoz@redhat.com>

* include/std/sstream: Adjust braces.
* include/bits/fstream.tcc: Same.
* testsuite/29_atomics/atomic_flag/test_and_set/explicit.c: Add
-shared-libgcc.
* testsuite/29_atomics/atomic_flag/test_and_set/implicit.c: Same.

* doc/doxygen/user.cfg.in: Remove thread include.

From-SVN: r135291

libstdc++-v3/ChangeLog
libstdc++-v3/doc/doxygen/user.cfg.in
libstdc++-v3/include/bits/fstream.tcc
libstdc++-v3/include/std/sstream
libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit.c
libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/implicit.c

index 1b2e4fa72577c5fa21ebf257dfd1980122abb685..bb4e3d62ec918c256ab8fefde331271ca5a26fbc 100644 (file)
@@ -1,3 +1,13 @@
+2008-05-14  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/std/sstream: Adjust braces.
+       * include/bits/fstream.tcc: Same.
+       * testsuite/29_atomics/atomic_flag/test_and_set/explicit.c: Add
+       -shared-libgcc.
+       * testsuite/29_atomics/atomic_flag/test_and_set/implicit.c: Same.
+
+       * doc/doxygen/user.cfg.in: Remove thread include.
+       
 2008-05-13  David Daney  <ddaney@avtrex.com>
 
        * config/cpu/mips/atomicity.h: Remove file.
index fdb1ea1e5f8a5b24f1999908e91097321171568b..3c59dcbb831fae2fcce632cbb583a8dabc4246ce 100644 (file)
@@ -497,7 +497,6 @@ INPUT                  = @srcdir@/libsupc++/cxxabi.h \
                          include/streambuf \
                          include/string \
                          include/system_error \
-                         include/thread \
                          include/tuple \
                          include/type_traits \
                          include/unordered_map \
index 1ef7af50e447bf271ca9699aff1e87b157103b44..69119dc6853eee6f6d68a014ef8fe121f6a1699c 100644 (file)
@@ -662,21 +662,23 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
     setbuf(char_type* __s, streamsize __n)
     {
       if (!this->is_open())
-       if (__s == 0 && __n == 0)
-         _M_buf_size = 1;
-       else if (__s && __n > 0)
-         {
-           // This is implementation-defined behavior, and assumes that
-           // an external char_type array of length __n exists and has
-           // been pre-allocated. If this is not the case, things will
-           // quickly blow up. When __n > 1, __n - 1 positions will be
-           // used for the get area, __n - 1 for the put area and 1
-           // position to host the overflow char of a full put area.
-           // When __n == 1, 1 position will be used for the get area
-           // and 0 for the put area, as in the unbuffered case above.
-           _M_buf = __s;
-           _M_buf_size = __n;
-         }
+       {
+         if (__s == 0 && __n == 0)
+           _M_buf_size = 1;
+         else if (__s && __n > 0)
+           {
+             // This is implementation-defined behavior, and assumes that
+             // an external char_type array of length __n exists and has
+             // been pre-allocated. If this is not the case, things will
+             // quickly blow up. When __n > 1, __n - 1 positions will be
+             // used for the get area, __n - 1 for the put area and 1
+             // position to host the overflow char of a full put area.
+             // When __n == 1, 1 position will be used for the get area
+             // and 0 for the put area, as in the unbuffered case above.
+             _M_buf = __s;
+             _M_buf_size = __n;
+           }
+       }
       return this;
     }
 
index f8dd50a19f9dfd19a914904dea38f0c40376f327..2a812423e8d712e23fe729b66477cb4e63eb22f1 100644 (file)
@@ -236,10 +236,12 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
       {
        const bool __testin = _M_mode & ios_base::in;
        if (this->pptr() && this->pptr() > this->egptr())
-         if (__testin)
-           this->setg(this->eback(), this->gptr(), this->pptr());
-         else
-           this->setg(this->pptr(), this->pptr(), this->pptr());
+         {
+           if (__testin)
+             this->setg(this->eback(), this->gptr(), this->pptr());
+           else
+             this->setg(this->pptr(), this->pptr(), this->pptr());
+         }
       }
     };
 
index 9401af4d13b66520177cfcc858c4fdf169ae16ae..12a503cbf90d394a5ef2cf13ea7cfc6a37c2813d 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-x c -lstdc++" }
+// { dg-options "-x c -shared-libgcc -lstdc++" }
 
 // Copyright (C) 2008 Free Software Foundation, Inc.
 //
index 727421bd12f3f61c85c178b4ab3abe4fa89168e0..658c2b7fc2f39b6342383bf1fc18a8b585e39e87 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-x c -lstdc++" }
+// { dg-options "-x c -shared-libgcc -lstdc++" }
 
 // Copyright (C) 2008 Free Software Foundation, Inc.
 //