diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2023-08-11 15:44:37 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2023-08-11 15:44:37 +0000 |
commit | 834d1422c2e056f483542f1aff2cfc211bfcc748 (patch) | |
tree | 370197bd18f6589e6ef58449a75513182bc23dbf | |
parent | c46bded78f3733ad1312d141ebf1ae541032a48b (diff) | |
download | gcc-834d1422c2e056f483542f1aff2cfc211bfcc748.zip gcc-834d1422c2e056f483542f1aff2cfc211bfcc748.tar.gz gcc-834d1422c2e056f483542f1aff2cfc211bfcc748.tar.bz2 |
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 <danglin@gcc.gnu.org>
gcc/ChangeLog:
PR bootstrap/110646
* gensupport.cc(class conlist): Use strtol instead of std::stoi.
-rw-r--r-- | gcc/gensupport.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gensupport.cc b/gcc/gensupport.cc index b2feb03..f7164b3 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. */ |