[Bug target/80672] New: gcc/config/sh/sh.c:716: prefer compare to find.
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Mon May 8 16:46:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80672
Bug ID: 80672
Summary: gcc/config/sh/sh.c:716: prefer compare to find.
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
trunk/gcc/config/sh/sh.c:716]: (performance) Inefficient usage of
string::find() in condition; string::compare() would be faster.
Source code is
else if (tokens[i].find ("gbr-offset=") == 0)
More information about the Gcc-bugs
mailing list