diff options
Diffstat (limited to 'gas/config/tc-avr.c')
-rw-r--r-- | gas/config/tc-avr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/tc-avr.c b/gas/config/tc-avr.c index 7d6bfde..397f22d 100644 --- a/gas/config/tc-avr.c +++ b/gas/config/tc-avr.c @@ -942,10 +942,10 @@ avr_ldi_expression (expressionS *exp) ++str; - if (strncmp ("pm(", str, 3) == 0 - || strncmp ("gs(",str,3) == 0 - || strncmp ("-(gs(",str,5) == 0 - || strncmp ("-(pm(", str, 5) == 0) + if (startswith (str, "pm(") + || startswith (str, "gs(") + || startswith (str, "-(gs(") + || startswith (str, "-(pm(")) { if (HAVE_PM_P (mod)) { |