Parse asm after a label as a statement, not an attribute
commit6b595d01c196bb013d6d95fc297ae2cb07c1fce7
authorJosh Triplett <josh@freedesktop.org>
Wed, 2 May 2007 05:36:47 +0000 (1 22:36 -0700)
committerJosh Triplett <josh@freedesktop.org>
Wed, 2 May 2007 05:36:47 +0000 (1 22:36 -0700)
treea9a1b10b65c24c649a1cfc103d8ee86246ae2832
parent0fcbcbf4cf2e41fcfcd3361a8698d887f73058d0
Parse asm after a label as a statement, not an attribute

Commit aec53c938c34c47cdbdd6824552e0f2a5104b1cb, "handle label attributes",
caused sparse to parse asm after a label as an attribute, not a statement.
Fix this by adding a new allow_asm flag to handle_attributes, and passing 0
when parsing label attributes.  Expand validation/asm-volatile.c to include
the test case that demonstrated this bug.

Thanks to Randy Dunlap for reporting the problem.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
parse.c
validation/asm-volatile.c