[Bug other/44574] Avoid use of atoi

2024-03-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574 --- Comment #5 from Andrew Pinski --- Note I filed PR 114540 for the usage in varasm.cc (decode_reg_name_and_count) as you can come up with a few testcases where we don't reject invalid registers # when we should.

[Bug other/44574] Avoid use of atoi

2023-06-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574 --- Comment #4 from Jonathan Wakely --- Now that we have C++11 we could use std::stoi, std::stol, std::stoul etc. ... except that they throw exceptions to report out of range values :-( std::from_chars isn't available until C++17.

[Bug other/44574] Avoid use of atoi

2021-08-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2010-11-18 22:32:30 |2021-8-24 Keywords|

[Bug other/44574] Avoid use of atoi

2011-05-12 Thread jsm28 at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574 --- Comment #2 from Joseph S. Myers 2011-05-12 21:08:14 UTC --- There are also uses of atol, atoll and atoq to eliminate. Also note some Ada code using atoi (surely there must be a more idiomatic Ada way of doing this?). It would be best to poi

[Bug other/44574] Avoid use of atoi

2010-11-18 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|