diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2000-09-22 13:59:46 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2000-09-22 13:59:46 -0400 |
commit | a3a834aa73cc1f422c50b45955172805c5ab6fcc (patch) | |
tree | a67b3674ad3b4081215f47f5030ffa8a78b0a260 /gcc/c-lex.c | |
parent | 49895d5569d13006172ad37e60e1f833e3dde43c (diff) | |
download | gcc-a3a834aa73cc1f422c50b45955172805c5ab6fcc.zip gcc-a3a834aa73cc1f422c50b45955172805c5ab6fcc.tar.gz gcc-a3a834aa73cc1f422c50b45955172805c5ab6fcc.tar.bz2 |
c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
* c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
* dbxout.c (dbxout_symbol_name): Just use DECL_NAME for
function-local names.
From-SVN: r36570
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index b1f555b..f6dee4d 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -310,8 +310,9 @@ skip_white_space (c) { switch (c) { - /* There is no need to process comments, backslash-newline, - or \r here. None can occur in the output of cpp. */ + /* There is no need to process comments or backslash-newline + here. None can occur in the output of cpp. Do handle \r + in case someone sent us a .i file. */ case '\n': if (linemode) @@ -322,12 +323,13 @@ skip_white_space (c) c = check_newline (); break; + case '\r': /* Per C99, horizontal whitespace is just these four characters. */ case ' ': case '\t': case '\f': case '\v': - c = getch (); + c = getch (); break; case '\\': @@ -1503,9 +1505,10 @@ c_lex (value) case '\t': case '\f': case '\v': - c = getch (); + c = getch (); break; + case '\r': case '\n': c = skip_white_space (c); default: |