Allow registers as GAS directive parameters.

This is required for the win64 SEH directives.

svn path=/trunk/yasm/; revision=2081
0.7.2
Peter Johnson 17 years ago
parent 44c098823f
commit d8a6f8c376
  1. 5
      modules/parsers/gas/gas-parse.c

@ -1027,6 +1027,11 @@ parse_dirvals(yasm_parser_gas *parser_gas, yasm_valparamhead *vps)
vp = yasm_vp_create_string(NULL, STRING_val.contents);
get_next_token(); /* STRING */
break;
case REG:
e = p_expr_new_ident(yasm_expr_reg(REG_val));
vp = yasm_vp_create_expr(NULL, e);
get_next_token(); /* REG */
break;
case '@':
/* XXX: is throwing it away *really* the right thing? */
get_next_token(); /* @ */

Loading…
Cancel
Save