Save-and-restore errno more carefully in libstdc++
commit12ae83b7bb49d843751c78788c9099c8071c8b1a
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Oct 2015 11:23:39 +0000 (1 11:23 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Oct 2015 11:23:39 +0000 (1 11:23 +0000)
treea019470ff02af16e5d85abeda9ad9e5dc945f92f
parent7e93eb1a344eea57038b0bf24556aed75034f204
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228328 138bc75d-0d04-0410-961f-82ee72b054a4
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