Commit adb18384 by Mikael Morin

cpp.c (gfc_cpp_post_options): Don't create a cpp reader if preprocessing is disabled.

2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

	* cpp.c (gfc_cpp_post_options): Don't create a cpp reader if
	preprocessing is disabled.

From-SVN: r165024
parent 131e5634
2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
* cpp.c (gfc_cpp_post_options): Don't create a cpp reader if
preprocessing is disabled.
2010-10-06 Jakub Jelinek <jakub@redhat.com>
PR middle-end/45838
......
......@@ -448,10 +448,10 @@ gfc_cpp_post_options (void)
|| gfc_cpp_option.dump_includes))
gfc_fatal_error("To enable preprocessing, use -cpp");
cpp_in = cpp_create_reader (CLK_GNUC89, NULL, line_table);
if (!gfc_cpp_enabled ())
return;
cpp_in = cpp_create_reader (CLK_GNUC89, NULL, line_table);
gcc_assert (cpp_in);
/* The cpp_options-structure defines far more flags than those set here.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment