aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorNeil Booth <neilb@earthling.net>2000-11-04 10:34:34 +0000
committerNeil Booth <neil@gcc.gnu.org>2000-11-04 10:34:34 +0000
commit9232b7d9c61cf0459d5d0323d2377ceb6f4ec9a0 (patch)
tree504cac29c4e3ad85f8c66d898924f6219b307b46 /gcc/cpplib.c
parent532abb52f42e69e4ce288407fdbed2f77c7f727b (diff)
downloadgcc-9232b7d9c61cf0459d5d0323d2377ceb6f4ec9a0.zip
gcc-9232b7d9c61cf0459d5d0323d2377ceb6f4ec9a0.tar.gz
gcc-9232b7d9c61cf0459d5d0323d2377ceb6f4ec9a0.tar.bz2
cpplib.c (do_line): Only warn pedantically if not reading preprocessed input.
* cpplib.c (do_line): Only warn pedantically if not reading preprocessed input. From-SVN: r37249
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 738b1ba..1a9c483 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -743,7 +743,7 @@ do_line (pfile)
if (read_line_number (pfile, &action_number) != 0)
{
- if (CPP_PEDANTIC (pfile))
+ if (! CPP_OPTION (pfile, preprocessed) && CPP_PEDANTIC (pfile))
cpp_pedwarn (pfile, "extra tokens at end of #line directive");
if (action_number == 1)