This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[cs] minor finish_options fix
- From: Per Bothner <per at bothner dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 07 Nov 2003 14:05:11 -0800
- Subject: [cs] minor finish_options fix
I checked this patch into the compile server branch.
It makes the logic closer to the trunk's and fixes a few regresions.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
2003-11-07 Per Bothner <pbothner@apple.com>
* c-opts.c (finish_options): Move cpp_find_main_file earlier, so
parse_in's main_file is set.
Index: c-opts.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-opts.c,v
retrieving revision 1.79.2.8
diff -u -p -r1.79.2.8 c-opts.c
--- c-opts.c 18 Oct 2003 21:29:20 -0000 1.79.2.8
+++ c-opts.c 7 Nov 2003 21:57:14 -0000
@@ -1399,6 +1399,8 @@ add_prefixed_path (const char *suffix, s
static void
finish_options (const char *tif)
{
+ cpp_find_main_file (parse_in, tif);
+
if (!cpp_opts->preprocessed)
{
size_t i;
@@ -1433,8 +1435,6 @@ finish_options (const char *tif)
}
include_cursor = 0;
-
- cpp_find_main_file (parse_in, tif);
push_command_line_include ();
}