]> granicus.if.org Git - yasm/commit
Split NASM preprocessor standard macro set between various modules.
authorPeter Johnson <peter@tortall.net>
Fri, 9 May 2008 06:46:02 +0000 (06:46 -0000)
committerPeter Johnson <peter@tortall.net>
Fri, 9 May 2008 06:46:02 +0000 (06:46 -0000)
commitcbf0c7befdecd2da9bf4f866c3b25bb0f6b173f0
tree9c826aade374450549a3aca820112a5c71fc7c05
parentd8a6f8c3765cbbd8f2908965cb4b2adee1499c56
Split NASM preprocessor standard macro set between various modules.
Standard macro sets are looked up based on parser and preprocessor keyword
from individual modules.

The "standard" NASM parser macros now reside in the NASM parser, so when
the GAS parser is used with the NASM preprocessor, the NASM-specific macros
are no longer defined.

Object-format specific macros are now individually defined by each object
formatm module.  This allows for the object formats to be independent of the
NASM preprocessor module and yields a small optimization benefit as unused
object format macros don't need to be skipped over.

Also add GAS macro equivalents for the Win64 SEH more complex directives [1].

[1] Requested by Brian Gladman <brg@gladman.plus.com>

svn path=/trunk/yasm/; revision=2082
34 files changed:
frontends/yasm/yasm.c
libyasm/coretype.h
libyasm/objfmt.h
libyasm/parser.h
libyasm/preproc.h
modules/objfmts/bin/bin-objfmt.c
modules/objfmts/coff/Makefile.inc
modules/objfmts/coff/coff-objfmt.c
modules/objfmts/coff/win64-gas.mac [new file with mode: 0644]
modules/objfmts/coff/win64-nasm.mac [new file with mode: 0644]
modules/objfmts/dbg/dbg-objfmt.c
modules/objfmts/elf/elf-objfmt.c
modules/objfmts/macho/macho-objfmt.c
modules/objfmts/rdf/rdf-objfmt.c
modules/objfmts/win64/tests/Makefile.inc
modules/objfmts/win64/tests/gas/Makefile.inc [new file with mode: 0644]
modules/objfmts/win64/tests/gas/win64-gas-sce.asm [new file with mode: 0644]
modules/objfmts/win64/tests/gas/win64-gas-sce.hex [new file with mode: 0644]
modules/objfmts/win64/tests/gas/win64_gas_test.sh [new file with mode: 0755]
modules/objfmts/xdf/xdf-objfmt.c
modules/parsers/gas/gas-parser.c
modules/parsers/nasm/Makefile.inc
modules/parsers/nasm/nasm-parser.c
modules/parsers/nasm/nasm-std.mac [new file with mode: 0644]
modules/preprocs/cpp/cpp-preproc.c
modules/preprocs/nasm/Makefile.inc
modules/preprocs/nasm/genmacro.c [deleted file]
modules/preprocs/nasm/genversion.c
modules/preprocs/nasm/nasm-pp.c
modules/preprocs/nasm/nasm-preproc.c
modules/preprocs/nasm/standard.mac [deleted file]
modules/preprocs/nasm/tests/nasmpp-nested.errwarn
modules/preprocs/raw/raw-preproc.c
modules/preprocs/yapp/yapp-preproc.c