mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-23 00:40:59 +08:00
backport: re PR target/80672 (gcc/config/sh/sh.c:716: prefer compare to find.)
gcc/ 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org> Backport from mainline 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org> PR target/80672 * config/sh/sh.c (parse_validate_atomic_model_option): Use std::string::compare instead of std::string::find. From-SVN: r276243
This commit is contained in:
parent
5c9f68d586
commit
6a1f70d395
@ -1,3 +1,12 @@
|
||||
2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
|
||||
|
||||
Backport from mainline
|
||||
2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
|
||||
|
||||
PR target/80672
|
||||
* config/sh/sh.c (parse_validate_atomic_model_option): Use
|
||||
std::string::compare instead of std::string::find.
|
||||
|
||||
2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
|
||||
|
||||
Backport from mainline
|
||||
|
@ -713,7 +713,7 @@ got_mode_name:;
|
||||
{
|
||||
if (tokens[i] == "strict")
|
||||
ret.strict = true;
|
||||
else if (tokens[i].find ("gbr-offset=") == 0)
|
||||
else if (!tokens[i].compare (0, strlen ("gbr-offset="), "gbr-offset="))
|
||||
{
|
||||
std::string offset_str = tokens[i].substr (strlen ("gbr-offset="));
|
||||
ret.tcb_gbr_offset = integral_argument (offset_str.c_str ());
|
||||
|
Loading…
x
Reference in New Issue
Block a user