diff options
author | Kelvin Nilsen <kelvin@gcc.gnu.org> | 2018-01-09 13:14:34 +0000 |
---|---|---|
committer | Kelvin Nilsen <kelvin@gcc.gnu.org> | 2018-01-09 13:14:34 +0000 |
commit | 1ecb10a061e556dda83ead5fea403fe8fb032980 (patch) | |
tree | ec148191e8502f549be832c1906b9697f0a2533c /libcpp/lex.c | |
parent | b273370409eb567d077a5a59f139be7d45ff1025 (diff) |
tidied up with no regressions of my regression testingibm/ltc99327
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ibm/ltc99327@256379 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/lex.c')
-rw-r--r-- | libcpp/lex.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libcpp/lex.c b/libcpp/lex.c index bbd73405a76..18139bafb9d 100644 --- a/libcpp/lex.c +++ b/libcpp/lex.c @@ -2645,20 +2645,6 @@ _cpp_get_fresh_line (cpp_reader *pfile) } \ while (0) -#ifdef KELVIN_DEBUG -static FILE *kelvin_lex_trace; - -void -kelvin_trace (const char *msg, struct cpp_buffer *buffer) -{ - if (kelvin_lex_trace == NULL) - kelvin_lex_trace = fopen ("kelvin-lex-trace", "w"); - - fprintf (kelvin_lex_trace, "%s: buffer [%s], current focus @ %ld\n", - msg, buffer->buf, (buffer->cur - buffer->buf)); -} -#endif - /* Lex a token into pfile->cur_token, which is also incremented, to get diagnostics pointing to the correct location. @@ -2726,12 +2712,6 @@ _cpp_lex_direct (cpp_reader *pfile) _cpp_process_line_notes (pfile, false); result->src_loc = pfile->line_table->highest_line; } -#ifdef KELVIN_DEBUG - /* kelvin says this is where we get the next lexical character. - * still figuring out how we check for buffer overflow. - */ - kelvin_trace ("b4 switch in cpp_lex_direct", buffer); -#endif c = *buffer->cur++; if (pfile->forced_token_location_p) |