aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov-io.h
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2021-07-04 23:22:32 +0200
committerMark Wielaard <mark@klomp.org>2021-07-04 23:56:06 +0200
commitff35f162daebd1ac6538aa74c0f270f8e19902de (patch)
tree487d1b338b5a4060bbcb605d0c9e298475d1587a /gcc/gcov-io.h
parent210ae4f7b0fea9671482b8f01354fd5b9274f878 (diff)
downloadgcc-ff35f162daebd1ac6538aa74c0f270f8e19902de.zip
gcc-ff35f162daebd1ac6538aa74c0f270f8e19902de.tar.gz
gcc-ff35f162daebd1ac6538aa74c0f270f8e19902de.tar.bz2
Handle shebang line, plus any whitespace and comment skipping in lexer
The lexer tried to handle the shebang line but used loc directly, instead of the current_column. And it assumed a '/' should immediately follow the "#!". But if the "#!" is followed by whitespace and/or comments and a '[' character, then the first line isn't see as a shebang line (even if the kernel or shell would) but as the start of an inner attribute. Add various tests for when the first line starting with "#!" is seen as a shebang line (and should be skipped). And some tests there is a '[' character following some whitespace and/or comments and the "#!" is seen as part of an inner attribute.
Diffstat (limited to 'gcc/gcov-io.h')
0 files changed, 0 insertions, 0 deletions