diff options
Diffstat (limited to 'gas/config/tc-s390.c')
-rw-r--r-- | gas/config/tc-s390.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-s390.c b/gas/config/tc-s390.c index 564418e..0750f25 100644 --- a/gas/config/tc-s390.c +++ b/gas/config/tc-s390.c @@ -312,7 +312,7 @@ s390_parse_cpu (const char *arg, char *ilp_bak; icpu = S390_OPCODE_MAXCPU; - if (strncmp (arg, "all", 3) == 0 && (arg[3] == 0 || arg[3] == '+')) + if (startswith (arg, "all") && (arg[3] == 0 || arg[3] == '+')) { icpu = S390_OPCODE_MAXCPU - 1; arg += 3; @@ -427,7 +427,7 @@ md_parse_option (int c, const char *arg) current_mode_mask = 1 << S390_OPCODE_ZARCH; } - else if (arg != NULL && strncmp (arg, "arch=", 5) == 0) + else if (arg != NULL && startswith (arg, "arch=")) { current_cpu = s390_parse_cpu (arg + 5, ¤t_flags, false); if (current_cpu == S390_OPCODE_MAXCPU) |