svn commit: r1548 - in trunk/yasm/modules/parsers/nasm: .

peter at tortall.net peter at tortall.net
Wed May 31 23:40:14 PDT 2006


Author: peter
Date: Wed May 31 23:40:12 2006
New Revision: 1548

Added:
   trunk/yasm/modules/parsers/nasm/tests/charconstmath.asm
   trunk/yasm/modules/parsers/nasm/tests/charconstmath.errwarn
   trunk/yasm/modules/parsers/nasm/tests/charconstmath.hex
Modified:
   trunk/yasm/modules/parsers/nasm/nasm-bison.y
   trunk/yasm/modules/parsers/nasm/nasm-token.re
   trunk/yasm/modules/parsers/nasm/tests/Makefile.inc
Changeset:
   http://www.tortall.net/projects/yasm/changeset/1548

Log:
Fix use of arithmetic with single-character constants in data declarations.
Multi-character constants are still not valid, as they are somewhat
difficult to handle without adding some sort of string handling into
yasm_expr.  This fix may break big-endian targets (we don't have any yet).

* nasm-bison.y: Add new token ONECHARSTR.  Add string rule that takes
STRING and ONECHARSTR; use this instead of STRING everywhere but dataval.
In dvexpr, take ONECHARSTR as character constant.
* nasm-token.re: Generate ONECHARSTR for one-character string contants.

Reported by: Robert Riebisch <rr at bttr-software.de>



More information about the yasm-cvs mailing list