sstream: Adjust braces.
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
This commit is contained in:
parent
2b8775f335
commit
d9cdfe6a7f
@ -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>
|
2008-05-13 David Daney <ddaney@avtrex.com>
|
||||||
|
|
||||||
* config/cpu/mips/atomicity.h: Remove file.
|
* config/cpu/mips/atomicity.h: Remove file.
|
||||||
|
@ -497,7 +497,6 @@ INPUT = @srcdir@/libsupc++/cxxabi.h \
|
|||||||
include/streambuf \
|
include/streambuf \
|
||||||
include/string \
|
include/string \
|
||||||
include/system_error \
|
include/system_error \
|
||||||
include/thread \
|
|
||||||
include/tuple \
|
include/tuple \
|
||||||
include/type_traits \
|
include/type_traits \
|
||||||
include/unordered_map \
|
include/unordered_map \
|
||||||
|
@ -662,21 +662,23 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
|||||||
setbuf(char_type* __s, streamsize __n)
|
setbuf(char_type* __s, streamsize __n)
|
||||||
{
|
{
|
||||||
if (!this->is_open())
|
if (!this->is_open())
|
||||||
if (__s == 0 && __n == 0)
|
{
|
||||||
_M_buf_size = 1;
|
if (__s == 0 && __n == 0)
|
||||||
else if (__s && __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
|
// This is implementation-defined behavior, and assumes that
|
||||||
// been pre-allocated. If this is not the case, things will
|
// an external char_type array of length __n exists and has
|
||||||
// quickly blow up. When __n > 1, __n - 1 positions will be
|
// been pre-allocated. If this is not the case, things will
|
||||||
// used for the get area, __n - 1 for the put area and 1
|
// quickly blow up. When __n > 1, __n - 1 positions will be
|
||||||
// position to host the overflow char of a full put area.
|
// used for the get area, __n - 1 for the put area and 1
|
||||||
// When __n == 1, 1 position will be used for the get area
|
// position to host the overflow char of a full put area.
|
||||||
// and 0 for the put area, as in the unbuffered case above.
|
// When __n == 1, 1 position will be used for the get area
|
||||||
_M_buf = __s;
|
// and 0 for the put area, as in the unbuffered case above.
|
||||||
_M_buf_size = __n;
|
_M_buf = __s;
|
||||||
}
|
_M_buf_size = __n;
|
||||||
|
}
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -236,10 +236,12 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
|||||||
{
|
{
|
||||||
const bool __testin = _M_mode & ios_base::in;
|
const bool __testin = _M_mode & ios_base::in;
|
||||||
if (this->pptr() && this->pptr() > this->egptr())
|
if (this->pptr() && this->pptr() > this->egptr())
|
||||||
if (__testin)
|
{
|
||||||
this->setg(this->eback(), this->gptr(), this->pptr());
|
if (__testin)
|
||||||
else
|
this->setg(this->eback(), this->gptr(), this->pptr());
|
||||||
this->setg(this->pptr(), this->pptr(), this->pptr());
|
else
|
||||||
|
this->setg(this->pptr(), this->pptr(), this->pptr());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// { dg-options "-x c -lstdc++" }
|
// { dg-options "-x c -shared-libgcc -lstdc++" }
|
||||||
|
|
||||||
// Copyright (C) 2008 Free Software Foundation, Inc.
|
// Copyright (C) 2008 Free Software Foundation, Inc.
|
||||||
//
|
//
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// { dg-options "-x c -lstdc++" }
|
// { dg-options "-x c -shared-libgcc -lstdc++" }
|
||||||
|
|
||||||
// Copyright (C) 2008 Free Software Foundation, Inc.
|
// Copyright (C) 2008 Free Software Foundation, Inc.
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user