Actually fully support "gnu" alias for "gas" parser. A number of places

do a check against the parser name.

Reported by: rugxulo@gmail.com

svn path=/trunk/yasm/; revision=1749
0.6.0
Peter Johnson 18 years ago
parent fa63e6debf
commit 03d66466d5
  1. 3
      frontends/yasm/yasm.c
  2. 3
      modules/arch/x86/x86arch.c

@ -474,7 +474,8 @@ do_assemble(FILE *in)
/* Check for undefined symbols */ /* Check for undefined symbols */
yasm_symtab_parser_finalize(yasm_object_get_symtab(object), 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); cur_objfmt, errwarns);
check_errors(errwarns, object); check_errors(errwarns, object);

@ -65,7 +65,8 @@ x86_create(const char *machine, const char *parser,
if (yasm__strcasecmp(parser, "nasm") == 0) if (yasm__strcasecmp(parser, "nasm") == 0)
arch_x86->parser = X86_PARSER_NASM; 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; arch_x86->parser = X86_PARSER_GAS;
else { else {
yasm_xfree(arch_x86); yasm_xfree(arch_x86);

Loading…
Cancel
Save