* fix-header.c (read_scan_file): Initialize cpplib.
authorNeil Booth <neil@gcc.gnu.org>
Sun, 20 Aug 2000 08:33:52 +0000 (08:33 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 20 Aug 2000 08:33:52 +0000 (08:33 +0000)
From-SVN: r35816

gcc/fix-header.c

index 429991d41fba20ba4b543d528298dc53c7edc7d6..3dadb0e8ab953148fb6d37fa078e0fbfe3e36bd0 100644 (file)
@@ -609,7 +609,9 @@ read_scan_file (in_fname, argc, argv)
 
   obstack_init (&scan_file_obstack); 
 
+  cpp_init ();                 /* Initialize cpplib.   */
   cpp_reader_init (&scan_in);
+
   /* We are going to be scanning a header file out of its proper context,
      so ignore warnings and errors.  */
   CPP_OPTION (&scan_in, inhibit_warnings) = 1;
@@ -1079,8 +1081,6 @@ main (argc, argv)
       exit (FATAL_EXIT_CODE);
     }
 
-  cpp_init ();                 /* Initialize cpplib.   */
-
   inc_filename = argv[1];
   inc_filename_length = strlen (inc_filename);