]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/config/tc-cr16.c
Remove strneq macro and use startswith.
[thirdparty/binutils-gdb.git] / gas / config / tc-cr16.c
index 733b08e2b64707edb8eb3601e97f6fbbd7d4cd96..1f6b1fe8b6d08f5e43517b3ccda9416f8648426c 100644 (file)
@@ -905,34 +905,34 @@ process_label_constant (char *str, ins * cr16_ins)
       cr16_ins->rtype = BFD_RELOC_NONE;
       relocatable = 1;
 
-      if (strneq (input_line_pointer, "@c", 2))
+      if (startswith (input_line_pointer, "@c"))
        symbol_with_at = 1;
 
-      if (strneq (input_line_pointer, "@l", 2)
-         || strneq (input_line_pointer, ":l", 2))
+      if (startswith (input_line_pointer, "@l")
+         || startswith (input_line_pointer, ":l"))
        symbol_with_l = 1;
 
-      if (strneq (input_line_pointer, "@m", 2)
-         || strneq (input_line_pointer, ":m", 2))
+      if (startswith (input_line_pointer, "@m")
+         || startswith (input_line_pointer, ":m"))
        symbol_with_m = 1;
 
-      if (strneq (input_line_pointer, "@s", 2)
-         || strneq (input_line_pointer, ":s", 2))
+      if (startswith (input_line_pointer, "@s")
+         || startswith (input_line_pointer, ":s"))
        symbol_with_s = 1;
 
-      if (strneq (input_line_pointer, "@cGOT", 5)
-         || strneq (input_line_pointer, "@cgot", 5))
+      if (startswith (input_line_pointer, "@cGOT")
+         || startswith (input_line_pointer, "@cgot"))
        {
          if (GOT_symbol == NULL)
            GOT_symbol = symbol_find_or_make (GLOBAL_OFFSET_TABLE_NAME);
 
          symbol_with_at_gotc = 1;
        }
-      else if (strneq (input_line_pointer, "@GOT", 4)
-              || strneq (input_line_pointer, "@got", 4))
+      else if (startswith (input_line_pointer, "@GOT")
+              || startswith (input_line_pointer, "@got"))
        {
-         if ((strneq (input_line_pointer, "+", 1))
-             || (strneq (input_line_pointer, "-", 1)))
+         if ((startswith (input_line_pointer, "+"))
+             || (startswith (input_line_pointer, "-")))
            as_warn (_("GOT bad expression with %s."), input_line_pointer);
 
          if (GOT_symbol == NULL)