aboutsummaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index 36e1d7c..f58df6e 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -632,6 +632,9 @@ read_scan_file (in_fname, argc, argv)
options->inhibit_warnings = 1;
options->inhibit_errors = 1;
+ if (! cpp_read_main_file (scan_in, in_fname, NULL))
+ exit (FATAL_EXIT_CODE);
+
for (i = 0; i < argc; i += strings_processed)
{
strings_processed = 0;
@@ -669,8 +672,6 @@ read_scan_file (in_fname, argc, argv)
register_include_chains (scan_in, NULL /* sysroot */, NULL /* iprefix */,
true /* stdinc */, false /* cxx_stdinc */,
false /* verbose */);
- if (! cpp_read_main_file (scan_in, in_fname, NULL))
- exit (FATAL_EXIT_CODE);
cpp_rename_file (scan_in, "<built-in>");
cpp_init_builtins (scan_in);