diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-03-15 15:02:16 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-03-15 15:02:16 +0000 |
commit | 151c68c36f3c591d162f7aab74d38ee7384f9f3d (patch) | |
tree | 6eec0dbaae970a3f8d706fe7536ba1c0ee8e73c8 /gcc/fix-header.c | |
parent | 511e3684c16962582169378ac01c8a87355a45f2 (diff) | |
download | gcc-151c68c36f3c591d162f7aab74d38ee7384f9f3d.tar.gz |
* fix-header.c (read_scan_file): Read main file before handling -D.
From-SVN: r64404
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r-- | gcc/fix-header.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c index 36e1d7cbedb..f58df6e7f75 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); |