* cpplib.c (do_line): Sanity check iff enable checking.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Wed, 11 Apr 2001 19:28:23 +0000 (19:28 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Wed, 11 Apr 2001 19:28:23 +0000 (19:28 +0000)
From-SVN: r41265

gcc/ChangeLog
gcc/cpplib.c

index 57aa8ee8a600fcd9cfffc929c248aab595c66610..12198f23542a0fb0d75affe67299507deafa2954 100644 (file)
@@ -1,3 +1,7 @@
+2001-04-11  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * cpplib.c (do_line): Sanity check iff enable checking.
+
 2001-04-11  Richard Henderson  <rth@redhat.com>
 
        * Makefile.in (insn-recog.o): Depend on toplev.h.
index bf1a3b07908930b515d0ed0908c11d9a5c083ef8..057bdf4ccae7122ab8a952ad8a52544cf8547755 100644 (file)
@@ -774,6 +774,7 @@ do_line (pfile)
                {
                  cpp_pop_buffer (pfile);
                  buffer = pfile->buffer;
+#ifdef ENABLE_CHECKING
                  if (strcmp (buffer->nominal_fname, fname))
                    cpp_warning (pfile, "expected to return to file \"%s\"",
                                 buffer->nominal_fname);
@@ -783,6 +784,7 @@ do_line (pfile)
                  if (buffer->sysp != sysp)
                    cpp_warning (pfile, "header flags for \"%s\" have changed",
                                 buffer->nominal_fname);
+#endif
                }
            }
          buffer->sysp = sysp;