aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2002-05-18 08:23:20 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-05-18 08:23:20 +0000
commit43612ffb67c38d7ff20507f62ae7f86b23f03ca4 (patch)
tree8d676f8eb309246fd73a05fd979264ce2b405f0e /gcc/cpplib.c
parentc810846eb0ab7c2a6d614b0ec8b2a0905c3fd0ad (diff)
downloadgcc-43612ffb67c38d7ff20507f62ae7f86b23f03ca4.zip
gcc-43612ffb67c38d7ff20507f62ae7f86b23f03ca4.tar.gz
gcc-43612ffb67c38d7ff20507f62ae7f86b23f03ca4.tar.bz2
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
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c2
1 files changed, 1 insertions, 1 deletions
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;