summaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-20 08:33:52 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-20 08:33:52 +0000
commit46932f2c57551c6764d2dc9789140a043e00dc74 (patch)
treed6ca5125b94e6c7fe26a1330de33d0d919b4ba66 /gcc/fix-header.c
parent322abca4e59f07f349798e8f1f71a7dc731322cb (diff)
downloadgcc-46932f2c57551c6764d2dc9789140a043e00dc74.tar.gz
* fix-header.c (read_scan_file): Initialize cpplib.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35816 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index 429991d41fb..3dadb0e8ab9 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -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);