diff options
| author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-24 21:49:34 +0000 |
|---|---|---|
| committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-24 21:49:34 +0000 |
| commit | 6269e47ee11ccb2170e24d6a9931be6f7a8e222b (patch) | |
| tree | cad67533cd08c325707ca5aac9c99844289bff1a /gcc/cpplex.c | |
| parent | aee16bdaede2574ad30cc6b39e1a9a93fa53c878 (diff) | |
| download | ppe42-gcc-6269e47ee11ccb2170e24d6a9931be6f7a8e222b.tar.gz ppe42-gcc-6269e47ee11ccb2170e24d6a9931be6f7a8e222b.zip | |
* cppexp.c: Warn about unary + if -Wtraditional.
* cpplex.c (lex_line): Always set BOL on the first token of a line.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35239 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplex.c')
| -rw-r--r-- | gcc/cpplex.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index 36beb95ed7d..bbe6f355b77 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -1881,10 +1881,8 @@ lex_line (pfile, list) cur_token++->type = CPP_EOF; } - /* Directives, known or not, always start a new line. */ - if (first_token == 0 || list->tokens[first_token].type == CPP_HASH) - first->flags |= BOL; - else + first->flags |= BOL; + if (first_token != 0) /* 6.10.3.10: Within the sequence of preprocessing tokens making up the invocation of a function-like macro, new line is considered a normal white-space character. */ |

