diff options
author | Jan Beulich <jbeulich@suse.com> | 2024-07-19 11:54:45 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2024-07-19 11:54:45 +0200 |
commit | fd05d6b739fd06bbd993e6a673841977d33dd763 (patch) | |
tree | c4f0176df72c367664858219217cb078e3f5804e /gas | |
parent | 0d96d156aca0aa022f174be4add3d3cb56d7f6b7 (diff) | |
download | binutils-fd05d6b739fd06bbd993e6a673841977d33dd763.zip binutils-fd05d6b739fd06bbd993e6a673841977d33dd763.tar.gz binutils-fd05d6b739fd06bbd993e6a673841977d33dd763.tar.bz2 |
gas: adjust impossible/bogus M68K/MRI special case when scrubbing
State 1 is uniformly handled further up. And it is highly questionable
that in state 10 (i.e. after having seen not only a possible label, but
also an opcode), which is about to go away anyway, a line comment char
could still be meant to take effect. With the state checking dropped,
the immediately preceding logic can then also be simplified.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/app.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1368,14 +1368,10 @@ do_scrub_chars (size_t (*get) (char *, size_t), char *tostart, size_t tolen, start of a line. If this is also a normal comment character, fall through. Otherwise treat it as a default character. */ - if (strchr (tc_comment_chars, ch) == NULL - && (! scrub_m68k_mri - || (ch != '!' && ch != '*'))) + if (strchr (tc_comment_chars, ch) == NULL) goto de_fault; if (scrub_m68k_mri - && (ch == '!' || ch == '*' || ch == '#') - && state != 1 - && state != 10) + && (ch == '!' || ch == '*' || ch == '#')) goto de_fault; /* Fall through. */ case LEX_IS_COMMENT_START: |