From 43612ffb67c38d7ff20507f62ae7f86b23f03ca4 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 18 May 2002 08:23:20 +0000 Subject: cppinit.c (cpp_post_options): If preprocessed, turn off traditional. * cppinit.c (cpp_post_options): If preprocessed, turn off traditional. If traditional, turn off column numbers. * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional. * cpptrad.c (handle_newline): Update line_base. (skip_comment): Handle -Wcomment. From-SVN: r53582 --- gcc/cpplib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cpplib.c') diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 2773ed9..f19d34e 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -1881,7 +1881,7 @@ cpp_push_buffer (pfile, buffer, len, from_stage3, return_at_eof) new->line_base = new->buf = new->cur = buffer; new->rlimit = buffer + len; - new->from_stage3 = from_stage3; + new->from_stage3 = from_stage3 || CPP_OPTION (pfile, traditional); new->prev = pfile->buffer; new->return_at_eof = return_at_eof; new->saved_flags = BOL; -- cgit v1.1