From: John David Anglin Date: Fri, 11 Aug 2023 15:44:37 +0000 (+0000) Subject: Use strtol instead of std::stoi [PR110646] X-Git-Tag: basepoints/gcc-15~6984 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=834d1422c2e056f483542f1aff2cfc211bfcc748;p=thirdparty%2Fgcc.git Use strtol instead of std::stoi [PR110646] Implementation of std::stoi was overlooked on hppa-hpux, so use strtol instead. 2023-08-11 John David Anglin gcc/ChangeLog: PR bootstrap/110646 * gensupport.cc(class conlist): Use strtol instead of std::stoi. --- diff --git a/gcc/gensupport.cc b/gcc/gensupport.cc index b2feb03363ac..f7164b3214d2 100644 --- a/gcc/gensupport.cc +++ b/gcc/gensupport.cc @@ -640,7 +640,7 @@ public: name.assign (ns, len); if (numeric) - idx = std::stoi (name); + idx = strtol (name.c_str (), (char **)NULL, 10); } /* Adds a character to the end of the string. */