]> granicus.if.org Git - yasm/commit
GAS parser: match .file and .line handling to that of GAS. In GAS, both
authorPeter Johnson <peter@tortall.net>
Sun, 26 Nov 2006 20:50:23 +0000 (20:50 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 26 Nov 2006 20:50:23 +0000 (20:50 -0000)
commit9da99362c9eca819a26709b1ecf3d185623a3cc6
tree47ee3f548e22edf8b8deb8dbe41197e3e6a7acc4
parent9e7761bba092d9fd7ccefa1ae3b7474262c49bc7
GAS parser: match .file and .line handling to that of GAS.  In GAS, both
.file (sans file number) and .line need to be given before error messages
start having the file/line numbers specified.

This temporarily breaks .rept error reporting somewhat (as the current code
outputs just .line for .rept expansion), but this will be fixed soon.

svn path=/trunk/yasm/; revision=1700
modules/parsers/gas/gas-bison.y
modules/parsers/gas/gas-parser.c
modules/parsers/gas/gas-parser.h
modules/parsers/gas/tests/Makefile.inc
modules/parsers/gas/tests/bin/reptwarn.asm
modules/parsers/gas/tests/bin/reptwarn.errwarn
modules/parsers/gas/tests/gas-line-err.asm [new file with mode: 0644]
modules/parsers/gas/tests/gas-line-err.errwarn [new file with mode: 0644]
modules/parsers/gas/tests/gas-line2-err.asm [new file with mode: 0644]
modules/parsers/gas/tests/gas-line2-err.errwarn [new file with mode: 0644]