svn commit: r1135 - in trunk/yasm: frontends/yasm libyasm modules/parsers/nasm modules/parsers/nasm/tests modules/parsers/nasm/tests/worphan

peter at tortall.net peter at tortall.net
Fri Sep 3 17:25:21 PDT 2004


Author: peter
Date: Fri Sep  3 17:25:20 2004
New Revision: 1135

Added:
   trunk/yasm/modules/parsers/nasm/tests/orphannowarn.asm
   trunk/yasm/modules/parsers/nasm/tests/orphannowarn.errwarn
   trunk/yasm/modules/parsers/nasm/tests/orphannowarn.hex
   trunk/yasm/modules/parsers/nasm/tests/worphan/
   trunk/yasm/modules/parsers/nasm/tests/worphan/Makefile.inc
   trunk/yasm/modules/parsers/nasm/tests/worphan/nasm_worphan_test.sh   (contents, props changed)
   trunk/yasm/modules/parsers/nasm/tests/worphan/orphanwarn.asm
   trunk/yasm/modules/parsers/nasm/tests/worphan/orphanwarn.errwarn
   trunk/yasm/modules/parsers/nasm/tests/worphan/orphanwarn.hex
Modified:
   trunk/yasm/frontends/yasm/yasm.c
   trunk/yasm/libyasm/errwarn.c
   trunk/yasm/libyasm/errwarn.h
   trunk/yasm/modules/parsers/nasm/nasm-bison.y
   trunk/yasm/modules/parsers/nasm/tests/Makefile.inc
ViewCVS:
   http://www.tortall.net/cgi-bin/viewcvs.cgi?view=rev&rev=1135
Log:
* errwarn.h (yasm_warn_class): Add new class YASM_WARN_ORPHAN_LABEL.
* errwarn.c (yasm_errwarn_initialize): Disable YASM_WARN_ORPHAN_LABEL by
default.

* nasm-bison.y (lineexp): Warn (controlled by YASM_WARN_ORPHAN_LABEL) on
labels alone on a line without a colon.

* yasm.c (opt_warning_handler): Add option "-Worphan-labels" (and
"-Wno-orphan-labels" to enable/disable YASM_WARN_ORPHAN_LABEL.

* nasm/tests/worphan/*: Test YASM_WARN_ORPHAN_LABEL warning.
* nasm/tests/orphannowarn.*: Likewise (for disabled case).
* nasm/tests/Makefile.inc: Include worphan tests.

Bugzilla Bug 35
Reported By: vclaudepierre at tiscali.fr




More information about the yasm-cvs mailing list