]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ELF: use is_end_of_stmt()
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:08:25 +0000 (08:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:08:25 +0000 (08:08 +0100)
... instead of open-coding it.

gas/config/obj-elf.c

index 0eb809cc15ea8a16a8e22d726151e186d24f4ee6..d37d0fdc6107bdadfb7a7fb84ba7d3136d0633da 100644 (file)
@@ -264,7 +264,7 @@ elf_common_parse (int ignore ATTRIBUTE_UNUSED, symbolS *symbolP, addressT size)
 
              while (*--p != '"')
                ;
-             while (!is_end_of_line[(unsigned char) *input_line_pointer])
+             while (!is_end_of_stmt (*input_line_pointer))
                if (*input_line_pointer++ == '"')
                  break;
              c = *input_line_pointer;
@@ -1324,7 +1324,7 @@ obj_elf_section (int push)
                  && (bfd_section_flags (now_seg)
                      & (SEC_MERGE | SEC_STRINGS)) != 0)
                goto fetch_entsize;
-             if (is_end_of_line[(unsigned char) *input_line_pointer])
+             if (is_end_of_stmt (*input_line_pointer))
                {
                  /* ??? This is here for older versions of gcc that
                     test for gas string merge support with