We set errno=0 in __gnu_cxx::__stoa in order to reliably detect when it gets set to ERANGE. This restores the previous value when the conversion is successful. Tested powerpc64le-linux, committed to trunk.