]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
kvx: O_pseudo_fixup
authorAlan Modra <amodra@gmail.com>
Tue, 22 Aug 2023 23:26:13 +0000 (08:56 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 23 Aug 2023 01:33:52 +0000 (11:03 +0930)
commit36a52ab3bf46183e89c5ab01bb446fc6f94ce67d
treef1b7853bce01c8eda85905ca07dc14b34e8afa98
parent990f9a1d13e3e6fa9443d23fdd146528d4f21159
kvx: O_pseudo_fixup

O_pseudo_fixup was defined as O_max+1, missing the fact that O_md1
through O_md32 enums are for use by target code.  Worse, kvx-parse.c
used 64 rather than O_pseudo_fixup.  Fix this, and wrap some overlong
lines.

* config/tc-kvx.h (O_pseudo_fixup): Define.
* config/tc-kvx.c (O_pseudo_fixup): Don't define here.
(insert_operand): Delete bogus comment and cast.
* config/kvx-parse.c (promote_token): Use O_pseudo_fixup
rather than hardcoded value.  Wrap overlong lines.
(get_token_class): Likewise.
(parse_with_restarts): Wrap overlong line.
gas/config/kvx-parse.c
gas/config/tc-kvx.c
gas/config/tc-kvx.h