]> granicus.if.org Git - yasm/commit
Fix cross-reference filename/line number. We were reporting (wrongly) the
authorPeter Johnson <peter@tortall.net>
Thu, 8 Jun 2006 04:10:04 +0000 (04:10 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 8 Jun 2006 04:10:04 +0000 (04:10 -0000)
commitccf729f6f4ae95bb5672b3ca666fe55d94f13f3a
treef48c8de478bb728634c7ba4eab5db43b7f18b561
parenta93ccb630d1158829c8be04c6cb2bf2e215eaa99
Fix cross-reference filename/line number.  We were reporting (wrongly) the
virtual line number rather than the physical filename/line number.  This
was broken when the errwarn code was changed and not caught because I didn't
check the errwarn results closely enough for this case.

* nasm-token.re, gas-token.re: Propagate warnings from arch early.
This is a case where we probably want the double-error/warning on a single
line.

* errwarn.h: Add xref filename to yasm_print_error_func, and document all
parameters.
* errwarn.c: Get the physical file/line for xref virtual line.
* yasm.c: Update to match new yasm_print_error_func definition.

* pushf-err.errwarn: Correct test.

svn path=/trunk/yasm/; revision=1556
frontends/yasm/yasm.c
libyasm/errwarn.c
libyasm/errwarn.h
modules/arch/x86/tests/pushf-err.errwarn
modules/parsers/gas/gas-token.re
modules/parsers/nasm/nasm-token.re