From 9232b7d9c61cf0459d5d0323d2377ceb6f4ec9a0 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 4 Nov 2000 10:34:34 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/cpplib.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eb01f208f46..aef2b9372dc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-11-04 Neil Booth + + * cpplib.c (do_line): Only warn pedantically if not reading + preprocessed input. + 2000-11-04 Alexandre Oliva * calls.c (emit_call_1) [sibcall_pop]: Use n_popped instead of diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 738b1ba2d3b..1a9c483bb1e 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) -- 2.30.2