]> granicus.if.org Git - yasm/commitdiff
Actually fully support "gnu" alias for "gas" parser. A number of places
authorPeter Johnson <peter@tortall.net>
Wed, 31 Jan 2007 18:29:12 +0000 (18:29 -0000)
committerPeter Johnson <peter@tortall.net>
Wed, 31 Jan 2007 18:29:12 +0000 (18:29 -0000)
do a check against the parser name.

Reported by: rugxulo@gmail.com

svn path=/trunk/yasm/; revision=1749

frontends/yasm/yasm.c
modules/arch/x86/x86arch.c

index 603d079d06dc1e81f052e27c9ed9ac8ca8543df6..56305dc1b0223bbb0cf8214645b70c065b7ab36c 100644 (file)
@@ -474,7 +474,8 @@ do_assemble(FILE *in)
 
     /* Check for undefined symbols */
     yasm_symtab_parser_finalize(yasm_object_get_symtab(object),
-                               strcmp(cur_parser_module->keyword, "gas")==0,
+                               strcmp(cur_parser_module->keyword, "gas")==0 ||
+                               strcmp(cur_parser_module->keyword, "gnu")==0,
                                cur_objfmt, errwarns);
     check_errors(errwarns, object);
 
index ded908407aea7836ba6d43b9a1fd7930f9079684..731f102ee200ce783ff9d8f46634762d93e0d34d 100644 (file)
@@ -65,7 +65,8 @@ x86_create(const char *machine, const char *parser,
 
     if (yasm__strcasecmp(parser, "nasm") == 0)
        arch_x86->parser = X86_PARSER_NASM;
-    else if (yasm__strcasecmp(parser, "gas") == 0)
+    else if (yasm__strcasecmp(parser, "gas") == 0
+            || yasm__strcasecmp(parser, "gnu") == 0)
        arch_x86->parser = X86_PARSER_GAS;
     else {
        yasm_xfree(arch_x86);