diff options
author | Jan Beulich <jbeulich@suse.com> | 2024-08-05 16:29:28 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2024-08-05 16:29:28 +0200 |
commit | 526363dbe4524a5364853276caba3306b813b71c (patch) | |
tree | a90258e3555bbc16707dcb0c34a552c2ba3b8789 /elfcpp/elfcpp_internal.h | |
parent | 1068b74548858fe9c8ed17f0bba8b136111fbec9 (diff) | |
download | gdb-526363dbe4524a5364853276caba3306b813b71c.zip gdb-526363dbe4524a5364853276caba3306b813b71c.tar.gz gdb-526363dbe4524a5364853276caba3306b813b71c.tar.bz2 |
gas: generalize / tighten #APP / #NO_APP recognition
For one '#' may not be in line_comment_chars[] in the first place. Look
for just it when it is (these "directives" are akin to C preprocessor
directives after all), but accept any other line comment character
otherwise (in read.c further requiring a match on the counterpart
"directive").
Then, when in the middle of a file, the constructs should be all on
their own on a line. There needs to be a newline ahead of them and
after them.
Finally '\n' may not be the only end-of-line character. Accept any (but
not end-of-statement ones) in read.c, while making sure in input-file.c
there is one in the first place - merely any kind of whitespace isn't
good enough.
Diffstat (limited to 'elfcpp/elfcpp_internal.h')
0 files changed, 0 insertions, 0 deletions