OSDN Git Service

* cpplib.c (do_line): Only warn pedantically if not reading
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 Nov 2000 10:34:34 +0000 (10:34 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 Nov 2000 10:34:34 +0000 (10:34 +0000)
        preprocessed input.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37249 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cpplib.c

index eb01f20..aef2b93 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-04  Neil Booth  <neilb@earthling.net>
+
+       * cpplib.c (do_line): Only warn pedantically if not reading
+        preprocessed input.
+
 2000-11-04  Alexandre Oliva  <aoliva@redhat.com>
 
        * calls.c (emit_call_1) [sibcall_pop]: Use n_popped instead of
index 738b1ba..1a9c483 100644 (file)
@@ -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)