[Bug target/80672] gcc/config/sh/sh.c:716: prefer compare to find.
olegendo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Sep 28 08:46:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80672
Oleg Endo <olegendo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #9 from Oleg Endo <olegendo at gcc dot gnu.org> ---
Although the use of string::find most likely doesn't have any performance
impact in this case in a real-world usage, it also doesn't hurt to use
string::compare.
Fixed on trunk (GCC 10) and backported to GCC 9, 8, 7.
More information about the Gcc-bugs
mailing list