]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas MMIX: Use more of is_... framework like is_whitespace and is_end_of_stmt
authorJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 06:52:19 +0000 (07:52 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Wed, 5 Feb 2025 06:07:24 +0000 (07:07 +0100)
commit2a81e7ff9e498e2637ca52db3a18752e4d904dd0
treebd4c5d0e1d1eaaa5aef2305bf4f585a596cd03ad
parentb9334b91436cca92150701627919a9c8e874878b
gas MMIX: Use more of is_... framework like is_whitespace and is_end_of_stmt

Convert uses of ISSPACE() and testing for specific characters into
calls to is_whitespace and is_end_of_stmt.  While doing that, also
remove some redundant tests, like ';' together with is_end_of_line[]
and is_whitespace and !is_end_of_line.

Note the invalid casts being fixed as part of moving to is_... macros;
there were (unsigned int) where there should have been (unsigned char)
applied on char as index to is_end_of_line[].

Beware that the input language changes slightly: some constructs with
whitespace characters other than space and TAB are now invalid.
gas/config/tc-mmix.c