]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/expr.c
gas: sanitize FB- and dollar-label uses
authorJan Beulich <jbeulich@suse.com>
Thu, 28 Mar 2024 10:53:59 +0000 (11:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Mar 2024 10:53:59 +0000 (11:53 +0100)
commit226749d5a6ff0d5c607d6428d6c81e1e7e7a994b
tree88ac6a3127f548cdf25db9b984e1316e4c0ac7ca
parent5fc0b1f79fba21cbaf31c197d279773a00a63ef0
gas: sanitize FB- and dollar-label uses

I don't view it as sensible to be more lax when it comes to references
to (uses of) such labels compared to their definition: The latter has
been limited to decimal numerics, while the former permitted any radix.
Beyond that leading zeroes on such labels aren't helpful either. Imo
labels and their use sites would better match literally, to avoid
confusion.

As it turns out, one z80 testcase actually had such an odd use of labels
where definition and use don't match in spelling. That testcase is being
adjusted accordingly.

While there also adjust a comment on a local variable in
integer_constant().
gas/NEWS
gas/expr.c
gas/read.c
gas/testsuite/gas/z80/sdcc.s