Save-and-restore errno more carefully in libstdc++
authorJonathan Wakely <jwakely@redhat.com>
Thu, 1 Oct 2015 11:23:39 +0000 (12:23 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 1 Oct 2015 11:23:39 +0000 (12:23 +0100)
commitf14decafae0d1771e16498e693e7bf2f7058e88e
treea019470ff02af16e5d85abeda9ad9e5dc945f92f
parentaabef2de2f99d4a67840480eddf224ca1b43320e
Save-and-restore errno more carefully in libstdc++

* doc/xml/manual/diagnostics.xml: Document use of errno.
* doc/html/*: Regenerate.
* config/locale/generic/c_locale.cc (_Save_errno): New helper.
(__convert_to_v): Use _Save_errno.
* include/ext/string_conversions.h (__stoa): Only restore errno when
it isn't set to non-zero.

From-SVN: r228328
libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/generic/c_locale.cc
libstdc++-v3/doc/html/manual/concept_checking.html
libstdc++-v3/doc/html/manual/diagnostics.html
libstdc++-v3/doc/html/manual/index.html
libstdc++-v3/doc/html/manual/std_contents.html
libstdc++-v3/doc/xml/manual/diagnostics.xml
libstdc++-v3/include/ext/string_conversions.h