diff options
author | David Faust <david.faust@oracle.com> | 2023-07-24 14:57:35 -0700 |
---|---|---|
committer | David Faust <david.faust@oracle.com> | 2023-07-26 08:22:31 -0700 |
commit | 9d1e07bd19fb126edf5ac8bb098777bee9364ca5 (patch) | |
tree | 93fcff9d437f813bdcea11d6d20b5d85caae48e0 /gas/doc | |
parent | 200546f1a33bd4e6d81d5bdef8d26836a7504bdb (diff) | |
download | binutils-9d1e07bd19fb126edf5ac8bb098777bee9364ca5.zip binutils-9d1e07bd19fb126edf5ac8bb098777bee9364ca5.tar.gz binutils-9d1e07bd19fb126edf5ac8bb098777bee9364ca5.tar.bz2 |
bpf: accept # as an inline comment char
This little patch makes the BPF assembler accept '#' as an inline
comment character, which clang -S seems to use.
gas/
* config/tc-bpf.c (comment_chars): Add '#'.
* doc/c-bpf.texi (BPF Special Characters): Add note that '#' may
be used for inline comments.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/c-bpf.texi | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gas/doc/c-bpf.texi b/gas/doc/c-bpf.texi index 6683ff9..868a358 100644 --- a/gas/doc/c-bpf.texi +++ b/gas/doc/c-bpf.texi @@ -64,9 +64,8 @@ the host endianness is used. @cindex line comment character, BPF @cindex BPF line comment character -The presence of a @samp{;} on a line indicates the start of a comment -that extends to the end of the current line. If a @samp{#} appears as -the first character of a line, the whole line is treated as a comment. +The presence of a @samp{;} or a @samp{#} on a line indicates the start +of a comment that extends to the end of the current line. @cindex statement separator, BPF Statements and assembly directives are separated by newlines. |