This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/80672] New: gcc/config/sh/sh.c:716: prefer compare to find.


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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]