From: Mike Frysinger Date: Fri, 20 Oct 2006 00:32:43 +0000 (+0000) Subject: * config/tc-i386.c (md_parse_option): Use CONST_STRNEQ. X-Git-Tag: gdb_6_6-2006-11-15-branchpoint~212 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8620418b9c1073361483e7b0883ca91e18d2e465;p=platform%2Fupstream%2Fbinutils.git * config/tc-i386.c (md_parse_option): Use CONST_STRNEQ. (x86_64_section_letter): Likewise. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 2d40bdf..48e08a1 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2006-10-19 Mike Frysinger + + * config/tc-i386.c (md_parse_option): Use CONST_STRNEQ. + (x86_64_section_letter): Likewise. + 2006-10-19 Mei Ligang * config/tc-score.c (build_relax_frag): Compute correct diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 5d2a24a..758fb22 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -5882,7 +5882,7 @@ md_parse_option (int c, char *arg) list = bfd_target_list (); for (l = list; *l != NULL; l++) - if ( strncmp (*l, "elf64-x86-64", 12) == 0 + if (CONST_STRNEQ (*l, "elf64-x86-64") || strcmp (*l, "coff-x86-64") == 0 || strcmp (*l, "pe-x86-64") == 0 || strcmp (*l, "pei-x86-64") == 0) @@ -7785,7 +7785,7 @@ x86_64_section_letter (int letter, char **ptr_msg) int x86_64_section_word (char *str, size_t len) { - if (len == 5 && flag_code == CODE_64BIT && strncmp (str, "large", 5) == 0) + if (len == 5 && flag_code == CODE_64BIT && CONST_STRNEQ (str, "large")) return SHF_X86_64_LARGE; return -1;